AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() That is it on how to resize root partition of VirtualBox VM snapshot using the Gparted Live CD. df -h /dev/sda1 Filesystem Size Used Avail Use% Mounted on When the system boots, you can check the disk size by running the df -h command. In this blog I describe the steps I’ve done to increase the size a VirtualBox Ubuntu guest disk without loosing data. For example if want to install additional software. After using the VM for a while, it happens (often) that I need more space than I initially assigned. Poweroff the virtual machine and detach the Gparted Live CD iso and boot your system. I think it will be enough for what I want to use the VM for. After that, click the tick to save the changes. Next, right click on the root partition, in this case, it is /dev/sda and select resize and set the new partition size.Ĭlick resize to extend the partition size. To resize the root partition to unallocated space, we are going to first delete the extended and swap partition. Select your keymap, your preferred language and continue to startx to use Gparted automatically.Īs you can see, the unallocated space is 18GB. When the virtual machine starts, let it boot with GParted Live default settings. Once you have attached the iso, set the boot order such that optical disk comes first. Next, attach the GParted Live CD iso to your vm with a snapshot to be resized. You can choose whatever file type you like. Select Create new disk on the next window. Under Storage Tree, click Contorller: SATA, then click the plus icon at the bottom to add a new hard disk. ![]() ![]() The original disk size is 12GB and we have resized it to 30GB Attach GParted Live CD ISO Open virtual machine settings and click Storage on the left pane. ![]() vboxmanage modifymedium disk VirtualBox\ VMs/debian9/Snapshots/.vdi -resize 30720 Snapshots are located on the snapshots folder. ![]() Once you have identified the name of the virtual machine snapshot to resize, proceed to resize the disk. Resize Root Partition of VirtualBox VM Snapshot Open the Virtual Media Manager and find the name of the virtual machine snapshot whose root partition is to be resized. Replace VM_NAME with the name of the virtual machine in question. ![]()
0 Comments
Read More
Leave a Reply. |