QEMU/Linux guest

This article describes the setup of a Gentoo Linux guest using QEMU.

Host
To create a disk image for the virtual machine, run:

Download a minimal Gentoo LiveCD from here.

Since QEMU requires a lot of options, it would be a good idea to put them into a shell script, e.g.:

Change the path to your disk image GentooVM.img in the script. You can additional options when calling the script. To boot the disk image, run:

Install the Gentoo guest. See the guest section for optimum support. After the installation start the script without the additional options.

Hard drive
Your VirtIO hard drive is mapped to.

GRUB
To install GRUB change your :

Also specify the when setup GRUB to the MBR: