#Can I swap the compute module on my yellow?
1 messages · Page 1 of 1 (latest)
https://yellow.home-assistant.io/guides/remove-cm4/
CM4s have a max RAM of 8GB.
You would have to reinstall HAOS, if it isn't fully installed to a NVMe.
I moved everything to NVMe as i only have a 2GB lite
Raspberry Pi Compute Module 4, 8GB, 32GB - CM4008032 - NO WIFI!
you're right, I only got eht 8GB model
But otherwise I should be able to just swap them out without issue? Obviously i'll take a backup first
If HAOS is installed to the NVMe, it can be swapped.
It HAOS is installed to the eMMC and the data partition has been moved to the NVMe via the UI, a full reinstall would be needed.
You should create and download a backup before swapping the modules.
You either flashed it to the NVMe or used the button method on install - then the OS is on the NVMe.
If you did the default installation and used that "move data disk" later - then the OS is on the eMMC.
Then the os is on the emmc
is there any way to migrate that? Or would a backup/reinstall/restore be the best option?
No. Backup (and download it), wipe everything with the red+blue button method, then swap the CM4s.
After the OS install, I would recommend to do the onboarding with temporary credentials, move the data disk and when that is finished, upload your backup via the backup page and restore it from there.
so an install to the EMMC is required?
No. You can also either try to use the blue button method during the install to install to the NVMe (if it works) or flash the OS manually to the NVMe.
I think that's what i'll try then, I'd like to know I could swap out the cm4 module if needed
without having to reinstall the os, which isn't a big deal, but is a bit of a PITA on a device with no screen haha
In this case, you will have to reinstall. Do you have a NVMe to USB adapter? That is likely easier than using the Yellow as adapter.
I do not have an nvme adapter, at least I don't think I do....
I have so much stuff, i might just :p
I have an m2 one, but it's not nvme 😦
In theory it would still be possible to flash the OS (not the installer the guide uses) directly to the NVMe. But it is a hassle. And as it is not too likely you will swap again, I would just do the default install and restore a backup.
okay, I ordered an nvme to usb adapter, I should have one any way
but you're suggesting I should be able to plug that in, and use rpi flasher to install HAOS on to the NVME, and then restore a backup?
Also, thank you very much for helping me
You would still have to create and download a backup.
Use a flashing program like Balena Etcher and flash the following image to the NVMe.
https://github.com/home-assistant/operating-system/releases/download/13.2/haos_yellow-13.2.img.xz
It is the OS directly and not the installer.
When the CM4 is swapped, don't do any install procedure, but just install the NVMe and start it.
The RaspberryPi Imager just shows the installer, not the OS itself.
At least for the Yellow
will the NIC MAC change when I swap the modules?
or is that part of the adapter on the yellow mainboard?
When it is showing the onboarding screen, do the onboarding (I wouldn't recommend to upload the backup there) with temporary credentials, go to the backup page, upload your backup via the
menu and start the restore when it is showing in the list
The MAC is part of the Yellow board.
Excellent!
I think I have a plan now
Thank you so much!
I love HA, I used to run it containerized on an old 6 core xeon mac pro
but I bought the yellow to support the project and then the pandemic made getting the CM4s impossible
so bought one from germany, an got the 2GB lite
Yeah. The release was a bad timing.
but now I'm finding it's running out of memory very quickly with the size of my install
Not bad timing in the meaning of planning, but more in context of the pandemic and the shortages.
oh, yeah, I got that 🙂
8GB of ram should be enough
if that doesn't work
I have a mac mini here from 2007 that shoudl be more than capable of the task
If you don't do really crazy stuff, that should be enough.
not sure what 'crazy stuff' is
but i'm running adguard and NPM
oh and zigbee2mqtt
had to plug in my sonoff adapter to the yellow to avoid having to repair all my devices
Well... I run Firefox as an addon. It is as RAM hungry as the desktop one 
I've only got 26 devices, but it's a PITA I didn't need
firefox as an addon?
for why?
My router's settings pages cannot be integrated as iframes for example. Via the addon I can get remote access.
ohhhh, that's not something I would have considered integrating into ha
And maaaaaybe our company network blocks Discord and it is a way to circumvent it. 
I'm just now trying to get BT presence tracking and proxcies working
Ah, my company doesn't block discord
but it does block tailscale lol
some other competing products
I just got NPM installed to handle letsencrypt certs so I could get access to HA remotely
That doesn't count as "crazy" 
Yeah, I mean I recognize that it's a RPI in there
so I don't expect a lot from it
but i'm looking forward to removing the need for the power hungry mac pro
The Yellow didn't give me an excuse to change to a fanless N100 PC yet.
The only negative I encountered was the inability to use a Google Coral for Frigate.
I don't work for them, but my company uses them extensively