Wednesday, April 24, 2024
 Popular · Latest · Hot · Upcoming
16
rated 0 times [  16] [ 0]  / answers: 1 / hits: 12921  / 1 Year ago, thu, april 20, 2023, 7:02:30

Can I create a shortcut to a virtualbox OS in the unity sidebar without it being on the desktop too.
I tried to right click in virtualbox and create shortcut on desktop then move it. but if i do it then delete the desktop shortcut it renders the unity shortcut useless.



Any ideas?


More From » unity

 Answers
7

To add a launcher item that runs a single specific virtual machine we can create a new launcher item as it is described here.



In short, to start a Virtual Box machine without the Virtual Box Manager we may add the following command to start the VM in the Exec= section of a .desktop file we can place in ~/.local/share/applications:



[Desktop Entry]
Name=the name you want it to have
Comment=
Exec=VirtualBox --startvm 'name of the machine'
Icon=icon name
Terminal=false
Type=Application
StartupNotify=true


After giving the .desktop file executable permission we can now start our virtual machine by double-click on it, or we can drag it on the Launcher or the Desktop for convenient access.



In more recent versions of VirtualBox the functionality to start a virtualmachine was moved to the VirtualBoxVM application. This needs a change of the EXEC line in the .desktop file tO



EXEC=/usr/lib/virtualbox/VirtualBoxVM --startvm "name of the machine"


or we may use the tool VBoxManage startvm instead.


[#41779] Friday, April 21, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ettorina

Total Points: 439
Total Questions: 99
Total Answers: 131

Location: Vanuatu
Member since Wed, Oct 14, 2020
4 Years ago
ettorina questions
Thu, Sep 1, 22, 15:28, 2 Years ago
Mon, Mar 14, 22, 06:04, 2 Years ago
Sun, Jul 24, 22, 13:31, 2 Years ago
;