Bug 890652 - Libvirt enables vhost on a qemu that doesn't support it
Summary: Libvirt enables vhost on a qemu that doesn't support it
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-28 13:38 UTC by Geert Jansen
Modified: 2013-07-11 17:28 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-11 17:28:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Guest XML (1.24 KB, text/xml)
2012-12-28 13:38 UTC, Geert Jansen
no flags Details

Description Geert Jansen 2012-12-28 13:38:53 UTC
Created attachment 669855 [details]
Guest XML

I am using Oz to build an image on Amazon EC2. I need to use libvirt/qemu with emulation because EC2 doesn't do nested virtualization.

I'm using latest Fedora 17. I've updated Oz to the latest upstream version, all other packages are unmodified.

When building an image, Oz bails out with the following error:

Traceback (most recent call last):
  File "/usr/bin/oz-install", line 7, in <module>
    execfile(__file__)
  File "/home/ec2-user/oz/oz-install", line 146, in <module>
    libvirt_xml = guest.install(timeout, force_download)
  File "/home/ec2-user/oz/oz/Guest.py", line 1534, in install
    return self._do_install(timeout, force, 0)
  File "/home/ec2-user/oz/oz/Guest.py", line 1515, in _do_install
    dom = self.libvirt_conn.createXML(xml, 0)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2420, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirt.libvirtError: internal error process exited while connecting to monitor: qemu-system-x86_64: -netdev tap,fd=22,id=hostnet0,vhost=on,vhostfd=23: vhost-net support is not compiled in
qemu-system-x86_64: -netdev tap,fd=22,id=hostnet0,vhost=on,vhostfd=23: vhost-net requested but could not be initialized
qemu-system-x86_64: -netdev tap,fd=22,id=hostnet0,vhost=on,vhostfd=23: Device 'tap' could not be initialized

I've also reported this to Oz upstream under this issue:

https://github.com/clalancette/oz/issues/47

However I think this is a libvirt bug. I haven't fully diagonized this but it appears that qemu-system-x86_64 is built without vhost support. However, libvirtd does pass a vhost=on parameter.

I've added the XML that Oz generated to create the guest.

Comment 1 Fedora End Of Life 2013-07-03 23:45:25 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Cole Robinson 2013-07-11 17:28:19 UTC
This doesn't appear to be an issue on F19, and since F17 is EOL very soon, just closing as CURRENTRELEASE.


Note You need to log in before you can comment on or make changes to this bug.