Proxmox

From Chorke Wiki
Revision as of 17:25, 18 October 2024 by Shahed (talk | contribs)
Jump to navigation Jump to search

Ubuntu

lxc image list images:debian bookworm $(dpkg --print-architecture)
lxc list -f=json|jq -r '.[]|select(.name == "proxmox")|.name'
lxc launch images:debian/12 proxmox --vm

lxc list -f=json|jq -r '.[]|select(.state.status == "Running")|[.name, .status]|@tsv'
lxc list -f=json|jq -r '.[]|select(.state.status == "Running")|.name'

cat << EXE | lxc exec proxmox -- bash
apt-get update;echo
apt list -a --upgradable; apt-get upgrade -y
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
EXE

Ubuntu » LXD

curl -fsSL http://download.proxmox.com/debian/proxmox-release-bookworm.gpg\
 | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/proxmox.gpg >/dev/null

DISTRIBUTION=$(. /etc/os-release && echo "${VERSION_CODENAME}")
cat << SRC | sudo tee /etc/apt/sources.list.d/proxmox.list >/dev/null
deb [arch=$(dpkg --print-architecture)\
 signed-by=/etc/apt/trusted.gpg.d/proxmox.gpg]\
 http://download.proxmox.com/debian/pve ${DISTRIBUTION} pve-no-subscription
SRC

echo 'apt-get update;echo;apt list -a --upgradable'|sudo bash

References