[libvirt] race condtion in getting VNC port for libvirt

Guangya Liu gyliu at platform.com
Sun Nov 7 12:53:32 UTC 2010


Hi,

 

We are encountering a problem of race conditions for getting VNC port
when VM start up.

 

In a very powerful hypervisor, if we try to start up more than 1 VM
concurrently, then there might be some VMs failed to start up due to VNC
port confilict.

 

We searched libvirt bugs and found that some one report the problem and
we have give a fix, but the fix can not resolve the problem.

 

http://osdir.com/ml/libvir-list/2010-05/msg00530.html
 
https://build.opensuse.org/package/view_file?file=vnc-race-3.patch&packa
ge=libvirt&project=Virtualization:openSUSE11.3
 
The bitmap test-and-set operation is not atomic, so that there still is
a time-window in which a VNC port could be reserved for two caller. 
 
Your help is highly appreciated!
 
Thanks,

Guangya Liu
Cloud Developer
Platform Computing
direct: +86-29-87607400-333
www.platform.com <http://www.platform.com/> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101107/caff2619/attachment-0001.htm>


More information about the libvir-list mailing list