How to solve the problem of adding copied disk in cannot register the hard disk of VirtualBox

Front end developers must read! Starting from scratch, teach you to build a low code website platform in stages>>>

When using VirtualBox in Ubuntu system, you copy a disk and then import it again. You encounter the following problems:

The main reason is that the UUID of the disk of copy is the same as that of the imported disk. Even if the disk is renamed, it will not affect the UUID value of the disk. So what we need to do now is to modify the UUID of the disk of copy

At the command line, go to the. VDI directory of the copy disk, and my. VDI name is win7workd. VDI<
input command [email protected] :~$ cd /home/SD/
[email protected] :/home/SD $CD VirtualBox/# enter the copied disk directory
and [email protected] :/home/SD/VirtualBox $vboxmanage internal commands sethduuid win7workd.vdi # regenerate new UUI D. The disk name can be added with double quotation marks or not,
UUID changed to: 6316c9d4-36a1-4f92-9698-a2c5b043fa09
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

After the above operation is successful, add it again

Reference: https://blog.csdn.net/lang523493505/article/details/77937829/

Similar Posts: