Home Assistant : Q&A, Tips & Tricks, Your Configs

MidnightZA

Expert Member
Joined
Mar 9, 2013
Messages
2,452
Too scared to even update MQTT to 6.0.1 or whatever that version was that broke PAI. I have a full VM so perhaps should just give it a go for the sake of the community
I'm on 6.0.1 of the Mosquito broker. Been running without issues since they released it

No issues here
I did the update yesterday. I checked the PAI wiki to see if there was any issues reported.
 

TedLasso

Expert Member
Joined
Feb 23, 2016
Messages
3,757
Confirm that everything is working on the latest everything

MQTT 6.0.1
OS 6
Release : 2021.06.4
PAI 2.5.3
 

riscbroker

Expert Member
Joined
Sep 29, 2006
Messages
2,329
I'm running Home Assistant OS 6.0 in VirtualBox on Windows 10. All of a sudden I have run out of space on the VM - it has consistently been under 70% now it's at 90% and I cannot update or add integrations. I cannot find any particular reason for this so I guess I need to increase size of the VM - the problem is that the videos I can find on this are somewhat outdated and I don't want to lose/break this install.

Can someone point me in the direction of a good resource?
 

TedLasso

Expert Member
Joined
Feb 23, 2016
Messages
3,757
I'm running Home Assistant OS 6.0 in VirtualBox on Windows 10. All of a sudden I have run out of space on the VM - it has consistently been under 70% now it's at 90% and I cannot update or add integrations. I cannot find any particular reason for this so I guess I need to increase size of the VM - the problem is that the videos I can find on this are somewhat outdated and I don't want to lose/break this install.

Can someone point me in the direction of a good resource?
You have a VM, so make a copy of it and try to follow those guides and see if it works? At least if it fails, you can then just replace the VM with the bauckup?

How big did you make your VM disk? I made mines 32GB and i think it's fully utilised

I added the recorder directive to my configuration.yaml two weeks ago and hoping it's doing what it's supposed to do. I used their default configuration but set purge interval for 180 days. I am using the default Hass SQL .


Anyone else using this? Thinking I should add alarm zones to it. The alarm integration must add loads of records daily. Only need the info for maybe 8 days. Maybe keeping everything for 180 days is too much but thinking there could be value in it for power utilisation stars etc.
 

riscbroker

Expert Member
Joined
Sep 29, 2006
Messages
2,329
HA reports that the VM disk size is only 5.2GB, with 4.7GB in use, so hardly surprising that it's complaining.

I've used the virtual media manager in VirtualBox to increase the virtual disk size, but it seems I have to also do a physical disk partition and merge, which is doing my head in.

Is it perhaps easier/practical/possible to make a copy of the VM, bin the original and then set up a new VM with a suitably sized disk?
 

Speedster

Honorary Master
Joined
May 2, 2006
Messages
21,683
HA reports that the VM disk size is only 5.2GB, with 4.7GB in use, so hardly surprising that it's complaining.

I've used the virtual media manager in VirtualBox to increase the virtual disk size, but it seems I have to also do a physical disk partition and merge, which is doing my head in.

Is it perhaps easier/practical/possible to make a copy of the VM, bin the original and then set up a new VM with a suitably sized disk?
Have you considered simply migrating to a docker?
 

Speedster

Honorary Master
Joined
May 2, 2006
Messages
21,683
I have no idea what that would entail but will do some homework quickly
I'm speaking hesitantly here, but I believe you can simply make a snapshot of your current setup, install HA supervised in docker (there's a great online guide on the HA website) and then upload your snapshot. Maybe give that a test and only delete the original VM once you've confirmed that it works.
 

riscbroker

Expert Member
Joined
Sep 29, 2006
Messages
2,329
I'm speaking hesitantly here, but I believe you can simply make a snapshot of your current setup, install HA supervised in docker (there's a great online guide on the HA website) and then upload your snapshot. Maybe give that a test and only delete the original VM once you've confirmed that it works.
I'd prefer to keep HA on this Windows machine, I don't have a full understanding of a Docker install but it doesn't seem to be possible on Windows.
 
Last edited:

TedLasso

Expert Member
Joined
Feb 23, 2016
Messages
3,757
I'm speaking hesitantly here, but I believe you can simply make a snapshot of your current setup, install HA supervised in docker (there's a great online guide on the HA website) and then upload your snapshot. Maybe give that a test and only delete the original VM once you've confirmed that it works.

I'd prefer to keep HA on this Windows machine, I don't have a full understanding of a Docker install but it doesn't seem to be possible on Windows.

I think you can follow the same approach
  1. Make a snapshot of your existing HA VM
  2. Copy that file so you can use it
  3. Turn off HA VM
  4. Build a new HA VM with bigger disk
  5. Install HA and then restore snapshot - everything should be back. If it works. Then all you do is delete the old HA VM. If it doesn't work and, turn on the old one again.

Points to look out for:-
1. IP address could be managed by your router for HA (if you did not set a static one) so ensure that you cater for that eventuality
 

furpile

Expert Member
Joined
Jul 14, 2014
Messages
4,283
I'd prefer to keep HA on this Windows machine, I don't have a full understanding of a Docker install but it doesn't seem to be possible on Windows.
I am also running in a VM. Wanted to do the docker install but my old PC is still on Win7. Docker works on Win10.
 

w1tw0lf

Expert Member
Joined
Sep 29, 2009
Messages
1,187
HA reports that the VM disk size is only 5.2GB, with 4.7GB in use, so hardly surprising that it's complaining.

I've used the virtual media manager in VirtualBox to increase the virtual disk size, but it seems I have to also do a physical disk partition and merge, which is doing my head in.

Is it perhaps easier/practical/possible to make a copy of the VM, bin the original and then set up a new VM with a suitably sized disk?
Depending on the vm software you using, it should be straightforward in just increasing the vm disk size and the resize the partition.
 

riscbroker

Expert Member
Joined
Sep 29, 2006
Messages
2,329
Depending on the vm software you using, it should be straightforward in just increasing the vm disk size and the resize the partition.
I've tried the tutorial as outlined here but I get an error when using GParted to resize the disk so I'm stumped:


(yes I know the link looks dodgy but it's okay.....)

Edit: The error that I get is non-informative so it may well be that I have made a fundamental error in the whole process.
 
Last edited:

xrapidx

Honorary Master
Joined
Feb 16, 2007
Messages
40,309
Finished my proof of concept automation switch. It triggers a HA automation, in this case, turns on my cinema circuit, then the receiver, projector, lamps and drops the screen.

(Turning it off does the reverse)
0684e34f7a8639965f7cd8e5894c1c34.jpg
 

Speedster

Honorary Master
Joined
May 2, 2006
Messages
21,683
Finished my proof of concept automation switch. It triggers a HA automation, in this case, turns on my cinema circuit, then the receiver, projector, lamps and drops the screen.

(Turning it off does the reverse)
0684e34f7a8639965f7cd8e5894c1c34.jpg
Very cool. But why not simply use an off the shelf switch?
 
Top