XEN PV Guest的创建
2010-09-09 10:50
225 查看
需要先安装xen-toolsapt-get install xen-tools使用xen-create-image命令创建虚拟机
xen-create-image --hostname=ubuntu1 --size=3Gb --memory=512mb --arch=i386 --kernel=/boot/vmlinuz-2.6.18.8-xen --initrd=/boot/initrd.img-2.6.18.8-xen0 --dist=hardy --swap=1gb --dhcp --role=udev --dir=/etc/xen --force
但总会出现类似下面的错误:
I: Retrieving Release
E: Failed getting release file http://ftp.us.debian.org/debian/dists/lenny/Release
Copying files from new installation to host.
Copying files from /tmp/jUrDxM_Km2/var/cache/apt/archives -> /var/cache/apt/archives
Done
Done
The installation of the new system has failed.
The system is missing the common file: /bin/ls
Done
System installation failed. Aborting这是因为镜像地址是不正确的:http://ftp.us.debian.org/debian/dists/lenny/Release
在/etc/xen-tools/xen-tools.conf中有mirror的备选值,当然也可以在xen-create-image命令中加入mirror参数。
通过mirror参数的值和dist参数的值拼成一个url。但配置文件中提供的说明却不一定正确,例如有关dist参数,以ubuntu为例:
在http://archive.ubuntu.com/ubuntu/dists/ 下,目前存在dapper、hardy、intrepid、jaunty、karmic、lucid等子目录,但配置文件中声称ubuntu系统仅支持edgy、feisty、dapper
故此处在实际使用的时候需要灵活处理。
xen-create-image会创建虚拟机镜像文件和配置文件。启动虚拟机仍需要使用xm create <配置文件>。
xen-create-image --hostname=ubuntu1 --size=3Gb --memory=512mb --arch=i386 --kernel=/boot/vmlinuz-2.6.18.8-xen --initrd=/boot/initrd.img-2.6.18.8-xen0 --dist=hardy --swap=1gb --dhcp --role=udev --dir=/etc/xen --force
但总会出现类似下面的错误:
I: Retrieving Release
E: Failed getting release file http://ftp.us.debian.org/debian/dists/lenny/Release
Copying files from new installation to host.
Copying files from /tmp/jUrDxM_Km2/var/cache/apt/archives -> /var/cache/apt/archives
Done
Done
The installation of the new system has failed.
The system is missing the common file: /bin/ls
Done
System installation failed. Aborting这是因为镜像地址是不正确的:http://ftp.us.debian.org/debian/dists/lenny/Release
在/etc/xen-tools/xen-tools.conf中有mirror的备选值,当然也可以在xen-create-image命令中加入mirror参数。
通过mirror参数的值和dist参数的值拼成一个url。但配置文件中提供的说明却不一定正确,例如有关dist参数,以ubuntu为例:
在http://archive.ubuntu.com/ubuntu/dists/ 下,目前存在dapper、hardy、intrepid、jaunty、karmic、lucid等子目录,但配置文件中声称ubuntu系统仅支持edgy、feisty、dapper
故此处在实际使用的时候需要灵活处理。
xen-create-image会创建虚拟机镜像文件和配置文件。启动虚拟机仍需要使用xm create <配置文件>。
相关文章推荐
- Determine which guest is running on XEN: HVM or PV guest
- Xen的PV Guest如何wake up
- 在XEN虚拟化环境中创建PV模式虚拟机
- 基于Xen的PV Guest VM与HVM性能比较
- 创建并启动一个xen半虚拟化PV客户机
- Xen PV Guest interrupt
- Xen Cloud Platform 系列:虚拟机创建(二)
- 安装Xen、创建Xen虚拟机、使用Xen虚拟机过程中经常出现的错误总结
- 在Vmware workstation上创建xen主机 推荐
- 在xen上使用virt-install命令创建虚拟机并安装操作系统
- XEN - Managing and Monitoring Fedora based Xen Guest Systems
- XenDesktop 5 创建Site时出错
- xen 创建本地存储
- XenDesktop 7.1 使用scvmm 2012 R2 做主机时,mcs 创建主机报错
- Xen-Server 6.5 VM模板中创建虚拟机
- Install OpenSolaris PV On Xen
- xen创建Domain步骤
- Xen Disk I/O: from guest domain to real devices
- 从Xen Host Kernel复制出一个半虚拟化的Guest
- xen-tools创建虚拟机找不到root fs的解决办法