Create a LXC Container on Proxmox
- Go to proxmox
- Click on the
Create CTbutton
Parameter General |
Values need to change |
|---|---|
CT ID |
The ID from our container 101 |
Hostname |
The name of the container Test-Name |
Password |
Password testPassword |
Parameter Template |
Values need to change |
|---|---|
Template |
Template of the container ubuntu-24.04-standard_24.04-2_amd64.tar.zst |
Parameter Memory |
Values need to change |
|---|---|
Memory (MiB) |
Memory 1024 for 1GB 2048 for 2GB etc... |
Swap (MiB) |
Swap Memory 1024 for 1GB 2048 for 2GB etc... |
Parameter Network |
Values need to change |
|---|---|
Gateway (IPv4) |
IP address from the router 192.168.178.1 |
IPv4/CIDR |
Use free unused IP address 192.168.178.100/24 |
- Don't check the button
Start after createdbutton - Click finish and the container gets created
- Click on the created LXC container and go to the
optionstab and double click onfeatures - Make sure
keyctlandNestingis checked and click OK - Now start the container and go to the
Consoletab - Log into the container with
rootand the password heretestPassword - To enable ssh login run this command
nano /etc/ssh/sshd_configand find#PermitRootLogin prohibit-password - Replace
#PermitRootLogin prohibit-passwordwithPermitRootLogin yes - And save the file with
Strg + oand exit withStrg + x - Update and reboot the container with
apt update && apt upgrade -y && reboot