Ii. Use xen-create-image to create PV guest
Software to be installed: debootstrap
apt get install debootstrap
Modify the configuration file/etc/xen-tools/xen-tools.conf,
When xen-create-image is used to create a PV, the values of some parameters can be modified here.
The configuration file is very simple, so I didn't post the configuration.
Create a Ubuntu 12.04 (precise) step:
cd/usr/lib/xen-tools/ln -skarmic.d precise.dxen-create-image--size=30Gb --swap=1024Mb --ip=10.20.20.21 --netmask=255.255.255.0--gateway=10.20.20.20 --nameserver=114.114.114.114 --hostname=vm01.test.yao
If you use xen-create-image to create an image, the root password is output, and the configuration file/etc/xen/vm01.test is generated. yao. CFG, the storage location of vm01 is in the directory specified by Dir in the xen-tools.conf:
Enable vm01:
xm create -c vm01.test.yao.cfg
Run XM list to check whether vm01 has been created successfully,
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4B/3C/wKiom1Qo27agR11FAACs9bo-5ZU142.jpg "Title =" 1jpg. jpg "alt =" wKiom1Qo27agR11FAACs9bo-5ZU142.jpg "/> Use XM console vm01.test. yao enters vm01, and a minimal installed Ubuntu 12.04 can be used.
This article from the "keep walking" blog, please be sure to keep this source http://yao1990.blog.51cto.com/2913182/1559338
Xen: Use xen-create-image to create PV guest