Search results

  1. P

    Customize a LXC template ?

    How do you do this exactly?
  2. P

    Shrink qcow2 image

    It was a real block device (real from the VM's perspective anyway). Making sure the partitions were of equal size, I ran: dd if=/dev/sda1 of=/dev/sdb1 /dev/sda was the original 4GB disk that I mistakenly increased to 4TB in size. /dev/sdb is the new 8GB disk.
  3. P

    Shrink qcow2 image

    Thanks, what I ended up doing was creating a second 8GB hard disk, re-create the exact partition table, clone the partition from the first disk with dd and reinstalling grub onto the new disk. Then I tested I could boot from it and got rid of the first disk.
  4. P

    Shrink qcow2 image

    I wanted to increase a VM's hard drive size from 4G to 8G. I mistakenly added 4000G, thinking it was 4000M. So the VM thinks there is a 4TB drive now. I couldn't see a way to shrink the size in Proxmox GUI. I read that qemu-img from CLI can do it, but only on raw images. I have qcow2 image...

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!