burmilla / os

Tiny Linux distro that runs the entire OS as Docker containers
https://burmillaos.org
Apache License 2.0
210 stars 13 forks source link

Failed to boot after upgrade from 2.0.0-rc2 to 2.0.0 #175

Open ghysler opened 5 months ago

ghysler commented 5 months ago

**BurmillaOS Version: 2.0.0-rc2

Where are you running BurmillaOS? Proxmox

Which processor architecture you are using? x64

Do you use some extra hardware? (GPU, etc)? no.

Which console you use (default, ubuntu, centos, etc..) Default.

Do you use some service(s) which are not enabled by default? qemu-guest-agent

Have you installed some extra tools to console? No.

Do you use some other customizations? No.

Please share copy of your cloud-init (remember remove all sensitive data first)

# sudo ros config export output
hostname: a.b.c
rancher:
  console: default
  docker:
    engine: docker-20.10.22
  environment:
    EXTRA_CMDLINE: /init
  network:
    interfaces:
      eth0:
        address: x.x.x.x/24
        gateway: x.x.x.x
  services:
    console:
      labels:
      - io.docker.compose.rebuild=false
      - io.rancher.os.after=network
      - io.rancher.os.console=default
      - io.rancher.os.scope=system
  services_include:
    qemu-guest-agent: true
  state:
    dev: LABEL=RANCHER_STATE
    wait: true
  upgrade:
    url: https://raw.githubusercontent.com/burmilla/releases/v2.0.x/releases.yml
ssh_authorized_keys:
- ssh-rsa pubkey

After upgrading to the final version of 2.0.0, BurmillaOS will not completely boot. I am unable to reach the VM via network, but also the console is not functional (no login prompt). If I select to boot 2.0.0-rc2 from GRUB, it boots successfully. Do I have to perform additional steps when upgrading from rc2?

Screenshot of console after booting 2.0.0 final attached.

Clipboarder 2024 03 22

olljanat commented 5 months ago

Yes, these 2.0.0 rc1 and rc2 are special cases which had some changes included which made upgrading from older versions more tricky. Those was reverted like mentioned https://github.com/burmilla/os/issues/161#issuecomment-1978726247

From these versions, please look upgrade guide in https://github.com/burmilla/os/releases/tag/v2.0.0-rc1

ghysler commented 5 months ago

I'm not sure I'm following. I am currently running rc2 and trying to upgrade to the final version. The instructions you shared are for upgrading from 1.9.x to 2.0.0-rcx, right? Anyway I attempted to use these instructions to upgrade to 2.0.0 final, but the result is the same: stuck during boot.

How can I revert the changes from the upgrade to rc2?

olljanat commented 5 months ago

I mean that there is need to do those extra steps mentioned on that release notes to force console rebuild when upgrading from rc1 or rc2.

olljanat commented 5 months ago

How can I revert the changes from the upgrade to rc2?

You should see previous versions option in boot menu.

ghysler commented 5 months ago

The only options I have in my boot menu are for 2.0.0-rc2 and 2.0.0-final.

Apparently I needed to reboot the system before disabling console rebuild again with the command mentioned on the 2.0.0-rc1 release notes. Somehow I was under the impression the reboot should be performed only after disabling console rebuild.

It would have been nice to see clear update instructions on the current release, for users coming from rc1/rc2. Anyway, I am running 2.0.0 now :) Thanks for your prompt reply.

olljanat commented 5 months ago

Apparently I needed to reboot the system before disabling console rebuild again with the command mentioned on the 2.0.0-rc1 release notes. Somehow I was under the impression the reboot should be performed only after disabling console rebuild.

Yes, upgrade is only completed by reboot.

It would have been nice to see clear update instructions on the current release, for users coming from rc1/rc2.

Not sure that how many actually read those release notes but let's leave this issue open for a while so those coming from those two versions can see it.

tai-ss commented 5 months ago

One thing that's not mentioned anywhere in the documentation is 2.0.0 changed console to tty1, whereas 2.0.0-rc2 used tty0. This made me wonder why the console never came up when I did an upgrade. Only after doing a clean install did I see the console change.

olljanat commented 5 months ago

@tai-ss on which platform you are running BurmillaOS? There should be console on all TTYs even on this upgrade scenario.

tai-ss commented 5 months ago

I'm running it as a VM under FreeBSD 13.1-RELEASE-p9's bhyve type 2 hypervisor.


Samuel S. Tai @.***

On Sat, Mar 30, 2024 at 2:34 PM Olli Janatuinen @.***> wrote:

@tai-ss https://github.com/tai-ss on which platform you are running BurmillaOS? There should be console on all TTYs even on this upgrade scenario.

— Reply to this email directly, view it on GitHub https://github.com/burmilla/os/issues/175#issuecomment-2028436502, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFPVZ5DNP3L6N6HM4MZTC7TY23ZRLAVCNFSM6AAAAABFECNUU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRYGQZTMNJQGI . You are receiving this because you were mentioned.Message ID: @.***>