How to know you are inside a LXD container?

You have access to a virtual machine, you need to find out what virtualization technology it uses, you can install virt-what

Then run virt-what command, it will show what virtualization technology you are using.

Another way to find is using the command. If you use LXD container, you will see the following files/directories.

Also mount command will show many lxcfs mounts.

Identify LXD container

See LXD

Leave a Reply

Your email address will not be published. Required fields are marked *