Jump to content

Reggie997

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Reggie997

  1. 15 hours ago, Reggie997 said:

    Can someone confirm that this still works for shrinking a VM disk??

    I've tried qemu-img resize Server_2016.img 30G to which I get
    WARNING: Image format was not specified for 'Server_2016.img' and probing guessed raw.
             Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
             Specify the 'raw' format explicitly to remove the restrictions.
    qemu-img: Use the --shrink option to perform a shrink operation.
    qemu-img: warning: Shrinking an image will delete all data beyond the shrunken image's end. Before performing such an operation, make sure there is no important data there.


    Would someone be able to help, cause I have no idea what I'm doing when It comes to Linux commands xD????
    I'm using Unraid version 6.9.2

    15 hours ago, Lunch said:

    I got lost on this last month too for the same error. Trawled online for guides and couldn't find any relevant information so I'd love to know too!!



    Ok so i figured it out thanks to this post on the forum:



    What I needed to do was add --shrink in between "qemu-img resize" and the .img you whish to change.
    So I needed to do "qemu-img resize --shrink Server_2016.img 30G" of course the .img name will be different from what I have as that is the name my VM.

     

    • Like 3
  2. Can someone confirm that this still works for shrinking a VM disk??

    I've tried qemu-img resize Server_2016.img 30G to which I get
    WARNING: Image format was not specified for 'Server_2016.img' and probing guessed raw.
             Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
             Specify the 'raw' format explicitly to remove the restrictions.
    qemu-img: Use the --shrink option to perform a shrink operation.
    qemu-img: warning: Shrinking an image will delete all data beyond the shrunken image's end. Before performing such an operation, make sure there is no important data there.


    Would someone be able to help, cause I have no idea what I'm doing when It comes to Linux commands xD????
    I'm using Unraid version 6.9.2

×
×
  • Create New...