Category: Virtualization


There are several methods to create VM’s in CentOS, some of the popular methods include virt-install, xend, xm.

I ll keep updating the post as and when I remember the ways.

1. The first method is using virt-install

virt-install -n rhel5PV -r 500 -f /var/lib/xen/images/rhel5PV.dsk -s 3 –vnc
-p -l ftp://10.1.1.1/trees/RHEL5-B2-Server-i386/

2. The second method is using xm

kernel = "/boot/vmlinuz-xen-install" ramdisk = "/boot/initrd-xen-install" extra = "text ks=http://localserver/minimal-ks.cfg" name = "mailserver" memory = "256" disk = [ 'tap:aio:/srv/xen/mailserver.img,xvda,w', ] vif = [ 'bridge=xenbr0', ] vcpus=1 on_reboot = 'destroy' on_crash = 'destroy'
The above is a sample configuration file for the xm command, one can use the command xm create <cfg file>


I would never recommend users to use Ubuntu 10.10 (Maverick ) with XEN , its one hell of a process and mostly it ends up  as a failure, a safer bet would be Debian with Xen or the traditional Centos or Fedora with Xen.