How to start a headless Vbox at startup?

Hi,

Where should I put this line to make my virtual server start at boot?

VBoxHeadless --startvm “openSUSE 12.2 Server”

BR Andreas

Please explain what you’re trying to achieve. With this minimal bit of info, we just have to guess.

Hi,

Sorry!

On my openSUSE 12.2 server I use a virtual Server as web server.
I have to start that server manually if it goes down with the line [VBoxHeadless --startvm “openSUSE 12.2 Server”]
I would like the virtual server to start automatic when the server reboots or comes back on line after a power shortage.

BR Andreas

IMHO you should create a systemd service for it, but I’m not yet deep enough into systemd to help you on this matter.

On Tue, 04 Dec 2012 16:16:01 +0000, falkens wrote:

> Hi,
>
> Sorry!
>
> On my openSUSE 12.2 server I use a virtual Server as web server. I have
> to start that server manually if it goes down with the line
> [VBoxHeadless --startvm “openSUSE 12.2 Server”]
> I would like the virtual server to start automatic when the server
> reboots or comes back on line after a power shortage.
>
> BR Andreas

Have a look at the VirtualBox documentation - there’s a new feature added
recently to automatically manage VMs at system startup/shutdown that is
intended to accomplish exactly this.

I’ve played around with it a very little bit, but not enough to give you
a step-by-step set of instructions on how to get it working.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Hi Jim,

Thanks for the tip! I have tried to find the section you are talking about but no luck
could you please point me in the right direction in the documentation? (url maybe)

Br Andreas

On Wed, 12 Dec 2012 22:16:01 +0000, falkens wrote:

> Hi Jim,
>
> Thanks for the tip! I have tried to find the section you are talking
> about but no luck could you please point me in the right direction in
> the documentation?
> (url maybe)
>
> Br Andreas

I started with the release notes at:

https://blogs.oracle.com/fatbloke/entry/what_s_new_in_oracle

There’s a section on “Autostart” that links to chapter 9 of the
documentation (and the section about it). :slight_smile:

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C