Solved

Need to start Virtual box image on boot

Posted on 2012-12-20
3
1,134 Views
Last Modified: 2016-12-08
I have an up to date mac osx Mountain lion server with Oracle VM VirtualBox Manager installed.  I have one vm, an Ubuntu 12.04 Server that I need to have launched automatically on boot.

I have looked around online, and read manuals, and I have run into some walls.

Research lead me to vboxmanage startvm <imagename>  When I attempt this command I get
the errors below.  Presumably there are some steps that I need to take to register the vm?  When I have looked around, I cannot find a way that works to register said vm, thus enabling the virtual image to start on boot.

I have also researched other links to other sites with people trying to accomplish the same thing however, I am not the greatest scripter, and am having difficulty knowing where to start , and these threads are years old.  

(https://forums.virtualbox.org/viewtopic.php?f=8&t=15023&hilit=daemon)

VBoxManage startvm Jira server
VBoxManage: error: Could not find a registered machine named 'Jira'
VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
VBoxManage: error: Context: "FindMachine(Bstr(pszVM).raw(), machine.asOutParam())" at line 563 of file VBoxManageMisc.cpp
VBoxManage: error: Could not find a registered machine named 'server'
VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
VBoxManage: error: Context: "FindMachine(Bstr(pszVM).raw(), machine.asOutParam())" at line 563 of file VBoxManageMisc.cpp
sh-3.2# VBoxManage startvm /Users/Admin/VirtualBox\ VMs/Jira server
VBoxManage: error: Could not find a registered machine named '/Users/Admin/VirtualBox VMs/Jira'
VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
VBoxManage: error: Context: "FindMachine(Bstr(pszVM).raw(), machine.asOutParam())" at line 563 of file VBoxManageMisc.cpp
0
Comment
Question by:Illyankesh
  • 2
3 Comments
 
LVL 19

Expert Comment

by:Barthax
ID: 38712289
It seems that you have simply missed quotes: enclose the name of the VM in quotes as you have a space:

VBoxManage startvm "Jira server"
0
 

Author Comment

by:Illyankesh
ID: 38713646
Ok, hoping that it was a simple mistake I tried that...  Here is what I got.

sh-3.2# VBoxManage startvm "performancetarget"
VBoxManage: error: Could not find a registered machine named 'performancetarget'
VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
VBoxManage: error: Context: "FindMachine(Bstr(pszVM).raw(), machine.asOutParam())" at line 563 of file VBoxManageMisc.cpp
0
 
LVL 19

Accepted Solution

by:
Barthax earned 500 total points
ID: 38718062
Try running:

VBoxManage list vms

This will give you the output of the virtual machines - the name it expects and the GUID you can use as an alternative.

They should come out like this:
"WindowsXP Base Install" {55a26792-90d3-4b05-adf2-37d0b2d70b5b}

You can then use either one to start up your VM:

VBoxManage startvm "WindowsXP Base Install"
VBoxManage startvm "{55a26792-90d3-4b05-adf2-37d0b2d70b5b}"
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question