In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
VirtualBox is running out of virtual disk space. The default is 10G. If you want to expand, no actionable menu can be found in the graphical interface. Google can be solved by using VBoxManage, a command tool that comes with Vbox.
Expand the capacity of virtual machine hard disk (Oracle VM VirtualBox)
VBoxManage modifyhd | [--resize |-- resizebyte]
-- resize can be used to modify the size of existing hard disk image files, which only affects the logical size of virtual hard disks.
It does not affect the size of the physical hard disk, and it is only valid for dynamically allocated VDI and VHD format images.
For example, if you have created a 10G disk, but now you want to expand it to 20g, you can use the command-- resize 20480
Increase the capacity of 10g as follows:
To first know the uuid of the image you want to increase capacity, use the command
VBoxManage list hdds
C:\ Program Files\ Oracle\ VirtualBox > VBoxManage modifyhd e:\ vbox\ Ubuntu12.04\ Ubuntu1204-201302-disk1.vmdk-- resize 30000
0%.
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage.exe: error: Resize hard disk operation for this format is not implemented yet!
The original virtual machine is in vmdk format, this command can only support vdi format. What to do
It is found that VBoxManager can be used to convert the storage file format of virtual hard disk.
C:\ Program Files\ Oracle\ VirtualBox > VBoxManage clonehd e:\ vbox\ Ubuntu12.04\ Ubuntu1204-201302-disk1.vmdk e:\ vbox\ Ubuntu12.04\ Ubuntu1204-201310-disk1.vdi-- format VDI
0% .10% .20% .30% .40% .50% .60% .70% .80% .90% .100%
Clone hard disk created in format 'VDI'. UUID: 455b7aa4-d776-4254-8353-d9b5b3fa1
09b
Finally, use VBoxManager to expand the capacity of the converted vdi file.
C:\ Program Files\ Oracle\ VirtualBox > VBoxManage modifyhd e:\ vbox\ Ubuntu12.04\ Ubunt
U1204-201310-disk1.vdi-- resize 30000
0% .10% .20% .30% .40% .50% .60% .70% .80% .90% .100%
It is done that the new virtual hard disk (vdi) will be mounted to the virtual machine.
Open the virtual machine settings, find the storage, click the controller where the virtual hard disk is located, click "add virtual hard disk"-> select "use existing virtual disk"-> select the expanded vdi file, and you will see that there is an additional hard disk icon under the controller to view the capacity of 29.30g.
Delete the original vmdk virtual disk. Be sure to save the configuration. It's done!
Don't hurry. There's one more step.
After starting the virtual machine, use the GParted-Gnome Partition Editor tool to initialize the newly extended partition, otherwise the system will not recognize the newly extended space.
Tools have a graphical interface. It works. After setting up, click the menu "Edit"-> "apply all actions" before the system begins to initialize the extended disk. Partition merging and partition expansion can be carried out.
Gnome Partition Editor official website address:
Http://gparted.sourceforge.net/
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.