Closed Marietto2008 closed 1 week ago
Opened a bug ticket on the FreeBSD bug tracker :
I see that you have:
Disk model: BHYVE SATA DISK
IIRC the https://github.com/balena-io-modules/drivelist module used by RPi Imager assumes that SATA drives are "internal", and to avoid the user accidentally overwriting their main HDD, it only lists drives that are identified as "removable". So maybe you need to get your "passed thru" drive to appear as a USB drive rather than a SATA drive?
Bhyve can't pass thru USB drives. Its a feature that hasn't been implemented yet. I think that a patch that convert the disk from SATA to USB is needed....or better,that allows to identify the disk as USB disk and not as SATA disk.
Thanks for the report, @Marietto2008
Unfortunately, there's no quick path to resolving this issue from our side.
In the longer term, we might look at adding a mechanism to stop excluding devices on the storage selection screen - but as this presents a hazard to new users and affects comparatively few users it's much lower on my priority list than the upcoming v1.9.0 targets.
Sometime ago I have reported the same problem,but for Rufus. Even Rufus didn't recognize the bhyve disks. The problem has been fixed by this commit :
https://github.com/pbatard/rufus/pull/2504
who knows,maybe it can be useful for you as an idea to implement in some way.
Thanks for the pointer, @Marietto2008
Unfortunately our linux target storage device filter works in a very different way - which is why I said there was no short path to resolution.
One thing that might help identify a resolution is to attach the output of the following command inside your VM:
lsblk --bytes --json --paths --output-all --exclude 7
Closing as stale.
Resolving this issue will require a degree of interactive debugging between myself and a FreeBSD user - and may only result in one emulated environment having the right behaviour, due to the nature of the DriveList code.
As I've had no feedback in a month, and I do not otherwise have access to FreeBSD, I'm making this as 'Stale' to focus on other features and the upcoming v1.9.0.
This is the right FreeBSD person who can help :
What happened?
Hello.
I'm running Ubuntu 24.04 virtualized with bhyve (BSD hypervisor) using these parameters :
Where /dev/$vmdisk15 is :
My intention was to write the Lineage OS to the sd card using the Raspberry PI Imager,without to rebooting and without using Linux natively. Well,it is not able to detect my sd card (that I have placed inside my SD card TO USB adapter).
The images below shows that the sd card passed through bhyve is not recognized by the RaspBerry Pi Imager,that freezes.
What can I do to unfreezes it ? Let us know,thanks.
Version
1.8.5 (Default)
What host operating system were you using?
Debian and derivatives (eg Ubuntu)
Host OS Version
24.04
Selected OS
Ubuntu 24.04
Which Raspberry Pi Device are you using?
Raspberry Pi 4B, 400, and Compute Modules 4, 4S
What kind of storage device are you using?
microSD Card in a USB reader
OS Customisation
Relevant log output