Command line parameters

This is for discussing general topics about how to use VirtualBox.
Post Reply
Lazy Bear
Posts: 2
Joined: 27. Aug 2007, 11:58

Command line parameters

Post by Lazy Bear »

is there any way to run VirtualBox from command line with some parameters? i'm asking beacause i want to make a shortcut that will run one of my VirtualBox computers without showing the main application window. is that or something like that possible? thanks for answers
Lazy Bear
Posts: 2
Joined: 27. Aug 2007, 11:58

Post by Lazy Bear »

Nobody knows?
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

Read User Doc!

VBoxSDL
N9YTY
Posts: 8
Joined: 13. Sep 2007, 22:38

Post by N9YTY »

stefan.becker wrote:Read User Doc!

VBoxSDL
...Except that it doesn't work on OS X, and the user doc mentions nothing of that little fact.

/Applications/VirtualBox.app/Contents/MacOS/VBoxManage startvm {uuid}|{vmname}

Or at least from memory I think that's it.
Proktor
Posts: 3
Joined: 15. Sep 2007, 18:40

Post by Proktor »

You can simply use:

Code: Select all

VBoxManage startvm vmname
N9YTY
Posts: 8
Joined: 13. Sep 2007, 22:38

Post by N9YTY »

Proktor wrote:You can simply use:

Code: Select all

VBoxManage startvm vmname
Assuming that it's in your path, sure. For security, it's never a good idea to have the current directory in your path so at a bare minimum, if you are cd'd to that directory, you should have to use a ./ prefix. But, not everyone follows good security practices, so your mileage may vary.
Proktor
Posts: 3
Joined: 15. Sep 2007, 18:40

Post by Proktor »

I don't have ./ in PATH, but symbolic link to /opt/VirtualBox/VBoxManage in /usr/bin. It also isn't safe ;) ?
Post Reply