[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Pas
From: |
Kelvin Middleton |
Subject: |
[Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough |
Date: |
Sun, 29 Mar 2015 20:45:58 -0000 |
Hey nickmaelao, your outputs show you've only changed the ownership of
the USB bus and not the USB device itself...I'd suspect if you looked at
'ls -la /dev/bus/usb/001/' then the actual USB device will still have
root ownership. Ergo if libvirtd is still creating the vm's with qemu
and a non-root user you will still have the problem.
chmod libvirt-qemu:kvm /dev/bus/usb/001/xxx (xxx being the USB device
numeber) should resolve.
Alternatively you could change /etc/libvirtd/qemu.conf and make libvirtd
create guests with qemu as the root user, look for the 'user = ' and
'group = ' lines. I can't comment on the risk associated to this so
you'll need to look into that yourself but I've taken this approach and
have no problems with USB attachment and I don't need to manually change
device ownerships.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504
Title:
libvirt not relabeling devices on USB Passthrough
Status in QEMU:
New
Status in libvirt package in Ubuntu:
Triaged
Bug description:
After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
any more. Already tried to remove and attach the USB devices. I use 1
USB2 HDD + 1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
virual FNAS machine and a USB 2camera to virtual Win7 machine. All
these devices are not working any more.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions
- [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough, Kelvin Middleton, 2015/03/27
- [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough, Kelvin Middleton, 2015/03/27
- [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough, Serge Hallyn, 2015/03/28
- [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough,
Kelvin Middleton <=
- [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough, Kelvin Middleton, 2015/03/29
- [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough, nickmaelao, 2015/03/30
- [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough, nickmaelao, 2015/03/30