serial number hardware

This is for discussing general topics about how to use VirtualBox.
Post Reply
serejka
Posts: 7
Joined: 22. Jun 2017, 18:27

serial number hardware

Post by serejka »

tell me why, in VirtualBox the serial number of the hard disk is not as on real hardware?

Win32_DiskDrive wmi

on real hardware 2020202020202020202020204338525432323356

on hardware virtualbox 4338525432323356202020202020202020202020

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setextradata "test1"
VBoxInternal/Devices/ahci/0/Config/Port1/SerialNumber "8CTR22V3"
Last edited by serejka on 17. Jun 2018, 16:31, edited 2 times in total.
BillG
Volunteer
Posts: 5104
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: serial number hardware

Post by BillG »

Fix what? The "hard drive" of the virtual machine is a virtual hard drive and is in fact simply a file in the host OS file system. Why would it have the same serial number as the physical drive of the host?
Bill
Martin
Volunteer
Posts: 2561
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: serial number hardware

Post by Martin »

Is this the second virtual hardisk of your VM? Otherwise you could try Port0 instead of Port1 ;)
serejka
Posts: 7
Joined: 22. Jun 2017, 18:27

Re: serial number hardware

Post by serejka »

Martin wrote:Is this the second virtual hardisk of your VM? Otherwise you could try Port0 instead of Port1 ;)
thanks for the reply you don't understand

information from wmic diskdrive get serialnumber
Attachments
VirtualBox_test1_17_06_2018_17_55_55.png
VirtualBox_test1_17_06_2018_17_55_55.png (88.62 KiB) Viewed 2506 times
Last edited by serejka on 19. Jun 2018, 17:52, edited 3 times in total.
serejka
Posts: 7
Joined: 22. Jun 2017, 18:27

Re: serial number hardware

Post by serejka »

BillG wrote:Fix what? The "hard drive" of the virtual machine is a virtual hard drive and is in fact simply a file in the host OS file system. Why would it have the same serial number as the physical drive of the host?
the serial number is defined correctly only in the opposite direction
information obtained through wmic diskdrive get serialnumber
serejka
Posts: 7
Joined: 22. Jun 2017, 18:27

Re: serial number hardware

Post by serejka »

Martin wrote:Is this the second virtual hardisk of your VM? Otherwise you could try Port0 instead of Port1 ;)
tried all wrong
Martin
Volunteer
Posts: 2561
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: serial number hardware

Post by Martin »

If you want the first part of the serial number to be filled with blanks you need to specify it that way like

Code: Select all

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setextradata "test1" VBoxInternal/Devices/ahci/0/Config/Port1/SerialNumber "            8CTR22V3"
serejka
Posts: 7
Joined: 22. Jun 2017, 18:27

Re: serial number hardware

Post by serejka »

it's not that
serial number virtualbox 42563636633337613831392d6337626336332034"; VB663ca718-97ccb364

на аппаратном виртуальном боксе 4338525432323356202020202020202020202020
on real hardware 2020202020202020202020204338525432323356

202020202020202020202020 need beginning on the left
Last edited by socratis on 18. Jun 2018, 11:12, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
Post Reply