Notes‎ > ‎

Xen

Quick start

Create a logical volume for the virtual machine where vg_xen is the volume group reserved for xen volumes
# lvcreate -L 35G -n lv_virtualmachine vg_xen

Kickstart install from command line
# virt-install -p -s 12 –vnc -r 1500 –nonsparse -n the-master-v2 -f /dev/vg_01/lv_xen_the_master_v2 -l nfs:geisel.ics.uci.edu:lore_xraidp1_tank/support_fs/extra/centos0/mirror/5/os/x86_64 -x “cmdline 0 ks=nfs:128.195.1.20:/vol/vol8/linux/centos1/kickstart/ics-5.3.0.server.ks ksdevice=eth0 ip=128.195.1.163 netmask=255.255.255.0 gateway=128.195.1.1 dns=128.195.25.66″

List virtual machines
# xm list

Login to console
# xm console <domid>

Start up a virtual machine
# xm create -c /etc/xen/virtual_machine

Shutdown a virtual machine
# xm destroy /etc/xen/virtual_machine

Load the GUI to manage virtual machines (requires x11 forwarding)
# virt-manager
Comments