Xen virtual machine installation practice

  

1, installation host environment, I use Centos6.3

2, install xend, refer to a foreigner article, basically smooth.

Address: http://xen.crc.id.au/support/guides/install/2.1. yum install bridge-utils2.2.yum install http://au1.mirror.crc.id. Au/repo/el6/x86_64/kernel-xen-release-6-5.noarch.rpm2.3.yum install kernel-xen xen2.4.vi /etc/sysconfig/selinux.

Modify this line

SELINUX=disabled

2.5.reboot

xm The info command is easy to use, congratulations, basically the same. 3, install the virtual system

can not directly use the iso file, you need to mount as an optical drive, support http or nfs format access, it seems that you can not use the local directory.

I installed httpd on the host machine, and mounted the CD-ROM drive to the http directory. Other directories will have errors in the file during the installation process. It is recommended to directly hang the root partition.

mount -o loop -t iso9660 /data7/CentOS-6.3-x86_64-bin-DVD1.iso /var/www/html

dd if=/dev/zero of=vm00. Img bs=1k seek=30720k count=1 Create hard disk /usr/sbin/virt-install --paravirt --file=/data/vm/vm00.img --name=vm00 --ram=1024 --vcpus=1 --bridge=eth0 --nographics --location=/var/www/html After installation, there will be an installation interface. There is an interface for inputting the installation media. Select url and enter http://192.168.1.185/

reboot

4 after installation, virtual machine management

xm list display virtual machine list

xm start vm00 boot

xm console vm00 enter virtual Machine Command Line Environment

xm delete vm01 Delete Virtual Machine

xm shutdown vm00 Shutdown

5, Clone Virtual Machine

virt-clone -o vm00 - n vm01 -f vm01

can be polyclonal, haha

After the clone is complete, you can use the command of the 4th to manage.

Copyright © Windows knowledge All Rights Reserved