How to extend a Ravada Linux guest’s disk space¶
Here we will show how to extend the system partition of a Linux host by 10 GB.
- Shutdown the virtual machine
- Consult the hard drive name of the Virtual Machine you want resize:
virsh edit VirtualMachineName
Here is our image file:
<source file='/path_to_img_file/VirtualDiskImageName.img'/>
- Use qemu-resize to increase the image size by 10GB:
qemu-img resize /path_to_img_file/VirtualDiskImageName.img +10G
- IMPORTANT. Do a backup before continue.
cp VirtualDiskImageName.img ./VirtualDiskImageName.img.backup
- Now start the Virtual Machine. Open a terminal and type:
sudo fdisk /dev/vda
Delete the partition
- ::
- d
Create a new partition
- ::
- n
Accept all by default and exit saving
- ::
- w
- Restart the Virtual Machine.
- When it starts in a terminal:
sudo resize2fs /dev/vda1
You can check if the disk was increased with the ‘df’ command.