Solved

Need to start Virtual box image on boot

Posted on 2012-12-20
3
1,165 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 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

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 …
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
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…

717 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