In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the method of vdi file cloning of VirtualBox under Ubuntu". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The solution to this problem:
1. You can generate a new uuid for existing .vdi. The syntax is as follows:
VBoxManage internalcommands setvdiuuid already has .vdi
2. If you want to copy a VDI and use it again, you must use the VboxManager command. The syntax is as follows:
VBoxManage clonevdi already has .vdi new .vdi
3. Convert vdi to vmdk
VBoxManage clonehd already has .vdi new .vmdk-- format VMDK
4. There are many enhancements to the VBoxManage command, you can refer to UserGuide.
View VDI file information VBoxManage showvdiinfo already has .vdi
Compress VDI file volume uuid of VBoxManage modifyhd vdi file or existing .vdi-- compact
VirtualBox copies vdi files and modifies the uuid of vdi
1. Copy vdi file: VBoxManage clonehd
Because VirtualBox does not allow duplicate uuid to be registered, each vdi file has a unique uuid. So if you want to copy a vdi file and register it in VBOX again, you can't simply copy it. At this point, we need to use the command VBoxManage clonehd, which sets a uuid for the new file when cloning the vdi file [Note: to run this command, open the command prompt and go to the virtual box installation directory]. Examples are as follows:
The code is as follows:
D:\ Program Files\ Oracle\ VirtualBox > VBoxManage clonehd "E:\ VirtualBox\ Ubuntu 12.04\ Ubuntu 12.04.vdi"E:\ VirtualBox\ Ubuntu 12.04\ Ubuntu_12.04.vdi"
The results are as follows:
0% .10% .20% .30% .40% .50% .60% .70% .80% .90% .100%
Clone hard disk created in format 'VDI'. UUID: cf70d484-a3f0-4a87-953b-d1c8ec602c59
2. Modify the uuid:VBoxManage internalcommands sethduuid of vdi
When an error occurs with the same uuid for both vdi, you can use the command VBoxManage internalcommands sethduuid to modify the uuid of the vdi file, as shown in the following example:
The code is as follows:
D:\ Program Files\ Oracle\ VirtualBox > VBoxManage internalcommands sethduuid E:\ VirtualBox\ Win7_Ultimate_SP1_1\ Win7_Ultimate_SP1.vdi
The results are as follows:
UUID changed to: 3b5f507c-dda7-409c-a2ef-ee075435558d
However, when there are spaces in the path, put double quotation marks on the path, as follows:
The code is as follows:
D:\ Program Files\ Oracle\ VirtualBox > VBoxManage internalcommands sethduuid "E:\ VirtualBox\ Ubuntu 12.04.vdi"
The results are as follows:
UUID changed to: 04094fb4-0a42-413a-a25d-9d02d804bd2a
Note: when using the VBoxManage command, you need to change to the VirtualBox installation directory on the command line.
This is the end of the content of "the method of cloning vdi files of VirtualBox under Ubuntu". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 296
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.