Actions
Feature #12807
closedWant option to explicitly set bhyve virtio disk serial number
Start date:
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:
Updated by Andy Fiddaman over 2 years 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
).
Updated by Electric Monk over 2 years 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