Debian 6.0 (squeeze) Installation in kvm guest

Preliminary

To perform a net install of Debian Squeeze in a virtual machine called "deborah" - 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 debian deborah
Pool install refreshed

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

iso URL: ftp://ftp.osuosl.org/debian-cd/6.0.0/i386/iso-cd/debian-6.0.0-i386-
netinst.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 Debian

Booting Debian

You can use the mousewheel to navigate in the slideshow

Debian GUI setup

Booting Choose language Select your location Configure the keyboard Load installer components from CD Configure the network Configure the network Configure the network Set up users and passwords Set up users and passwords Set up users and passwords Set up users and passwords 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 Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Partition disks Install the base system Configure the package manager Configure the package manager Configure the package manager Configure the package manager Select and install software Configuring popularity-contest Select and install software Software selection Select and install software Select and install software installing Grub... Configuring man-db installing Grub... finishing the installation Installation complete Finish the installation Login Gnome Desktop

You can use the mousewheel to navigate in the slideshow

When the installation is complete, press Reboot. If you see the CD boot screen, turn off the vm in virt-manager, diconnect netinstall.iso from the CDROM device and change the boot device order in Boot Options. Then restart the vm and proceed with setup.