Follow Creating a Basic VM on Proxmox.
Notes:
Follow
To access the "long-lived access token" from Home Assistant,
log in to the Home Assistant UI
click on your username in the bottom-left corner
choose the Security tab.
scroll down to the LLAT.