Answers to: virt-install with VNC, how can i connect to the vnc port from a remote computer?http://linuxexchange.org/questions/1265/virt-install-with-vnc-how-can-i-connect-to-the-vnc-port-from-a-remote-computer<p>I'm trying to install XP Pro on a VM, but how do can i connect to the VNC port from a remote computer?</p> <p>i create the VM with :</p> <pre><code>sudo virt-install --name XPComputer --arch x86_64 --vcpus 1 --ram 512 --file /virtpcs/vdisks/harddrive.img --cdrom /virtpcs/isos/xp_pro_x32.iso --os-type windows --os-variant winxp --keymap no --connect qemu:///system --vnc --vncport 5901 --network bridge:virbr0 --noautoconsole </code></pre> <p>with netstat -l i can see it's listening on localhost:5901 , but i can't connect to it from the remote computer.</p>enThu, 23 Sep 2010 23:40:15 -0400Answer by Alan 1http://linuxexchange.org/questions/1265/virt-install-with-vnc-how-can-i-connect-to-the-vnc-port-from-a-remote-computer/1364<p>Figured it out:</p> <pre><code>virsh edit &lt;virtualMachineName&gt; </code></pre>Alan 1Thu, 23 Sep 2010 23:40:15 -0400http://linuxexchange.org/questions/1265/virt-install-with-vnc-how-can-i-connect-to-the-vnc-port-from-a-remote-computer/1364Answer by Alan 1http://linuxexchange.org/questions/1265/virt-install-with-vnc-how-can-i-connect-to-the-vnc-port-from-a-remote-computer/1363<p>Edit the section of what file?</p>Alan 1Thu, 23 Sep 2010 23:35:55 -0400http://linuxexchange.org/questions/1265/virt-install-with-vnc-how-can-i-connect-to-the-vnc-port-from-a-remote-computer/1363Answer by Zyprexahttp://linuxexchange.org/questions/1265/virt-install-with-vnc-how-can-i-connect-to-the-vnc-port-from-a-remote-computer/1267<p>sorry about that. Just found the solution</p> <p>Edit the section, add the listen='' attribute.</p> <pre><code>&lt;graphics type='vnc' port='5900' autoport='no' keymap='no' listen='THEIPTOLISTENON'/&gt; </code></pre>ZyprexaSun, 22 Aug 2010 20:19:58 -0400http://linuxexchange.org/questions/1265/virt-install-with-vnc-how-can-i-connect-to-the-vnc-port-from-a-remote-computer/1267