[fedora-virt] Re: [Fedora-xen] Setting up libvirt to work with Xen 3.4.1 on F11
Boris Derzhavets
bderzhavets at yahoo.com
Thu Aug 20 05:44:06 UTC 2009
However , virt-install just started creating OSOL0906 HVM :-
[root at ServerXen341 boris]# virt-install --debug -n OSOLHVM --hvm -r 1024 --vcpus=1 -f /dev/sdb6 --vnc -c /home/boris/osol-0906-x86.iso
Thu, 20 Aug 2009 09:36:36 DEBUG Launched with command line:
/usr/sbin/virt-install --debug -n OSOLHVM --hvm -r 1024 --vcpus=1 -f /dev/sdb6 --vnc -c /home/boris/osol-0906-x86.iso
Thu, 20 Aug 2009 09:36:36 DEBUG Requesting libvirt URI default
Thu, 20 Aug 2009 09:36:36 DEBUG Received libvirt URI xen:///
Thu, 20 Aug 2009 09:36:36 DEBUG Requesting virt method 'hvm', hv type 'default'.
Thu, 20 Aug 2009 09:36:36 DEBUG Received virt method 'hvm'
Thu, 20 Aug 2009 09:36:36 DEBUG Hypervisor name is 'xen'
Thu, 20 Aug 2009 09:36:36 DEBUG DistroInstaller location is a local file/path: /home/boris/osol-0906-x86.iso
Starting install...
Thu, 20 Aug 2009 09:36:36 DEBUG Creating guest from:
<domain type='xen'>
<name>OSOLHVM</name>
<currentMemory>1048576</currentMemory>
<memory>1048576</memory>
<uuid>f27d7d9e-3845-aa5a-fb9b-5cb16e8e639b</uuid>
<os>
<type arch='x86_64'>hvm</type>
<loader>/usr/lib/xen/boot/hvmloader</loader>
<boot dev='cdrom'/>
</os>
<features>
<acpi/><apic/><pae/>
</features>
<clock offset="utc"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<vcpu>1</vcpu>
<devices>
<emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
<disk type='block' device='disk'>
<source dev='/dev/sdb6'/>
<target dev='hda' bus='ide'/>
</disk>
<disk type='file' device='cdrom'>
<source file='/home/boris/osol-0906-x86.iso'/>
<target dev='hdc' bus='ide'/>
<readonly/>
</disk>
<interface type='bridge'>
<source bridge='eth0'/>
<mac address='00:16:36:03:fd:4c'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' keymap='en-us'/>
<console type='pty'/>
</devices>
</domain>
Creating domain... | 0 B 00:00
Thu, 20 Aug 2009 09:36:36 DEBUG Created guest, looking to see if it is running
Thu, 20 Aug 2009 09:36:36 DEBUG Launching console callback
Thu, 20 Aug 2009 09:36:36 DEBUG Saving XML boot config:
<domain type='xen'>
<name>OSOLHVM</name>
<currentMemory>1048576</currentMemory>
<memory>1048576</memory>
<uuid>f27d7d9e-3845-aa5a-fb9b-5cb16e8e639b</uuid>
<os>
<type arch='x86_64'>hvm</type>
<loader>/usr/lib/xen/boot/hvmloader</loader>
<boot dev='hd'/>
</os>
<features>
<acpi/><apic/><pae/>
</features>
<clock offset="utc"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<vcpu>1</vcpu>
<devices>
<emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
<disk type='block' device='disk'>
<source dev='/dev/sdb6'/>
<target dev='hda' bus='ide'/>
</disk>
<disk type='block' device='cdrom'>
<target dev='hdc' bus='ide'/>
<readonly/>
</disk>
<interface type='bridge'>
<source bridge='eth0'/>
<mac address='00:16:36:03:fd:4c'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' keymap='en-us'/>
<console type='pty'/>
</devices>
</domain>
VNC console comes up and installer is running in meantime.
Boris.
--- On Thu, 8/20/09, Boris Derzhavets <bderzhavets at yahoo.com> wrote:
From: Boris Derzhavets <bderzhavets at yahoo.com>
Subject: [fedora-virt] Re: [Fedora-xen] Setting up libvirt to work with Xen 3.4.1 on F11
To: "Pasi Kärkkäinen" <pasik at iki.fi>
Cc: fedora-virt at redhat.com, fedora-xen at redhat.com
Date: Thursday, August 20, 2009, 1:30 AM
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 at 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 at iki.fi> wrote:
From: Pasi Kärkkäinen <pasik at iki.fi>
Subject: Re: [Fedora-xen] Setting up libvirt to work with Xen 3.4.1 on F11
To: "Boris Derzhavets" <bderzhavets at yahoo.com>
Cc: fedora-xen at redhat.com, fedora-virt at 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 at iki.fi> wrote:
>
> From: Pasi Kärkkäinen <pasik at iki.fi>
> Subject: Re: [Fedora-xen] Setting up libvirt to work with Xen 3.4.1 on F11
> To: "Boris Derzhavets" <bderzhavets at yahoo.com>
> Cc: fedora-xen at redhat.com, fedora-virt at 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 at iki.fi> wrote:
> >
> > From: Pasi Kärkkäinen <pasik at iki.fi>
> > Subject: Re: [Fedora-xen] Setting up libvirt to work with Xen 3.4.1 on F11
> > To: "Boris Derzhavets" <bderzhavets at yahoo.com>
> > Cc: fedora-xen at redhat.com, fedora-virt at 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 at redhat.com
> > > https://www.redhat.com/mailman/listinfo/fedora-xen
> >
> >
> >
> >
> >
>
>
>
>
-----Inline Attachment Follows-----
_______________________________________________
Fedora-virt mailing list
Fedora-virt at redhat.com
https://www.redhat.com/mailman/listinfo/fedora-virt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-virt/attachments/20090819/a5ab0ee7/attachment.htm>
More information about the Fedora-virt
mailing list