WaZaRWiki : XenVirtualisation

GaelReignier :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register :: Hosted by: eNiX

Revision [311]

Most recent edit made on 2009-05-18 16:30:00 by GaelReignier

Additions:

Virtual machine configuration

* Add the bridge to the Xen host configuration file: /etc/xen/www1.jupres.com
name = "myXenVM"
uuid = "060b05ea-808e-f2c4-58bc-03ac9cd2c5b6"
maxmem = 12288
memory = 6144
vcpus = 2
builder = "hvm"
kernel = "/usr/lib/xen/boot/hvmloader"
boot = "c"
pae = 1
acpi = 1
apic = 1
localtime = 0
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
device_model = "/usr/lib64/xen/bin/qemu-dm"
sdl = 0
vnc = 1
# vncunused = 1
vncviewer = 1
vncdisplay = 5
disk = [ "file:/var/lib/xen/images/www1.jupres.com.img,hda,w", ",hdc:cdrom,r" ]
vif = [ "mac=00:16:3e:3b:c1:3b,bridge=xenbrbond1","mac=00:16:3e:00:00:01,bridge=xenbrbond2"]
serial = "pty"




Revision [310]

The oldest known version of this page was edited on 2009-05-18 16:29:11 by GaelReignier
ITTips


Network configuration

Bridge configuration


* /etc/xen/scripts/network-multibridge

Add the bond interface to the appropriate bridge

#!/bin/sh
# network-xen-multi-bridge
# Exit if anything goes wrong.
set -e
# First arg is the operation.
OP=$1
shift
script=/etc/xen/scripts/network-bridge.xen
case ${OP} in
start)
        $script start vifnum=0 bridge=xenbr0 netdev=eth0
        $script start vifnum=1 bridge=xenbrbond1 netdev=bond1
        $script start vifnum=2 bridge=xenbr2 netdev=eth2
        $script start vifnum=3 bridge=xenbrbond2 netdev=bond2

        ;;
stop)
        $script stop vifnum=0 bridge=xenbr0 netdev=eth0
        $script stop vifnum=1 bridge=xenbrbond1 netdev=bond1
        $script stop vifnum=2 bridge=xenbr2 netdev=eth2
        $script stop vifnum=3 bridge=xenbrbond2 netdev=bond2
        ;;
status)
        $script status vifnum=0 bridge=xenbr0 netdev=eth0
        $script status vifnum=1 bridge=xenbrbond1 netdev=bond1
        $script status vifnum=2 bridge=xenbr2 netdev=eth2
        $script status vifnum=3 bridge=xenbrbond2 netdev=bond2
        ;;
*)
        echo 'Unknown command: ' ${OP}
        echo 'Valid commands are: start, stop, status'
        exit 1
esac


Xen host configuration


* /etc/xen/xend-config.sxp
(network-script network-multibridge)
(network-script network)

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.2584 seconds