hubert depesz lubaczewski
2014-Jan-16 15:51 UTC
[libvirt-users] vnc port/listen address ignored when setting machine?
Hi, First of all, I hope it's not a big problem - I'm running on Debian, not Redhat. To my problem: I'm starting to learn virtualization, libvirt, and decided to create some test machine. I did it with: virt-install --name debian-test \ --os-type=linux \ --os-variant=debianwheezy \ --cdrom /media/media/software/iso/debian-testing-amd64-netinst-2014-01-16.iso \ --graphics vnc,listen=0.0.0.0,port=20001 \ --disk pool=default,format=raw,size=20 \ --ram 2048 \ --vcpus=2 \ --network bridge=virbr0 \ --hvm \ --virt-type=kvm Machine starts, but domdisplay shows: =# virsh domdisplay debian-test vnc://localhost:14101 When I tried setting it with --grpahics=vnc,...port=40001, I got it to listen on port 34101 (which is weird anyway, but at least I can change it). But whatever I do - I can't make it to listen on 0.0.0.0. I know I can use ssh port forwarding to get to this VNC, but I would very much prefer to be able to set VNC listen to 0.0.0.0 for at least some of my test domains. What am I doing wrong? Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/
Ján Tomko
2014-Jan-16 16:10 UTC
Re: [libvirt-users] vnc port/listen address ignored when setting machine?
On 01/16/2014 04:51 PM, hubert depesz lubaczewski wrote:> Hi, > First of all, I hope it's not a big problem - I'm running on Debian, not > Redhat. > > To my problem: I'm starting to learn virtualization, libvirt, and > decided to create some test machine. I did it with: > virt-install --name debian-test \ > --os-type=linux \ > --os-variant=debianwheezy \ > --cdrom /media/media/software/iso/debian-testing-amd64-netinst-2014-01-16.iso \ > --graphics vnc,listen=0.0.0.0,port=20001 \ > --disk pool=default,format=raw,size=20 \ > --ram 2048 \ > --vcpus=2 \ > --network bridge=virbr0 \ > --hvm \ > --virt-type=kvm > > Machine starts, but domdisplay shows: > =# virsh domdisplay debian-test > vnc://localhost:14101 > > When I tried setting it with --grpahics=vnc,...port=40001, I got it to listen > on port 34101 (which is weird anyway, but at least I can change it).Libvirt's XML and virt-install expect the TCP port, virsh domdisplay shows the VNC port, which is the TCP port minus 5900. For graphics listening on the wildcard address, domdisplay always shows 'localhost'.> > But whatever I do - I can't make it to listen on 0.0.0.0.What is the address reported by 'netstat -tnp'? Jan
Possibly Parallel Threads
- vnc port/listen address ignored when setting machine?
- Re: vnc port/listen address ignored when setting machine?
- Re: Newbie question about network setup
- Re: Newbie question about network setup
- Is there any solution, or even work on, limiting which keys gets forwarded where?