Table of Contents

Virtualization

Virtualbox

Discover host printer name with lpstat -a

Address to use from windows

http://<hostip>:631/printers/<printername>

Enable network for guest if host is connected to work with eth0

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

tip to launch windows app clicking on file

Minimize splash screen

VBoxManage modifyvm vm --bioslogodisplaytime 1  # 1ms is minimun

Avoid shutdown dialog on ubuntu exit session

VBoxManage setextradata vm GUI/DefaultCloseAction PowerOff

kvm

packages

add-apt-repository ppa:jacob/virtualisation
apt-get update

apt-get install kvm
apt-get install livenet-vm

sync from server

add to /etc/auto.master

/-                  /etc/auto.vms

/etc/auto.vms and set proper nfs path (for example vms machine is defined in /etc/hosts)

/mnt/vms -vers=4,proto=tcp,rsize=32768,wsize=32768 vms:/vms

/etc/livenet/vms.conf

[default]
name=xp
master=/mnt/vms/xp
local=/vms/xp
update=true

Create eventually root folder of vms

mkdir /vms

guest

/etc/livenet/session*/vm.desktop

[Desktop Entry]
Name=Windows
Comment=Macchina virtuale predefinita
Exec=ln-vms --vm default --guest
Icon=/usr/share/icons/vm.png
Type=Application

XP

http://www.wikihow.com/Activate-Windows-XP-Without-a-Genuine-Product-Key