Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB drives always generate with removable=false #2320

Closed
conath opened this issue Feb 19, 2021 · 2 comments
Closed

USB drives always generate with removable=false #2320

conath opened this issue Feb 19, 2021 · 2 comments

Comments

@conath
Copy link
Contributor

conath commented Feb 19, 2021

Steps to reproduce:

  1. Create a VM
  2. Go to config => drives
  3. Create a new removable drive, hit done
  4. Change the new drive's Image Type to Disk Image and Interface to USB
  5. Save
  6. Go to Config => QEMU and see the issue.

Issue:

The generated QEMU parameter is as follows:

-device usb-storage,drive=driveX,removable=false

When it should be:

-device usb-storage,drive=driveX,removable=true

This issue prevents the VM from starting because QEMU rejects the config (error "Device needs media, but drive is empty" regardless of if an image has been selected with the Browse option). I have verified that manually specifying the removable=true resolves the issue.

@osy
Copy link
Contributor

osy commented Feb 19, 2021

Is this a new bug introduced in .21? I’ve definitely had it working before.

@conath
Copy link
Contributor Author

conath commented Feb 19, 2021

I'm not sure when it was introduced but I've experienced this for a while. Only happens with drives set to removable in the UI. If you import a disk image and change it to USB it works fine.

@osy osy closed this as completed in 42e9225 Feb 21, 2021
osy added a commit that referenced this issue Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants