collection of scripts to deal with virtualbox headless guests on OSX
1: in virtualbox settings, create a "hosts only" network.
host ip: 10.99.99.1
disable dns server
setup dnsmasq on host to listen on interface "vboxnet0"
- mac settings
to resolve *.vm domains, which we configured dnsmasq to handle:
create file /etc/resolver/vm:
nameserver 127.0.0.1
bekräfta:
scutil --dns
- vm:s config network to "host only networking"
NOTES: http://passingcuriosity.com/2013/dnsmasq-dev-osx/
vboxmanage:
$ VBoxManage list vms
$ VBoxManage list runningvms
$ VBoxManage showvminfo "Debian 5 (Lenny) server 64bit"
NOTE: multiple versions of debian ship with their own "OSE edition" of the vbox guest drivers first uninstall these
next, deps:
sudo apt-get install dkms build-essential linux-headers-amd64
next attach vbox guest addition cd , and mount:
sudo mount /dev/sr0 /media/cdrom ## /dev/hdc on debian lenny cd /media/cdrom sudo ./VBoxLinuxAdditions.run
hold shift when clicking "start vm" in virtualbox gui
from cli:
VBoxManage startvm MyVM --type headless
VBoxManage controlvm MyVM acpipowerbutton
VBoxManage controlvm MyVM poweroff