System Emulators / Virtual Environments


[Strg] + [Alt] to release mouse
to boot from an iso image:

qemu -cdrom knoppix.iso -boot d -m 512

to boot from a real cd:

qemu -cdrom /dev/cdrom -boot d -m 512

to set up a hard disk to use with qemu:

qemu -cdrom /dev/cdrom -boot d -m 512 -hda /dev/hdb

or as an image file:
Set up the image using

qemu-img create dsk.img 5G

and use it:

qemu -cdrom /dev/cdrom -boot d -m 512 -hda dsk.img

if you want that your image starts at no size: -f qcow2 as parameter when creating the image!

Qemulator - a very good GTK GUI for QEmu

$ sudo aptitude install qemulator



sudo apt-get install virtualbox-ose

Now add the users to the group vboxusers (to allow them to use the program) [NOT NEEDED IN INTREPID]:

# in general
sudo adduser <username> vboxusers
# for yourself:
sudo adduser $USER vboxusers

Starting virtualbox:

$ virtualbox

You may change the folder where your virtual machines are stored under File → Preferences → General

Now create your virtual machine:

New → Next → "virt Windows XP machine", "Windows XP" → Next → 768 MB → New Hard Disk → Next → Dynamically expanding image → Next → Filename: "virt Windows XP machine" , 10 GB → Next → Next → Finish

Mount CD: Settings → CD/DVD-ROM→ Mount ISO-Image

Start and install

Install Guest extensions: Download them:
mount iso image and install

host mode for the network interface

source: ( )

sudo apt-get install bridge-utils uml-utilities

execute the following script before you startup your machine:


if [ $UID != "0" ]
    sudo $0 $1 $(id -un)


case "$1" in
    exists=`brctl show|grep -c ${bridge}`
    if [ ${exists} == "0" ]
        brctl addbr ${bridge}
        ifconfig ${eth}
        brctl addif ${bridge} ${eth}
        dhclient ${bridge}
        chmod 0660 /dev/net/tun
        chgrp vboxusers /dev/net/tun

    tunctl -t ${iface} -u ${user}
    ifconfig ${iface} up
    brctl addif ${bridge} ${iface}
    brctl delif ${bridge} ${iface}
    tunctl -d ${iface}
    echo "Usage: $0 [start|stop]"
    exit 1

start the tunnel-device using ./ start stop it using ./ start after starting the device set the network adapter in VirtualBox to vbox0!

Serial Ports

host mode /dev/ttyS0

if it doesn't work right out of the box try to add the serial adapter manually via the "Add hardware..." dialogue on the vitualized Windows machine.

USB devices

Add the following line to fstab and reboot:

none /proc/bus/usb usbfs devgid=46,devmode=666 0 0

Be in the vboxusers group. You need the non OSE version. (get here: or: get USB 2.0 to work under Ubuntu Intrepid Ibex 8.10:

This seems to be enough for Ubuntu 8.10 Run id to check if you are member of the group vboxusers and to see its groupID. If you're not a member of the vboxusers group, add yourself with the following command with root privileges, then log off and back on.

$ sudo usermod -aG vboxusers <your username>

add in /etc/fstab:

none /sys/bus/usb/drivers usbfs devgid=501,devmode=664 0 0

CLI: vboxmanage

controlling VirtualBox from the command line:

list all installed VMs:

$ vboxmanage list vms

start the VM with the name "Windows XP":

$ vboxmanage startvm "Windows XP"

Parallels Desktop for Linux

not developed any more

VMware Workstation / VMware Server and

Bochs emulator