From owner-freebsd-virtualization@freebsd.org Fri Jun 19 23:23:34 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CF6BC33C0A6 for ; Fri, 19 Jun 2020 23:23:34 +0000 (UTC) (envelope-from rr@robroygregg.com) Received: from mail.robroygregg.com (173-13-147-189-sfba.hfc.comcastbusiness.net [173.13.147.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49pZcP6HCYz3gpb for ; Fri, 19 Jun 2020 23:23:33 +0000 (UTC) (envelope-from rr@robroygregg.com) Received: from beak.h.net (beak.h.net [192.168.32.10]) by mail.robroygregg.com (OpenSMTPD) with ESMTP id 05dc1b05 for ; Fri, 19 Jun 2020 16:23:25 -0700 (PDT) Received: from localhost (rr@localhost) by beak.h.net (8.15.2/8.15.2/Submit) with ESMTP id 05JNNP73034194 for ; Fri, 19 Jun 2020 16:23:25 -0700 (PDT) (envelope-from rr@robroygregg.com) X-Authentication-Warning: beak.h.net: rr owned process doing -bs Date: Fri, 19 Jun 2020 16:23:25 -0700 (PDT) From: Rob Roy Gregg X-X-Sender: rr@beak.h.net To: freebsd-virtualization@freebsd.org Subject: Can bhyve pass disk vendor, model and serial values to guests? Message-ID: User-Agent: Alpine 2.21.99999 (BSF 352 2019-06-22) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 49pZcP6HCYz3gpb X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of rr@robroygregg.com has no SPF policy when checking 173.13.147.189) smtp.mailfrom=rr@robroygregg.com X-Spamd-Result: default: False [3.87 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.50)[0.497]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; NEURAL_SPAM_MEDIUM(0.51)[0.510]; NEURAL_SPAM_LONG(0.96)[0.965]; DMARC_NA(0.00)[robroygregg.com]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7922, ipnet:173.8.0.0/13, country:US]; SUBJECT_ENDS_QUESTION(1.00)[] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jun 2020 23:23:34 -0000 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-serial-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!