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>
|
---|
8 | <ph conkeyref="vbox-conkeyref-phrases/product-name"/> reports vendor product data for its virtual hard
|
---|
9 | disks which consist of hard disk serial number, firmware
|
---|
10 | revision and model number. These can be changed using the
|
---|
11 | following commands:
|
---|
12 | </p>
|
---|
13 | <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
14 | "VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber" "serial"
|
---|
15 | $ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
16 | "VBoxInternal/Devices/ahci/0/Config/Port0/FirmwareRevision" "firmware"
|
---|
17 | $ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
18 | "VBoxInternal/Devices/ahci/0/Config/Port0/ModelNumber" "model"</pre>
|
---|
19 | <p> The serial number is a 20 byte alphanumeric string, the firmware revision an 8 byte
|
---|
20 | alphanumeric string and the model number a 40 byte alphanumeric string. Instead of
|
---|
21 | Port0, referring to the first port, specify the required SATA hard disk port. </p>
|
---|
22 | <p>
|
---|
23 | The above commands apply to virtual machines with an AHCI (SATA)
|
---|
24 | controller. The commands for virtual machines with an IDE
|
---|
25 | controller are:
|
---|
26 | </p>
|
---|
27 | <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
28 | "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/SerialNumber" "serial"
|
---|
29 | $ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
30 | "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/FirmwareRevision" "firmware"
|
---|
31 | $ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
32 | "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/ModelNumber" "model"</pre>
|
---|
33 | <p> For hard disks, you can mark the drive as having a nonrotational medium by using the
|
---|
34 | following command: </p>
|
---|
35 | <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
36 | "VBoxInternal/Devices/ahci/0/Config/Port0/NonRotational" "1"</pre>
|
---|
37 | <p>
|
---|
38 | Additional three parameters are needed for CD/DVD drives to
|
---|
39 | report the vendor product data:
|
---|
40 | </p>
|
---|
41 | <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> \
|
---|
42 | "VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIVendorId" "vendor"
|
---|
43 | VBoxManage setextradata <varname>VM-name</varname> \
|
---|
44 | "VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIProductId" "product"
|
---|
45 | VBoxManage setextradata <varname>VM-name</varname> \
|
---|
46 | "VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIRevision" "revision"</pre>
|
---|
47 | <p> The vendor id is an 8 byte alphanumeric string, the product id an 16 byte alphanumeric
|
---|
48 | string and the revision a 4 byte alphanumeric string. Instead of Port0, referring to the
|
---|
49 | first port, specify the required SATA hard disk port. </p>
|
---|
50 | </body>
|
---|
51 |
|
---|
52 | </topic>
|
---|