clouds icon indicating copy to clipboard operation
clouds copied to clipboard

Issue with clouds snap Hard Drive Size

Open T3chGirl opened this issue 5 years ago • 2 comments

How do I make a larger hard drive on the cloud snap? How do I increase the hard drive size for the vm in the qcow2 file when its created? or alternatively how to I expand that hard drive once its created? Thanks in advance for you help.

T3chGirl avatar Jan 12 '21 19:01 T3chGirl

Hi,

To set the size of the disk you will need to use the qemu-img utility, which is not exposed by the snap package. You must install the package called qemu-utils in Ubuntu (other distros might have a different name for this). Then, run:

qemu-img resize -f qcow2 ~/snap/clouds/common/windows-system.qcow2 50G

Replace 50G with the size in gigabytes. You can also specify the size in megabytes (51200M) or terabytes (0.048T).

You can also specify how much to increase the disk image size by instead of the final value by prepending a + to the size. e.g. +25G will increase the image by 25 gigabytes.

Once you have resized the image you will need to use Windows' Disk Management utility to expand the Windows filesystem to use the new space. Without doing this, while the disk will be bigger, Windows will only be able to store the default size-limit.

I will try to work out a way of providing a configuration setting that can be twiddled in the future to specify the disk image size.

lucyllewy avatar Feb 03 '21 21:02 lucyllewy

Awesome Thank you so much! Sent from my T-Mobile 4G LTE Device -------- Original message --------From: Daniel Llewellyn [email protected] Date: 2/4/21 2:08 AM (GMT+05:00) To: diddlesnaps/clouds [email protected] Cc: T3chGirl [email protected], Author [email protected] Subject: Re: [diddlesnaps/clouds] Issue with clouds snap Hard Drive Size (#4) Hi, To set the size of the disk you will need to use the qemu-img utility, which is not exposed by the snap package. You must install the package called qemu-utils in Ubuntu (other distros might have a different name for this). Then, run: qemu-img resize -f qcow2 ~/snap/clouds/common/windows-system.qcow2 50G Replace 50G with the size in gigabytes. You can also specify the size in megabytes (51200M) or terabytes (0.048T). You can also specify how much to increase the disk image size by instead of the final value by prepending a + to the size. e.g. +25G will increase the image by 25 gigabytes. Once you have resized the image you will need to use Windows' Disk Management utility to expand the Windows filesystem to use the new space. Without doing this, while the disk will be bigger, Windows will only be able to store the default size-limit. I will try to work out a way of providing a configuration setting that can be twiddled in the future to specify the disk image size.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

T3chGirl avatar Feb 03 '21 21:02 T3chGirl