Installation now thinks its an OVA not Native x86

Hi

I have been running HA on bare metal for many years, and after an update back in july timeframe, the installation states its runing as an OVA and not bare metal x64.

I have just installed a new SSD and post native install, it shows x64 however, once I restored my backup - it reverted to OVA!

How can I get HA to realise its bare metal?!?!

The main issue I have with this is that all the native USB devices fail to work as they dont make it over to the “vm”.

Thoughts?

Thanks in advance Guys!
Text

Where do you see it thinks it is running in a vm ?

In system…

From the command prompt os info sates “board: generic-x86-64” which is correct…

My issue is that USB devices dont appear… plus, its not a VM…

Thanks for your help

ha os info on proxmox returns ova, which is correct

Welcome to Home Assistant OS.

Use `ha` to access the Home Assistant CLI.
# os info
-sh: os: not found
# ha os info
board: ova
boot: B
boot_slots:
  A:
    state: inactive
    status: good
    version: "16.1"
  B:
    state: booted
    status: good
    version: "16.2"
data_disk: QEMU-QEMU-HARDDISK-drive-scsi0
update_available: false
version: "16.2"
version_latest: "16.2"

WHich disk image did you use for the ssd? And what type of baremetal you use. There is few flags that makes HA detect a installation type and the way the OS is packed on either disk image might be a player. (but also bios settings and possibly other things).
In the end i doubt that the installation type indicator has influence on the USB behavior.

From the HAOS console linux shell (or SSH) type dmesg. There will be a lot of output, but it should provide some indications as to whether your USB devices are showing up and then maybe dropping out.

BTW I’m running a VM and my UI->Settings->System->Hardware is showing it as “Generic Hardware”, so seems this particular method may not be reliable.

very true, not easy for finding everything if system is up long time
sudo dmesg -c
to clear the log and then run it again to see it empty. Take out USB device and re plug it. Then dmesg again you’ll find the involved log little easier and details if it mounted properly or somthing else (like drivers missing )

Hi - I used the image linked from here

I followed the instructions in the link above, which worked fine and reported as generic x86. It was fine until I restored my backup, then it reverted to ova.

The tin is an HP ProDesk micro boxes… gen 7 or 8 cpu.

Thanks for your advice chaps.
I will check what it says in dmesg and report back.

Hi… ok, wiped and reinstalled the image… see below - shows USB device and “generic x86-64”… did NOT restore backup.

HI…ok, rebooted a couple of times and it remained as native x86.

I then changed the IP address from dhcp to static, and then it immediately shows ova again!

Thoughts?

I really dont want to reinstall and buikd up the whole damn config again from scratch…

As requested… this was run once it changed to ova…(obviously!)

note disk thinks its an ms disk when its a physical 512gb nvme disk.

Ok…stay with me guys…

I did a restore from a known good physical backup…and it was back to showing OVA.

Rebooted…and low and behold…its showing physical again…

…os info shows…

Restarted from within HA, and back to OVA!

NOW…here may be a big clue…so need to investigate…when looking at disk, the geometery of the partitions have changed…see below … disks when booting as a VM…

Seems like the box is booting from physical disk…then somehow booting from a VM disk…

See disk blow when booted as physical hardware.

What determines where/how the HA environment boots - the boot slots, whatever they are differ in the screen slots above!?!?!

There is only one nvme in the box…

Thanks Guys

Ok Folks…

Boot from Slot A - the world is good - showing physical and disk full capacity

Boot from Slot B – bad news - showing OVA and a small drive.

Is there any safe way to recover from this? - like copy Slot A over B?

Given I reinstalled by restoring the HA image, I am not sure what I do to avoid the same situation if I start again with a backup…

Thoughts most welcome…

Another thought… can I just backup SLOT A using HA’s backup?

That way the OVA stuff would be left behind…

I’m getting desperate now I have found the root cause of all this mahem…

Ok… another thought…

When I do a vanilla install (wiping the nvme disk first obvs), and HA boots, its all ok,no ova remnants obviously.

Before I restore, can I either delete the other slot or indeed copy good slot over bad within the backup set?

Another thought…is there a way to backup HA and ONLY the running slot data?

TIA

Hi Guys

Does anyone have thoughts? I really dont want to (cant face) doing a ground up rebuild…

Can I delete the incorrect slot?

Do I just use the tools to force a copy of one slot to another?

There must be a way of forcing this or deleting the wrong slot…?

TIA

the boot slots are in boot managere (not sure if its ‘grub’ still). Dealing with boot tools like that broke my brain before (wanted to deal with some cpu feature flag). It should be possible to

  1. pause booting before a slot is chosen
  2. modify boot options then and there with some special CLI for grub (if its still grub that HAOS uses for booot manager)

but i cant help you on the how, as i failed myself doing so

1 Like

I came across the following some time back and only made a note about it (haven’t done this myself):

2 Likes