Editing
Xen
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Fysieke server voor virtualisatie (dom0) == * [[HowTo's]] * http://packages.debian.org/nl/lenny/kvm * http://wiki.debian.org/DebianInstaller/Xen * http://wiki.xensource.com/xenwiki/XenFaq === Hardware checks vooraf === '''Vaststellen''' of de processor 64 of 32 bit is: # grep flags /proc/cpuinfo lm = Long Mode = 64 bits Real Mode = 16 bits Protected Mode = 32 bits '''Vaststellen''' of de processor virtualisatie ondersteunt # egrep β(vmx|svm)β /proc/cpuinfo === Xen install === ==== AMD-64 ==== # apt-get install xen-linux-system-2.6.26-2-xen-amd64 xen-tools ==== Intel ==== i386 # apt-get install xen-linux-system-2.6.26-1-xen-686 xen-tools libvirt0 less xvnc4viewer bzip2 xenstore-utils xenwatch xen-utils-3.2-1 xen-hypervisor-3.2-1-i386 xen-hypervisor-i386 ==== Algemeen ==== apt-get install lvm2 xen-tools ==== xend-config.cfg ==== Configuratie voor dom0 met een enkele netwerkkaart. # # Webhuis xen configuratie met network-bridge networkscript # (logfile /var/log/xen/xend.log) (loglevel DEBUG) (network-script network-bridge) (vif-script vif-bridge) (dom0-min-mem 196) (dom0-cpus 0) vnc-listen '' ==== Xen opzetten ==== ===== Network brideging ===== # vi /etc/xen/xend-config.sxp In geval van een enkele ethernet kaart Comment out (network-script network-dummy) voeg toe: (network-script network-bridge) ==== Xen multinic opzetten ==== De configuratie van een Xen host met meerdere netwerkkaarten is vanaf release 3.2 gewijzigd, oude configuraties werken niet meer. De juiste manier van configureren is moerlijk te vinden, het is vrij slecht gedocumenteerd. Voor het opzetten van een multinic host is het noodzakelijk verschilende bestanden in samenhang te wijzigen. * /etc/modules * /etc/xen/scripts/network-multinic * /etc/xen/xend-config.sxp * /etc/network/interfaces N.B. De machine is erg gevoelig voor fouten in de samenhang tussen deze machine. Een fout leidt er doorgaans toe dat het boot proces stopt, of dat de interfaces niet opkomen. ===== /etc/modules ===== loop max_loop=64 options netloop nloopbacks=255 ===== /etc/xen/scripts/network-multinic ===== Plaats het script network-multinic in /etc/xen/scripts en zorgt ervoor dat het uitvoorbaar is: #!/bin/sh # # Webhuis network-multinic xen 3.2 # dir=$(dirname "$0") #/usr/bin/logger -t xend-network "network-bridge $* vifnum=0, vifnum=1" "$dir/network-bridge" "$@" netdev=eth0 bridge=xen-br0 vifnum=0 "$dir/network-bridge" "$@" netdev=eth1 bridge=xen-br1 vifnum=1 ===== /etc/xen/xend-config.sxp ===== Comment out (network-script network-dummy) voeg toe (network-script network-multinic) # # Webhuis xen configuratie met multinic networkscript # (network-script network-multinic) (vif-script vif-bridge) (dom0-min-mem 196) (dom0-cpus 0) (vncpasswd '') ===== /etc/network/interfaces ===== Het opvallende aan de inhoud van het bestand interfaces is dat de vertouwde aanduidingen voor de netwerkinterfaces eth0 en eth1 zijn vervangen door de namen van de bridges xen-br0 en xen-br1. # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # # Webhuis xen netwerk configuratie voor xen dom0 multinic # # The loopback network interface auto lo iface lo inet loopback # # The external network interface auto xen-br0 allow-hotplug xen-br0 iface xen-br0 inet dhcp # auto xen-br1 allow-hotplug xen-br1 iface xen-br1 inet static address 10.22.23.1 netmask 255.255.255.128 ===== xen-tools ===== Zet de lvm in de xen-tools configuratie # vi /etc/xen-tools/xen-tools.conf lvm = dev-xen Zorg voor een root password door uncomment van: passwd = 1 Zorg voor console access door onderstaande regel toe te voegen: serial_device = hvc0 ====== xen-tools.conf ====== lvm = dev-xen install-method = debootstrap size = 8Gb # Disk image size. memory = 128Mb # Memory size swap = 128Mb # Swap size fs = ext3 # use the EXT3 filesystem for the disk image. dist = lenny # Default distribution to install. image = sparse # Specify sparse vs. full disk images. passwd = 1 kernel = /boot/vmlinuz-`uname -r` initrd = /boot/initrd.img-`uname -r` mirror = http://mirror.webhuis.nl:3142/ftp.us.debian.org/debian/ ext3_options = noatime,nodiratime,errors=remount-ro ext2_options = noatime,nodiratime,errors=remount-ro xfs_options = defaults reiser_options = defaults serial_device = hvc0 == Virtuele server (domU) == === Bouwen van een virtuele server === xen-create-image --verbose --force --hostname=ips-vpn --ip=10.68.71.200 --netmask=255.255.255.240 --gateway=10.68.71.193 --size=8gb --debootstrap --dist=lenny --mirror=http://mirror.webhuis.nl:3142/ftp.nl.debian.org/debian --role=udev Aanpassen xmdomain.cfg: Voeg toe onder de memory parameter: extra = "clocksource=jiffies" Herstart de domU = Troubleshooting = == Autostart domU na reboot dom0 == Zet de automatisch te starten domeinen in /etc/xen/auto. == Memory issues == How do I fix "xen_net: Memory squeeze in netback driver"? <br/> This error is caused by memory being dynamically allocated on the dom0 device on virtualized systems. It can be fixed by assigning a static amount of ram on the dom0. This procedure is specific for virtualized systems running the Xen platform. <pre> 1. Edit /etc/grub.conf using your favorite editor. In the "kernel /versionnumberhere" line add the following to the end of the line: dom0_mem=512M An example would look like: kernel /xen.gz-2.6.18-128.1.10.el5 dom0_mem=512M 2. Edit /etc/xen/xend-config.sxp and change the following: (dom0-min-mem 256) to: (dom0-min-mem=0) 3. Lastly, reboot your dom0 device. This will completely fix the memory squeeze issue. </pre> # grub-install /dev/sda = Links = * http://wiki.xensource.com/xenwiki/XenNetworking * http://www.syneus.net/debian-xen-networking-vlan * http://renial.net/weblog/2007/02/27/xen-vlan * http://gathering.tweakers.net/forum/list_messages/1337353 * http://openvswitch.org/?page_id=14 * http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.bridge;hb=HEAD <hr> Terug naar: [[Webhuis bouwstenen]] = Links = * http://wiki.xensource.com/xenwiki/XenNetworking * http://www.syneus.net/debian-xen-networking-vlan * http://renial.net/weblog/2007/02/27/xen-vlan * http://gathering.tweakers.net/forum/list_messages/1337353 * http://openvswitch.org/?page_id=14 * http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.bridge;hb=HEAD <hr> Terug naar: [[Webhuis bouwstenen]]
Summary:
Please note that all contributions to Webhuis wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Voorpagina
Cobol and PostgreSQL
PostgreSQL
CFEngine
Proxmox
Webhuis Kennisbank
Basale infra
Webhuis bouwstenen
Webhuis configuratie
Webhuis Infra
Webhuis Support
Webhuis Raspberry
Opzet Applicaties
Business Applicaties
Community portal
Current events
Recent changes
Random page
Help
sitesupport
Tools
What links here
Related changes
Special pages
Page information