Xen: Use xen-create-image to create PV guest

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.