Arch Linux 2010 05 Installation in kvm guest |
To perform a net install of a virtual machine called "archibald" - with 8 GB disk, bridge, sound support and virtio - to a remote host called "bareil", use the following syntax:
# vm-create -c bareil -s 8 -S -b br0 -V -u archlinux archibald
Pool install refreshed Starting install... Allocating 'archibald.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 -V -u archlinux archibald
virt-install --connect=qemu+ssh://bareil/system --ram=512 --arch=i386 --vcpus=1 --video=vga --soundhw=default --description="archibald (archlinux) - vm guest on host bareil" --os-variant=virtio26 --disk vol=install/archlinux-2010.05-netinstall-i686.iso,device=cdrom --boot=cdrom,hd,network --disk pool=default,size=8 --network bridge=br0 --vnc --vnclisten=0.0.0.0 --name=archibald |
A detailled description of the vm-create script has been posted in the openSUSE forum: vm-create : create kvm virtual machines
Arch Linux Live ISO (tty1) Linux-2.6.33-ARCH i686. Default logins "root" and "arch" have no password. To begin installation, login as root. archiso login: root |
The steps needed to successfully install Grub in the automatic installation procedure include:
hostname archibald
aif -p partial-configure-network
ifconfig eth0
allow -s archibald 207
cd /tmp ; scp gwynn:/usr/local/bat/nvminstall .
./nvminstall archibald
These steps are described in the slideshow below.
install of a 64 bit virtual machine called "maud" - with 1 x 20 GB disk, 2GB RAM, bridge, NO sound support and virtio - to a remote host called "gwynn":