Use virt-install to create an xen VM

Source: Internet
Author: User
Use virt-install to create an xen Virtual Machine [root @ gmnode14 vm01-CentOS-5.5] # virt-install-N vm01-CentOS-5.5-r 1024 -- vcpus = 4-F vm01-CentOS-5.5.img-s 20 -- nographic-l NFS: 10.10.113.14:/opt/centos/mirrors/5.5

-------------------------

Virt-install Parameter Parsing:

-NVm01-CentOS-5.5#Virtual Machine name, here our name is vm01-CentOS-5.5

-R 1024 #The maximum memory size of the VM, in MB. Here our memory is 1 GB

-- Vcpus = 4 #Number of Virtual Machine CPUs. Here we have 2

-FVm01-CentOS-5.5.img#Virtual Machine virtual hard disk name, we use vm01-CentOS-5.5.img here

-- Nographic #Do not install graphical interfaces.

-LNFS: 10.10.113.14:/opt/centos/mirrors/5.5#The path of the system image. Xen only supports FTP/HTTP/nfs

-------------------------


After creation, the image file vm01-CentOS-5.5.img is generated under the current directory;

Generate the Virtual Machine profile vm01-CentOS-5.5 under the/etc/xen directory;

[Root @ gmnode14 xen] # Cat/etc/xen/vm01-CentOS-5.5
Name = "vm01-CentOS-5.5"
UUID = "0283f36d-c95a-521b-737d-e400ca657029"
Maxmem = 1024
Memory = 1024
Vcpus = 4
Bootloader = "/usr/bin/pygrub"
On_poweroff = "Destroy"
On_reboot = "restart"
On_crash = "restart"
Disk = ["tap: AIO:/local/xen_zkl/vm01-CentOS-5.5/vm01-CentOS-5.5.img, xvda, W"]
VIF = ["Mac = 00: 16: 36: 40: 43: 85, bridge = virbr0, script = VIF-bridge"]

Go to the installation page. For more information, see:

Create a virtual machine using xen in laruence Linux
Http://linux.vbird.org/linux_enterprise/xen.php#other_inst_inst

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.