Page 1 of 1

Create a link to start a VM (Ubuntu)

Posted: 12. Feb 2009, 21:32
by AntiMatter
Hi,

Using Ubuntu 8.10. I would like to have a shortcut on the desktop to allow me to start a VM named MyVM1. Can you please show me how to do this in Linux?

Under Windows, I creata a *.bat that contains:

Code: Select all

"C:\Program Files\Sun\xVM VirtualBox\VBoxManage.exe" startvm MyVM1
And I create a shortcut of this *.bat on the desktop. How to do the same under Linux? Thanks in advance for any help.

Posted: 12. Feb 2009, 21:58
by stefan.becker
You use the same way. Dont understand your Problem. Press right mouse key on the desktop, starter.

Posted: 13. Feb 2009, 00:39
by AntiMatter
stefan.becker wrote:You use the same way. Dont understand your Problem. Press right mouse key on the desktop, starter.
Yes I guess that should be the same approach. The only issue is that I am not familiar with Linux so I don't know exactly how to write Linux shell script, creating link (shortcut?) on desktop.

In other words, I am not looking do to anything different. The only issue is that I don't know Linux syntax to do this operation. If you know Linux, can you describe me the basic steps? Like Step1 create a file with this name, put this cmd in it, may be chmod sonething, etc. And Step2, the syntax to create the link on the desktop.

In the right click method you suggested, how does it know that my VM is named MyVM1 ?

Thanks in advance.

Posted: 19. Feb 2009, 02:14
by Sasquatch
If you would click on Start > Run in Windows and put the exact command of your .bat file in there, the VM will start. Same thing if you put that in a shortcut. No need for the bat file.
Same goes for Linux. Right click > Create Launcher. Fill in the entire command VBoxManage startvm MyVM1 and you're done. Fill in the rest of the required fields, like name, give it a nice icon and done. You got yourself a nice launcher on the desktop.

Posted: 19. Feb 2009, 08:34
by AntiMatter
And what if there are several lines to execute sequentially? The input textbox only allow for one line. This is how shell script comes in play.

In anyway I got the answer from the Ubuntu. I just need to write a script and give it the executable mode with chmod 777. Although for what I need right now (launching VirtualBox with VBoxManage startvm MyVM1) the solution you suggested above is much simpler.

Re: Create a link to start a VM (Ubuntu)

Posted: 29. Apr 2009, 01:54
by Chatin
Hi,

How can I do this under Mac OS X? I would like to have a Desktop shortcut for my Ubuntu VM on my Macbook.

Any help is greatly appreciated.

Thank you.


PS: Just started using VirtualBox and it's awesome :)