Skip to content

Conversation

@hardys
Copy link
Contributor

@hardys hardys commented Oct 2, 2023

Adds optional registration with elemental which is possible since a change landed to decouple registration from the choice of OS[1]

Note that in this case the VM should not have any k3s or RKE2 deployment enabled, since this will be handled via elemental-system-agent after the host is registered as MachineInventory with elemental

Example config:

ELEMENTAL_REGISTER=true
ELEMENTAL_CONFIG="$HOME/Downloads/test_registrationURL.yaml"

Note that test_registrationURL.yaml can be downloaded from the elemental UI, where a MachineRegistration named "test" has been created.

[1] rancher/elemental-operator#516

Adds optional registration with elemental which is possible since
a change landed to decouple registration from the choice of OS[1]

Note that in this case the VM should not have any k3s or RKE2 deployment
enabled, since this will be handled via elemental-system-agent after the
host is registered as MachineInventory with elemental

Example config:

ELEMENTAL_REGISTER=true
ELEMENTAL_CONFIG="$HOME/Downloads/test_registrationURL.yaml"

Note that test_registrationURL.yaml can be downloaded from the elemental
UI, where a MachineRegistration named "test" has been created.

[1] rancher/elemental-operator#516
Copy link
Contributor

@rdoxenham rdoxenham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!


# Register --no-toolkit disables OS management
elemental-register --config-path /etc/elemental/config.yaml --state-path /etc/elemental/state.yaml --install --no-toolkit --emulate-tpm --emulated-tpm-seed 99

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the emulated TPM is required currently - I tried to get the TPM support that landed in the latest UTM versions working, but SLEMicro won't boot - I'll try to figure that out and we can potentially resolve in a follow-up

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming that the TPM issue is only for UTM and not bare-metal? (I don't think I had this issue with my NUCs)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@agracey I've not tested on bare-metal yet but yes this should just be a VM-specific issue, on UTM if you enable the recently-added TPM support it enables secure-boot, which stops SLEMicro booting - I expect this is solvable (and I know it can be made to work with Libvirt on Linux) but I've not yet had time to dig into it.

@hardys hardys requested a review from e-minguez October 3, 2023 09:18
Copy link
Contributor

@e-minguez e-minguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'll create an issue to add a couple of things:

  • Check if rke2/k3s has been enabled as well and if so, fail
  • Run the TPM emulation only on OSX VMs

@e-minguez e-minguez merged commit 91317ec into suse-edge:main Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants