Skip to content
jiangcuo edited this page Feb 4, 2024 · 2 revisions

Linux Container

1. Download Lxc template

1.1 proxmox webui

do pveam update to fresh lxc template,then you will see arm-lxc on proxmox webui

1.2 Proxmox-Port-Repo

https://mirrors.apqa.cn/proxmox/lxc/

1.3 jenkins.linuxcontainers.org

https://jenkins.linuxcontainers.org/view/LXC/job/image-{distribution}/

https://jenkins.linuxcontainers.org/view/LXC/job/image-debian/
https://jenkins.linuxcontainers.org/view/LXC/job/image-ubuntu/
https://jenkins.linuxcontainers.org/view/LXC/job/image-centos/
https://jenkins.linuxcontainers.org/view/LXC/job/image-rockylinux/
https://jenkins.linuxcontainers.org/view/LXC/job/image-alpine/
https://jenkins.linuxcontainers.org/view/LXC/job/image-gentoo/
https://jenkins.linuxcontainers.org/view/LXC/job/image-fedora/
https://jenkins.linuxcontainers.org/view/LXC/job/image-archlinux/
...

Download the rootfs.tar.xz and upload to proxmox ve vztmpl dir

2. create a lxc vm

2.1 download template

wget -P /var/lib/vz/template/cache/ \
-o debian-arm64-bullseye.tar.xz \
https://mirrors.apqa.cn/proxmox/lxc/debian/debian-bullseye-20230903-arm64-rootfs.tar.xz

2.2 create lxc vmid=200

pct create 200 --rootfs local:10 \
--hostname debian-bullseye \
--password passwd \
local:vztmpl/debian-arm64-bullseye.tar.xz
start and connect

pct start 200 && pct console 200

Debian12 note

Debian12 lxc-image using systemd-network, We need create by command first or don't create any nic when lxc setup .You can add a nic when create done.

https://github.com/jiangcuo/Proxmox-Port/issues/3