Vbox cannot find newly registered machines

Discussions related to using VirtualBox on Linux hosts.
Post Reply
steqve
Posts: 21
Joined: 18. Jun 2007, 11:28

Vbox cannot find newly registered machines

Post by steqve »

Virtualbox 2.0.2:

VirtualBox Command Line Management Interface Version 2.0.2
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.

VBoxManage createvm -name vmDNS -register -basefolder /raid/virt/vmDNS

Virtual machine 'vmDNS' is created and registered.
UUID: d042ecd1-6306-49e7-87b0-158b3b62389a
Settings file: '/raid/virt/vmDNS/vmDNS/vmDNS.xml'
VirtualBox Command Line Management Interface Version 2.0.2
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.

VBoxManage modifyvm wmDNS -usb on -vrdp on -memory "348MB" -vram "4MB"

[!] FAILED calling virtualBox->FindMachine(Bstr(argv[0]), machine.asOutParam()) at line 4474!
[!] Primary RC = NS_ERROR_INVALID_ARG (0x80070057) - Invalid argument value
[!] Full error info present: true , basic error info present: true
[!] Result Code = NS_ERROR_INVALID_ARG (0x80070057) - Invalid argument value
[!] Text = Could not find a registered machine named 'wmDNS'
[!] Component = VirtualBox, Interface: IVirtualBox, {557a07bc-e6ae-4520-a361-4a8493199137}
[!] Callee = IVirtualBox, {557a07bc-e6ae-4520-a361-4a8493199137}


These commands are executed after each other. First the registration is sucessful, then the machine isn't found.

Any ideas? Fresh installed debian host which used to serve as VM-host before. Was using 1.5.x and the same commands worked fine then....
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

Just out of interest try a
  • VBoxManage modifyvm d042ecd1-6306-49e7-87b0-158b3b62389a -usb on -vrdp on -memory 348 -vram 4
It's just that sometimes it can fail to pick up the VM by name. BTW, the vram and memory options do an atoi on their arguments. In other words its taken as an integer number of Mbytes and the postfix is ignored, so 128Gbytes would still allocate 128 Mbyte.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
steqve
Posts: 21
Joined: 18. Jun 2007, 11:28

Post by steqve »

i'll give it a try.

How is vbox looking for registered vm:s? There is a .Virtualbox folder for the admin user and inside there is information about the machine...or at least the name, uuid and path to xml.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

The VirtualBox.xml file in this directory and is in effect the registry for VBox, and the UUID is the main key.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
steqve
Posts: 21
Joined: 18. Jun 2007, 11:28

Post by steqve »

seems to work fine. But not useful for me as i run without GUI and want to have address the machines with their name.

Anyway it doesn't matter since I cannot compile the vboxdrv. It says it cannot find my source dir....but I have installed everything as I did with 1.6

2.0.2 is very different? Nothing seems to work as expected.

WHY does it not find my kernel sources? How does it look for them? by uname -r?

I do not think I should have to set the KERN_DIR cause before I could compile the driver...
Post Reply