Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jul 2024 18:30:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 280481] virtualization/bhyve: When bhyve virtualizes Linux Ubuntu,the Raspberry PI Imager does not recognizes any USB stick / sd card
Message-ID:  <bug-280481-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280481

            Bug ID: 280481
           Summary: virtualization/bhyve: When bhyve virtualizes Linux
                    Ubuntu,the Raspberry PI Imager does not recognizes any
                    USB stick / sd card
           Product: Base System
           Version: Unspecified
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: marietto2008@gmail.com

Created attachment 252338
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D252338&action=
=3Dedit
raspberry pi imager frozen when it should recognize the sd card passed thru
bhyve.

Hello.

I'm running Ubuntu 24.04 virtualized with bhyve using these parameters :

/usr/sbin/./bhyve-lin -S -c sockets=3D2,cores=3D2,threads=3D2 -m 8G -w -H -=
A \
-s 0,hostbridge \

-s
1,ahci-hd,/mnt/$vmdisk4'p2'/bhyve/img/Linux/Ubuntu-2404-Android.img,bootind=
ex=3D1
\

-s 2,ahci-hd,/dev/$vmdisk15 \

-s 8:0,passthru,2/0/0 \
-s 8:1,passthru,2/0/1 \
-s 8:2,passthru,2/0/2 \
-s 8:3,passthru,2/0/3 \
-s 11,hda,play=3D/dev/dsp,rec=3D/dev/dsp \
-s 13,virtio-net,tap9 \
-s 14,virtio-9p,sharename=3D/ \
-s 29,fbuf,tcp=3D0.0.0.0:5909,w=3D1600,h=3D950,wait \
-s 30,xhci,tablet \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd \
vm0:9 < /dev/null & sleep 2 && vncviewer 0:9


Where /dev/$vmdisk15 is :

Disk /dev/sdb: 953,68 GiB, 1024005767168 bytes, 2000011264 sectors
Disk model: BHYVE SATA DISK=20
Units: sectors of 1 * 512 =3D 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E0E79E7B-DC41-4DD7-9B8C-62B075FAF126

Dispositivo   Start       Fine    Settori   Size Tipo
/dev/sdb1      2048      34815      32768    16M ChromeOS kernel
/dev/sdb2     34816      67583      32768    16M ChromeOS kernel
/dev/sdb3     67584    1116159    1048576   512M Linux filesystem
/dev/sdb4   1116160 2000009215 1998893056 953,1G Linux filesystem

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 recogni=
zed
by the RaspBerry Pi Imager,that freezes.


What can I do to unfreezes it ? Let us know,thanks.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280481-27103>