Please help. VM image cannot auto start after host (ubuntu 16.04 LTS) reboot.
Posted: 30. Aug 2016, 18:15
My VM is hosted on Ubuntu 16.04 LTS and I followed the link to do VM restart after host rebooting, but no matter how I tried, it is still not working with the following error message. Can anyone help me?
http://askubuntu.com/questions/404665/h ... en-booting
my error message is as follow.
root@ bbb-tccu:/home/tommy/vbox.image/Windows XP1# vi /etc/vbox/autostart.cfg
root@ bbb-tccu:/home/tommy/vbox.image/Windows XP1# service vboxautostart-service stop
root@ bbb-tccu:/home/tommy/vbox.image/Windows XP1# service vboxautostart-service start
Job for vboxautostart-service.service failed because the control process exited with error code. See "systemctl status vboxautostart-service.service" and "journalctl -xe" for details.
root@ bbb-tccu:/home/tommy/vbox.image/Windows XP1#
root@ bbb-tccu:/home/tommy/vbox.image/Windows XP1#
root@ bbb-tccu:/home/tommy/vbox.image/Windows XP1# systemctl status vboxautostart-service.service
â vboxautostart-service.service - LSB: VirtualBox autostart service
Loaded: loaded (/etc/init.d/vboxautostart-service; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2016-08-30 11:58:06 EDT; 20s ago
Docs: man:systemd-sysv-generator(8)
Process: 4135 ExecStart=/etc/init.d/vboxautostart-service start (code=exited, status=2)
Aug 30 11:58:06 bbb-tccu systemd[1]: Starting LSB: VirtualBox autostart service...
Aug 30 11:58:06 bbb-tccu vboxautostart-service[4135]: /etc/init.d/vboxautostart-service: 2: /etc/vbox/autostart.cfg: default_policy: not found
Aug 30 11:58:06 bbb-tccu vboxautostart-service[4135]: /etc/init.d/vboxautostart-service: 5: /etc/vbox/autostart.cfg: vbox: not found
Aug 30 11:58:06 bbb-tccu vboxautostart-service[4135]: /etc/init.d/vboxautostart-service: 6: /etc/vbox/autostart.cfg: allow: not found
Aug 30 11:58:06 bbb-tccu vboxautostart-service[4135]: /etc/init.d/vboxautostart-service: 7: /etc/vbox/autostart.cfg: Syntax error: "}" unexpected
Aug 30 11:58:06 bbb-tccu systemd[1]: vboxautostart-service.service: Control process exited, code=exited status=2
Aug 30 11:58:06 bbb-tccu systemd[1]: Failed to start LSB: VirtualBox autostart service.
Aug 30 11:58:06 bbb-tccu systemd[1]: vboxautostart-service.service: Unit entered failed state.
Aug 30 11:58:06 bbb-tccu systemd[1]: vboxautostart-service.service: Failed with result 'exit-code'.
It seems that vmsrv process does not recognize config file at all.
HELP HELP and HELP .....
http://askubuntu.com/questions/404665/h ... en-booting
my error message is as follow.
root@ bbb-tccu:/home/tommy/vbox.image/Windows XP1# vi /etc/vbox/autostart.cfg
root@ bbb-tccu:/home/tommy/vbox.image/Windows XP1# service vboxautostart-service stop
root@ bbb-tccu:/home/tommy/vbox.image/Windows XP1# service vboxautostart-service start
Job for vboxautostart-service.service failed because the control process exited with error code. See "systemctl status vboxautostart-service.service" and "journalctl -xe" for details.
root@ bbb-tccu:/home/tommy/vbox.image/Windows XP1#
root@ bbb-tccu:/home/tommy/vbox.image/Windows XP1#
root@ bbb-tccu:/home/tommy/vbox.image/Windows XP1# systemctl status vboxautostart-service.service
â vboxautostart-service.service - LSB: VirtualBox autostart service
Loaded: loaded (/etc/init.d/vboxautostart-service; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2016-08-30 11:58:06 EDT; 20s ago
Docs: man:systemd-sysv-generator(8)
Process: 4135 ExecStart=/etc/init.d/vboxautostart-service start (code=exited, status=2)
Aug 30 11:58:06 bbb-tccu systemd[1]: Starting LSB: VirtualBox autostart service...
Aug 30 11:58:06 bbb-tccu vboxautostart-service[4135]: /etc/init.d/vboxautostart-service: 2: /etc/vbox/autostart.cfg: default_policy: not found
Aug 30 11:58:06 bbb-tccu vboxautostart-service[4135]: /etc/init.d/vboxautostart-service: 5: /etc/vbox/autostart.cfg: vbox: not found
Aug 30 11:58:06 bbb-tccu vboxautostart-service[4135]: /etc/init.d/vboxautostart-service: 6: /etc/vbox/autostart.cfg: allow: not found
Aug 30 11:58:06 bbb-tccu vboxautostart-service[4135]: /etc/init.d/vboxautostart-service: 7: /etc/vbox/autostart.cfg: Syntax error: "}" unexpected
Aug 30 11:58:06 bbb-tccu systemd[1]: vboxautostart-service.service: Control process exited, code=exited status=2
Aug 30 11:58:06 bbb-tccu systemd[1]: Failed to start LSB: VirtualBox autostart service.
Aug 30 11:58:06 bbb-tccu systemd[1]: vboxautostart-service.service: Unit entered failed state.
Aug 30 11:58:06 bbb-tccu systemd[1]: vboxautostart-service.service: Failed with result 'exit-code'.
It seems that vmsrv process does not recognize config file at all.
HELP HELP and HELP .....