Hi,
Hello, I'm trying to attach another disk to an openbsd72 guest like so:
[snip]
bhyve -c 4 -m 16G -wuH \
-s 0,amd_hostbridge \
-s 3,virtio-blk,/dev/zvol/vms/openbsd64g \
-s 4,ahci-hd,/dev/zvol/vms/openbsd-externalfs0 \ <=== here
-s 5,virtio-net,tap14 \
-s 30,xhci,tablet \
-s 31,lpc -l com1,stdio -l
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
openbsd64g
[snip]
The vm starts fine. I can't see an additional sd* though so can't
initialise the disk. Also tried with virtio-hd same result
I tried this out with 7 disks, 6 added post-install, and OpenBSD 7.2 was
able to see them. Info appended.
What version is the FreeBSD host ? I tested on CURRENT.
later,
Peter.
----
obsd# uname -a
OpenBSD obsd.my.domain 7.2 GENERIC.MP#758 amd64
obsd# sysctl hw.diskcount
hw.diskcount=7
obsd# sysctl hw.disknames
hw.disknames=sd0:1cea78f56d1d055a,sd1:,sd2:,sd3:,sd4:,sd5:,sd6:
obsd#
obsd# dmesg | grep ^sd
sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, >
sd0: 30720MB, 512 bytes/sector, 62914560 sectors
sd1 at scsibus2 targ 0 lun 0: <ATA, BHYVE SATA DISK, 001>
t10.ATA_BHYVE_SATA_DISK_BHYVE-4CEC-08A5-9529
sd1: 1024MB, 512 bytes/sector, 2097152 sectors, thin
sd2 at scsibus3 targ 0 lun 0: <VirtIO, Block Device, >
sd2: 1024MB, 512 bytes/sector, 2097152 sectors
sd3 at scsibus4 targ 0 lun 0: <ATA, BHYVE SATA DISK, 001>
t10.ATA_BHYVE_SATA_DISK_BHYVE-DFA5-88DE-4C8F
sd3: 1024MB, 512 bytes/sector, 2097152 sectors, thin
sd4 at scsibus5 targ 0 lun 0: <VirtIO, Block Device, >
sd4: 1024MB, 512 bytes/sector, 2097152 sectors
sd5 at scsibus6 targ 0 lun 0: <VirtIO, Block Device, >
sd5: 1024MB, 512 bytes/sector, 2097152 sectors
sd6 at scsibus7 targ 0 lun 0: <VirtIO, Block Device, >
sd6: 1024MB, 512 bytes/sector, 2097152 sectors
bhyve \
-c 4 \
-s 0,hostbridge \
-s 5,virtio-blk,obsd_72.img \
-s 6,ahci-hd,obsd_test1.img \
-s 7,virtio-blk,obsd_test2.img \
-s 8,ahci-hd,obsd_test3.img \
-s 10,virtio-net,tap0 \
-s 9,fbuf,tcp=0.0.0.0:5900,wait \
-s 18,virtio-blk,obsd_test4.img \
-s 19,virtio-blk,obsd_test5.img \
-s 20,virtio-blk,obsd_test6.img \
-s 30,xhci,tablet \
-s 31,lpc \
-l com1,stdio \
-m 2G \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
-H -A -w obsd