User Tools

Site Tools


computing:virtmanagerhell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
computing:virtmanagerhell [2022/08/08 20:13] oemb1905computing:virtmanagerhell [2022/08/08 20:15] oemb1905
Line 7: Line 7:
 ------------------------------------------- -------------------------------------------
  
-This is all very old fyi and not current or helpful; might delete it soon. Resize an .img with virt-manager, for example, expanding a 64GB disk to a 124GB disk.  Start by installing the optional tools for this:+These are two different attempts (both with 1 success each) of resizing .img files from the command line. Resize an .img with virt-manager, for example, expanding a 64GB disk to a 124GB disk.  Start by installing the optional tools for this:
      
   sudo apt install libguestfs-tools   sudo apt install libguestfs-tools
Line 87: Line 87:
   kpartx -d debian10.img   kpartx -d debian10.img
      
-After messing around with this, and succeeding 1 time in resizing the drive this way, I decided that just issuing ''apt install qemu-img kpartx'' and then expanding within the VM's gparted GUI was far easier. It does require moving and/or deprecating swap (or other earlier partitions) or you cannot merge the file system.+After messing around with this, and succeeding 1 time in resizing the drive this way, I decided that just issuing ''apt install qemu-img kpartx'' and then expanding within the VM's gparted GUI was far easier. It does require moving and/or deprecating swap (or other earlier partitions) or you cannot merge the file system. Also, check ''/etc/fstab'' and make sure that entries reflect changes.
  
  --- //[[jonathan@haacksnetworking.org|oemb1905]] 2022/08/08 00:37//  --- //[[jonathan@haacksnetworking.org|oemb1905]] 2022/08/08 00:37//
computing/virtmanagerhell.txt · Last modified: 2023/01/15 17:47 by oemb1905