Project

General

Profile

Actions

Feature #12807

closed

Want option to explicitly set bhyve virtio disk serial number

Added by Andy Fiddaman 12 months ago. Updated about 11 hours ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bhyve
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
Actions #1

Updated by Electric Monk 11 months ago

  • Gerrit CR set to 714
Actions #2

Updated by Andy Fiddaman 11 days ago

Testing the new patch using an OmniOS guest:

-s 4:0,virtio-blk,/dev/zvol/rdsk/data/vm/bhyvetest/root,serial=918273645

and also in the configuration file format of:
pci.0.4.0.device=virtio-blk
pci.0.4.0.path=/dev/zvol/rdsk/data/vm/bhyvetest/root
pci.0.4.0.serial=918273645

the guest sees the manually configured serial number:

root@omnios:~# iostat -En
c1t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: Virtio Product: Block Device Revision: 0000 Serial No: 918273645
Size: 8.59GB <8589934592 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

The same thing works as expected using ser in place of serial (for consistency with AHCI and NVME, which both use ser).

Actions #3

Updated by Electric Monk about 11 hours ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit 4b82e532e7bf2c770ccd1f39cad0c7e91fdaedce

commit  4b82e532e7bf2c770ccd1f39cad0c7e91fdaedce
Author: Andy Fiddaman <omnios@citrus-it.co.uk>
Date:   2021-05-14T18:17:19.000Z

    12807 Want option to explicitly set bhyve virtio disk serial number
    Reviewed by: Patrick Mooney <pmooney@pfmooney.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF