Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Proxmox

You're reading from   Mastering Proxmox Master the skills you need to build a rock-solid virtualization environment with the all new Proxmox 4

Arrow left icon
Product type Paperback
Published in May 2016
Publisher Packt
ISBN-13 9781785888243
Length 418 pages
Edition 2nd 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 (16) Chapters Close

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

Managing an LXC container


In Proxmox, each LXC container has two configuration files. One defines the raw resource allocation while the other used by Proxmox is used to define a container. The Proxmox container configuration file can be found at the following location:

/etc/pve/local/lxc/<container_id>.conf

For our example container ID #101, the following are the contents of this configuration file:

The raw container configuration file can be found at

/var/lib/lxc/<container_id>/config.

The following is the content of the resource allocation configuration file for our example container:

There is another directory for the root filesystem that is a mount point for the allocated storage space inside the container. The location of the directory is as follows:

/var/lib/lxc/<container_id>/rootfs/

But in Proxmox, this directory is not used to store container data. For local storage, the container virtual disk image is created in:

/var/lib/vz/images/<container_id>/.

For shared storage...

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
Banner background image