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-utilsgrub:修改set default="2",即启动下面的内核: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配置:
vim /etc/xen/xend-config.sxp添加下面一行
(network-script network-bridge)网桥配置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
确认一下是否OK了:
brctl show
bridge name bridge id STP enabled interfaces
eth0 8000.1c6f650addfe no peth0ifconfig命令可以看到熟悉的eth0和peth0,但是eth0和peth0居然有相同的IP,重启后恢复正常。
更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2Windows客户端 SSH 向 Linux 上传文件单端口 实现Xen 虚拟机多VLAN相关资讯 Xen
- Xen安全架构sHype/ACM策略配置图文 (04月05日)
- Xen 4.6 发布下载,增强安全性和 (10/14/2015 09:01:11)
- Xen信息泄露漏洞(CVE-2015-2044) (03/10/2015 07:52:01)
| - Xen arch/x86/mm.c mod_l2_entry权 (11/09/2015 11:39:48)
- Fedora 20源码安装Xen4.3.0 (04/22/2015 06:20:50)
- Linux入门学习教程:虚拟机体验之 (03/08/2015 19:15:41)
|
本文评论 查看全部评论 (0)