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

QEMU Error when ISO is on network drive #6564

Closed
lazy-bob opened this issue Aug 16, 2024 · 0 comments
Closed

QEMU Error when ISO is on network drive #6564

lazy-bob opened this issue Aug 16, 2024 · 0 comments

Comments

@lazy-bob
Copy link

lazy-bob commented Aug 16, 2024

BEFORE SUBMITTING YOUR ISSUE, PLEASE LOOK AT THE PINNED ISSUES AND USE THE SEARCH FUNCTION TO MAKE SURE IT IS NOT ALREADY REPORTED. ALWAYS COMMENT ON AN EXISTING ISSUE INSTEAD OF MAKING A NEW ONE.

Describe the issue
QEMU error: QEMU exited from an error: qemu-x86_64-softmmu: -drive if=none,media=cdrom,id=driveD1A86380-2E38-4350-BD64-D0058252A566,file=/Volumes/usbshare2/iso-images/10/Win10_22H2_English_x64.iso,readonly=on: Failed to lock byte 100: Operation not supported

Configuration
MACOS Sonoma 14.6.1
32GB Ram
1TB SSD

  • UTM Version: 4.5.3
  • macOS Version: 14.6.1
  • Mac Chip (Intel, M1, ...): intel

Crash log
If the app crashed, you need a crash log. To get your crash log, open Console.app, go to Crash Reports, and find the latest entry for either UTM, QEMU, QEMUHelper, or qemu-*. Right click and choose Reveal in Finder. Attach the report here.

No Crash Log

Debug log
For all issues related to running a VM, including crashes, you should attach a debug log. (This is unavailable for macOS-on-macOS VMs. Attach an excerpt of your system log instead.)
To get the Debug log: open UTM, and open the settings for the VM you wish to launch. Near the top of the QEMU page is Debug Log. Turn it on and save the VM. After you experience the issue, open the VM settings again and select Export Log... and attach it here.

