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

Failed to lock byte 100 when starting with external disk image on SMB share #5757

Closed
phirestalker opened this issue Sep 30, 2023 · 17 comments
Closed
Milestone

Comments

@phirestalker
Copy link

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
I have an external USB drive added. The disk image file is stored on a samba share from my home server. When I start the VM, it immediately shows the error mentioned. There is a patch that may fix the issue when turning of file locking here: qemu/qemu@eb43ea1
If you do use this patch, how can I turn locking off as they mention?

Configuration

  • UTM Version: 4.1.1
  • macOS Version: 13.5.2
  • Mac Chip (Intel, M1, ...): M1

Crash log
No crash

Debug log
debug.log

Upload VM
config.plist.zip

@phirestalker
Copy link
Author

Turns out this is definitely about the file being on a samba share. I copied the file to a local external disk and the error does not happen.

@lvek4096
Copy link

This issue happens to me as well on macOS; not only on SMB shares, but also on NFS shares. The error is shown below:
Screenshot 2023-11-20 at 7 42 43 PM

However, this issue only appears on UTM versions 4.4 and above. I ran the same VMs on UTM v4.3.5 over SMB with no such issue.

My system configuration is as follows:
UTM: v4.4.3
macOS: Sonoma 14.1.1
Chip: Apple M2

@simplyAwizard
Copy link

This issue happens to me as well on macOS; not only on SMB shares, but also on NFS shares. The error is shown below: Screenshot 2023-11-20 at 7 42 43 PM

However, this issue only appears on UTM versions 4.4 and above. I ran the same VMs on UTM v4.3.5 over SMB with no such issue.

My system configuration is as follows: UTM: v4.4.3 macOS: Sonoma 14.1.1 Chip: Apple M2

Did you find a fix? I am having same problem...

@lvek4096
Copy link

This issue happens to me as well on macOS; not only on SMB shares, but also on NFS shares. The error is shown below: Screenshot 2023-11-20 at 7 42 43 PM
However, this issue only appears on UTM versions 4.4 and above. I ran the same VMs on UTM v4.3.5 over SMB with no such issue.
My system configuration is as follows: UTM: v4.4.3 macOS: Sonoma 14.1.1 Chip: Apple M2

Did you find a fix? I am having same problem...

No luck... The issue still persists and I am unable to find a fix for it.

@maason-kao
Copy link

FWIW: I encountered this issue on a Mac that did not have the latest update installed (Sonoma 14.2.1). Updating to the latest OS managed to resolve the issue.

Mac OS: 14.2.1
UTM: 4.4.5
Mac Chip: M2

I am using QEMU 7.2 ARM Virtual Machine to run Ubuntu 20.04.6 for a robotics class.

@rushimusmaximus
Copy link

FWIW: I encountered this issue on a Mac that did not have the latest update installed (Sonoma 14.2.1). Updating to the latest OS managed to resolve the issue.

Still happening for me in macOS Sonoma 14.2.1:

macOS: Sonoma 14.2.1
chip: Apple M2 Max
UTM: 4.4.5
VM: Windows 11 QEMU 7.2 ARM

Error:
QEMU error: QEMU exited from an error: qemu-aarch64-softmmu: -drive if=none,media=cdrom,id=drive5C178731-7D35-4F6F-B05B-3D22044D7C44,file=/[PATH/TO/WINDOWS_ISO/ON/SMB-MOUNTED/VOLUME],readonly=on: Failed to lock byte 100: Operation not supported

The error is only happening in this VM. I have another Linux VM that works fine.

@dogukansahil
Copy link

To resolve the QEMU error while installing Kali Linux on my Mac M1 using UTM, I created and used a local disk image instead of the direct ISO file. This method successfully bypassed the error and allowed a smooth installation. (Create a New Disk Image)

@caltonzhou
Copy link

caltonzhou commented Jan 31, 2024

I met same issue "Failed to lock byte 100" on mac when I try install Windows 10 via Win10_22H2_Chinese_Simplified_x64v1.iso. Then I right clicked the iso image file in finder, and chose open menu option to try magic authorize, and luckily it helps.

@CelineHarakee
Copy link

This issue happens to me as well on macOS; not only on SMB shares, but also on NFS shares. The error is shown below: Screenshot 2023-11-20 at 7 42 43 PM
However, this issue only appears on UTM versions 4.4 and above. I ran the same VMs on UTM v4.3.5 over SMB with no such issue.
My system configuration is as follows: UTM: v4.4.3 macOS: Sonoma 14.1.1 Chip: Apple M2

Did you find a fix? I am having same problem...

No luck... The issue still persists and I am unable to find a fix for it.

you can fix that by ejecting the CD/DVD

@osy osy added this to the v4.5 milestone Feb 26, 2024
@Yulian302
Copy link

Ejecting ISO Image from desktop worked for me. The problem dissapeared.

@mark88008
Copy link

Ejecting the ISO from the Mac Desktop was indeed the successful action! thanks!

@mercy-holdiness
Copy link

you can fix that by ejecting the CD/DVD

Ejecting worked well!!!! Thanks so much!

@mietzen
Copy link

mietzen commented May 22, 2024

I didn't mount the image, but still got the error. I needed the iso image to boot, so I converted it:

hdiutil convert ./ubuntu-24.04-live-server-arm64.iso -format UDRW -o ./ubuntu-24.04.img
mv ./ubuntu-24.04.img.dmg ./ubuntu-24.04.img

and then mount it as Disk Image:

image

That worked for me.

@alireza-abolhasani
Copy link

I resolved the same issue by moving the .iso file to desktop.

@filippofilip95
Copy link

Ejecting .iso image helped 👍

@a-ide
Copy link

a-ide commented Jun 29, 2024

I didn't mount the image, but still got the error. I needed the iso image to boot, so I converted it:

hdiutil convert ./ubuntu-24.04-live-server-arm64.iso -format UDRW -o ./ubuntu-24.04.img
mv ./ubuntu-24.04.img.dmg ./ubuntu-24.04.img

It worked in the end, but I got the below error.
So in case someone runs into it, here is the solution:

$ hdiutil convert ./hoge.iso -format UDRW -o ./hoge.img
hdiutil: convert failed Resource Temporarily Unavailable error
$ hdiutil attach ./hoge.iso

If you get any errors after executing attach, restart your computer.

@simontheu
Copy link

I moved the .iso out of the iCloud shared/cloud space and this stopped the issue.

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