---- On Wed, 10 May 2017 17:58:05 +0300 Roman Bogorodskiy <bogorodskiy@xxxxxxxxx> wrote ----
Alexander Nusov wrote:> This patch adds support for automatic VNC port assignment for bhyve guests.>> ---> src/bhyve/bhyve_command.c | 9 +++++++++> src/bhyve/bhyve_driver.c | 5 +++++> src/bhyve/bhyve_utils.h | 3 +++> 3 files changed, 17 insertions(+)Hi Alexander,Thanks for implementing this! Overall it looks good, two comments:* It doesn't take into account domains that use VNC with portexplicitly specified. For example, if I start a domain with VNCconfiguration "port=5900 autoport=no", I will not be ableto start a domain with "autoport=yes" because it will try toto 5900 and will fail to bind.Looking at the qemu driver code, it seems it's done by callingvirPortAllocatorSetUsed().
Hi Roman. Thanks for finding this. I tried adding virPortAllocatorSetUsed() call but it seems it should be
placed somewhere at the initialization of libvirtd driver also in case of restaring the libvirtd daemon.
I'm also wondering how it's handled for autostarting domains, e.g.if I have vm1[5900], vm2[5901], vm3[autoport], vm4[autoport],they'll start fine in that order, but will fail to start if goingthis way: vm3, vm4, vm1, vm2
To be honest, I'm concerned also.
is that still actual?
* Nitpick: Commit message titles are usually don't end with a period.Also, they're usually prefixed with the relevant subsystem, sothis one could be "bhyve: Add support for VNC autoport feature"for example (you might glance through 'git log' for examples.
good.
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list