1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 | <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
|
---|
3 | <topic xml:lang="en-us" id="changevpd">
|
---|
4 | <title>Configuring the Hard Disk Vendor Product Data (VPD)</title>
|
---|
5 |
|
---|
6 | <body>
|
---|
7 | <p><ph conkeyref="vbox-conkeyref-phrases/product-name"/> reports vendor product data for its virtual hard disks
|
---|
8 | which consist of hard disk serial number, firmware revision and model number. These can be changed using the
|
---|
9 | following commands: </p>
|
---|
10 | <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
11 | "VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber" "serial"
|
---|
12 | $ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
13 | "VBoxInternal/Devices/ahci/0/Config/Port0/FirmwareRevision" "firmware"
|
---|
14 | $ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
15 | "VBoxInternal/Devices/ahci/0/Config/Port0/ModelNumber" "model"</pre>
|
---|
16 | <p>The serial number is a 20 byte alphanumeric string, the firmware revision an 8 byte alphanumeric string and the
|
---|
17 | model number a 40 byte alphanumeric string. Instead of Port0, referring to the first port, specify the
|
---|
18 | required SATA hard disk port. </p>
|
---|
19 | <p>The above commands apply to virtual machines with an AHCI (SATA) controller. The commands for virtual machines
|
---|
20 | with an IDE controller are: </p>
|
---|
21 | <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
22 | "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/SerialNumber" "serial"
|
---|
23 | $ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
24 | "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/FirmwareRevision" "firmware"
|
---|
25 | $ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
26 | "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/ModelNumber" "model"</pre>
|
---|
27 | <p>For hard disks, you can mark the drive as having a nonrotational medium by using the following command: </p>
|
---|
28 | <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
29 | "VBoxInternal/Devices/ahci/0/Config/Port0/NonRotational" "1"</pre>
|
---|
30 | <p>Additional three parameters are needed for CD/DVD drives to report the vendor product data: </p>
|
---|
31 | <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
32 | "VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIVendorId" "vendor"
|
---|
33 | VBoxManage setextradata <varname>VM-name</varname> \
|
---|
34 | "VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIProductId" "product"
|
---|
35 | VBoxManage setextradata <varname>VM-name</varname> \
|
---|
36 | "VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIRevision" "revision"</pre>
|
---|
37 | <p>The vendor id is an 8 byte alphanumeric string, the product id an 16 byte alphanumeric string and the revision a
|
---|
38 | 4 byte alphanumeric string. Instead of Port0, referring to the first port, specify the required SATA hard
|
---|
39 | disk port. </p>
|
---|
40 | </body>
|
---|
41 |
|
---|
42 | </topic>
|
---|