Description of problem: We are trying to run more than 100 vm's on one physical host. While testing this, when creating vm number 100, libvirt returns: qemudStartVMDaemon:2085 : internal error Unable to find an unused VNC port Version-Release number of selected component (if applicable): libvirt-0.7.1-15.fc12.x86_64 How reproducible: Create more than 100 vm's with the setting <graphics type='vnc' autoport = 'yes' /> Actual results: after starting vm 100: qemudStartVMDaemon:2085 : internal error Unable to find an unused VNC port Expected results: vm should start with an assigned vnc port. Additional info: The port range is hardcoded in qemudNextFreeVNCPort: for (i = 5900 ; i < 6000 ; i++) It would be nice if this could be extended. As an alternative a setting in /etc/libvirt/libvirt.conf is fine too.
Yeah, that is a bit unfortunate. I guess we could go nuts and do 5900 all the way through 65535, but maybe we don't want to open ourselves up to that kind of (possible) abuse. I think for the time being I'll create a patch that uses 5900 to 6000 by default, but you can override the upper-end with a setting in /etc/libvirt/qemu.conf. Would that satisfy your request? Chris Lalancette
I posted a patch upstream that makes this configurable: https://www.redhat.com/archives/libvir-list/2010-March/msg00514.html If you get a chance, could you try this patch out and see if it works for you? Thanks, Chris Lalancette
I've tried the patch, it works great. Daniels idea to change the upper limit to 2^16 is probably easier though. Thanks for your help, Ruben
I posted a patch just to up the number of VNC ports, and committed it to upstream libvirt now. I'm going to switch this bug to "rawhide", and change the status to POST. Chris Lalancette
This is now in rawhide with the update to 0.8.2. I'm going to close this out. Chris Lalancette