1 |
Hey list, |
2 |
|
3 |
I noticed a little while ago that virtualbox-bin came with an init script |
4 |
and decided to try it out. Trouble is, the script starts a virtualbox VM |
5 |
just fine, it just can't stop one. Check out /etc/conf.d/virtualbox.my-vm: |
6 |
|
7 |
# Username to start vbox as, must be part of vboxusers group. |
8 |
VM_USER="dcowsill" |
9 |
|
10 |
# Virtual Machine Name |
11 |
VM_NAME="my-vm" |
12 |
|
13 |
# Shutdown Method: |
14 |
pause|resume|reset|poweroff|savestate|acpipowerbutton|acpisleepbutton |
15 |
VM_SHUTDOWN="savestate" |
16 |
|
17 |
# Nice Priority: -20 (most favorable scheduling) to 19 (least favorable) |
18 |
VM_NICE=-10 |
19 |
|
20 |
# Specified the path explicitly... |
21 |
VBOXPATH="/usr/bin:/opt/bin" |
22 |
|
23 |
The only trouble I had with the arrangement was that I had to explicitly |
24 |
specify the path for virtualbox to actually work. I thought this was silly, |
25 |
but it resulted in a (semi) working script, so whatever. Of course, I have |
26 |
a similarly named file linked to /etc/init.d/virtualbox where necessary. |
27 |
|
28 |
When this script is run, the virtual machine starts fine, but when the |
29 |
script is stopped, the script hangs indefinitely and prints dots to the |
30 |
screen, presumably as it waits for my virtual machine to savestate. |
31 |
|
32 |
So, any tips? Cursory googling didn't reveal anything terribly applicable, |
33 |
so I turn to you fine fellows. |
34 |
|
35 |
Thanks, |
36 |
DC |