A VirtualBox Solaris Cluster complete with shared storage and quorum disk!
The host system is a Mac running 10.8:
Intel Core i7-3770K Ivy Bridge 3.5GHz
GeForce GTX 470 1280M
At the time of this article, I’m running Mac OSX 10.8.2 with VirtualBox 4.2.6. The Solaris Cluster is 3.3 running in a Solaris 10u10 virtual machine.
If you’re like me and prefer the command line to the GUI, here’s a trick and script to help you manage your Solaris VMs.
Enable a serial port for the VM.
Enable Port 1
Port Number COM1
Port Mode: Host Pipe
Port/File Path: /tmp/vb-VM-NAME-console
Perform a reconfiguration boot on the VM.
Install socat on the host system
sudo apt-get install socat
Change the eeprom console device for the VM:
Change the /boot/grub/menu.lst for the VM:
# To enable grub serial console to ttya uncomment the following lines
# and comment out the splashimage line below
# WARNING: don't enable grub serial console when BIOS console serial
# redirection is active!!!
serial --unit=0 --speed=9600
# Uncomment the following line to enable GRUB splashimage on console
# To chainload another OS
Bring down the VM:
Once this is done, we can now tell VirtualBox to boot the VM headless and connect with socat
VBoxManage startvm node1 --type headless && socat -,raw,echo=0 /tmp/vb-node1-console
I wrote a perl script to handle booting and connecting the console. Feel free to download: vb.pl
$ vb.pl -h
vb.pl -n VM -b
vb.pl -n VM -p
-l : list VirtualBox machines
-n : name of the VirtualBox machine
-b : power on and boot machine
-p : power off machine
-h : this message.