[Method to increase storage space of openEuler virtual machine under Oracle VirtualBox]

Add openEuler storage space method

Oracle VM VirtualBox 6.1.32 has openEuler -20.03-LTS-x86_64-dvd installed . If openEuler is initially set to occupy only 10G of hard disk virtual space , and then finds that the space is insufficient during the application, how to expand the original storage space? The following is a method to increase openEuler storage space.

1. Check the space occupied by the virtual machine under Windows

Execute in the installation directory D:\Program Files\Oracle\VirtualBox of Oracle VM VirtualBox:

D:\Program Files\Oracle\VirtualBox>VBoxManage list hdds
UUID:           31836802-98ad-4261-abb2-a0dee41c747f
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       D:\Program Files\VMwork\openEuGau2.1\openEuler.vdi
Storage format: VDI
Capacity:       10240 MBytes
Encryption:     disabled

The disk and path information of all virtual machines is listed above. Find the virtual machine you need to adjust the space and note the UUID. value, for example: 31836802-98ad-4261-abb2-a0dee41c747f . The virtual machine openEuler installed above is D:\Program Files\VMwork\openEuGau2.1\openEuler.vdi, which occupies 10240 Mbytes (10G) space.

2. Adjust and increase virtual machine space under Windows

Execute in the installation directory of Oracle VM VirtualBox:

D:\Program Files\Oracle\VirtualBox>vBoxManage modifyhd 31836802-98ad-4261-abb2-a0dee41c747f --resize 15240

Description: –resize 15240 Unit: M
After execution is completed, the display is as follows:

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

3. The virtual machine space under Windows has been updated

Execute VBoxManage list hdds again to view, you will find that the virtual machine space has been updated, and the allocated virtual space is 15240 MBytes.

D:\Program Files\Oracle\VirtualBox>VBoxManage list hdds
UUID:           31836802-98ad-4261-abb2-a0dee41c747f
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       D:\Program Files\VMwork\openEuGau2.1\openEuler.vdi
Storage format: VDI
Capacity:       15240 MBytes
Encryption:     disabled

4. Check the virtual machine storage space in the virtual machine

Check the storage settings of the virtual machine and see that the original storage space has been modified from 10GB to 14.88GB, indicating that the modification was successful.
Insert image description here

Guess you like

Origin blog.csdn.net/flydreamfish/article/details/128938312