Red Hat Bugzilla – Bug 252359
Prompted for VNC password after live migration
Last modified: 2009-12-14 16:17:29 EST
Description of problem:
After migrating a FV guest vm, I am prompted for a vnc password on the new
server, even though none is set in the config.
Steps to Reproduce:
1. Set the following parameters in xend-config.sxp:
Also enable relocation server with the correct ports/relocation addresses
2. Create a FV guest VM with parameters in the vm config:
3. Log into the vm using vnc: dom0_1:9 to verify no password is prompted and
it is working
4. Migrate the domU.
xm migrate -l domU dom0_2
5. After migration attempt to log into the vm using vnc on dom0_2: dom0_2:9
Prompted for a password which does not exist
Not prompted for a password and let into the domU via vnc
If i set the vncpasswd parameter to an actual value, vnc after migration works
I also have not tested this against a PV guest.
I'm fairly certain I know what this is now. Basically when you do an "xm
create" of a guest with an empty vncpasswd, you get *no* entry in xenstore (you
can check by doing "xenstore-ls | grep -i vnc", and seeing that there is no
"vncpasswd" entry). However, after a live migrate, if you do the same check,
you will see a "vncpasswd" with an empty string. My guess is that because of
this, the QEMU device model actually gets vncpasswd of blank (or something along
those lines), when it really should be empty (== NULL). I'm not quite sure how
to fix it yet, but that's the general problem.
Arg, never mind my last comment. It seems that the vncpasswd is getting set to
'None', which is the python None. We fixed this before in the PVFB stuff, but
it seems to have cropped up again with the HVM stuff. I just need to find out
what we did to fix it last time.
Created attachment 174361 [details]
Simple patch that seems to fix it
Applying this patch to the xen package seems to fix the issue; the basic
problem was that we were adding a bogus "None" in the image string, which
includes vncpasswd. This made it so that when you reach the remote side, it
was looking for a password of "None" (without the quotes). That is, by the
way, the workaround.
Fix built into
* Fri Aug 31 2007 Daniel P. Berrange <firstname.lastname@example.org> - 3.0.3-38.el5
- Avoid bogus VNC password prompts after migrate/restore (rhbz #252359)
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.