After watching how twonkymedia struggles with absent multicast and crippled network layer in solaris lx zone. I have decided to move it on oracle VirtualBox ubuntu/server VM. It was a lot of fun to set it up, considering doing it without GUI (headless), but I was rewarded with flawless TwonkyMedia Server operation. VM has more overhead, but it is negligible.
VirtualBox install is very simple affair on standard opensolaris machine.
Here is a good writeup on installing VirtualBox on specialized opensolaris build of NexentaStor:
http://hype-o-thetic.com/2010/08/06/how ... tor-3-0-4/
Here is VM config:
VBoxManage createvm --name "ubuntu-tw" --ostype Ubuntu --register
VBoxManage modifyvm "ubuntu-tw" --memory 256 --acpi on --boot1 dvd --nic1 bridged
VBoxManage createhd --filename "ubuntu-tw-3g.vdi" --size 3000
VBoxManage storagectl "ubuntu-tw" --name "IDE Controller" --add ide --controller PIIX4
VBoxManage storageattach "ubuntu-tw" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium "ubuntu-tw-3g.vdi"
VBoxManage storageattach "ubuntu-tw" --storagectl "IDE Controller" --port 0 --device 1 --type dvddrive --medium /root/ubuntu-10.10-server-i386.iso
************ Edit NIC to well known e1000g in unix world
VBoxManage modifyvm ubuntu-tw --nictype1 82540EM --bridgeadapter1 bge0
************ install guest VM in user mode
VBoxHeadless --startvm "ubuntu-tw"
Connect to it with Windows Remote Desktop - use host IP and perform Ubuntu install with all default options (no additional software).
********** host folder sharing for your ZFS pool (raidz[x]) for share(s)
VBoxManage sharedfolder add ubuntu-tw --name shared -- hostpath /volumes/media --readonly
********** Install VBoxGuestAdditions, so you could access host shared folder without network.
VBoxManage storageattach "ubuntu-tw" --storagectl "IDE Controller" --port 0 --device 1 --type dvddrive --medium /root/VBoxGuestAdditions_3.2.8.iso
On Guest:
mount /dev/scd0 /media
And follow the instruction from VB user guide…
***********After you finished with Additions you could automount shared folder:
Add following line before “exit 0†in guest’ /erc/rc.local
mount -t vboxsf shared /volumes/media
*********** starting VM in daemon mode
VBoxManage startvm ubuntu-tw --type headless
or
VBoxHeadless --startvm "ubuntu-tw" &
********** show VM config
VBoxManage showvminfo ubuntu-tw
********** bootstrap VM
nano /etc/rc2.d/S99vbox
#/bin/sh
/usr/bin/VBoxHeadless --startvm "ubuntu-tw" > /dev/null &
chown root:sys S99vbox
chmod 744 S99vbox
*************** Shutdown headless **************
On Guest:
sudo apt-get install acpid
Host:
VBoxManage controlvm ubuntu-tw acpipowerbutton
Automatic VM shutdown on host:
nano /etc/init.d/killvbox
#/bin/sh
/usr/bin/VBoxManage controlvm ubuntu-tw acpipowerbutton > /dev/null
chown root:sys /etc/init.d/killvbox
chmod 744 /etc/init.d/killvbox
ln -s /etc/init.d/killvbox /etc/rc0.d/K00vbox
ln -s /etc/init.d/killvbox /etc/rc1.d/K00vbox
ln -s /etc/init.d/killvbox /etc/rc5.d/K00vbox
ln -s /etc/init.d/killvbox /etc/rc6.d/K00vbox
ln -s /etc/init.d/killvbox /etc/rcS.d/K00vbox
********** get really fancy ********
read on:
http://farfewertoes.com/code/vboxcontrol/
Have fun...