You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regarding #539, a disk image needs to be created. However, this approach is not suitable when we want the guestOS to directly access existing devices in the /dev directory, such as USB devices. Instead, we should allow specifying the path directly within the /dev directory, like /dev/sda2.
To achieve this, the current method of determining the disk image size using the fstat utility works well for disk images but is not applicable for devices like /dev/x. Therefore, ioctl should be used to retrieve the actual size of the /dev/x device.
Additionally, since exFAT is not natively supported on Linux, the exFAT (FUSE) utility (mount.exfat) should be installed on the guestOS. Moreover, the FUSE driver for Linux (Filesystem in Userspace) shall be enabled.
With these changes, my 8 GiB pendrive formatted with exFAT will be recognized by the guestOS.
The user may not always have a disk image but might have a /dev/x block
device, such as a USB drive that they want to share with the guest OS.
So, allowing this type of virtio-blk source is intuitive. To support
this, ioctl is used to retrieve the actual size of the /dev/x block
device. This implementation supports both Apple and Linux platforms.
Closesysprog21#544
Regarding #539, a disk image needs to be created. However, this approach is not suitable when we want the guestOS to directly access existing devices in the /dev directory, such as USB devices. Instead, we should allow specifying the path directly within the /dev directory, like /dev/sda2.
To achieve this, the current method of determining the disk image size using the
fstat
utility works well for disk images but is not applicable for devices like /dev/x. Therefore,ioctl
should be used to retrieve the actual size of the /dev/x device.Additionally, since exFAT is not natively supported on Linux, the exFAT (FUSE) utility (
mount.exfat
) should be installed on the guestOS. Moreover, the FUSE driver for Linux (Filesystem in Userspace) shall be enabled.With these changes, my 8 GiB pendrive formatted with exFAT will be recognized by the guestOS.
Reproduce:
Boot log:
The text was updated successfully, but these errors were encountered: