Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[ubuntu] Virtualbox autostart VMs and save state upon host reboot

$
0
0
Hello all,

First off I should state that I am new to scripting and some of the more advanced command line options in Ubuntu. (not afraid to learn tho). I am currently running Ubuntu Server 12.04 and Virtualbox 4.2. I have successfully got my first VM up and running and have viewed the manuals (and countless threads on the subject) using the built in autostart configurations. My problem is that reboots are not successfully starting my VMs. I reboot the server and when i run the VBoxManage list runningvms command it is not showing as running. Below are my configuration files. Could someone please tell me what I am doing wrong?

Notes
-Initial install was for the user "jerry". Installed Virtualbox as "vbox" and added vbox to the sudo group
-I used the VBoxManage setproperties to change the working directory to another mounted hard drive. I set the sticky bits for the path all the way through the VMs folder with 775 properties of vbox:vbox
-The "PHPVbox" virtual machine was created by the vbox user.
-I created and registered the vm through the command line, then used PHPVirtualbox to set the rest of the settings, start and install the Ubuntu Server OS in the VM.


/etc/default/virtualbox (permissions: -rwxr-xr-t 1 vbox vbox 91 Mar 27 04:42 virtualbox)
Code:

VBOXWEB_USER=vbox
VBOXAUTOSTART_DB=/etc/vbox/
VBOXAUTOSTART_CONFIG=/etc/vbox/autostart.cfg

Contents of: /etc/vbox/ (permissions the same for the vbox folder including the sticky bit)
-rwxrwxr-t 1 vbox vbox 69 Mar 27 05:01 autostart.cfg
-rwxrwxr-t 1 vbox vbox 1 Mar 27 04:48 vbox.start

autostart.cfg contents:
Code:

default_policy = allow

vbox = {
        allow = true
        startup_delay = 10
}

vbox.start has just "1" listed in the file which was enabled with the "VBoxManage modifyvm "PHPVbox" -autostart-enabled on" command.

I am only getting the following messages with the dmesg upon the reboot:
Code:

[  12.810463] vboxdrv: Found 6 processor cores.
[  12.810641] vboxdrv: fAsync=0 offMin=0x3bf offMax=0x1c6f
[  12.810725] vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
[  12.810726] vboxdrv: Successfully loaded version 4.2.10 (interface 0x001a0004).
[  13.016290] vboxpci: IOMMU not found (not registered)

When I run the command: "sudo service vboxautostart-service start" the virtual machine starts

Any help here will be appriciated. Let me know if you need anything further. Not entirely sure if there is another log file I should be checking as well.

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>