[mdlug] VirtualBox under CentOS

Carl T. Miller carl at carltm.com
Mon Apr 18 21:18:53 EDT 2011


Michael ORourke wrote:
> I ran into something strange with VirtualBox running on a Linux Host OS
> and
> thought I would see if anyone else has run into this issue.  This all
> started when I was trying to automate the startup/shutdown of VM's on the
> Linux Host OS.  I found some example scripts with Google, but I can't seem
> to get them to run reliably.  It seems if I startup a VM guest on the
> console, and try to run the scripts manually to shutdown the VM, it fails.
> Almost as if it did not even recognize that the VM guest was running.  And
> some commands such as "VBoxManage list runnningvms" shows no output, but I
> know the VM guest is actually running.  I can even see it in the process
> table.  I would have suspected that it was just a problem with the script,
> but the regular VirtualBox commands don't seem to be working either.
> Also,
> if I do everything through the GUI, it seems to work fine.

Check if the scripts are set to run as the same user that
is logged into the gui.  VirtualBox identifies VMs using
files that are stored in the user's directory, so a VM
known to one user most likely is unknown to other users--
even root.

c





More information about the mdlug mailing list