Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Proxmox

You're reading from   Mastering Proxmox Build virtualized environments using the Proxmox VE hypervisor

Arrow left icon
Product type Paperback
Published in Nov 2017
Publisher Packt
ISBN-13 9781788397605
Length 494 pages
Edition 3rd Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Wasim Ahmed Wasim Ahmed
Author Profile Icon Wasim Ahmed
Wasim Ahmed
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Understanding Proxmox VE and Advanced Installation 2. Creating a Cluster and Exploring the Proxmox GUI FREE CHAPTER 3. Proxmox under the Hood 4. Storage Systems 5. Installing and Configuring Ceph 6. KVM Virtual Machines 7. LXC Virtual Machines 8. Network of Virtual Networks 9. The Proxmox VE Firewall 10. Proxmox High Availability 11. Monitoring the Proxmox Cluster 12. Proxmox Production-Level Setup 13. Back Up and Restore Virtual Machines 14. Updating/Upgrading Proxmox 15. Proxmox Troubleshooting 16. Rescuing Proxmox

Accessing an LXC container


There are several ways in which we can access an LXC container:

  • The noVNC console
  • SSH
  • Direct shell through the CLI

The noVNC console

We can access and view the container directly from the GUI using the noVNC console. It is almost visual remote access to the instance. The console is identical to a KVM virtual machine. If we try to access the container using the console after a long period of inactivity, it may appear as just a cursor and no login option:

By simply pressing the Enter key, we can make the login prompt appear, as shown in the following screenshot:

Direct shell through the CLI

One of the best features of an LXC container is the ability to directly access the container shell through the CLI of the host node. The Proxmox command to access the LXC container shell is as follows:

# pct enter <ct_id>

This gives us the direct shell prompt of the container, as shown in the following screenshot:

In the previous example, we are accessing the LXC container ubuntu-01...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime