Page 1 of 1
HARDISK SERIAL NUMBER
Posted: 10. May 2011, 10:07
by nehrualbania
i'm noob. pls. be gently.
i'm using the virtualbox 4.0.6 r71416
i have a virtual windowsxp created with a hardisk serial number VB3f326139-62e7f5f1 (default)
i want to change the serial number in to WD-WCAM9U768657 permanently.
what are the step by step to do this?
Pls. help guys.
Tnx in advance.
Sincerely,
Nehru
Re: HARDISK SERIAL NUMBER
Posted: 10. May 2011, 13:58
by mpack
Have you tried googling for this information? You are talking about how a particular guest OS interprets data stored on a disk drive - it really has nothing to do with VirtualBox.
Re: HARDISK SERIAL NUMBER
Posted: 10. May 2011, 19:41
by scottgus1
It sounds like nehrualbania wants to make the id code of the Virtualbox Hard drive for his VM (reads VBOX_HARDDISK on one of my VM's, the "VB" in his number sounds a lot like Virtualbox-generated) and make it read WD-WCAM9U768657 instead. Might not be able to do this with real hard disks (code might be burned into the disk's firmware), but since Virtualbox hard disks are really files, might it be possible to change the number that Virtualbox's "hard drive" file reports to the guest OS?
Re: HARDISK SERIAL NUMBER
Posted: 10. May 2011, 21:08
by mpack
The first number (the VBxxx one) looks like the 32bit signature burned into the MBR, with a meaningless "VB" prefix in front, probably just a registry convention. This signature would not be affected by changing the drive UUID in VBox. I have no idea what that second number is (the "WD-WCAMxxx" one). The formatting of the latter does not look related to that of the first number. It looks more like a app/CD key than a disk signature. The 32bit signature consists of hex digits, so can't be made to look like this, and it's too short for a UUID.
Re: HARDISK SERIAL NUMBER
Posted: 11. May 2011, 05:03
by BillG
I would say that the WD*** was from a Western Digital physical disk.
Re: HARDISK SERIAL NUMBER
Posted: 12. May 2011, 13:23
by mpack
If it can be done, then it would be done using the DMI config feature. See section 9.11 of user manual, also google for "dmidecode".
Re: HARDISK SERIAL NUMBER
Posted: 4. May 2012, 07:17
by nehru0001
VB Masters,
I'm still struggling to solve this.
I've purchased a customized simple database application long time ago that registered only in a particular hard disk serial WD-WCAM9U768657
I want to transfer this in a virtualbox (VM)
How can i do this using virtualbox
What are the step by step?
Pls. help guys. PLS.
Tnx in advance.
Sincerely,
Nehru
Re: HARDISK SERIAL NUMBER
Posted: 4. May 2012, 07:57
by nehru0001
Cont.
Step by step to change serial number of VM to serial WD-WCAM9U768657 (Physical Hardisk Serial Number)
Re: HARDISK SERIAL NUMBER
Posted: 4. May 2012, 08:35
by jorgensen
Configuring the hard disk vendor product data (VPD)
VirtualBox reports vendor product data for its virtual hard disks which consist of hard disk serial number, firmware revision and model number. These can be changed using the following commands:
VBoxManage setextradata "VM name"
"VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber" "serial"
VBoxManage setextradata "VM name"
"VBoxInternal/Devices/ahci/0/Config/Port0/FirmwareRevision" "firmware"
VBoxManage setextradata "VM name"
"VBoxInternal/Devices/ahci/0/Config/Port0/ModelNumber" "model"
The serial number is a 20 byte alphanumeric string, the firmware revision an 8 byte alphanumeric string and the model number a 40 byte alphanumeric string. Instead of "Port0" (referring to the first port), specify the desired SATA hard disk port.
The above commands apply to virtual machines with an AHCI (SATA) controller. The commands for virtual machines with an IDE controller are:
VBoxManage setextradata "VM name"
"VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/SerialNumber" "serial"
VBoxManage setextradata "VM name"
"VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/FirmwareRevision" "firmware"
VBoxManage setextradata "VM name"
"VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/ModelNumber" "model"
For hard disks it's also possible to mark the drive as having a non-rotational medium with:
VBoxManage setextradata "VM name"
"VBoxInternal/Devices/ahci/0/Config/Port0/NonRotational" "1"
Additional three parameters are needed for CD/DVD drives to report the vendor product data:
VBoxManage setextradata "VM name"
"VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIVendorId" "vendor"
VBoxManage setextradata "VM name"
"VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIProductId" "product"
VBoxManage setextradata "VM name"
"VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIRevision" "revision"
The vendor id is an 8 byte alphanumeric string, the product id an 16 byte alphanumeric string and the revision a 4 byte alphanumeric string. Instead of "Port0" (referring to the first port), specify the desired SATA hard disk port.
Re: HARDISK SERIAL NUMBER
Posted: 4. May 2012, 11:18
by mpack
@jorgensen: perhaps you should mention (for copyright reasons) that you are quoting the VirtualBox user manual, section 9.8.2. I wonder why you didn't just give the
online link.
Re: HARDISK SERIAL NUMBER
Posted: 5. May 2012, 03:42
by nehru0001
tnx for the help guys
I follow those procedures
C:\Program Files\Oracle\VirtualBox>vboxmanage setextradata xxx vboxinternal/devices/piix4ide/0/config/primarymaster/serial number "WD-WCAM9U768657"
C:\Program Files\Oracle\VirtualBox>vboxmanage getextradata xxx vboxinternal/devices/piix4ide/0/config/primarymaster/serial number
Value: WD-CAM9U768657
then i boot up my xp and use HARD DISK SERIAL NUMBER software to detect it
And still I got VB5a007997-64b59a38 serial number
Pls. help again guys.