Home Proxmox
Post
Cancel

Proxmox

Disable Enterprise Repository and Add the No-Subscription Repository:

  1. Disable the Proxmox Enterprise Repository
    Edit the Proxmox enterprise repository configuration file to disable it:
1
nano /etc/apt/sources.list.d/pve-enterprise.list

Comment out the line in this file by adding a # at the beginning:

1
# deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise

Save and exit the file (Ctrl+O, Enter, Ctrl+X).

  1. Add the No-Subscription Proxmox Repository
    Now, add the Proxmox community repository (no subscription) by creating a new file:
1
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
  1. Update the Package List
    After disabling the enterprise repository and adding the no-subscription repository, update your package list:
1
apt update
  1. Continue with the Tailscale Installation
    Now you can proceed with the remaining commands to install Tailscale, as the package list should update without the 401 Unauthorized error:

Installing Tailscale

After setting up the non enterprise repo you can run:

1
apt update && apt install -y curl && curl -fsSL https://tailscale.com/install.sh | sh

Tailscale in LXC Containers

What is an LXC?

  • A lightweight virtualized Linux system
  • Unprivileged LXC: root user (uid 0) in container maps to unprivileged host user for security

Tailscale in LXC

Tailscale needs /dev/tun access which unprivileged containers don’t usually have. To enable it:

  1. Add these lines to /etc/pve/lxc/[container-id].conf:
1
2
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file
  1. Restart the container

  2. Install Tailscale in the container

1
apt update && apt install -y curl && curl -fsSL https://tailscale.com/install.sh | sh

Adding ISO Files for VM creation

By default all ISO files are stored in /var/lib/vz/template/iso/ so just download them into it with:

1
wget -P /var/lib/vz/template/iso/ <URL_TO_ISO>

Managing LXC Templates

The pveam command in Proxmox is used for managing appliance images and templates. It stands for “Proxmox VE Appliance Manager.” Here are some key uses of the pveam command:

###### List available templates

1
   pveam list
Update the list of available templates
1
   pveam update
Download a template
1
   pveam download local <template-name>
Show details about available templates
1
   pveam available
Remove a downloaded template
1
   pveam remove <template-file>
Search for specific templates
1
   pveam search <search-term>
Show information about a specific template
1
   pveam info <template-name>

These functions allow you to manage the LXC templates available on your Proxmox server, making it easier to create and deploy containers.

This post is licensed under CC BY 4.0 by the author.