From: "Daniel P. Berrange" Subject: Re: [PATCH][VNC Auth] Fix qemu-dm becomes defunct when rebooting hvm domain Date: Fri, 27 Oct 2006 17:39:42 +0100 Message-ID: <20061027163942.GM32556@redhat.com> References: Reply-To: "Daniel P. Berrange" Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Ian Pratt , Anthony Liguori , xen-devel@lists.xensource.com, "Zheng, Jeff" , Masami Watanabe List-Id: xen-devel@lists.xenproject.org On Fri, Oct 27, 2006 at 05:16:57PM +0100, Keir Fraser wrote: > On 25/10/06 11:07 pm, "Masami Watanabe" > wrote: >=20 > > Sorry, I should not have removed infomation on xend. > >=20 > > image.py, line 399, in configVNC > > config.remove(['vncpasswd', vncpasswd_vmconfig]) > >=20 > > When vncpasswd is removed, qemu-dm cannot be started in reboot of hvm= domain. > > Because necessary information disappears. > > It cannot be helped though information in config list remains in xens= tore. > >=20 > > This patch corrects above. >=20 > That would mean that you=B9d fall back to the default VNC password thou= gh, > right? Why would it cause qemu to fail to restart and become a defunct > process? No, it looks correct to me - we were scrubbing the vncpassword from the guest config after using it, so that it didn't appear in the SXPR data with doing 'xm list --long' etc. But turns out we do need the password later on after all, so we can't scrub it completely. Perhaps we just need to scrub it out on the fly when talking to XM & other apps instead - i've already been working on a patch to scrub it out when loggin the guest data to /var/log/xen/xend.log. This 'config.remove' thing also impacted my equivalent vncpassword patche= s for the paravirt framebuffer, because it meant when you do a save/restore or a migrate, and started the VNC daemon it no longer found a password. Not sure why qemu would do defunct though - if the vncpasswd is not set in xenstore, it ought to have just fallen back to no-password auth. Dan. --=20 |=3D- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 24= 96 -=3D| |=3D- Perl modules: http://search.cpan.org/~danberr/ = -=3D| |=3D- Projects: http://freshmeat.net/~danielpb/ = -=3D| |=3D- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 950= 5 -=3D|=20