[SOLVED] Add notes via command line?

janvv

Active Member
Jun 21, 2020
64
11
28
66
52.24154182722349, 5.117853866801705
I have Ansible playbooks for creating containers and vms. In the proxmox module I cannot set the Notes that are displayed in the Proxmox GUI.
I would like to add some kind of description. Can that be done through the command line, so that I can script it?
 
Hi,

Using pvesh CLI you can add a notes to your VM e.g
Bash:
pvesh set /nodes/{NodeName}/lxc/{CTID}/config --description foo-bar

Or using bash:
Bash:
echo -e '#foo-bar\n' >> /etc/pve/lxc/VMID.conf
 
Last edited:
  • Like
Reactions: Kosh and janvv