From: Boris Derzhavets Subject: Re: pvops dom0 work roadmap / Fedora 11 libvirt problems with Xen 3.4 Date: Wed, 19 Aug 2009 05:21:55 -0700 (PDT) Message-ID: <836833.64547.qm@web56105.mail.re3.yahoo.com> References: <20090819102749.GP19938@edu.joroinen.fi> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1044847418==" Return-path: In-Reply-To: <20090819102749.GP19938@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: =?iso-8859-1?Q?Pasi_K=E4rkk=E4inen?= Cc: Xen-devel List-Id: xen-devel@lists.xenproject.org --===============1044847418== Content-Type: multipart/alternative; boundary="0-145451847-1250684515=:64547" --0-145451847-1250684515=:64547 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Pasi, Thanks=A0 a lot a lot for your support. =A0 I was able=A0 to reproduce you instructions on F11 (64-bit) instance (C= 2D E8400,8 GB RAM). =A0 I remind pretty clear,=A0 that now i am experiencing the same issue as = with xen-3.4.0-2.fc12.src.rpm. F11 PVM been created via virt-manager, canno= t be , actually, managed either via virt-manager or from command line. # xm start VMF11 moves it to paused state and resuming shows :- [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 3 =A0=A0 2048=A0=A0=A0=A0 0= =A0=A0=A0=A0 ------=A0=A0=A0=A0=A0 0.0 Attempt to create HVM crashes immediately. Boris. P.S. I was unable to find glibc-devel.i386 for 64-bit F11 (vs F10) and installed glibc-devel.i586 for rpmbuild. --- On Wed, 8/19/09, Pasi K=E4rkk=E4inen wrote: From: Pasi K=E4rkk=E4inen Subject: Re: [Xen-devel] pvops dom0 work roadmap / Fedora 11 libvirt proble= ms with Xen 3.4 To: "Boris Derzhavets" Cc: "Xen-devel" Date: Wednesday, August 19, 2009, 6:27 AM 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 prob= lems. > Rebooted into Xen Host with 2.6.30.3 xenified aka Suse kernel. Fine. >=20 > Downloaded from http://markmc.fedorapeople.org/virt-preview/f11/x86_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 star= t building > OSOL HVM. Got an error at startup:- >=20 > Unable to complete install ' Domain not fou= nd: xenUnifiedDomainLookupByName > Traceback (most recent call last): > =A0 File "/usr/share/virt-manager/virtManager/create.py", line 1489, in d= o_install > =A0=A0=A0 dom =3D guest.start_install(False, meter =3D meter) > =A0 File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 628, = in start_install > =A0=A0=A0 return self._do_install(consolecb, meter, removeOld, wait) > =A0 File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 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 1077, in c= reateLinux > =A0=A0=A0 if ret is None:raise libvirtError('virDomainCreateLinux() faile= d', conn=3Dself) > libvirtError: Domain not found: xenUnifiedDomainLookupByName >=20 > Please advise , how to escalate it to Fedora's people ? >=20 I think you should post to fedora-xen@redhat.com and possibly=20 CC fedora-virt@redhat.com. > 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. > ' I was using the default libvirt from F11, but I manually added the bugfix p= atch: - Download libvirt src.rpm: =A0 ftp://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/updat= es/11/SRPMS/libvirt-0.6.2-14.fc11.src.rpm - install it: "rpm -i libvirt-0.6.2-14.fc11.src.rpm" - Copy & paste the patch to a file /root/rpmbuild/SOURCES/libvirt-bugfix-cu= stom.patch from =A0 http://libvirt.org/git/?p=3Dlibvirt.git;a=3Dblobdiff;f=3Dsrc/xend_inter= nal.c;h=3D55ffd3f9a5004e681c8ffb2279d27965eb42e956;hp=3Db211bb6293355bf68e3= 3f56f947021bd7bb8e675;hb=3D14435163a086c0bcdff04308077fa46a5fa08bb0;hpb=3Df= d90b67afe59265327dde7e447ea847687bd4e8d - Edit /root/rpmbuild/SPECS/libvirt.spec and add the patch like other =A0 patches are added. You need to add one line to two different places. - Run "rpmbuild -bb libvirt.spec" - Install the bugfixed rpms from /root/rpmbuild/RPMS/i586/ -- Pasi >=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 prob= lems 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 wh= en=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 mean, 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 after xen-3.= 4.0-2.fc12.src.rpm install ( along with generated packages) on 64-bit F11 i= nstance. > >=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 c= auses 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=3D14435163a086c0bcdf= f04308077fa46a5fa08bb0 >=20 > Upcoming libvirt update for F11 will fix this. After manually applying th= at > patch and rebuilding libvirt I'm now able to successfully install new gue= sts > 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-145451847-1250684515=:64547 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Pasi,

