HARDISK SERIAL NUMBER
-
nehrualbania
- Posts: 1
- Joined: 2. May 2011, 08:27
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: MS Windows 2008
HARDISK SERIAL NUMBER
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
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
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: HARDISK SERIAL NUMBER
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.
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: HARDISK SERIAL NUMBER
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?
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: HARDISK SERIAL NUMBER
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.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: HARDISK SERIAL NUMBER
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
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
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
Cont.
Step by step to change serial number of VM to serial WD-WCAM9U768657 (Physical Hardisk Serial Number)
Step by step to change serial number of VM to serial WD-WCAM9U768657 (Physical Hardisk Serial Number)
-
jorgensen
- Posts: 589
- Joined: 20. Oct 2009, 01:22
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows
Re: HARDISK SERIAL NUMBER
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.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: HARDISK SERIAL NUMBER
@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
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.
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.