Apt-getinstallxen-toolsxen-utils-commonxenwatchlibxen-devxen-docs-4.1xen-hypervisor-4.1-amd64xen-utils-4.1xenstore-utilsbridge-utilsgrub: Modify setdefault = "2", that is, start the following kernel: submenu "Xen4.1-am
Apt-get install xen-tools xen-utils-common xenwatch libxen-dev xen-docs-4.1 xen-hypervisor-4.1-amd64 xen-utils-4.1 xenstore-utils bridge-utils
Grub:
Modify set default = "2" to start the following kernel:
Submenu "Xen 4.1-amd64 "{
Menuentry 'ubuntu GNU/Linux, with Xen 4.1-amd64 and Linux 3.0.0-12-generic '-- class Ubuntu -- class gnu-linux -- class
Gnu -- class OS -- class xen {
Insmod part_msdos
Insmod ext2
Set root = '(hd0, msdos1 )'
Search -- no-floppy -- fs-uuid -- set = root 162bc81d-3f41-45cb-adf0-d56994a2a55c
Echo 'loading Xen 4.1-amd64 ...'
Multiboot/boot/xen-4.1-amd64.gz placeholder
Echo 'loading Linux 3.0.0-12-generic ...'
Module/boot/vmlinuz-3.0.0-12-generic placeholder root = UUID = 162bc81d-3f41-45cb-adf0-d56994a2a55c ro quiet
Splash
Echo 'loading initial ramdisk ...'
Module/boot/initrd. img-3.0.0-12-generic
}
Xend Configuration:
Vim/etc/xen/xend-config.sxp Add the following line
(Network-script network-bridge)
Bridge configuration
Cat/etc/network/interfaces
Auto lo
Iface lo inet loopback
Auto eth0
Iface eth0 inet dhcp
/Etc/init. d/networking restart
Ifdown eth0
Brctl delbr tmpbridge
/Etc/xen/scripts/network-bridge start
Check whether it is OK:
Brctl show
Bridge name bridge id STP enabled interfaces
Eth0 8000.1c6f450addfe no peth0
The ifconfig command shows the familiar eth0 and peth0, but eth0 and peth0 actually have the same IP address. After the restart, it returns to normal.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2