Bug 572546 - unable to create more than 100 vm's with vnc autoport setting
Summary: unable to create more than 100 vm's with vnc autoport setting
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Chris Lalancette
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-11 14:10 UTC by Ruben Kerkhof
Modified: 2010-07-08 17:02 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-08 17:02:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ruben Kerkhof 2010-03-11 14:10:46 UTC
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.

Comment 1 Chris Lalancette 2010-03-11 20:18:30 UTC
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

Comment 2 Chris Lalancette 2010-03-11 23:05:24 UTC
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

Comment 3 Ruben Kerkhof 2010-03-12 19:16:30 UTC
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

Comment 4 Chris Lalancette 2010-04-06 17:21:49 UTC
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

Comment 5 Chris Lalancette 2010-07-08 17:02:21 UTC
This is now in rawhide with the update to 0.8.2.  I'm going to close this out.

Chris Lalancette


Note You need to log in before you can comment on or make changes to this bug.