Support for VNC/SPICE autoport rather than tracking in OpenNebula
|Category:||Core & System|
|Target version:||Release 5.6|
Attached is a patch that adds support for the VNC/SPICE port being specified as "auto" rather than a number. This translates into, for KVM only, autoport=yes in the libvirt domain XML file.
Importing is supported as well.
Using this bypasses the VNC port checks and each hypervisor will pick a free port when the VM is migrated or started on it.
This currently does not deal well with the situation where some ports are specified and some are automatic, since migrating a statically specified port VM onto a hypervisor that has some dynamically specified ones may result in the port being already in use by one using "auto". So attached is another patch which forces "auto" to be used.