For those brave enough to run 20-100 VM's using KVM
<http://www.linux-kvm.org/page/Main_Page>
In /etc/libvirt/qemu are all your VM XML files, these define your machine
hardware and configuration. I found that you can attach each VM's console (
main screen ) to a password protected VNC connection by changing:
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'>
to
<graphics type='vnc' port='-1' autoport='yes' listen='192.168.1.1'
passwd='passw0rd' keymap='en-us'/>
So you thus can VNC directly to the console as in 192.168.1.1:{port}
Jim D. helped me craft this utility to display each VM's port:
# script vm-port
echo "VM Name => VNC port number"
echo "=============================="
for i in $(virsh -q list|awk '{print $2}'|sort); do
j=$(virsh vncdisplay $i | cut -f 2 -d ':')
port=$(expr 5900 + $j)
echo -e "\033[01;31m$i\033[00m => $port"
done
Now this all works fine and dandy for Linux Gusts, but all my MS-Windows
servers give the error:
unable connect to socket: Connection refused (111)
The weird part is you get this error remote or local when you set the IP
back to 127.0,0.1
Nov Virt-Manager can display the screen no issue, Google is no help since
it's too specific.
Any suggestions on were to look or what IRC channels to ask in?
--
Joe
/**
** Joseph T Apuzzo
** GPFS SME (Linux, Windows, AIX), Linux LPI-c1
** http://www.linkedin.com/in/japuzzo/
** GPG: https://sks-keyservers.net/ use 2190E068
**/
_______________________________________________
Mid-Hudson Valley Linux Users Group http://mhvlug.org
https://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
Upcoming Meetings (6pm - 8pm) Vassar College
Apr 2 - Nginx: High-Performance HTTP Server, Reverse Proxy, and IMAP/POP3
Proxy Server
May 7 - Google App Engine
Jun 4 - Samba: Can We All Just Get Along?