Date: Sat, 20 Jun 2020 09:21:00 +0900 From: Wanpeng Qian <wanpengqian@gmail.com> To: Rob Roy Gregg <rr@robroygregg.com> Cc: freebsd-virtualization@freebsd.org Subject: Re: Can bhyve pass disk vendor, model and serial values to guests? Message-ID: <CANBJ%2BxQ4V8oz5HTfk-PbFS9WT2BK26N3vQQ_b_1xHeFXV=9RZg@mail.gmail.com> In-Reply-To: <alpine.BSF.2.21.99999.352.2006191614450.33962@beak.h.net> References: <alpine.BSF.2.21.99999.352.2006191614450.33962@beak.h.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Gregg There is a patch for this, but you have to apply manually for 12.1R You can get it here https://reviews.freebsd.org/D24174 2020=E5=B9=B46=E6=9C=8820=E6=97=A5(=E5=9C=9F) 8:23 Rob Roy Gregg <rr@robroy= gregg.com>: > > FreeBSD Friends, > > I tried the forums and thought I'd ask here next; here's the thread: > > > https://forums.freebsd.org/threads/can-bhyve-pass-disk-vendor-model-and-s= erial-values-to-guests.75851/ > > This is on 12.1-RELEASE-p6. > > Can bhyve pass disks to guests in a way that preserves the disk's actual > vendor, model and serial values (as viewed from inside of the guest)? > > Here's how a passed-in disk looks inside the guest with ahci-hd emulation= : > > linux_in_bhyve# lsblk --output vendor,model,serial /dev/sda > VENDOR MODEL SERIAL > ATA BHYVE SATA DISK BHYVE-FC87-ABA5-711B > > And with virtio-blk emulation: > > linux_in_bhyve# lsblk -o vendor,model,serial /dev/vdb > VENDOR MODEL SERIAL > 0x1af4 > > Meanwhile, a similar disk configured on ESXi 5.5 U3b as a "pass-through > RDM" looks like this; this is what I'd like to see in the bhyve guest > also: > > linux_in_esxi# lsblk -o vendor,model,serial /dev/sdb > VENDOR MODEL SERIAL > HITACHI OPEN-V-CM 60060e801602a100000102a100000bba > > Thank you! > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to " > freebsd-virtualization-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANBJ%2BxQ4V8oz5HTfk-PbFS9WT2BK26N3vQQ_b_1xHeFXV=9RZg>
