public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Troubleshooting the Virtualbox init script
@ 2011-05-15  9:43 Dan Cowsill
  0 siblings, 0 replies; only message in thread
From: Dan Cowsill @ 2011-05-15  9:43 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1255 bytes --]

Hey list,

I noticed a little while ago that virtualbox-bin came with an init script
and decided to try it out.  Trouble is, the script starts a virtualbox VM
just fine, it just can't stop one.   Check out /etc/conf.d/virtualbox.my-vm:

# Username to start vbox as, must be part of vboxusers group.
VM_USER="dcowsill"

# Virtual Machine Name
VM_NAME="my-vm"

# Shutdown Method:
pause|resume|reset|poweroff|savestate|acpipowerbutton|acpisleepbutton
VM_SHUTDOWN="savestate"

# Nice Priority: -20 (most favorable scheduling) to 19 (least favorable)
VM_NICE=-10

# Specified the path explicitly...
VBOXPATH="/usr/bin:/opt/bin"

The only trouble I had with the arrangement was that I had to explicitly
specify the path for virtualbox to actually work.  I thought this was silly,
but it resulted in a (semi) working script, so whatever.  Of course, I have
a similarly named file linked to /etc/init.d/virtualbox where necessary.

When this script is run, the virtual machine starts fine, but when the
script is stopped, the script hangs indefinitely and prints dots to the
screen, presumably as it waits for my virtual machine to savestate.

So, any tips?  Cursory googling didn't reveal anything terribly applicable,
so I turn to you fine fellows.

Thanks,
DC

[-- Attachment #2: Type: text/html, Size: 1625 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-15  9:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-15  9:43 [gentoo-user] Troubleshooting the Virtualbox init script Dan Cowsill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox