maintainer-feedback requested: [Bug 252468] emulators/qemu-user-static: mount(8) cannot show root filesystem

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 6 12:21:16 UTC 2021


Bugzilla Automation <bugzilla at FreeBSD.org> has asked freebsd-emulation (Nobody)
<emulation at FreeBSD.org> for maintainer-feedback:
Bug 252468: emulators/qemu-user-static: mount(8) cannot show root filesystem
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252468



--- Description ---
Scenario:
- disk903: ZFS volume containing an amd64 FreeBSD head installation
- disk925: ZFS volume containing an armv6 FreeBSD head installation, exported
via iSCSI
- bhyve server running FreeBSD 12.2 (releng/12.2)
- bhyve client running from disk903 -> results in running VM "v903"
- in v903, the disk925 armv6 installation is imported using iSCSI and mounted
on /d/925s2a
- in v903, qemu-user-static is installed
- in v903, a chroot to /d/925s2a is done using

    chroot /d/925s2a/ zsh -l

- This results in a shell (zsh) running emulated armv6 binaries.
- (This setup is used to update armv6 ports using portmaster.)
- In this chroot, issue "mount -p /" and "df /".

Result:

[0]# mount -p /
mount: /: unknown special file or file system
[1]# df /
Filesystem		      1K-blocks    Used    Avail Capacity  Mounted on
/dev/diskid/DISK-HAL_V0925s2a  20289716 3970484 14696056    21%    /d/925s2a
[0]# 

Expected result:

[0]# mount -p /    
/dev/diskid/DISK-HAL_V0925s2a /d/925s2a 	 ufs	 rw    0 0
[0]# df /
Filesystem		      1K-blocks    Used    Avail Capacity  Mounted on
/dev/diskid/DISK-HAL_V0925s2a  20289716 3970484 14696056    21%    /d/925s2a
[0]# 

-- Martin


More information about the freebsd-emulation mailing list