Thanks  a lot a lot for you= r support.

  I was able  to reproduce you instructions on = F11 (64-bit) instance (C2D E8400,8 GB RAM).
  I remind pretty clear= ,  that now i am experiencing the same issue as with xen-3.4.0-2.fc12.= src.rpm. F11 PVM been created via virt-manager, cannot be , actually,
ma= naged either via virt-manager or from command line.

# xm start VMF11=

moves it to paused state and resuming shows :-

[root@ServerX= en341F boris]# xm list
Name       &nb= sp;            =             &nb= sp;         ID   Mem VCPU= s      State   Time(s)
Domain-0         &= nbsp;           &nbs= p;            &= nbsp; 0    6034     2    = r-----    574.9
VMF11      &nbs= p;            &= nbsp;           &nbs= p;        3    2048 &nbs= p;   0     ------    &nbs= p; 0.0

Attempt to create HVM crashes immediately.

Boris.
<= br>P.S. I was unable to find glibc-devel.i386 for 64-bit F11 (vs F10)=
and installed
glibc-devel.i586 for rpmbuild.
--- On Wed, 8/19/09, Pasi K=E4rkk=E4inen <pasik@iki.fi> wrote:

Fro= m: Pasi K=E4rkk=E4inen <pasik@iki.fi>
Subject: Re: [Xen-devel] pvo= ps dom0 work roadmap / Fedora 11 libvirt problems with Xen 3.4
To: "Bori= s Derzhavets" <bderzhavets@yahoo.com>
Cc: "Xen-devel" <xen-deve= l@lists.xensource.com>
Date: Wednesday, August 19, 2009, 6:27 AM
<= br>
On Wed, Aug 19, 2009 at 02:54:36AM -0700, Boris= Derzhavets wrote:
> Pasi,
>
> 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. Fine.
>
> Do= wnloaded from http://markmc.fedorapeople.org/virt-preview/f11/x8= 6_64/
> and installed (pretty recent - 08/10/2009) :-
>
> yum install libvirt-0.7.0-3.fc11.x86_64.rpm \   &n= bsp;  
> 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 \
> v= irt-manager-0.8.0-1.fc11.noarch.rpm \
> virt-viewer-0.2.0-1.fc11.x86_= 64.rpm
>
> [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
> > Then i was able to connect to xend via virt-manager and attempted to = start building
> OSOL HVM. Got an error at startup:-
>
>= Unable to complete install '<class 'libvirt.libvirtError'> Domain not found: xenUnifiedDomainLookupByName
> Traceback (most rec= ent call last):
>   File "/usr/share/virt-manager/virtManager/cr= eate.py", line 1489, in do_install
>     dom =3D guest= .start_install(False, meter =3D meter)
>   File "/usr/lib/python= 2.6/site-packages/virtinst/Guest.py", line 628, in start_install
> &n= bsp;   return self._do_install(consolecb, meter, removeOld, wait)=
>   File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", = line 726, in _do_install
>     self.domain =3D self.co= nn.createLinux(install_xml, 0)
>   File "/usr/lib64/python2.6/si= te-packages/libvirt.py", line 1077, in createLinux
>   &nbs= p; if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn= =3Dself)
> libvirtError: Domain not found: xenUnifiedDomainLookupByNa= me
>
> Please advise , how to escalate it to Fedora's people ?
>

