Gentoo 10.1 Installation in kvm guest

Preliminary

To perform a net install of a virtual machine called "gentiane" - 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 gentoo gentiane
Pool install refreshed

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

A detailled description of the vm-create script has been posted in the openSUSE forum: vm-create : create kvm virtual machines

Booting Gentoo

Booting Gentoo Setting Gentoo Setting Gentoo Setting Gentoo

You can use the mousewheel to navigate in the slideshow

Automatic installation with nwminstall

The steps needed to successfully install Grub in the automatic installation procedure include:

These steps are described in the slideshow below.

automatic install with nvminstall automatic install with nvminstall automatic install with nvminstall automatic install with nvminstall automatic install with nvminstall automatic install with nvminstall automatic install with nvminstall automatic install with nvminstall automatic install with nvminstall automatic install with nvminstall automatic install with nvminstall

You can use the mousewheel to navigate in the slideshow

After install

Examples

install of a 32 bit virtual machine called "gentiane" - with 1 x 8 GB disk, 512 MB RAM, bridge, sound support and virtio - to a remote host called "bareil":

vm-create view vm-create execute Booting Gentoo Setting Gentoo Setting Gentoo Setting Gentoo nvminstall sfdisk mke2fs automatic install with nvminstall automatic install with nvminstall automatic install with nvminstall mke2fs automatic install with nvminstall stage3 genpatches genkernel patching Grub installing syslog-ng (21 of 21) installing vim (q4 0f 14) installation complete

You can use the mousewheel to navigate in the slideshow