some xVM notes before I forget
Its been about 6 months since I played around with xVM (then called just Xen) so I figured I'd refresh myself with Nevada Build 83. Previously I had been creating domains with xm create and pretty terse python-syntax(?) config files. Things are much easier now with virt-install
A few notes on commands I used to create domains.
Installing Paravirtualized Fedora Core 7
zfs create -V 8G storage/xvm-fc7-instance-1 lofiadm -a /export/xen/install/iso/F-7-x86_64-DVD.iso mount -F hsfs /dev/lofi/2 /export/xen/install/dvd/fc7-64 share /export/xen/install/dvd/fc7-64 virt-install --name fc7 --ram 1024 --paravirt --file /dev/zvol/dsk/storage/xvm-fc7-instance-1 \ --location nfs:outpost.eng.sun.com:/export/xen/install/dvd/fc7-64 -x console=hvc0
Installing Paravirtualized Fedora Core 8
zfs create -V 8G storage/xvm-fc7-instance-1 virt-install --name fc8 --ram 1024 --paravirt --file /dev/zvol/dsk/storage/xvm-fc8-instance-1 \ --l http://fedora.secsup.org/linux/releases/8/Fedora/x86_64/os -x console=hvc0
Duplicate a domain
zfs snapshot storage/xvm-fc8-instance-1@master zfs clone storage/xvm-fc8-instance-1@master storage/xvm-fc8-instance-2 virsh dumpxml fc8-1 | grep -v uuid | sed -e 's/fc8-1/fc8-2/g' > /tmp/fc8-2 virsh define /tmp/fc8-2
Install HVM Solaris Install to NFS image
virt-install -n nv-81-1 --hvm --vnc --vncport 5901 \ -f /net/derelict/extra/holding/xen-root-nv-81-1.img -r 1024 \ -c /export/xen/install/iso/sol-nv-bld81-x86-dvd.iso --noautoconsole
