Solved

Need to start Virtual box image on boot

Posted on 2012-12-20
3
1,108 Views
Last Modified: 2013-01-18
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
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…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now