vboxmanage vs VBoxManage

This is for discussing general topics about how to use VirtualBox.
Post Reply
UncleBoarder
Posts: 69
Joined: 12. Aug 2010, 17:11
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: XP

vboxmanage vs VBoxManage

Post by UncleBoarder »

I know it's really VBoxManage but I use to have a SymLink for vboxmanage... suddenly it's gone. Maybe I damaged it when I had to kill the VM that I mistakenly set for too much memory and I couldn't regain control of it.... but regardless, vboxmanage now says it's not installed.

'VBoxManage' does work but even if I try to build another SymLink to vboxmanage it says it's not installed. Any ideas? Can I reinstall VBox over top of the existing installation to repair this?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: vboxmanage vs VBoxManage

Post by Sasquatch »

Then verify if the symlink is going to the right location and is in the right location.

Since you use it as command, why not make it an alias in your .bashrc instead? Much cleaner IMO.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
UncleBoarder
Posts: 69
Joined: 12. Aug 2010, 17:11
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: XP

Re: vboxmanage vs VBoxManage

Post by UncleBoarder »

I didn't make this clear. I didn't make the original SymLink, I just tried to fix it. Simply installing VirtualBox apparently made it. But your point is valid. This seems so simple yet it doesn't work. What am I missing?
ed@ubuntu:/usr/bin$ ls -ld V*
-rwxr-xr-x 1 root root 2378 2010-08-05 08:14 VBox
lrwxrwxrwx 1 root root 4 2010-10-09 01:48 VBoxHeadless -> VBox
lrwxrwxrwx 1 root root 4 2010-10-09 01:48 VBoxManage -> VBox
lrwxrwxrwx 1 root root 4 2010-10-09 01:48 VBoxSDL -> VBox
-rwxr-xr-x 1 root root 10440 2010-08-05 08:14 VBoxTunctl
lrwxrwxrwx 1 root root 4 2010-10-09 01:48 VBoxVRDP -> VBox
lrwxrwxrwx 1 root root 4 2010-10-09 01:48 VirtualBox -> VBox
ed@ubuntu:/usr/bin$
ed@ubuntu:/usr/bin$
ed@ubuntu:/usr/bin$ ln -s VBox vboxmanage
ln: creating symbolic link `vboxmanage': Permission denied
ed@ubuntu:/usr/bin$ sudo -s VBox vboxmanage
[sudo] password for ed:
Unknown application - VBox
ed@ubuntu:/usr/bin$ sudo -s /usr/bin/VBox vboxmanage
Unknown application - VBox
ed@ubuntu:/usr/bin$
As you can see above, both VBoxManage and vboxmanage are linked to VBox, yet typing VBoxManage works as expected... BUT typing vboxmanage or VBox does not...
ed@ubuntu:/usr/bin$ VBox
Unknown application - VBox
ed@ubuntu:/usr/bin$
UncleBoarder
Posts: 69
Joined: 12. Aug 2010, 17:11
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: XP

Re: vboxmanage vs VBoxManage

Post by UncleBoarder »

On further investigation it appears that the VBox command looks for specific matches... "VBoxManage" being one of them. So linking to VBox and assuming "vboxmanage" will work is wrong. It CAN'T work because it's not in the code.

So... Someone out there must realize that what I'm saying is correct, this DID work WITHOUT me creating the link myself. HOW!?! Obviously I can't fix it by simply building a link. Only tonight did I realize what the actual problem is, it's code. BUT THIS WORKED BEFORE. Just a few days ago.

I know the question... what changed? I wish I knew. The only thing I can think of is the runaway VM session which I had to kill. Other than that, it's been operating normally. I've typed vboxmanage dozen's of times all lower case. It doesn't make sense.
UncleBoarder
Posts: 69
Joined: 12. Aug 2010, 17:11
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: XP

Re: vboxmanage vs VBoxManage

Post by UncleBoarder »

Maybe this has been broken since the weekend... I changed from OSE to 3.2.8. Is it possible OSE supports "vboxmanage" and 3.2.8 doesn't??
UncleBoarder
Posts: 69
Joined: 12. Aug 2010, 17:11
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: XP

Re: vboxmanage vs VBoxManage

Post by UncleBoarder »

And...

Finally full circle back to Sasquatch's comment... make certain it's pointed to the correct thing.

ln -s /usr/lib/virtualbox/VBoxManage /usr/bin/vboxmanage

Done.

There are two VBoxManage links, one in usr/bin and one in /usr/lib/virtualbox
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: vboxmanage vs VBoxManage

Post by Sasquatch »

If you just typed in 'vboxmanage', you would get the error that the application is not installed, but is available in the package 'Virtualbox-ose'. If you moved from the OSE to the PUEL version, then naturally you get this behaviour. Linux is case sensitive and the distribution repo/package maintainer, or the OSE in general, made the vboxmanage command all lower case, to make sure that both versions don't get in each other's way. So live with the uppercase V and B. Or go back to the OSE again.

And your command for linking the file is all wrong, since when does 'sudo -s' link files? A 'sudo ln -s' should be done instead ;).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply