whiskerz007 / proxmox_hassos_install

MIT License
881 stars 192 forks source link

proxmox main os disk crashed - how to restore the haasos disks on new proxmox VM? #93

Open thk70 opened 3 years ago

thk70 commented 3 years ago

Hi I tried to make a new hassos install and and all started just fine. The I replaced the EFI and sata0 disk with the original ones (residing on a different disk than Proxmox OS) but now it boots to EFI prompt. Anyone know about this UEFI boot stuff?

onlinegill commented 3 years ago

Do you have backup of entire VM ? do have following : under hardware : Bios OVMF (UEFI) ? Under options boot order : Disk 'sata0'

thk70 commented 3 years ago

Do you have backup of entire VM ? No (yes, but it vanished along with the OS disk) do have following : under hardware : Bios OVMF (UEFI) ? Yes Under options boot order : Disk 'sata0' Yes

It was a hassos try-out, but eventually became quite useful with pretty advanced automations. The VM disk was luckily placed on another disk. It's frustrating the VM disks are there right in front of me, but I cant get to them.

Thanks

meichthys commented 2 years ago

You could try this. it worked for me:


ha-manager set vm:<VMID> --state disabled
# Open GDISK to modify disk partition map
gdisk /dev/zvol/rpool/vm-<VMID>-disk-<DISK#>
# Once GDISK opens, then just use the W command to re-write the partiion map
# Re-enable (start) VM to verify the VM boots using the disk
ha-manager set vm:<VMID> --state enabled```
mdshw5 commented 1 year ago

@meichthys I could kiss you right now! This solved my problem after a failed hassova update!

meichthys commented 1 year ago

No need for a kiss. A good hearty thank you will do 👍