Launching: qemu-system-x86_64 -L /Applications/UTM.app/Contents/Resources/qemu -S -spice unix=on,addr=B3CE844D-72E3-4460-9036-1704C6DEC4B6.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=on -chardev spiceport,name=org.qemu.monitor.qmp.0,id=org.qemu.monitor.qmp -mon chardev=org.qemu.monitor.qmp,mode=control -nodefaults -vga none -device e1000,mac=A2:F1:47:DA:69:A0,netdev=net0 -netdev vmnet-shared,id=net0 -device virtio-vga-gl -smp cpus=4,sockets=1,cores=4,threads=1 -machine q35,vmport=off,i8042=off,hpet=off -accel hvf -global PIIX4_PM.disable_s3=1 -global ICH9-LPC.disable_s3=1 -m 8192 -audiodev spice,id=audio0 -device intel-hda -device hda-duplex,audiodev=audio0 -usb -device usb-tablet,bus=usb-bus.0 -device usb-mouse,bus=usb-bus.0 -device usb-kbd,bus=usb-bus.0 -device nec-usb-xhci,id=usb-controller-0 -chardev spicevmc,name=usbredir,id=usbredirchardev0 -device usb-redir,chardev=usbredirchardev0,id=usbredirdev0,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev2 -device usb-redir,chardev=usbredirchardev2,id=usbredirdev2,bus=usb-controller-0.0 -device ide-cd,bus=ide.0,drive=driveD1A86380-2E38-4350-BD64-D0058252A566,bootindex=0 -drive if=none,media=cdrom,id=driveD1A86380-2E38-4350-BD64-D0058252A566,file=/Volumes/usbshare2/iso-images/10/Win10_22H2_English_x64.iso,readonly=on -device ide-hd,bus=ide.1,drive=drive42E57D25-9625-401F-804E-FCA5700A9038,bootindex=1 -drive if=none,media=disk,id=drive42E57D25-9625-401F-804E-FCA5700A9038,file=/Users/user/Library/Containers/com.utmapp.UTM/Data/Documents/Windows.utm/Data/42E57D25-9625-401F-804E-FCA5700A9038.qcow2,discard=unmap,detect-zeroes=unmap -device virtio-serial -device virtserialport,chardev=org.qemu.guest_agent,name=org.qemu.guest_agent.0 -chardev spiceport,name=org.qemu.guest_agent.0,id=org.qemu.guest_agent -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -device virtserialport,chardev=charchannel1,id=channel1,name=org.spice-space.webdav.0 -chardev spiceport,name=org.spice-space.webdav.0,id=charchannel1 -name Windows -uuid B3CE844D-72E3-4460-9036-1704C6DEC4B6 -rtc base=localtime -device virtio-rng-pci
2024-08-16 18:36:08,573 DEBUG GSpice-../src/spice-session.c:1835 no migration in progress
2024-08-16 18:36:08,574 INFO Spice-../src/channel-main.c:342:spice_main_set_property: SpiceMainChannel::color-depth has been deprecated. Property is ignored
2024-08-16 18:36:08,574 DEBUG GSpice-../src/spice-channel.c:142 main-1:0: spice_channel_constructed
2024-08-16 18:36:08,574 DEBUG GSpice-../src/spice-session.c:2330 main-1:0: new main channel, switching
2024-08-16 18:36:08,574 DEBUG (null)-/Users/runner/Library/Developer/Xcode/DerivedData/UTM-gnwjeapbifchcjczzvitjgckdhnq/SourcePackages/checkouts/CocoaSpice/Sources/CocoaSpice/CSConnection.m:180 new channel (#0)
2024-08-16 18:36:08,574 DEBUG (null)-/Users/runner/Library/Developer/Xcode/DerivedData/UTM-gnwjeapbifchcjczzvitjgckdhnq/SourcePackages/checkouts/CocoaSpice/Sources/CocoaSpice/CSConnection.m:183 new main channel
2024-08-16 18:36:08,574 DEBUG (null)-/Users/runner/Library/Developer/Xcode/DerivedData/UTM-gnwjeapbifchcjczzvitjgckdhnq/SourcePackages/checkouts/CocoaSpice/Sources/CocoaSpice/CSConnection.m:186 [CocoaSpice] cs_channel_new:186
2024-08-16 18:36:08,574 DEBUG (null)-/Users/runner/Library/Developer/Xcode/DerivedData/UTM-gnwjeapbifchcjczzvitjgckdhnq/SourcePackages/checkouts/CocoaSpice/Sources/CocoaSpice/CSSession.m:249 Changing main channel from 0x0 to 0x7fe286179ea0
2024-08-16 18:36:08,574 DEBUG GSpice-../src/spice-channel.c:2718 main-1:0: Open coroutine starting 0x7fe286179ea0
2024-08-16 18:36:08,574 DEBUG GSpice-../src/spice-channel.c:2542 main-1:0: Started background coroutine 0x7fe286179ca8
2024-08-16 18:36:08,574 DEBUG GSpice-../src/spice-session.c:2267 main-1:0: Using plain text, port 0
2024-08-16 18:36:08,574 DEBUG GSpice-../src/spice-session.c:2190 open unix path B3CE844D-72E3-4460-9036-1704C6DEC4B6.spice
2024-08-16 18:36:08,574 DEBUG GSpice-../src/spice-session.c:2120 main-1:0: connecting 0x11b781de8...
2024-08-16 18:36:08,575 DEBUG GLib-GIO-GSocketClient: Starting new address enumeration
2024-08-16 18:36:08,575 DEBUG GLib-GIO-GSocketClient: Address enumeration succeeded
2024-08-16 18:36:08,575 DEBUG GLib-GIO-GSocketClient: Starting TCP connection attempt
2024-08-16 18:36:08,575 DEBUG GLib-GIO-GSocketClient: Connection attempt failed: Connection refused
2024-08-16 18:36:08,575 DEBUG GLib-GIO-GSocketClient: Starting new address enumeration
2024-08-16 18:36:08,575 DEBUG GLib-GIO-GSocketClient: Address enumeration completed (out of addresses)
2024-08-16 18:36:08,575 DEBUG GLib-GIO-GSocketClient: Address enumeration failed: (null)
2024-08-16 18:36:08,575 DEBUG GLib-GIO-GSocketClient: Connection failed: Could not connect: Connection refused
2024-08-16 18:36:08,575 DEBUG GSpice-../src/spice-session.c:2104 main-1:0: connect ready
2024-08-16 18:36:08,575 DEBUG GSpice-../src/spice-session.c:2279 main-1:0: open host: Could not connect: Connection refused
2024-08-16 18:36:08,575 DEBUG GSpice-../src/spice-channel.c:2572 main-1:0: Connect error
2024-08-16 18:36:08,575 DEBUG GSpice-../src/spice-channel.c:2691 main-1:0: Coroutine exit main-1:0
2024-08-16 18:36:08,575 DEBUG GSpice-../src/spice-channel.c:2881 main-1:0: reset
2024-08-16 18:36:08,575 DEBUG GSpice-../src/channel-main.c:1590 agent connected: no
2024-08-16 18:36:08,575 DEBUG (null)-/Users/runner/Library/Developer/Xcode/DerivedData/UTM-gnwjeapbifchcjczzvitjgckdhnq/SourcePackages/checkouts/CocoaSpice/Sources/CocoaSpice/CSConnection.m:139 [CocoaSpice] SPICE agent connected: 0
2024-08-16 18:36:08,576 DEBUG GSpice-../src/spice-channel.c:2829 main-1:0: channel reset
2024-08-16 18:36:08,576 DEBUG GSpice-../src/spice-channel.c:2430 main-1:0: Delayed unref channel 0x7fe286179ea0
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.614: ../server/reds.c:2987:reds_config_set_image_compression: ic off
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.614: ../server/reds.c:4398:spice_server_set_seamless_migration: seamless migration enabled=0
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.614: ../server/reds.c:3485:do_spice_init: starting 0.14.3
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.615: ../server/char-device.c:688:red_char_device_reset_dev_instance: sin 0x0, char device 0x7f9b6788a1c0
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.615: main:0 (0x7f9b6788c090): thread_id 0x7ff85444bdc0
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.615: inputs:0 (0x7f9b6788b140): thread_id 0x7ff85444bdc0
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.615: ../server/reds.c:3423:spice_server_add_interface: SPICE_INTERFACE_MIGRATION
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.615: ../server/reds.c:3330:spice_server_add_interface: SPICE_INTERFACE_KEYBOARD
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.615: ../server/reds.c:3341:spice_server_add_interface: SPICE_INTERFACE_MOUSE
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.712: ../server/reds.c:3244:spice_server_char_device_add_interface: CHAR_DEVICE port
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.712: port:0 (0x7f9b5586e080): thread_id 0x7ff85444bdc0
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.712: ../server/char-device.c:688:red_char_device_reset_dev_instance: sin 0x600002fe4560, char device 0x7f9b6788b230
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.712: ../server/char-device.c:797:red_char_device_start: char device 0x7f9b6788b230
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.712: ../server/reds.c:3244:spice_server_char_device_add_interface: CHAR_DEVICE port
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.712: port:1 (0x7f9b5586e130): thread_id 0x7ff85444bdc0
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.712: ../server/char-device.c:688:red_char_device_reset_dev_instance: sin 0x600002fe4920, char device 0x7f9b6788b2f0
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.712: ../server/char-device.c:797:red_char_device_start: char device 0x7f9b6788b2f0
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.712: ../server/reds.c:3244:spice_server_char_device_add_interface: CHAR_DEVICE port
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.712: webdav:0 (0x7f9b5586e1e0): thread_id 0x7ff85444bdc0
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.712: ../server/char-device.c:688:red_char_device_reset_dev_instance: sin 0x600002fe4b00, char device 0x7f9b6788b3b0
(qemu-x86_64-softmmu:37153): Spice-DEBUG: 18:36:08.712: ../server/char-device.c:797:red_char_device_start: char device 0x7f9b6788b3b0
qemu-x86_64-softmmu: -drive if=none,media=cdrom,id=driveD1A86380-2E38-4350-BD64-D0058252A566,file=/Volumes/usbshare2/iso-images/10/Win10_22H2_English_x64.iso,readonly=on: Failed to lock byte 100: Operation not supported
2024-08-16 18:36:09,594 DEBUG GSpice-../src/spice-channel.c:2898 main-1:0: channel disconnect 0
2024-08-16 18:36:09,595 DEBUG GSpice-../src/spice-session.c:1835 no migration in progress
2024-08-16 18:36:09,595 DEBUG (null)-/Users/runner/Library/Developer/Xcode/DerivedData/UTM-gnwjeapbifchcjczzvitjgckdhnq/SourcePackages/checkouts/CocoaSpice/Sources/CocoaSpice/CSConnection.m:397 [CocoaSpice] -[CSConnection dealloc]:397
2024-08-16 18:36:09,595 DEBUG GSpice-../src/spice-channel.c:2718 main-1:0: Open coroutine starting 0x7fe286179ea0
2024-08-16 18:36:09,595 DEBUG GSpice-../src/spice-channel.c:2542 main-1:0: Started background coroutine 0x7fe286179ca8
2024-08-16 18:36:09,595 DEBUG GSpice-../src/spice-session.c:2267 main-1:0: Using plain text, port 0
2024-08-16 18:36:09,595 DEBUG (null)-/Users/runner/Library/Developer/Xcode/DerivedData/UTM-gnwjeapbifchcjczzvitjgckdhnq/SourcePackages/checkouts/CocoaSpice/Sources/CocoaSpice/CSConnection.m:266 [CocoaSpice] cs_channel_destroy:266
2024-08-16 18:36:09,595 DEBUG GSpice-../src/spice-session.c:2190 open unix path B3CE844D-72E3-4460-9036-1704C6DEC4B6.spice
2024-08-16 18:36:09,596 DEBUG (null)-/Users/runner/Library/Developer/Xcode/DerivedData/UTM-gnwjeapbifchcjczzvitjgckdhnq/SourcePackages/checkouts/CocoaSpice/Sources/CocoaSpice/CSConnection.m:267 zap main channel
2024-08-16 18:36:09,596 DEBUG GSpice-../src/spice-session.c:2120 main-1:0: connecting 0x11b781de8...
2024-08-16 18:36:09,596 DEBUG GLib-GIO-GSocketClient: Starting new address enumeration
2024-08-16 18:36:09,596 DEBUG GLib-GIO-GSocketClient: Address enumeration succeeded
2024-08-16 18:36:09,596 DEBUG (null)-/Users/runner/Library/Developer/Xcode/DerivedData/UTM-gnwjeapbifchcjczzvitjgckdhnq/SourcePackages/checkouts/CocoaSpice/Sources/CocoaSpice/CSSession.m:323 [CocoaSpice] -[CSSession dealloc]:323
2024-08-16 18:36:09,596 DEBUG GLib-GIO-GSocketClient: Starting TCP connection attempt
2024-08-16 18:36:09,596 DEBUG GLib-GIO-GSocketClient: Connection attempt failed: Connection refused
2024-08-16 18:36:09,596 DEBUG GLib-GIO-GSocketClient: Starting new address enumeration
2024-08-16 18:36:09,597 DEBUG GLib-GIO-GSocketClient: Address enumeration completed (out of addresses)
2024-08-16 18:36:09,597 DEBUG GLib-GIO-GSocketClient: Address enumeration failed: (null)
2024-08-16 18:36:09,597 DEBUG GLib-GIO-GSocketClient: Connection failed: Could not connect: Connection refused
2024-08-16 18:36:09,597 DEBUG GSpice-../src/spice-session.c:2104 main-1:0: connect ready
2024-08-16 18:36:09,597 DEBUG GSpice-../src/spice-session.c:2279 main-1:0: open host: Could not connect: Connection refused
2024-08-16 18:36:09,597 DEBUG GSpice-../src/spice-channel.c:2572 main-1:0: Connect error
2024-08-16 18:36:09,597 DEBUG GSpice-../src/spice-channel.c:2691 main-1:0: Coroutine exit main-1:0
2024-08-16 18:36:09,597 DEBUG GSpice-../src/spice-channel.c:2881 main-1:0: reset
2024-08-16 18:36:09,597 DEBUG GSpice-../src/channel-main.c:1590 agent connected: no
2024-08-16 18:36:09,598 DEBUG GSpice-../src/spice-channel.c:2829 main-1:0: channel reset
2024-08-16 18:36:09,598 DEBUG GSpice-../src/spice-channel.c:2430 main-1:0: Delayed unref channel 0x7fe286179ea0

Upload VM
If your issue is related to a specific VM, please upload the config.plist from your VM's .utm directory. To get this, right-click the VM in UTM and choose "Show in Finder". Then right-click the selected file in Finder and choose "Show Package Contents". The config.plist file is now visible. Right-click it and choose "Compress". Attach the resulting config.plist.zip file here.
You can upload the entire .utm if needed, but note this includes your VM's drive image and may contain personal data. Since Github has an attachment size limit, you may want to upload to another service such as Google Drive. Link it here. Not specific to any VM

To avoid the issue, move the iso image to a local MacOS drive. I can mount the iso on my Mac I made sure UTM had full disk access.

@osy osy closed this as completed in c197864 Aug 23, 2024
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

1 participant