Home > OpenSolaris > OpenSolaris – SMF and VirtualBox

OpenSolaris – SMF and VirtualBox

January 29th, 2009 Daz Leave a comment Go to comments

So… i’m looking for a way to fire up some VirtualBox machines after a reboot on OpenSolaris. SMF is the key. Just need to create some XML docs that fire up a couple of headless vm’s.

Shouldn’t be too hard. Lets see what i can come up with.

Here is a good pdf about migrating Legacy RC services into SMF, which has given me a few pointers…. 

how to shutdown a vm;

VBoxManage controlvm Test poweroff

how to startup a vm;

VBoxHeadless -s Test -p 3389

Update: so i’ve decided to bypass SMF at this point, which seems to be a really good method of executing (and maintaining) services, but a bit more than what i was after to run Virtualbox on start-up. If you see my other post i have just modified the /etc/profile to auto start the virtual machines and i’ve set the box to autologon on boot.

The problems i had while executing VirtualBox as a service were due to the fact it seemed to require access to the main X11 console (yes – i was using VBoxHeadless). There were a few issues that were thrown up if i didn’t execute from a session. Never looked into this any further…

Related posts:

  1. VirtualBox – crashing / freezing I’ve had some problems since my upgrade to virtualbox 2.2.0...

Related posts brought to you by Yet Another Related Posts Plugin.

Categories: OpenSolaris
  1. September 2nd, 2009 at 08:16 | #1

    Hi, I think this is what you wanted to do:
    Start Virtualbox VMs at boot time in Opensolaris with SMF:
    http://adumont.serveblog.net/2009/07/21/virtualbox-smf/.

    • September 2nd, 2009 at 15:56 | #2

      Awesome. Cheers Alexandre – looks exactely what i was after. Thanks.

  1. No trackbacks yet.
To submit your comment, click the image below where it asks you to... Clickcha - The One-click Captcha