From Fedora Project Wiki

< FWN‎ | Beats

(102 intermediate revisions by 2 users not shown)
Line 2: Line 2:
== Virtualization ==
== Virtualization ==
In this section, we cover discussion of Fedora virtualization technologies on the @et-mgmnt-tools-list, @fedora-xen-list, @libvirt-list and @ovirt-devel-list lists.
In this section, we cover discussion of Fedora virtualization technologies on the
@fedora-virt list.
Contributing Writer: [[User:Dale | Dale Bewley]]
Contributing Writer: [[User:Dale | Dale Bewley]]
=== Enterprise Management Tools List ===
This section contains the discussion happening on the
[ et-mgmt-tools list]
==== More Device Support in virt-manager ====
[[ColeRobinson|Cole Robinson]]
{{package|virt-manager}} to implement adding of virtual video devices in the
'Add Hardware' wizard.  Cole also implemented<ref></ref> attaching serial and parallel devices.
Both these features were added to
{{package|python-virtinst|virt-install}}<ref></ref>. Serial ports can be directed to sockets listening on remote hosts. For example: <code>--serial udp,host=</code>. That may come in handy for the F12 Hostinfo feature<ref></ref>.
<references />
==== Xen, Windows, and ACPI ====
[[GuidoGünther|Guido Günther]]
that <code>virt-install</code> disables ACPI and APIC for Windows XP guests.
Adding, that it seems "that Windows XP is working fine with acpi/apic enabled which has
the immediate advantage that poweroff via ACPI works as expected.
So does it make sense to handle winxp the same win2k3?". Windows 2003 guests have ACPI enabled.
[[PasiKärkkäinen|Pasi Kärkkäinen]]
went to the xen-devel list and confirmed<ref></ref>
and relayed "Keir Fraser replied that ACPI with Windows has been working properly at least since Xen 3.1.0 days".
Pasi then updated the Xen wiki page<ref></ref>.
<references />
=== Fedora Virtualization List ===
=== Fedora Virtualization List ===
Line 42: Line 14:
[ fedora-virt list].
[ fedora-virt list].
==== Fedora Virt Status Update ====
==== Virt Status Report ====
[[MarkMcLoughlin|Mark McLoughlin]]
[[JustinForbes|Justin Forbes]]
posted<ref></ref> a Fedora virtualization status report.  
another Fedora Virt Status Update reminding that [[releases/12|Fedora 12]] is
Justin pointed out F13 bugs<ref></ref> now include Important and Pony classifications in addition to Blocker and Target.
quickly approaching with the Feature Freeze on 2009-07-28.
Also mentioned were:
* Details of a fix for "a dramatic slowdown in virtio-blk performance in F-11 guests"<ref></ref>
* Note on Xen Dom0 support.
* New wiki pages created.
* Detailed run-down of current virt bugs.
<references />
<references />
==== New Mailing List and New Releases of libguestfs ====
==== RHEL and Fedora Virtualization Feature Parity ====
[[RichardJones|Richard Jones]]
Robert Day wondered how the virtualization features<ref></ref> of Red Hat Enterprise Linux 5.4
compared to Fedora 12.
the creation of a new list<ref></ref> dedicated to
"{{package|libguestfs}}/<code>guestfish</code>/<code>virt-inspector</code> discussion/development".
The current release is now 1.0.57<ref></ref>, but Richard is so fast that may change by the time you read this.
[[DanielBerrange|Daniel Berrange]]
'''Recent new features:'''
"The KVM based virtualization in RHEL-5.4 is not nearly so far behind
* <code>virt-df</code> - like 'df' for virtual machines
Fedora as you might think. The {{package|libvirt}} mgmt stack in RHEL-5.4 was
* New Perl library called Sys::Guestfs::Lib
rebased to be near parity with [[Releases/11|Fedora 11]], and KVM in RHEL-5.4 is
* Now available for EPEL
also pretty close to that using what's best described as a hybrid of
* Tab completion in guestfish now completes files and devices
kvm-83 and kvm-84."
* Big change to the code generator
* Lots more regression tests
* guestfish commands: time, glob, more, less
* new commands: readdir, mknod*, umask, du, df*, head*, tail*, wc*, mkdtemp, scrub, sh, sh-lines.
* Debian native<ref></ref> (debootstrap, debirf) support
See previous release announcement for 1.0.14 in FWN#179<ref></ref>
and be sure to see the project homepage<ref></ref> for
extensive usage examples.
<references />
<references />
==== USB Passthrough to Virtual Machines ====
[[MarkMcLoughlin|Mark McLoughlin]]
posted instructions<ref></ref> for attaching a USB device to a guest using {{package|virt-manager}} in Fedora 11. This could previously (FWN#165<ref></ref>) be accomplished only on the command line.
Unfortunately, those wishing to manage their iPhone or newer iPods in a guest (yours truly included), KVM does not yet support the required USB 2.
====  ====
<references />
<references />
=== Libvirt List ===
====  ====
This section contains the discussion happening on the
[ libvir-list].
==== New Release libvirt 0.6.5 ====
[[DanielVeillard|Daniel Veillard]]
a new {{package|libvirt}} release, version 0.6.5.
"This is mostly a bug fix release, though it includes some serious
improvements for storage/NPIV<ref></ref> and on the OpenNebula driver<ref></ref>."
'''New features:'''
* create storage columes on disk backend (Henrik Persson)
* drop of capabilities based on libcap-ng when possible (Daniel Berrange)
* create and destroy NPIV support (David Allan)
* networking in UML driver (Daniel Berrange)
* HAL driver restart thread safety (Daniel Berrange)
* capabilities and nodeinfo APIs for LXC (Daniel Berrange)
* iNUMA API for VBox (Daniel Berrange)
* dynamically search and use kvm-img qemu-img or qcow-create (Doug Goldstein)
* fix qemu and kvm version parsing (Mark McLoughlin)
* serial number for HAL storage (Dave Allan)
* improve error reporting for virConnectOpen URIs (Daniel Berrange)
* include OS driver name in device XML (Daniel Berrange)
* fix qemu command flags fetching (Cole Robinson)
* check that qemu support -drive format= (Cole Robinson)
* improve emulator detection (Cole Robinson)
* changes to config parser to accomodate VMX syntax (Matthias Bolte)
* update network schemas and driver for missing elements (Satoru SATOH)
* avoid changing file context if not needed (Tim Waugh)
* skip labelling if no src path (Cole Robinson)
* add arm emulation if qemu-system-arm is present (C.J. Adams-Collier)
<code>libvirt</code> 0.6.4 was
on May 29. 
[[DanielVeillard|Daniel Veillard]]
is "shooting for a slightly smaller
development cycle, in order to be able to push the next version in time
for [[Releases/12|Fedora 12]] Beta, this means a new release at the end of July, so only
a bit more than a couple of weeks for pushing the changes, I really hope
we will be able to include a first version of the ESX driver and Power
Hyprvisor, if it's the case I think it will be worth bumping the release
name to 0.7.0."
<references />
==== libvirt Repositories Mirrored on Gitorious ====
Development of libvirt recently moved<ref></ref> to git as the source control management system.
[[DanielBerrange|Daniel Berrange]]
"I have created a {{package|libvirt}} project<ref></ref> on gitorious which has a mirror of
the master branch of the libvirt.git repository. This mirror is *readonly*
and updated automatically every 15 minutes. The purpose of this mirror is
to allow people to easily publish their personal <code>libvirt</code> working repos
to the world. The master upstream repository for <code>libvirt</code> does not change<ref></ref>".
<references />
==== The Role of libvirtd ====
[[HughBrock|Hugh Brock]]
a client's desire to make
"libvirtd be a one-stop shop for everything they need
to do on a virtualization host, including things we have traditionally
held out-of-scope for <code>libvirt</code>. A partial list of those things would
* In-depth multipath config management
* Hardware lifecycle management (power-off, reboot, etc.)
* HA configuration
Hugh then asked "why *not* expand the scope of <code>libvirtd</code>
to be a one-stop shop for managing a node? Is there a really good
reason it shouldn't have the remaining capabilities <code>libvirt</code> users
[[DanielBerrange|Daniel Berrange]]
"This is essentially suggesting that <code>libvirtd</code> become a general purpose
RPC layer for all remote management tasks. At which point you have
just re-invented QPid/AMQP or CIM or any number of other general
purpose message buses. <code>libvirtd</code> has a core well defined goal:"
* Provide a remote proxy for <code>libvirt</code> API calls
"If you want todo anything more than that you should be considering an
alternative remote management system. We already have 2 good ones to
choose from supported with <code>libvirt</code>"
* QPid/AMQP, with <code>libvirt-qpid</code><ref></ref>  agent + your own custom agents
* CIM, with libvirt-CIM<ref></ref> + your own custom CIM providers
"Furthermore, adding more plugins to <code>libvirtd</code> means we will never
be able to reduce its privileges to an acceptable level, because we'll
never know what capabilities the plugins may want."
Hugh countered <ref></ref>
"given a <code>libvirt-qpid</code> daemon on the node that handles RPC over
QMF (for example), is there not some value in having <code>libvirt</code> expose a
consistent API for the operations people want to do on a host regardless
of whether they have directly to do with managing a virtual machine or
[[DanielBerrange|Daniel Berrange]]
didn't "really see any value in that"
"You're just putting in another
abstraction layer where none need exist. Just have whatever QMF agent
you write talk directly to the thing you need to manage."
"I will note that when I presented the large client with the option of
QMF talking to multiple agents on the node but exposing (effectively) a
single API and a single connection, they seemed much happier. So perhaps
the right way to attack this is with the
<code>ovirt-qpid</code><ref></ref> daemon we are
currently working on."
[[DanielVeillard|Daniel Veillard]]
"a bit synpathetic to the suggestion though."
"I think <code>libvirt</code> API
should help run those virtualization nodes, I would not open the gate
like completely, but if we could provide all APIs needed to manage the
node on a day by day basis  then I think this is not really beyond our
scope. I think that netcf(FWN#170<ref></ref>) is an example of such API where we start to
add admin services for the purpose of running virtualization. Things
like rebooting or shutting down the node would fit in this, maybe
editing a drive partition too."
"Basically if we take the idea of a stripped down Node used only for
virtualization, then except for operations which are first time setup
options or maintainance, I think we should try to cover the requirements
of normal operations of that node. To some extend that means we would
step on the toes of CIM, but we would stick to a subset that's sure."
<references />
==== F11 and KVM Migrations ====
[[ScottBaker|Scott Baker]]
"to do a 'migration' from one host to another and I'm getting an error."
"Where can I look next to figure out why it didn't work?"
  virsh # migrate --live Narwhal qemu+ssh://
error: operation failed: failed to start listening VM
[[DanielVeillard|Daniel Veillard]]
suggested checking {{filename|/var/log/libvirt/qemu/Narwhal.log}} on the target server. It came out that one server was running x86_64 while the other was i586.
[[ChrisLalancette|Chris Lalancette]]
"that's just not going to work.  In theory it might work, but it's never
been tested, so I'm not surprised it doesn't.  In general migration is extremely
finicky when it comes to CPU versions, and versions of the software." And
suggested trying again after starting libvirtd by hand with debugging turned
<code>LIBVIRT_DEBUG=1 /usr/sbin/libvirtd --verbose --listen</code>
<references />
==== Storage cloning for LVM and Disk backends ====
[[ColeRobinson|Cole Robinson]]
a patch series which "implements cloning for LVM and disk backends. Most
of the functionality is already here, it just needed some reorganization
to be accessible for every backend."
"I verified the following scenarios produced a bootable image:"
* Clone within a disk pool
* Clone within a logical pool
* Clone a raw file to a disk pool
* Clone a disk pool to a logical pool
<references />
=== Fedora-Xen List ===
This section contains the discussion happening on the
[ fedora-xen list].
==== Xen dom0 Forward Ported to Latest Kernel ====
Previously, Xen dom0 support in Fedora was provided by forward porting the Xensource patches from kernel 2.6.18 to the version found in the Fedora release at the time. This consumed developer resources and led to separate {{package|kernel}} and {{package|kernel-xen}} packages for a time. As of
[[Releases/9|Fedora 9]]<ref></ref> this practice was deamed<ref></ref> untenable, and support for hosting Xen guests was dropped from Fedora.
Work has since focused on creating a paravirt operations dom0<ref></ref> kernel based on the most recent upstream vanilla kernel. This work is incomplete and not expected to be done before F12 or even F13. However, experimental dom0 kernels<ref></ref> have been created for the adventurous.
[[PasiKärkkäinen|Pasi Kärkkäinen]]
tells<ref></ref> us
the Xen 2.6.18 patches have now been forward-ported to the current 2.6.29 and
2.6.30 kernel. "Forward-porting has been done by Novell for OpenSUSE. Novell also has a forward-port to 2.6.27 for SLES11."
The patches can be found
here <ref></ref>
and here<ref></ref>.
Pasi added "These patches are still more stable and mature than the
pv_ops dom0 code.. Also, these patches have the full Xen feature set
(pv_ops still lacks some features)."
More history is avilable<ref></ref>.
<references />
<references />

Latest revision as of 18:09, 18 December 2009


In this section, we cover discussion of Fedora virtualization technologies on the @fedora-virt list.

Contributing Writer: Dale Bewley

Fedora Virtualization List

This section contains the discussion happening on the fedora-virt list.

Virt Status Report

Justin Forbes posted[1] a Fedora virtualization status report. Justin pointed out F13 bugs[2] now include Important and Pony classifications in addition to Blocker and Target.

RHEL and Fedora Virtualization Feature Parity

Robert Day wondered how the virtualization features[1] of Red Hat Enterprise Linux 5.4 compared to Fedora 12.

Daniel Berrange explained[2] "The KVM based virtualization in RHEL-5.4 is not nearly so far behind Fedora as you might think. The Package-x-generic-16.pnglibvirt mgmt stack in RHEL-5.4 was rebased to be near parity with Fedora 11, and KVM in RHEL-5.4 is also pretty close to that using what's best described as a hybrid of kvm-83 and kvm-84."