UTM
UTM copied to clipboard
Setup wizard: add an option to make install media show up as USB, not as CD-ROM
The part of the setup wizard that lets you supply installation media only will set it up as a CD drive. It would be better to have the option: CD or USB. (Maybe on x86 you could get CD by default, and on ARM you could get USB by default.)
This would especially be helpful for ARM64 guests, where there is much less culture of booting from CD and instead people generally use USB/SD cards/etc.
The workaround is to bypass the wizard: create a guest with no install media whatsoever, then add your install media as a separate disk. I've seen this work when installing both OpenBSD and NetBSD.
I think on ARM it emulates a USB cd drive by default. What’s the problem?
Most ARM64 images I’ve found aren’t CDs, but disk images that you could dd to a USB stick or whatever. The default probably works for some images, just not the most common thing on the platform.
Can you give an example image that doesn’t work as a CD image so I can test it myself?
The standard OpenBSD 7.1 install image is one of them. As a disk image, it boots fine (with a couple modifications that I need to document, but they’re not relevant here). As a CDROM, you get dumped at the UEFI prompt.
As a disk image, it boots fine (with a couple modifications that I need to document, but they’re not relevant here).
@koenigdavidmj please document and/or provide a disk image 💌
The image is: https://cdn.openbsd.org/pub/OpenBSD/7.1/arm64/install71.img
Currently one can install this by doing:
- Select "Create a New Virtual Machine"
- Select "Virtualize"
- Select "Other"
- On the ISO page, select "Skip ISO boot"
- Keep the defaults for CPU count, RAM, disk size
- On the last page of the wizard, select "Open VM settings"
- On the QEMU page, disable "RNG Device" (this works around an OpenBSD bug)
- Select New Drive -> Import and select
install71.img
- Save and start the VM
- At the
boot>
prompt, typeset tty fb0
(this means "I want output on the screen, not the serial console"), then press Enter twice - Success: you see
Welcome to the OpenBSD/arm64 7.1 installation program.
My ideal procedure would be that that in step 4, you could select the .img file and click a checkbox that says "attach as disk, not as ISO". Obviously that's not my ideal phrasing. With this, you could skip step 8. The rest of this is OpenBSD-specific quirks, and I would imagine that most disk images could be installed with minimal special effort.
@koenigdavidmj thanks a lot! my attempt was missing:
- On the ISO page, select "Skip ISO boot"
hence never got to the prompt. now it's booting: