Home > Solaris Express > 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…

Categories: Solaris Express
  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.

  2. July 22nd, 2012 at 14:31 | #3

    I love what you guys are usually up too. This kind of clever work and coverage! Keep up the wonderful works guys I’ve you guys to my blogroll.

  3. October 28th, 2012 at 02:04 | #4

    Good day I am so thrilled I found your weblog, I really found you by accident, while I was browsing on Askjeeve for something else, Anyways I am here now and would just like to say cheers for a fantastic post and a all round entertaining blog (I also love the theme/design), I don抰 have time to read through it all at the minute but I have bookmarked it and also added in your RSS feeds, so when I have time I will be back to read more, Please do keep up the great work.

  4. October 30th, 2012 at 03:27 | #5

    I’m curious to find out what blog system you’re using? I’m experiencing some small security problems with my latest blog and I’d like to find something more safe. Do you have any solutions?

  1. No trackbacks yet.

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