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