app-emulation/qemu missing virtfs use flag [Solved]

Discussion for all VM - Installing, Software, Problems

Moderator: Moderators

app-emulation/qemu missing virtfs use flag [Solved]

Postby imaginasys » Wed Feb 05, 2014 20:45

I was unable to setup a share filesystem between my sabayon host and a ubuntu guest machine under kvm & libvirt.

All settings I could try would give that error message:

Code: Select all
Erreur lors du démarrage du domaine: internal error: process exited while connecting to monitor: qemu-system-x86_64: -device virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=public,bus=pci.0,addr=0x9: Parameter 'driver' expects device type

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 96, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 117, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1090, in startup
    self._backend.create()
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 708, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: internal error: process exited while connecting to monitor: qemu-system-x86_64: -device virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=public,bus=pci.0,addr=0x9: Parameter 'driver' expects device type


After a few googling I found out someone with gentoo with the same problem. The cause of the problem is a missing use flag "virtfs" is not activated in the sabayon binary version.

The following flags are active on the sabayon package:

Code: Select all
trebe03@m193543s ~ $ equery u app-emulation/qemu
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for app-emulation/qemu-1.6.1:
 U I
 + + accessibility                     : Adds support for braille displays using brltty
 + - aio                               : Enables support for Linux's Async IO
 + + alsa                              : Enable alsa output for sound emulation
 + + bluetooth                         : Enable Bluetooth Support
 + - caps                              : Use Linux capabilities library to control privilege
 + - curl                              : Support ISOs / -cdrom directives vis HTTP or HTTPS.
 - - debug                             : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful
                                         backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
 + - fdt                               : Enables firmware device tree support
 + - filecaps                          : Use Linux file capabilities to control privilege rather than set*id
 - - glusterfs                         : Enables GlusterFS cluster fileystem via sys-cluster/glusterfs
 + + gtk                               : Add support for x11-libs/gtk+ (The GIMP Toolkit)
 - - iscsi                             : Enable direct iSCSI support via net-libs/libiscsi instead of indirectly via the Linux block layer
                                         that sys-block/open-iscsi does.
 + + jpeg                              : Enable jpeg image support for the VNC console server
 - - mixemu                            : Enable audio mixer emulation. On Fedora, known to cause performance problems when using SDL
                                         output and ALSA. For OSS, locks the sound device from other applications.
 + + ncurses                           : Enable the ncurses-based console
 + + opengl                            : Add support for OpenGL (3D graphics)
 + + png                               : Enable png image support for the VNC console server
 + + pulseaudio                        : Enable pulseaudio output for sound emulation
 + + python                            : Add optional support/bindings for the Python language
 - - python_targets_python2_6          : Build with Python 2.6
 + + python_targets_python2_7          : Build with Python 2.7
 - - qemu_softmmu_targets_alpha        : system emulation target
 + + qemu_softmmu_targets_arm          : system emulation target
 + + qemu_softmmu_targets_cris         : system emulation target
 + + qemu_softmmu_targets_i386         : system emulation target
 - - qemu_softmmu_targets_lm32         : LatticeMico32 system emulation target
 + + qemu_softmmu_targets_m68k         : system emulation target
 + + qemu_softmmu_targets_microblaze   : system emulation target
 - - qemu_softmmu_targets_microblazeel : system emulation target
 + + qemu_softmmu_targets_mips         : system emulation target
 + + qemu_softmmu_targets_mips64       : system emulation target
 + + qemu_softmmu_targets_mips64el     : system emulation target
 + + qemu_softmmu_targets_mipsel       : system emulation target
 - - qemu_softmmu_targets_moxie        : moxielogic system emulation target
 - - qemu_softmmu_targets_or32         : OpenRISC system emulation target
 + + qemu_softmmu_targets_ppc          : system emulation target
 + + qemu_softmmu_targets_ppc64        : system emulation target
 + + qemu_softmmu_targets_ppcemb       : system emulation target
 - - qemu_softmmu_targets_s390x        : system emulation target
 + + qemu_softmmu_targets_sh4          : system emulation target
 + + qemu_softmmu_targets_sh4eb        : system emulation target
 + + qemu_softmmu_targets_sparc        : system emulation target
 + + qemu_softmmu_targets_sparc64      : system emulation target
 - - qemu_softmmu_targets_unicore32    : system emulation target
 + + qemu_softmmu_targets_x86_64       : system emulation target
 - - qemu_softmmu_targets_xtensa       : system emulation target
 - - qemu_softmmu_targets_xtensaeb     : system emulation target
 + + qemu_user_targets_alpha           : userspace emulation target
 + + qemu_user_targets_arm             : userspace emulation target
 + + qemu_user_targets_armeb           : userspace emulation target
 + + qemu_user_targets_cris            : userspace emulation target
 + + qemu_user_targets_i386            : userspace emulation target
 + + qemu_user_targets_m68k            : userspace emulation target
 + + qemu_user_targets_microblaze      : userspace emulation target
 - - qemu_user_targets_microblazeel    : userspace emulation target
 + + qemu_user_targets_mips            : userspace emulation target
 - - qemu_user_targets_mips64          : userspace emulation target
 - - qemu_user_targets_mips64el        : userspace emulation target
 + + qemu_user_targets_mipsel          : userspace emulation target
 - - qemu_user_targets_mipsn32         : MIPS N32 ABI userspace emulation target
 - - qemu_user_targets_mipsn32el       : MIPS N32 ABI LE userspace emulation target
 - - qemu_user_targets_or32            : OpenRISC userspace emulation target
 + + qemu_user_targets_ppc             : userspace emulation target
 + + qemu_user_targets_ppc64           : userspace emulation target
 + + qemu_user_targets_ppc64abi32      : userspace emulation target
 - - qemu_user_targets_s390x           : userspace emulation target
 + + qemu_user_targets_sh4             : userspace emulation target
 + + qemu_user_targets_sh4eb           : userspace emulation target
 + + qemu_user_targets_sparc           : userspace emulation target
 + + qemu_user_targets_sparc32plus     : userspace emulation target
 + + qemu_user_targets_sparc64         : userspace emulation target
 - - qemu_user_targets_unicore32       : userspace emulation target
 + + qemu_user_targets_x86_64          : userspace emulation target
 - - rbd                               : Enable rados block device backend support, see http://ceph.newdream.net/wiki/QEMU-RBD
 - - sasl                              : Add support for the Simple Authentication and Security Layer
 + + sdl                               : Enable the SDL-based console
 + - seccomp                           : Utilize sys-libs/libseccomp to enable kernel filtering of system calls to prevent malicious
                                         guests from doing damage.
 - - smartcard                         : Enable smartcard support
 + - spice                             : Enable Spice protocol support via app-emulation/spice
 - - ssh                               : Enable SSH based block device support via net-libs/libssh2
 - - static                            : Enables both 'static-softmmu' and 'static-user'
 - - static-softmmu                    : Builds the Software MMU (system) targets as static binaries
 - - static-user                       : Build the User targets as static binaries
 - - systemtap                         : Enable SystemTAP/DTrace tracing
 - - tci                               : Enable the TCG Interpreter which can speed up or slowdown workloads depending on the host and
                                         guest CPUs being emulated. In the future it will be a runtime option but for now its compile
                                         time.
 - - test                              : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this
                                         internally, so don't set it in make.conf/package.use anymore
 + - threads                           : Add threads support for various packages. Usually pthreads
 - - tls                               : Enable TLS support for the VNC console server. For 1.4 and newer this also enables WebSocket
                                         support.
 + + usb                               : Enable USB passthrough via dev-libs/libusbx
 - - usbredir                          : Use sys-apps/usbredir to redirect USB devices to another machine over TCP
 + - uuid                              : Enable UUID support in the vdi block driver
 - - vde                               : Enable VDE-based networking
 + - vhost-net                         : Enable accelerated networking using vhost-net, see http://www.linux-kvm.org/page/VhostNet
 - - virtfs                            : Enable VirtFS via virtio-9p-pci / fsdev. See http://wiki.qemu.org/Documentation/9psetup
 + - vnc                               : Enable VNC (remote desktop viewer) support
 - - xattr                             : Add support for getting and setting POSIX extended attributes, through sys-apps/attr. Requisite
                                         for the virtfs backend.
 - - xen                               : Enables support for Xen backends
 + + xfs                               : Support xfsctl() notification and syncing for XFS backed virtual disks.


And it confirm that the use flag "virtfs" is not active in the sabayon package.

Am I alone to have the need to share file between a host and a guest ?

Is there a way to ask to add this use flag for the sabayon package ?

Otherwise I will have to use portage to install qemu :? And I use Sabayon mostly to save compilation time! :cry:

Regards,
Bernard :mrgreen:
Last edited by imaginasys on Wed Mar 12, 2014 16:59, edited 1 time in total.
imaginasys
Simple Hen
 
Posts: 51
Joined: Sat Nov 23, 2013 6:59

Re: app-emulation/qemu missing virtfs use flag

Postby imaginasys » Wed Mar 12, 2014 16:58

OK Someone added the virtfs flag back!

I will close this. :mrgreen:
imaginasys
Simple Hen
 
Posts: 51
Joined: Sat Nov 23, 2013 6:59


Return to Virtual Managers

Who is online

Users browsing this forum: No registered users and 0 guests