[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Need to start Virtual box image on boot

Posted on 2012-12-20
3
Medium Priority
?
1,197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as high-speed processing of the cloud.

Question has a verified solution.

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

In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

650 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