April 22, 20242 yr Hi folks, I am running home assistant on a FreeBSD vm. While setting it up I followed a tutorial to use the "official" home assistant vmdk. I cannot remember having entered a value for the vdisk size but it is actually 32 GB. Now I got the message that home assistant i running out of memory and I have tried to increase the vdisk size without success. It doesn't work via the gui and after some search I came to CLI using: qemu-img resize -f raw /mnt/user/domains/HOMEASSISTANT/haos_ova-9.2.vmdk +10G the prompt was something like that this should have worked but obviously it did not. VM ist still showing 32 GB and I don't see an option to increase the size. How do I get this done? Thanks in advance. Peter
April 22, 20242 yr Obviously before messing with it make a backup. Stop your HA VM, and click on the 32GB under CAPACITY. Change it to 42G, or whatever floats your boat, and apply the change. Set up a new VM with your favorite live utility OS as the ISO. https://gparted.org/livecd.php is a good option. Add the existing haos vmdk vdisk file as a disk to the new VM. Boot the new VM, it should start the utility OS, where you can use gparted to expand the partition to fill the expanded vdisk image.
April 23, 20242 yr Author 8 hours ago, JonathanM said: Stop your HA VM, and click on the 32GB under CAPACITY. Change it to 42G, or whatever floats your boat, and apply the change. This is what I have tried but changing the capacity value did not work.
April 23, 20242 yr Author If I stop the VM and type for example 42 instead of 32 and hit enter, then the number is 32 again. Can‘t increase it that way.
April 23, 20242 yr Author It is getting more confusing to me. I have triggered a manual backup via vm-backup plug in. The file size of todays backup has grown from 34 to 44GB. This seems to correspond with the "Image resized" prompt that I got from the CLI yesterday when entering: qemu-img resize -f raw /mnt/user/domains/HOMEASSISTANT/haos_ova-9.2.vmdk +10G but still the VM shows CAPACITY and ALLOCATION 32GB and I cannot change it in the VM tab
April 23, 20242 yr Did you do the next step mentioned earlier? You need to actually grow the partition in the VM. And since the VM files are sparse the allocation will only change when the space actually gets filled in the VM.
April 23, 20242 yr Author 7 hours ago, Kilrah said: Did you do the next step mentioned earlier? Not yet. To be honest I did not get what you were supposing. I guess I do now but for me this is not intuitive. And I still want to understand why changing the capacity via the GUI does not work. I also wonder if it might not be „easier“ to create a new Home Assistant VM with larger vdisk and restore the old settings from a Home Assistant backup.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.