raspiblitz icon indicating copy to clipboard operation
raspiblitz copied to clipboard

Proxmox VM Upgrade - Reboot Loop when HDD attached

Open curemici opened this issue 11 months ago • 4 comments

Describe the bug When starting the the raspiblitz VM on Proxmox with the attached HDD with the blockchain data, the VM reboots after some seconds.

To Reproduce

  1. REPAIR - MIGRATION, saved the migration file, stopped the raspiblitz-VM Seen that it would better to use UPDATE, so

  2. Restart the raspiblitz VM - UPDATE - RELEASE - UPDATE NOW - saved backup file - stopped the raspiblitz-VM with the old version

  3. Prepared VM based on Debian 12.8 and build sdcard - first with branch v.11.1 and HDD (with blockchain and old data) attached

  4. Restart raspiblitz VM - after about 10 seconds it reboots. When I manage to login I see the rebooting dialog counter. When I press cancel I get the message with the ssh login, but it continues with shutdown and reboot.

  5. Prepared VM based on Debian 12.8 and build sdcard - now with branch dev and NO HDD attached. I could login but it asks for the HDD. As soon as I attach the HDD it also falls into the reboot loop.

(I've restarted my old raspi VM version again, so I can change on the HDD of do different preparing steps, if necessary)

curemici avatar Dec 14 '24 23:12 curemici

Hmm .. so there are some "reboots" in the boostrap script .. we would need to pin down which it is.

For this can you do the following:

  • Boot up, connect/patchthru HDD and let reboot.
  • Disconnect HDD on bootup
  • Login per SSH, CTRL+C to terminal and cat /home/admin/raspiblitz.last.log
  • Paste the last lines of that log file here for debugging

rootzoll avatar Dec 17 '24 15:12 rootzoll

check that display class in raspiblitz.conf from HDD is different from as it is now in raspiblitz.info ... infoFileDisplayClass(headless) confFileDisplayClass(lcd) DISPLAY RESTORE - need to update displayClass from (headless) to (lcd)' blitz.display.sh set-display raspi_configfile(/boot/config.txt) raspi_commandfile(/boot/cmdline.txt) blitz.display.sh set-display lcd baseimage(debian) err='LCD not supported on VM' No UASP FIX needed Reboot

sudo bash build_sdcard.sh -f false -d headless -t false -w off

sudo nano /mnt/hdd/raspiblitz.conf search displayClass=lcd change this in displayClass=headless

Sep21-2009 avatar Feb 03 '25 18:02 Sep21-2009

@Sep21-2009 Do you use a physical HDD? I never had this issue with a VM on Proxmox using two virtual disks.

Maybe this difference is relevant to solve this issue.

My upgrade procedure:

  • Reinstall Debian on OS disk
  • Download and execute build_sdcard.sh
  • Reboot VM (Don't use q35 in VM configuration. It has an audio device and that skips provisioning)

adevoss avatar Feb 04 '25 18:02 adevoss

Yes, I have a physical SSD. Have a look at the log file that @rootzoll wrote, in my case the display setting was LCD as described if you have a display error there then look in the conf I posted to see if it says LCD and change it if so as I described

cat /home/admin/raspiblitz.last.log If you read this there

err='LCD not supported on VM'

Then

sudo nano /mnt/hdd/raspiblitz.conf displayClass=lcd change this in displayClass=headless

Sep21-2009 avatar Feb 04 '25 19:02 Sep21-2009