Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k8s cannot tell if it is running in a container or a VM #439

Open
jeff-hillman opened this issue May 22, 2024 · 0 comments
Open

k8s cannot tell if it is running in a container or a VM #439

jeff-hillman opened this issue May 22, 2024 · 0 comments
Assignees

Comments

@jeff-hillman
Copy link

jeff-hillman commented May 22, 2024

Summary

When testing with LXD, unless the --vm flag is unsed to create an instance, the instance will start as a machine container as opposed to a VM.

There is no warning from k8s during bootstrap, or otherwise, that the system it is in doesn't have necessary lxd-profile settings required to run, which are not enabled by default.

What Should Happen Instead?

A warning of lack of system permissions should appear

Reproduction Steps

$ lxc launch ubuntu:24.04 k8s-test
$ lxc exec ubuntu:24.04 bash
$ snap install k8s --classic --edge
$ k8s bootstrap
$ k8s status --wait-ready (fails)

System information

lxd container, ubuntu 24.04

Can you suggest a fix?

No response

Are you interested in contributing with a fix?

No response

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

No branches or pull requests

2 participants