0
1

I'm trying to install XP Pro on a VM, but how do can i connect to the VNC port from a remote computer?

i create the VM with :

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

with netstat -l i can see it's listening on localhost:5901 , but i can't connect to it from the remote computer.

asked 22 Aug '10, 18:09

Zyprexa's gravatar image

Zyprexa
41227
accept rate: 33%




sorry about that. Just found the solution

Edit the section, add the listen='' attribute.

<graphics type='vnc' port='5900' autoport='no' keymap='no' listen='THEIPTOLISTENON'/>
link

answered 22 Aug '10, 20:19

Zyprexa's gravatar image

Zyprexa
41227
accept rate: 33%

Edit the section of what file?

link

answered 23 Sep '10, 23:35

Alan%201's gravatar image

Alan 1
11
accept rate: 0%

Figured it out:

virsh edit <virtualMachineName>
link

answered 23 Sep '10, 23:40

Alan%201's gravatar image

Alan 1
11
accept rate: 0%

edited 24 Sep '10, 02:23

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×23

Asked: 22 Aug '10, 18:09

Seen: 18,645 times

Last updated: 24 Sep '10, 02:23

powered by OSQA