In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In fact, this problem has been perplexed for a long time, has not been idle to solve, online search a lot of compression methods feel too troublesome and complex, because recently docker on windows has been solved.
Compressed vmdk
First of all, download DiskGenius, this tool is very powerful X, I believe many people have used its hard disk partition, merge, data recovery and other functions, it is quite powerful, even virtual hard disk files do not let go.
First open the virtual hard disk vmdk that you want to compress (menu: "hard disk-> Open Virtual hard disk File"). When you open it, you can see the loaded virtual disk in the window on the left.
Create a new virtual hard disk vmdk file with a capacity not less than the source virtual hard disk
Select (menu: "tools-> Clone hard disk"), after the pop-up dialog box, select the source vmdk virtual hard disk to be compressed when "Select Source hard disk", select the vmdk virtual hard disk we just created when "Select destination hard disk", and then click "start" to wait for the compression to be completed.
Vmdk mounts to VirtualBox
First back up the source vmdk, then cover the source vmdk with the compressed vmdk, and then start the virtual machine.
There is no accident that will report the following error
UUID {00000000-0000-0000-0000-000000000000} of the medium'C:\ Users\ Neil\ .docker\ machine\ machines\ default\ disk.vmdk' does not match the value {131b2a66-a477-41dd-b920-1a0a460d3ec8} stored in the media registry ('C:\ Users\ Neil\ .VirtualBox\ VirtualBox.xml'). Return code: E_FAIL (0x80004005) component: MediumWrap interface: IMedium {4afe423b-43e0-e9d0-82e8-ceb307940dda}
It probably means that the UUID of the compressed vmdk file does not match the UUID in the original registry.
So good, let's go to the VirtualBox installation directory C:\ Program Files\ Oracle\ VirtualBox
Right-build shift+ in the directory space-> Select "Open Command window here"
Input
VBoxManage internalcommands sethduuid C:\ Users\ Neil\ .docker\ machine\ machines\ default\ disk.vmdk 131b2a66-a477-41dd-b920-1a0a460d3ec8
It is successful to return the UUID value to be modified.
UUID changed to: 131b2a66-a477-41dd-b920-1a0a460d3ec8
Vmdk moves to another disk
Disk.vmdk moves from C disk to another disk, and then points the virtual hard disk to the new disk.vmdk in VirtualBox. An error will be reported.
Error: failed to open virtual hard disk, UUID already exists
Since the UUID already exists in the registry, let's modify the path of the vmdk with the command
VBoxManage internalcommands sethduuid X:\ yourDir\ disk.vmdk
Then re-point to the disk.vmdk in VirtualBox.
Reference:
Http://www.diskgenius.cn/exp/compressvirtualdisk.php
Https://www.cnblogs.com/yjf512/p/4338985.html
Source: virtual machine hard disk vmdk compressed and slimmed down and mounted to VirtualBox
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: 0
*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.