Libro sobre Proxmox maestria
Shared Storages with Proxmox
When a disk image file is selected, the Resize disk and Move disk buttons become available. Virtual machine image files can also be manipulated using CLI commands. The following are a few examples of the most common commands to delete, convert, and resize an image file:
Usage: qemu-img command [command options] #qemu-img create -f <type> -o <filename> <size> #qemu-img create -f raw test.raw 1024M
#qemu-img convert <source> -0 <type> <destination> #qemu-img convert test.vmdk -0 qcow2 test.qcow2 #qemu-img resize <filename> <+|-><size>
Resize disk only supports increasing the size of the virtual disk image file. It has no shrink function. The Proxmox resize option only adjusts the size of the virtual disk image file. After any resizing, the partition must be adjusted from inside the VM. The safest way to resize partitions is to boot a Linux-based virtual machine with a partitioning ISO image such as gparted (http://gparted.org/download.php), and then resize the partitions using gparted graphical interface. It is also possible to perform an online partition resizing while the virtual machine is powered on. Resizing a virtual disk image file involves the following three steps:
1. Resize the virtual disk image file in Proxmox using any one of the following:
о disk>+<size>G
From GUI: Select the virtual disk and then click on Resize disk
From CLI: Run the command # qm resize <vm_id> <virtual_
2. Resize the partition of the virtual disk image file from inside VM using any one of the following:
For Windows VM: Resize the disk by navigating to Administrative Tools | Computer Management
For Linux VM with RAW partition, use the following command:
#cfdisk <disk_image>
For Linux VM with LVM partition, use the following command:
# cfdisk </dev/XXX/disk_image>