Adding USB host device, USB drive to guest VM fails, mounts drive in Nautilus instead
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Oh, boy; this involves several systems.
Experienced in QEMU UI (Virtual Machine Manager). Guest OS (Windows) was running, tried to add "Add hardware"→"USB Host Device"→USB drive.
Expected result:
Guest OS (Windows) sees new USB device.
Actual result:
Some window flickering (apparently several things happening) and after that a Nautilus window opens and the drive is mounted in Ubuntu instead.
On the second attempt, results otherwise similar expect three (3) Nautilus windows open.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: qemu 1:2.5+dfsg-
ProcVersionSign
Uname: Linux 4.15.0-43-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Jan 31 11:30:56 2019
InstallationDate: Installed on 2018-01-10 (385 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
MachineType: LENOVO 20J7S02N00
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: qemu
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/28/2017
dmi.bios.vendor: LENOVO
dmi.bios.version: R0FET37W (1.17 )
dmi.board.
dmi.board.name: 20J7S02N00
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: ThinkPad T470p
dmi.product.name: 20J7S02N00
dmi.product.
dmi.sys.vendor: LENOVO
---
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
CurrentDesktop: Unity
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2018-01-10 (393 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
MachineType: LENOVO 20J7S02N00
Package: qemu 1:2.5+dfsg-
PackageArchitec
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
Tags: xenial
Uname: Linux 4.15.0-45-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip libvirtd lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 09/28/2017
dmi.bios.vendor: LENOVO
dmi.bios.version: R0FET37W (1.17 )
dmi.board.
dmi.board.name: 20J7S02N00
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: ThinkPad T470p
dmi.product.name: 20J7S02N00
dmi.product.
dmi.sys.vendor: LENOVO
Hi Eero,
when a device is passed to the guest then it is detached from the host before.
Once the passthrough is done it will be re-attached to the host.
If the device is - like in your case a USB drive - something that triggers actions in the host those will happen.
I assume what happens is:
- detaches from host
- tries to passthrough to the guest
- fails to passthrough
- re-attaches to the host
- nautilus popup triggered as if you'd plug in the USB drive
You can configure the host to not trigger such popups if that really is an issue.
But I have no idea why on a retry it would open multiple such windows thou.
The actual problem we need to solve IMHO is why the passthrough didn't work in the first place.
... reading your logs ...