From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: pvops dom0 work roadmap / Fedora 11 domU/guest pygrub grub.conf timeout=0 problem Date: Wed, 19 Aug 2009 20:23:27 +0300 Message-ID: <20090819172327.GE19938@edu.joroinen.fi> References: <20090819123732.GS19938@edu.joroinen.fi> <670317.40738.qm@web56102.mail.re3.yahoo.com> <20090819170005.GC19938@edu.joroinen.fi> 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: <20090819170005.GC19938@edu.joroinen.fi> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Boris Derzhavets Cc: Xen-devel List-Id: xen-devel@lists.xenproject.org On Wed, Aug 19, 2009 at 08:00:05PM +0300, Pasi K=E4rkk=E4inen wrote: > On Wed, Aug 19, 2009 at 06:26:26AM -0700, Boris Derzhavets wrote: > > Yes, Pasi > >=20 > > =A0I've loaded F11 DomU manually and changed timeout=3D5 then shutdow= n DomU and started smoothly via virt-manager. > >=20 >=20 > Attached is a patch for /usr/bin/pygrub of Xen 3.4.1. It fixes the grub= .conf > timeout=3D0 parameter handling of Fedora 11 PV domUs/guests. >=20 > Without this patch pygrub will get stuck and doesn't work if there's ti= meout=3D0 in domU grub.conf. >=20 Also it looks like even with the default version of pygrub of Xen 3.4.1 F= 11 domU works, but you have to go to "xm console " to choose the ker= nel to boot!=20 -- Pasi > -- Pasi >=20 > > Thanks again. > > Boris. > >=20 > > --- On Wed, 8/19/09, Pasi K=E4rkk=E4inen wrote: > >=20 > > From: Pasi K=E4rkk=E4inen > > Subject: Re: [Xen-devel] pvops dom0 work roadmap / Fedora 11 libvirt = problems with Xen 3.4 > > To: "Boris Derzhavets" > > Cc: "Xen-devel" > > Date: Wednesday, August 19, 2009, 8:37 AM > >=20 > > On Wed, Aug 19, 2009 at 05:21:55AM -0700, Boris Derzhavets wrote: > > > Pasi, > > >=20 > > > Thanks=A0 a lot a lot for your support. > > >=20 > > > =A0 I was able=A0 to reproduce you instructions on F11 (64-bit) ins= tance (C2D E8400,8 GB RAM). > > > =A0 I remind pretty clear,=A0 that now i am experiencing the same i= ssue as with xen-3.4.0-2.fc12.src.rpm.=20 > > > F11 PVM been created via virt-manager, cannot be , actually, manage= d either via virt-manager or from command line. > > >=20 > > > # xm start VMF11 > > >=20 > > > moves it to paused state and resuming shows :- > > >=20 > > > [root@ServerXen341F boris]# xm list > > > Name=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ID=A0=A0 Mem= VCPUs=A0=A0=A0=A0=A0 State=A0=A0 Time(s) > > > Domain-0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0 =A0=A0 6034=A0=A0=A0=A0 2= =A0=A0=A0=A0 r-----=A0=A0=A0 574.9 > > > VMF11=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 3 =A0=A0 2048=A0=A0= =A0=A0 0=A0=A0=A0=A0 ------=A0=A0=A0=A0=A0 0.0 > > >=20 > >=20 > > What do you have in "xm log" ? Is the last line about running pygrub? > >=20 > > I'm seeing an issue with F11 domU where the domU grub.conf contains > > timeout=3D0 and that causes pygrub to get stuck and thus prevents the= domU > > from starting.. changing to timeout=3D5 fixes the problem.=20 > >=20 > > I'm going to debug pygrub later today.. I believe it's a bug in pygru= b. > >=20 > > > Attempt to create HVM crashes immediately. > > >=20 > >=20 > > I can't test HVM guests on my testbox, it doesn't have VT support in = the CPU. > >=20 > > -- Pasi > >=20 > > > Boris. > > >=20 > > > P.S. I was unable to find glibc-devel.i386 for 64-bit F11 (vs F10) > > > and installed glibc-devel.i586 for rpmbuild. > > >=20 > > > --- On Wed, 8/19/09, Pasi K=E4rkk=E4inen wrote: > > >=20 > > > From: Pasi K=E4rkk=E4inen > > > Subject: Re: [Xen-devel] pvops dom0 work roadmap / Fedora 11 libvir= t problems with Xen 3.4 > > > To: "Boris Derzhavets" > > > Cc: "Xen-devel" > > > Date: Wednesday, August 19, 2009, 6:27 AM > > >=20 > > > On Wed, Aug 19, 2009 at 02:54:36AM -0700, Boris Derzhavets wrote: > > > > Pasi, > > > >=20 > > > > I was able to install 3.4.1 Hypervisor via xen-3.4.1.src.rpm with= no problems. > > > > Rebooted into Xen Host with 2.6.30.3 xenified aka Suse kernel. Fi= ne. > > > >=20 > > > > Downloaded from http://markmc.fedorapeople.org/virt-preview/f11/x= 86_64/ > > > > and installed (pretty recent - 08/10/2009) :- > > > >=20 > > > > yum install libvirt-0.7.0-3.fc11.x86_64.rpm \=A0=A0=A0=A0=A0=A0=20 > > > > libvirt-client-0.7.0-3.fc11.x86_64.rpm \ > > > > libvirt-devel-0.7.0-3.fc11.x86_64.rpm \ > > > > libvirt-python-0.7.0-3.fc11.x86_64.rpm \ > > > > python-virtinst-0.500.0-1.fc11.noarch.rpm \ > > > > virt-manager-0.8.0-1.fc11.noarch.rpm \ > > > > virt-viewer-0.2.0-1.fc11.x86_64.rpm > > > >=20 > > > > [root@ServerXen341F Download]# rpm -qa|grep virt > > > > libvirt-0.7.0-3.fc11.x86_64 > > > > libvirt-devel-0.7.0-3.fc11.x86_64 > > > > python-virtinst-0.500.0-1.fc11.noarch > > > > virt-manager-0.8.0-1.fc11.noarch > > > > virt-viewer-0.2.0-1.fc11.x86_64 > > > > libvirt-python-0.7.0-3.fc11.x86_64 > > > > libvirt-client-0.7.0-3.fc11.x86_64 > > > >=20 > > > > Then i was able to connect to xend via virt-manager and attempted= to start building > > > > OSOL HVM. Got an error at startup:- > > > >=20 > > > > Unable to complete install ' Domain= not found: xenUnifiedDomainLookupByName > > > > Traceback (most recent call last): > > > > =A0 File "/usr/share/virt-manager/virtManager/create.py", line 14= 89, in do_install > > > > =A0=A0=A0 dom =3D guest.start_install(False, meter =3D meter) > > > > =A0 File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", li= ne 628, in start_install > > > > =A0=A0=A0 return self._do_install(consolecb, meter, removeOld, wa= it) > > > > =A0 File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", li= ne 726, in _do_install > > > > =A0=A0=A0 self.domain =3D self.conn.createLinux(install_xml, 0) > > > > =A0 File "/usr/lib64/python2.6/site-packages/libvirt.py", line 10= 77, in createLinux > > > > =A0=A0=A0 if ret is None:raise libvirtError('virDomainCreateLinux= () failed', conn=3Dself) > > > > libvirtError: Domain not found: xenUnifiedDomainLookupByName > > > >=20 > > > > Please advise , how to escalate it to Fedora's people ? > > > >=20 > > >=20 > > > I think you should post to fedora-xen@redhat.com and possibly=20 > > > CC fedora-virt@redhat.com. > > >=20 > > > > Boris. > > > > P.S. Usually i installed libvirt stuff :- > > > >=20 > > > > # yum install libvirt libvirt-python python-virtinst \ > > > >=20 > > > > virt-manager virt-viewer > > > >=20 > > > > To apply patch manually i need a kind of libvirt.src.rpm. > > > > I don't track Fedora so close to be aware of this. > > > > ' > > >=20 > > >=20 > > > I was using the default libvirt from F11, but I manually added the = bugfix patch: > > >=20 > > > - Download libvirt src.rpm: > > > =A0 ftp://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/lin= ux/updates/11/SRPMS/libvirt-0.6.2-14.fc11.src.rpm > > >=20 > > > - install it: "rpm -i libvirt-0.6.2-14.fc11.src.rpm" > > >=20 > > > - Copy & paste the patch to a file /root/rpmbuild/SOURCES/libvirt-b= ugfix-custom.patch from > > > =A0 http://libvirt.org/git/?p=3Dlibvirt.git;a=3Dblobdiff;f=3Dsrc/xe= nd_internal.c;h=3D55ffd3f9a5004e681c8ffb2279d27965eb42e956;hp=3Db211bb629= 3355bf68e33f56f947021bd7bb8e675;hb=3D14435163a086c0bcdff04308077fa46a5fa0= 8bb0;hpb=3Dfd90b67afe59265327dde7e447ea847687bd4e8d > > >=20 > > > - Edit /root/rpmbuild/SPECS/libvirt.spec and add the patch like oth= er > > > =A0 patches are added. You need to add one line to two different pl= aces. > > >=20 > > > - Run "rpmbuild -bb libvirt.spec" > > >=20 > > > - Install the bugfixed rpms from /root/rpmbuild/RPMS/i586/ > > >=20 > > > -- Pasi > > >=20 > > >=20 > > > >=20 > > > > --- On Wed, 8/19/09, Pasi K=E4rkk=E4inen wrote: > > > >=20 > > > > From: Pasi K=E4rkk=E4inen > > > > Subject: Re: [Xen-devel] pvops dom0 work roadmap / Fedora 11 libv= irt problems with Xen 3.4 > > > > To: "Boris Derzhavets" > > > > Cc: "Xen-devel" > > > > Date: Wednesday, August 19, 2009, 3:09 AM > > > >=20 > > > > On Tue, Aug 18, 2009 at 09:16:08PM -0700, Boris Derzhavets wrote: > > > > > >There was a bug in libvirt of F11 dom0 causing virt-viewer to = crash when=20 > > > > > > using Xen 3.4, but after I got that patched it was all fine > > > > >=20 > > > > > If it's possible to share your experience , i wonder does it me= an, that=A0 you've got xen-3.4.0-2.fc12.src.rpm working on F11 (32-bit) ? > > > > > I was unable to connect to xend when starting virt-manager afte= r xen-3.4.0-2.fc12.src.rpm install ( along with generated packages) on 64= -bit F11 instance. > > > > >=20 > > > >=20 > > > > I grabbed Xen 3.4.1-1 src.rpm from: > > > > http://kojipkgs.fedoraproject.org/packages/xen/3.4.1/1.fc12/ > > > >=20 > > > > and rebuilt that for F11. > > > >=20 > > > > The next problem was that libvirt package in Fedora 11 has a bug,= which causes it > > > > to crash (segfault) when virt-viewer is started. This crash only = happens with Xen 3.4, not with Xen 3.3. > > > >=20 > > > > Patch for the libvirt bug is here: > > > > http://libvirt.org/git/?p=3Dlibvirt.git;a=3Dcommit;h=3D14435163a0= 86c0bcdff04308077fa46a5fa08bb0 > > > >=20 > > > > Upcoming libvirt update for F11 will fix this. After manually app= lying that > > > > patch and rebuilding libvirt I'm now able to successfully install= new guests > > > > using virt-install and connect to their console by virt-viewer. > > > >=20 > > > > -- Pasi > > > >=20 > > > > _______________________________________________ > > > > Xen-devel mailing list > > > > Xen-devel@lists.xensource.com > > > > http://lists.xensource.com/xen-devel > > > >=20 > > > >=20 > > > >=20 > > > >=A0 =A0 =A0=A0=A0 > > >=20 > > > _______________________________________________ > > > Xen-devel mailing list > > > Xen-devel@lists.xensource.com > > > http://lists.xensource.com/xen-devel > > >=20 > > >=20 > > >=20 > > >=A0 =A0 =A0=A0=A0 > >=20 > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > >=20 > >=20 > >=20 > > =20 > --- pygrub-xen341 2009-08-17 22:22:29.000000000 +0300 > +++ pygrub 2009-08-19 18:39:17.000000000 +0300 > @@ -447,7 +447,7 @@ > # So we may come here even after a key has been pr= essed. > # Check both timeout and mytime to avoid exiting > # when we shouldn't. > - if timeout !=3D -1 and mytime >=3D int(timeout): > + if mytime >=3D int(timeout): > self.isdone =3D True > break > else: > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel