rancher / elemental

Elemental is an immutable Linux distribution built to run Rancher and its corresponding Kubernetes distributions RKE2 and k3s. It is built using the Elemental-toolkit
https://elemental.docs.rancher.com/
Apache License 2.0
293 stars 39 forks source link

usb drive with iso seems to be single use #372

Closed agracey closed 1 year ago

agracey commented 1 year ago

What steps did you take and what happened: When I burn an iso to a USB drive then boot a NUC with it something seems to happen and I can't boot a second time without burning again.

What did you expect to happen: I would expect that the USB can be used many times without issue.

Anything else you would like to add: This seems to be new behavior in 0.6.0 or the newer Teal image.

NUCs use /dev/nvme0n1

Machine Registration:

apiVersion: elemental.cattle.io/v1beta1
kind: MachineRegistration
metadata:
  name: homelab
  namespace: fleet-default
spec:
  config:
    cloud-config:
      registration: {}
      users:
      - name: root
        passwd: root
    elemental:
      install:
        device: /dev/nvme0n1
        eject-cd: true
        poweroff: true
      registration: {}
      system-agent: {}
  machineInventoryLabels:
    registration: homelab
    serialNumber: ${Base Board Information/Serial Number}
  machineName: homelab-${Base Board Information/Serial Number}

I will keep this iso around in case anyone wants to shoulder surf to diagnose

Environment:

davidcassany commented 1 year ago

What steps did you take and what happened: When I burn an iso to a USB drive then boot a NUC with it something seems to happen and I can't boot a second time without burning again.

Weird, did it happen after the installation or just with a simple boot?

agracey commented 1 year ago

After installation.

I could switch the auto-install flag and see if it happens after a simple boot as well. I'm running low on time this week so it might be a bit before I can try it though :(

davidcassany commented 1 year ago

I could not reproduce it on my libvirt env (I set added a real USB from plugged in my host into the VM for that). After the installation it reboots to the actual installed disk and if on early boot and get into the OVMF menu and I choose to boot from the USB it just works as expected...

I used the and ISO build from rancher/elemental-cli#336, the mentioned PR changes the ISO setup, however I doubt this has any relation to the issue reported here.

agracey commented 1 year ago

I wonder if there's only an issue with real hardware?

agracey commented 1 year ago

From a test with @Itxaka earlier this morning: after a bios change (that shouldn't have mattered), I can't reproduce again. Closing until I can...

kkaempf commented 1 year ago

after a bios change (that shouldn't have mattered)

Which BIOS setting was changed ??

Itxaka commented 1 year ago

Which BIOS setting was changed

I don't think this is relevant as each motherboard has a different efi settings, so it may not be applicable to others. Same thing as comparing ovmf efi settings with any others, they just won't match.

agracey commented 1 year ago

For posterity, I turned on the EUFI shell boot option...

My only guess is that something was weird with the boot order prior and that change fixed it? I had previously changed some boot order options but was seeing the issue even when selecting the boot device manually (via holding F10 at boot). Super weird 🤷‍♂️