openSUSE 11.4 Installation in kvm guest |
To perform a net install of openSUSE 11.4 in a virtual machine called "oprah" - with 8 GB disk, bridge and sound support - to a remote host called "bareil", use the following syntax:
# vm-create -c bareil -s 8 -S -b br0 -u opensuse oprah
Pool install refreshed Starting install... Allocating 'oprah.img' | 8.0 GB 00:00 Creating domain... | 0 B 00:00 |
You can use the option -t to print the whole command to be passed to virt-install to standard output before executing it:
# vm-create -t -c bareil -s 8 -S -b br0 -u opensuse oprah
virt-install --connect=qemu+ssh://bareil/system --ram=512 --arch=i386 --vcpus=1 --video=vga --soundhw=default --description="oprah (opensuse 11.4) - vm guest on host bareil" --os-variant=virtio26 --disk vol=install/openSUSE-11.4-NET-i586.iso,device=cdrom --boot=cdrom,hd,network --disk pool=default,size=8 --network bridge=br0 --vnc --vnclisten=0.0.0.0 --name=oprah iso URL: http://download.opensuse.org/distribution/11.4/iso/openSUSE-11.4-NET |
A detailled description of the vm-create script has been posted in the openSUSE forum: vm-create : create kvm virtual machines.
* Notice that the option --boot=cdrom,hd,network is not available on virt-install version prior to 5003.