Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Resizing my Home Assitant VM Vdisk

Featured Replies

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

Unbenannt.JPG

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.


 

  • 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. 

Did not work how? 

  • 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.

I have seen this behavior as well.

Edited by ConnerVT

  • 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

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. 

  • 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.