如何更改 VirtualBox 中的硬碟序號?

如何更改 VirtualBox 中的硬碟序號?

我想在 VirtualBox 中更改硬碟的序號。

有人知道這是怎麼做到的嗎?

答案1

我猜你想改變硬碟的UUID uuid是這樣的 UUID {55b773b8-cbcb-42ea-9a44-1368b30ed823}

若要設定硬碟的 UUID,請在命令提示字元中執行下列命令:

VBoxManage internalcommands setvdiuuid disk2.vdi

例如:VBoxManage internalcommands sethduuid disk2.vdi 55b773b8-cbcb-42ea-9a44-1368b30ed823會起作用。

答案2

看起來命令已經改變:

sethduuid <filepath> [<uuid>]
    Assigns a new UUID to the given image file. This way, multiple copies
    of a container can be registered.

所以就我而言是:

C:\Program Files\Oracle\VirtualBox>VBoxManage internalcommands sethduuid <vmdk location>

uuid如果您不以任何一種方式填寫新的,則會更改。

答案3

我猜您指的是命令控制台中執行 dir 操作時看到的磁碟區序號。

卷ID幫我解決了,以管理員身份運行:

volumeid C: C8BA-7B18

重新啟動後,它會發生變化:

C:\>dir
 Volume in drive C has no label.
 Volume Serial Number is C8BA-7B18

 Directory of C:\
 ...

相關內容