Ubuntu 11.04 (natty) Installation in kvm guest

Preliminary

To perform a net install of Ubuntu 11.04 in a virtual machine called "ulysse" - 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 ubuntu -R natty ulysse
Pool install refreshed

Starting install...
Allocating 'ulysse.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 ubuntu -R natty ulysse
virt-install 
--connect=qemu+ssh://bareil/system 
--ram=512 
--arch=i386 
--vcpus=1 
--video=vga 
--soundhw=default 
--description="ulysse (ubuntu natty) - vm guest on host bareil" 
--os-variant=ubuntukarmic 
--disk vol=install/mini.iso,device=cdrom 
--boot=cdrom,hd,network 
--disk pool=default,size=8 
--network bridge=br0
--vnc 
--vnclisten=0.0.0.0 
--name=ulysse

iso URL: ftp://ftp.osuosl.org/pub/ubuntu/dists/natty/main/installer-i386/current
/images/netboot/mini.iso

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.

Booting Ubuntu

Grub prompt Booting...

You can use the mousewheel to navigate in the slideshow

Installing Ubuntu

Choose language Choose language Configure the keyboard Configure the keyboard Configure the keyboard Detecting network hardware... Configuring the network with dhcp... Configuring the network. Choose a mirror of the Ubuntu archive Choose a mirror of the Ubuntu archive Choose a mirror of the Ubuntu archive Checking the Ubuntu archive mirror... Loading additional components... Setting up the clock... Configure the clock Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partitions formatting... Installing the base system... Installing the base system... Set up users and passwords Set up users and passwords Set up users and passwords Set up users and passwords Set up users and passwords Configuring apt... Select and install software... Configuring discover Software selection Software selection Select and install software... Configuring mysql server... Configuring grub-pc... Installing GRUB boot loader... Finishing the installation... Finishing the installation Finishing the installation... Installation complete Finishing the installation... Rebooting...

You can use the mousewheel to navigate in the slideshow