CentOS 6.5 + KVM (Virtual Machine Manager) create shortcut - Laucher for Guest Machine
5,632
You can either use virt-manager
which brings up a GUI for launching/interacting with your guest KVM guests or you could create a shell script to do what you want and then setup a shortcut to the script on your desktop.
virt-manager
desktop icon
First create a script like so, saving it to perhaps $HOME/bin/kvm_someguest.bash
.
#!/bin/bash
# assuming it's started but you could do this oto
# virsh start someguest
virt-viewer someguest
Make sure it's executable.
$ chmod +x $HOME/bin/kvm_someguest.bash
Now make a shortcut on the desktop to it. For this create a .desktop
file like so:
$ more ~/Desktop/kvm_someguest.desktop
[Desktop Entry]
Type=Application
Exec=$HOME/bin/kvm_someguest.bash
Terminal=false
Name=KVM Someguest
GenericName=KVM Someguest
Now when you double click it it should run your KVM instance.
Related videos on Youtube
Author by
user3134198
Updated on September 18, 2022Comments
-
user3134198 over 1 year
How can I create a Launcher on my desktop for guests machines inside of KVM on desktop of CentOS 6.5?
-
slm almost 10 years@user3134198 - glad that resolved your Q. You can also upvote in addition to accepting 8-).