kvmctl
Hi,
You wrote pretty nice script but
I guess i found several bugs in last version kvmctl (2.1).
1) ubuntu already have executable kvmctl (It is probably not your bug)
2) If host="XPnew" but file name "XP.kvm" (different host and filename) than some methods work incorrectly (for example whichvnc). Sometimes you are using filename sometimes host.
3) method vnc has error. If change last line in do_vnc
on ${vncviewer} localhost$(get_portvnc "${1}") > /dev/null 2>&1 & it is work.
4) start and startvnc work only under root.
5) probably will be better to add in script line for checking: does directory /var/run/kvn exist or not if not than create it. Without it script doesn't work.
But Anyway you made great job.
Good luck, and hope my comments will be little helpful in your work. Max