I got plenty of VPS from two hosting providers, one of them is on KVM and I recognize that by this answer. I have a container VPS and this procedure doesn't work.

I want to recognize how to figure out the host that I connected by SSH, is on a containerization or a virtualization environment?

Thanks in advance.

  • The answer you linked to seems quite good. I don't understand what that answer lacked. – user535733 May 10 '20 at 12:59

LXD Containers return an accurate response to hostnamectl.

$ hostnamectl status

   Static hostname: minecraft
         Icon name: computer-container
           Chassis: container   <------------------------------
        Machine ID: 968f535e727041b7b8ef53f8c1a5b4d6
           Boot ID: 5b60eb28aafe4e1cb6c70cc23b3b78df
    Virtualization: lxc  <-------------------------------------
  Operating System: Ubuntu 19.10
            Kernel: Linux 5.4.0-29-generic
      Architecture: x86-64

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.