I think you should post to fedora-xen@r= edhat.com and possibly
CC fedora-virt@redhat.com= .

> Boris.
> P.S. Usually i installed libvirt stuff :-<= br>>
> # yum install libvirt libvirt-python python-virtinst \
= >
> virt-manager virt-viewer
>
> To apply patch manu= ally i need a kind of libvirt.src.rpm.
> I don't track Fedora so clos= e to be aware of this.
> '


I was using the default libvirt= from F11, but I manually added the bugfix patch:

- Download libvirt= src.rpm:
  ftp://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fed= ora/linux/updates/11/SRPMS/libvirt-0.6.2-14.fc11.src.rpm

- insta= ll it: "rpm -i libvirt-0.6.2-14.fc11.src.rpm"

- Copy & paste the= patch to a file /root/rpmbuild/SOURCES/libvirt-bugfix-custom.patch from  http://libvirt.org/git/?p=3Dlibvirt.git;a=3Dblobdiff;f=3Dsrc/xend_internal= .c;h=3D55ffd3f9a5004e681c8ffb2279d27965eb42e956;hp=3Db211bb6293355bf68e33f5= 6f947021bd7bb8e675;hb=3D14435163a086c0bcdff04308077fa46a5fa08bb0;hpb=3Dfd90= b67afe59265327dde7e447ea847687bd4e8d

- Edit /root/rpmbuild/SPECS= /libvirt.spec and add the patch like other
  patches are added. You= need to add one line to two different places.

- Run "rpmbuild -bb libvirt.spec"

- Instal= l the bugfixed rpms from /root/rpmbuild/RPMS/i586/

-- Pasi

>
> --- On Wed, 8/19/09, Pasi K=E4rkk=E4inen <pasik@iki.fi> wrote:
>
> From: Pasi K=E4rkk=E4inen <
pasik@iki.fi= >
> Subject: Re: [Xen-devel] pvops dom0 work roadmap / Fedora 11 l= ibvirt problems with Xen 3.4
> To: "Boris Derzhavets" <bderzhavets@yahoo.com>
> Cc: "Xen-devel" <xen-devel@lists.xensource.com>
> Date: = Wednesday, August 19, 2009, 3:09 AM
>
> On Tue, Aug 18, 2009 a= t 09:16:08PM -0700, Boris Derzhavets wrote:
> > >There was a bug in libvirt of F11= dom0 causing virt-viewer to crash when
> > > using Xen 3.4, b= ut after I got that patched it was all fine
> >
> > If i= t's possible to share your experience , i wonder does it mean, that  y= ou'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 after xen-3.4.0-2= .fc12.src.rpm install ( along with generated packages) on 64-bit F11 instan= ce.
> >
>
> I grabbed Xen 3.4.1-1 src.rpm from:
&= gt; http://kojipkgs.fedoraproject.org/packages/xen/3.4.1/1.= fc12/
>
> and rebuilt that for F11.
>
> The n= ext problem was that libvirt package in Fedora 11 has a bug, which causes i= t
> to crash (segfault) when virt-viewer is started. This crash only happens with Xen 3.4, not with Xen 3.3.
>
> Patch for th= e libvirt bug is here:
> http://libvirt.org/git/?p=3Dlibvirt.git;a=3Dcommit;h=3D14435163a086c= 0bcdff04308077fa46a5fa08bb0
>
> Upcoming libvirt update fo= r F11 will fix this. After manually applying that
> patch and rebuild= ing libvirt I'm now able to successfully install new guests
> using v= irt-install and connect to their console by virt-viewer.
>
> -= - Pasi
>
> _______________________________________________
= > Xen-devel mailing list
> Xen-de= vel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>= ;
>
>
>       

__________________________= _____________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel<= /a>

=0A=0A --0-145451847-1250684515=:64547-- --===============1044847418== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1044847418==--