Home Assistant is making my PC non responsive

Hey everyone,

I’m rather new to home assistant and have been running it without much problems via a virtual machine with ubuntu 64 and have recently upgraded to the latest version 0.118. Today all of a sudden home assistant has started making my PC unresponsive, as soon as It gets to the “home assistant has started” notification it freezes and I have to restart my pc if I want to get any decent response from my computer.

I’m quite puzzled why this is happening, it’s been working fine up until today, I made no changes overnight. I upgraded to 118 a few days ago without problems, I did unlink my ring doorbell and set it back up yesterday to solve a battery sync issue but even removing the ring integration quickly before home assistant finishes starting hasn’t solved the issue. I’ve tried increasing the memory allowance home assistant has access to without success & also tried updating virtual box and its extension pack

I’m noticing when I start HA and the system becomes all but non responsive that the task manager is also not updating its values correctly, im seeing things like the GPU etc sitting at 0% but that’s obviously wrong.

I don’t get what’s happening here.

Is the browser you are watching the UI from on the same ubuntu machine?

Yup it is. I’m running the VM on my main desktop PC which has an i7 6700k and 32GB of ram, I’ve also tried connecting on my phone, my tablet and my laptop with little success. They don’t freeze up, they just don’t connect.

Can you ssh to the machine and run some diagnostics like top?

(PS does your username indicate another NZer?)

I’m not sure, a bit beyond my skill level I’m afraid, I only just learned how to SSH into my network using Putty, is it similar? Do you mean doing it into the computer itself or into the virtualbox? It’s really weird to me that this has started happening when it’s been fine for almost 2 months.

And yeah mate, another kiwi. Relatively new to the HA world, just set it up at the start of october. I’m half tempted just to delete it all and start again, I have been saving frequent backups so I have one to load in if i do.

So you keep your main desktop running 24/7? Sounds like a lot of energy wasted to me…

It isn’t, It turns itself off at midnight and starts again about 7:30am, I am starting to look into 24/7 options though.

Ah I see, I’d rather get something to run it on 24/7 like a Pi4 or NUC depending on your needs, don’t wanna lose control over my home in the night :slight_smile:

For me HA is an add on where i can control my media, tablet display and streamdeck, its not 100% needed for overnight, I probably will move to a Pi4 or NUC eventually but if im getting messed up on VMs which im told are the easiest maybe i should wait on that lol

Who told you that?

I know lots of people run HA in a VM but I don’t know that I’d call it the easiest.

Actually the easiest is running it on a RPi via Home Assistant OS. You just burn an image to the SD card and away you go. And you don’t have any of the potential hardware issues.

1 Like

I’d call frequent SD card failures a potential hardware issue.

1 Like

True but that’s not necessarily a given and won’t be an immediate concern.

I ran my first install on a RPt3 for almost a year on the same SD card without issue before I moved to the NUC. That card was still fine even then.

And if you want to mitigate that then run it on a RPi3 from an SSD (I only say RPi3 because I haven’t heard definitely if the RPi4 can be run from an SSD).

Either way running HA from a image on a Pi is still way easier. It’s not necessarily better (for reasons we won’t get into here) but it’s definitely easier to get up and running smoothly without needing to jump thru the potential hoops needed to run everything in a VM.

I suspect supervised is easiest actually. Cut and paste a few command lines into debian.

2 Likes

Okay so update, tried to install a second HA on the virtual machine and it didn’t go well. For the first set up and this one i followed the same tutorial: https://www.youtube.com/watch?v=sVqyDtEjudk&ab_channel=TheHookUp

I’m thinking remove the VM completely and start again? I do have a backup saved that i pulled before hand.

If you are using ubuntu anyway, I suggest a supervised install. Installing Home Assistant Supervised on Ubuntu 18.04.4

1 Like

Interesting what are the benefits to this way over the way i originally did it?

Yes Rpi4 can be run with SSD.
I ran Rpi4 4Gb on SSD for a few months and then I migrated to Rpi4 8Gb on SSD a week ago and everything works fine.

1 Like

Update, tried uninstalling Virtualbox, used the orbit uninstaller to get what i thought was the last of it, downloaded it again, surprisingly it still detected its old self so used the installer to uninstall it then reinstalled it again, the extension pack and then the VMDK file and launched home assistant again… Once again it froze my pc. I tested to see if i could connect to HA using its ip address on another device and it doesn’t show an active connection.

I’m really shooting in the dark here, no idea what the problem is.

Tested A ubuntu machine on the virtualbox and it didn’t impact my pc much at all using the following tutorial https://www.youtube.com/watch?v=QbmRXJJKsvs&ab_channel=ProgrammingKnowledge so it seems to be related to home assistant.

I would say your home assistant install is up the wop (tech term there). It is not home assistant as such, it is likely a config issue.

I did suggest a supervised install. Easy on ubuntu.