[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[fedora-virt] Re: [Fedora-xen] Setting up libvirt to work with Xen 3.4.1 on F11



Yes, Pasi .
I've changed Xen Host setup as follows ( new clean install):-

Download xen-3.4.1-1.fc12.src.rpm

# wget http://kojipkgs.fedoraproject.org/packages/xen/3.4.1/1.fc12/src/xen-3.4.1-1.fc12.src.rpm
# rpm -iv xen-3.4.1-1.fc12.src.rpm
# cd /root/rpmbuild/SPECS
# rpmbuild -ba ./xen.spec

To install hypervisor and tools

# cd ../RPMS/x86_64
# yum install xen-3.4.1-1.fc11.x86_64.rpm \
xen-debuginfo-3.4.1-1.fc11.x86_64.rpm \
xen-devel-3.4.1-1.fc11.x86_64.rpm \
xen-doc-3.4.1-1.fc11.x86_64.rpm \
xen-hypervisor-3.4.1-1.fc11.x86_64.rpm \
xen-libs-3.4.1-1.fc11.x86_64.rpm \
xen-runtime-3.4.1-1.fc11.x86_64.rpm

*******************************************************************
Apply patch from Pasi to handle DomUs with timeout=0 in menu.lst
*******************************************************************

--- 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 pressed.
                     # Check both timeout and mytime to avoid exiting
                     # when we shouldn't.
-                    if timeout != -1 and mytime >= int(timeout):
+            if mytime >= int(timeout):
                         self.isdone = True
                         break
             else:


To install new libvirt-0.7.0-6

  # cat > /etc/yum.repos.d/fedora-virt-preview.repo << EOF
  [virt-preview]
  name=Virtualization Rawhide for Fedora 11
  baseurl=http://markmc.fedorapeople.org/virt-preview/f11/\$basearch/
  enabled=1
  gpgcheck=0
  EOF

Install Preview version of libvirt :-

  # yum install libvirt libvirt-python python-virtinst \
    virt-manager virt-viewer

[root ServerXen341 ~]# rpm -qa|grep virt
libvirt-client-0.7.0-6.fc11.x86_64
libvirt-python-0.7.0-6.fc11.x86_64
virt-viewer-0.2.0-1.fc11.x86_64
virt-manager-0.7.0-5.fc11.x86_64
libvirt-0.7.0-6.fc11.x86_64
python-virtinst-0.500.0-1.fc11.noarch

It works fine with PV DomUs. 
Attempt to install HVM via virt-manager gives a new error :-

Unable to complete install '<class 'libvirt.libvirtError'> POST operation failed: xend_post: error from xen daemon: <Fault 3: 'VM1'>
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 1501, in do_install
    dom = guest.start_install(False, meter = meter)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 628, in start_install
    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 = self.conn.createLinux(install_xml, 0)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1077, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: POST operation failed: xend_post: error from xen daemon: <Fault 3: 'VM1'>
'

Boris.

--- On Wed, 8/19/09, Pasi Kärkkäinen <pasik iki fi> wrote:

From: Pasi Kärkkäinen <pasik iki fi>
Subject: Re: [Fedora-xen] Setting up libvirt to work with Xen 3.4.1 on F11
To: "Boris Derzhavets" <bderzhavets yahoo com>
Cc: fedora-xen redhat com, fedora-virt redhat com
Date: Wednesday, August 19, 2009, 4:31 PM

On Wed, Aug 19, 2009 at 12:04:50PM -0700, Boris Derzhavets wrote:
> Yes. it works with Xen-tools.
>
> http://bderzhavets.wordpress.com/2009/06/10/setup-fedora-11-pv-domu-at-xen-3-4-1-dom0-kernel-2-6-30-rc6-tip-on-top-of-fedora-11/
>

Just to be sure: You are able to install _HVM_ guests using Xen tools?

-- Pasi


> Boris.
>
> --- On Wed, 8/19/09, Pasi Kärkkäinen <pasik iki fi> wrote:
>
> From: Pasi Kärkkäinen <pasik iki fi>
> Subject: Re: [Fedora-xen] Setting up libvirt to work with Xen 3.4.1 on F11
> To: "Boris Derzhavets" <bderzhavets yahoo com>
> Cc: fedora-xen redhat com, fedora-virt redhat com
> Date: Wednesday, August 19, 2009, 2:04 PM
>
> On Wed, Aug 19, 2009 at 10:49:49AM -0700, Boris Derzhavets wrote:
> > My primary concern is creating HVM guest via virt-manager at Xen 3.4.1 Dom0 on F11.
> >
> > Boris.
> > P.S.
> > Personally, i don't need libvirt at all to create PV and HVM DomUs at any Xen Dom0.
> > It's client's requirement.
> >
>
> Yeah I just wanted to know if it worked with Xen tools. That would tell
> us if this is purely a libvirt problem, or problem with something else.
>
> -- Pasi
>
> > --- On Wed, 8/19/09, Pasi Kärkkäinen <pasik iki fi> wrote:
> >
> > From: Pasi Kärkkäinen <pasik iki fi>
> > Subject: Re: [Fedora-xen] Setting up libvirt to work with Xen 3.4.1 on F11
> > To: "Boris Derzhavets" <bderzhavets yahoo com>
> > Cc: fedora-xen redhat com, fedora-virt redhat com
> > Date: Wednesday, August 19, 2009, 1:41 PM
> >
> > On Wed, Aug 19, 2009 at 08:20:28AM -0700, Boris Derzhavets wrote:
> > > xen 3.4.1-1 src.rpm downloaded from
> > >  http://kojipkgs.fedoraproject.org/packages/xen/3.4.1/1.fc12/
> > >  rebuilt that for F11 and installed.
> > >
> > > libvirt src.rpm downloaded from
> > >    ftp://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/updates/11/SRPMS/libvirt-0.6.2-14.fc11.src.rpm
> > > and installed  : "rpm -i libvirt-0.6.2-14.fc11.src.rpm"
> > >
> > > Rebuilt libvirt packages applying patch :-
> > >
> > >  http://libvirt.org/git/?p=libvirt.git;a=blobdiff;f=src/xend_internal.c;h=55ffd3f9a5004e681c8ffb2279d27965eb42e956;hp=b211bb6293355bf68e33f56f947021bd7bb8e675;hb=14435163a086c0bcdff04308077fa46a5fa08bb0;hpb=fd90b67afe59265327dde7e447ea847687bd4e8d
> > >
> > > Installed libvirt :-
> > > yum install libvirt-0.6.2-14.fc11.x86_64.rpm \
> > > libvirt-debuginfo-0.6.2-14.fc11.x86_64.rpm \
> > > libvirt-devel-0.6.2-14.fc11.x86_64.rpm \
> > > libvirt-python-0.6.2-14.fc11.x86_64.rpm \
> > > virt-manager virt-viewer
> > >
> > >
> > > Attempt to create any HVM via virt-manager aborts with message:-
> > > 
> > >  Unable to complete install '<class 'libvirt.libvirtError'> Domain not found: xenUnifiedDomainLookupByName
> > >  Traceback (most recent call last):
> > >    File "/usr/share/virt-manager/virtManager/create.py", line 1501, in do_install
> > >      dom = guest.start_install(False, meter = meter)
> > >    File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 541, in start_install
> > >      return self._do_install(consolecb, meter, removeOld, wait)
> > >    File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 633, in _do_install
> > >      self.domain = self.conn.createLinux(install_xml, 0)
> > >    File "/usr/lib64/python2.6/site-packages/libvirt.py", line 974, in createLinux
> > >      if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
> > >  libvirtError: Domain not found: xenUnifiedDomainLookupByName
> > >
> >
> > Looks like something wrong/missing in libvirt..
> >
> > Did you try with the default Xen 3.3.1 version, that is included in F11?
> > Maybe something was changed in Xen 3.4 and it causes that problem.
> >
> > Also, can you create HVM guests using just the Xen tools, not virt* stuff?
> >
> > -- Pasi
> >
> > > PV DomUs for F11 and CentOS 5.3 created and tested OK.
> > >
> > > Boris.
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > > --
> > > Fedora-xen mailing list
> > > Fedora-xen redhat com
> > > https://www.redhat.com/mailman/listinfo/fedora-xen
> >
> >
> >
> >
> >       
>
>
>
>       


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]