HELP - Editing VM configuration file ?

88 views
Skip to first unread message

Sam B

unread,
May 24, 2012, 12:14:58 PM5/24/12
to phpvbox-dev
Hi to you all,
and thanks for your work.
After modifying a configuration for one of my auto-booting VM,
my server crashed.
I then realysed that I unfortunatly granted USB access to the USB Key
where the server system is.
Now, I can't start my server any more cause it crashes as soon as the
phpvirtualbox
starts.

How can I edit my VM configuration file (on the system USBkey) ?
Where is that file ?

Thank you very much

Sam.

Ian Moore

unread,
May 24, 2012, 1:13:37 PM5/24/12
to phpvb...@googlegroups.com
Sam,

It is an extended attribute of all VMs - not just stored in one file. If it indeed is a VM startup that is causing the issue, you can remove the executable bit of /etc/init.d/vboxinit (chmod a-x /etc/init.d/vboxinit) or rename it.

A VM starting (or not starting) should not affect host system startup. Can you copy / paste the last few lines that appear at a failed startup?

Sam B

unread,
May 24, 2012, 2:32:41 PM5/24/12
to phpvbox-dev
Hi Ian, thank you very much for your answer.

The problem is heaven more complicated :
I installed PHPvirtualbox under Open Media Vault.

When I start the server, as soon as the virtual machine runs, it
crashed all other
services (can't log uder SSH); but the odd thing is that the virtual
machine
runs perfectly ! (I installed Team Viewer on it)

So it seems that my last operation (giving access to the usbkey boot
system) makes
a trouble. Witch is normal cause 2 systems are sharing the boot key.
When I boot my OMV ...

So, thanks to you, I've been able to avoid running the Vbox servervice
at boot,
then, I booted and changed the directory where the VM was,
and now, I can boot, and I'm reconfiguring the USB access inside that
VM.
Hope it will work.

Thank you very much!
SAM

Sam B

unread,
May 25, 2012, 4:20:36 AM5/25/12
to phpvbox-dev
Ok
The solution worked fine !
I just had to redefine a new system with the VM image and it worked !
THANK YOU

Still, I have a question about the configuration.
I understood that the configuration file (memory, proc, ...) is
inside the VM Image directory, but is there a file to say "Let's run
that one at the system boot ?"

Thank you for your answer

Sam

Ian Moore

unread,
May 25, 2012, 7:32:04 AM5/25/12
to phpvb...@googlegroups.com
Sam,

As I said before, that is an extended property set per VM, so it is in each individual VM's file rather than in one particular file. These are usually named VMNAME.vbox. Though phpvirtualbox never actually touches those files - it just uses VirtualBox's API call IMachine->(get|set)ExtraData().

You can see or set this using VBoxManage from the command line as the user that VirtualBox runs as:

VBoxManage getextradata VMNAME 'pvbx/startupMode'

VBoxManage setextradata VMNAME 'pvbx/startupMode' 'auto'

VBoxManage setextradata VMNAME 'pvbx/startupMode' 'manual'

I hope that clears things up.
Reply all
Reply to author
Forward
0 new messages