VirtualBox: extend partition

前端 未结 8 1184
渐次进展
渐次进展 2021-01-30 07:34

I have virtualbox-4.1.0 with centos-5.6 installed in. Now I would like to extend the VM image, which I previously allocated for virtual machine installation, it was 8Gb, that\'s

相关标签:
8条回答
  • 2021-01-30 07:58

    From the VirtualBox FAQ:

    You have to clone the data from the VDI you already have to a new, larger VDI and expand the partition(s). You can use tools like CloneZilla to clone the virtual hard drive to the bigger one and Gparted to increase the partition size. Another method is to use CloneVDI by mpack and clone the VDI with a larger size, then resize the partition(s) with Gparted.

    Since 4.0.0, you can use VBoxManage modifyhd --resize to resize the max size of the VDI. You can only make it bigger. After that, use Gparted to increase the partition size inside the VDI.

    Alternatively you could attach another VDI and mount your /home there.

    0 讨论(0)
  • 2021-01-30 07:58

    I spent a long time googling and finally got it working for me. ( before I found this ) And I wanted a place to save my work

    use vboxmanage to add space to the disk image

    use gparted to resize so all space is used

    use blivet-gui to create a new volume :

    Below is commands I copied from terminal in fedora :

    dnf install blivet-gui  
    blivet-gui  
    lvremove /dev/mapper/fedora00-00  
    lvextend -l +100%FREE /dev/mapper/fedora00-root
    
    0 讨论(0)
提交回复
热议问题