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

Disable suspend/resume when no compatible disk image is loaded #310

Closed
BenjyWiener opened this issue Apr 26, 2020 · 9 comments
Closed

Disable suspend/resume when no compatible disk image is loaded #310

BenjyWiener opened this issue Apr 26, 2020 · 9 comments
Labels
enhancement New feature or request
Milestone

Comments

@BenjyWiener
Copy link

If UTM is exited while a VM is suspended, attempting to resume the VM after restarting UTM results in the following message:

QEMU exited from an error: qemu: info: Spice:
reds.c:3334:spice_server_remove_interface: remove
SPICE_INTERFACE_RECORD

After pressing "OK" UTM exits, and then the VM can be restarted normally.

To Reproduce

  1. Start a VM (this has happened for every VM I've tried, including TinyCore)
  2. Suspend the VM
  3. Exit UTM using the 'X' (alternatively, leave UTM in the background until iOS kills it)
  4. Relaunch UTM and attempt to resume the VM

Xcode debug output (from second run, trying to resume VM)
Xcode debug.log

Debug log
debug.log

Upload VM
TinyCore.utm.zip

@BenjyWiener BenjyWiener added the bug Something isn't working label Apr 26, 2020
@osy
Copy link
Contributor

osy commented Apr 26, 2020

Did you change any settings?

@BenjyWiener
Copy link
Author

No, these results are all from a fresh installation in the Simulator (but I get the same results on my device).

@osy
Copy link
Contributor

osy commented May 8, 2020

qemu: No block device supports snapshots

So the issue is that you don't have a HDD image. That's needed for suspend/resume. I will make this more clear in a future release.

@osy osy added enhancement New feature or request and removed bug Something isn't working labels May 8, 2020
@osy osy changed the title Error when trying to resume a suspended VM after UTM is exited and restarted Disable suspend/resume when no compatible disk image is loaded May 8, 2020
@BenjyWiener
Copy link
Author

What are the HDD requirements? On my VMs that do have an HDD image, I get the following line in the debug output:

qemu: Device ‘drive0’ is writable but does not support snapshots

The image is a raw disk image (created with UTM) mounted as a disk image on ide.

@osy
Copy link
Contributor

osy commented May 8, 2020

It needs to be qcow2

@BenjyWiener
Copy link
Author

Does UTM only create raw images, or does it go based on the provided file extension?

@osy
Copy link
Contributor

osy commented May 10, 2020

The creation supports two types. If you check the box it’s qcow2 otherwise it’s raw.

@BenjyWiener
Copy link
Author

Got it. This should probably be made more clear in the app. Especially since the placeholder text is “hda.img” (and raw images can be sparse). Should I open a new issue?

@osy
Copy link
Contributor

osy commented May 10, 2020

No need, I’ll use this issue to improve it.

@osy osy added this to the v1.0 RC3 milestone May 11, 2020
@osy osy closed this as completed in 4d1f583 May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants