-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Export QEMU command can't be executed #3744
Comments
Hi, sorry for the confusion but the command isn’t meant to be executable. You’re right in that we’ve made changes to QEMU so it won’t work as-is. That option is meant purely as a debugging/support mechanism to determine what’s happening “under the hood”. Advanced users can pick and choose the arguments they care about (say path to the disk image) but that’s about it. |
Aha, so the "running UTM headless" pointers that lead to that feature were a red herring. Understood. |
#2280 will be implemented in the next update |
Hi @osy would it be possible to modify the export QEMU command so that it uses the QEMU built by UTM? I have successfully migrated UTM VM's to QEMU, but it involves pulling out some of the options that the upstream QEMU complains about. It would be great if it were seamless. Thank you! |
Or that it sanitises the call to work with vanilla QEMU? |
Hi, commenting on a closed issue isn't recommended because it's unlikely to be seen. For the future, open a new discussion and feel free to tag me. Regarding the command export, it is provided mostly for as a debugging tool and for advanced users. There isn't an easy way to "sanitize" the output because we use a fork of QEMU with extra features, devices, etc. It is quite easy to manually strip those options when QEMU complains about it so it doesn't make sense to add a new option for 0.001% of the users who need to have that done for them. |
Describe the issue
I discovered this feature via this issue, by searching for "headless qemu UTM". I tried it out, on a simple VM that works fine when launched by UTM, but the command it exported didn't work.
First, the command issued an argument with a path to a non-exist terminal file/device:
I found that there was a pair of files ending in
.terminal.in
and.out
in that directory, so I tried editing the command to refer to the...terminal
prefix instead, and got this error:Thinking that perhaps the
qemu-system-aarch64
command UTM uses has added new drivers, I looked for the one run by UTM (by examining the output ofps auwwx
, and found this one:/Applications/UTM.app/Contents/Frameworks/qemu-aarch64-softmmu.framework/Versions/A/qemu-aarch64-softmmu
, but when I try to run that command, I getzsh: exec format error
. At this point I decided to chime in here.Configuration
Here's the complete (anonymized) exported command:
The text was updated successfully, but these errors were encountered: