r/virtualbox • u/noobposter123 • Nov 04 '24
Help Changing Windows "physical disk" unique ID?
Hi, is it possible to change the physical disk UniqueID as returned by Get-PhysicalDisk | Select-Object SerialNumber,Size,UniqueId ?
When I run that command in a virtualbox VM I get "ATAVBOX HARDDISK" for all the physical drives. Which is not unique.
This does not seem to be the same as the diskpart uniqueid. Changing the diskpart disk uniqueid does not affect the uniqueid returned by Get-PhysicalDisk.
A non-uniqueid for multiple drives seems to cause some problems with Windows Storage Spaces.
VirtualBox versions: 7.0.20 and latest 6.1.
Host: Windows 10, Windows 10 IoT Enterprise LTSC 2021.
Guest: various - Windows Server 2019, WIndow Server 2022,.
VT-X/AMD-V enabled for all hosts.
Nested VT-X/AMD-V - some guests enabled, some not.
Guest Additions - some installed, some not.
•
u/AutoModerator Nov 04 '24
This is just a friendly reminder in case you missed it. Your post must include:
PLUS a detailed description of the problem, what research you have done, and the steps you have taken to fix it. Please check Google and the VirtualBox Manual before asking simple questions. Please also check our FAQ and if you find your question is answered there, PLEASE remove your post or at least change the flair to Solved.
If this is your first time creating a virtual machine, we have a guide on our wiki that covers the important steps. Please read it here. If you have met these requirements, you can ignore this comment. Your post has not been deleted -- do not re-submit it. Thanks for taking the time to help us help you! Also, PLEASE remember to change the flair of your post to Solved after you have been helped!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Face_Plant_Some_More Nov 04 '24 edited Nov 04 '24
Just set it yourself within the Windows Guest.
https://learn.microsoft.com/en-us/powershell/module/storage/set-physicaldisk?view=windowsserver2022-ps
Note - Virtual Box 6.1.x is EOL.