Recently installed a software for research, you need to use the hard drive serial number to verify. Before the other server has been installed, if you can change the current hard disk's serial number and the original server's hard disk to match the lack of a lot of registration-related trouble. According to this idea, I found it in VBox's help.
9.5.3. Configuring the hard disk Vendor product data (VPD)
VirtualBox reports vendor product data for it virtual hard disks which consist of hard disk serial
Number, firmware revision and model number. These can changed using the following commands:
Change serial number
Vboxmanage setextradata "My VM" "Vboxinternal/devices/ahci/0/config/port0/serialnumber" "Serial"
Change firmware version
Vboxmanage setextradata "My VM" "Vboxinternal/devices/ahci/0/config/port0/firmwarerevision" "firmware"
Change supplier information
Vboxmanage setextradata "My VM" "Vboxinternal/devices/ahci/0/config/port0/modelnumber" "Model"
The above command is for the SATA interface hard disk, "My VM" is the name of the virtual machine, the AHCI table is the type of the hard disk, Port0 represents the first hard disk. If the IDE interface uses Primarymaster, Primaryslave, etc. to identify the hard disk, the type is piix3ide. For IDE interface Commands:
Vboxmanage setextradata "XP" "vboxinternal/devices/piix3ide/0/config/primarymaster/serialnumber "" 9ac00e9f "
Command meaning: Modify the virtual machine IDE's primary hard drive with the serial number 9ac00e9f
--------------------------------------------------------------------------------------------------------------- -------------==--
The above pro-test is feasible, but below. Virtualbox/machines/xp/xp. The XML file does not know where to find it. If any of the pro know, comment under tell me, thank you!!!
--------------------------------------------------------------------------------------------------------------- ----------------
After the command is executed, the configuration file corresponding to the virtual machine is modified. Virtualbox/machines/xp/xp. XML ", the corresponding settings are added under the <ExtraData> node, so you can actually modify the configuration file directly without the command, and the effect is the same.
<ExtraData>
<extradataitem name= "Gui/autoresizeguest" value= "on"/>
<extradataitem name= "Gui/fullscreen" value= "Off"/>
<extradataitem name= "gui/lastcloseaction" value= "PowerOff"/>
<extradataitem name= "gui/lastwindowpostion" value= "239,49,1024,816"/>
<extradataitem name= "gui/minitoolbaralignment" value= "Bottom"/>
<extradataitem name= "Gui/minitoolbarautohide" value= "on"/>
<extradataitem name= "Gui/savemountedatruntime" value= "yes"/>
<extradataitem name= "gui/seamless" value= "Off"/>
<extradataitem name= "Gui/showminitoolbar" value= "yes"/>
<extradataitem name= "Vboxinternal/devices/piix3ide/0/config/primaryslave/serialnumber" value= "9AC00E9F"/ >
</ExtraData>
Virtualbox Modifying the serial number of the hard drive, etc. example