QT - Proxmox VE

Part 1 of 1 in a series
Quick Tips

Here are three quick tips for you if you're using Proxmox VE as your daily hypervisor. This will be the start of my Quick Tips series where I will share...well, exactly what it sounds like, quick copy-paste tips for various stuff Proxmox related.

#1 Run the post install script after a fresh PVE installation

This script is part of the Proxmox VE Helper-Scripts community and it does a few things: disables/enables the enterprise repositories, removes the subscription nag (but keep in mind that you SHOULD help the Proxmox devs for providing this wonderful product for free), disables HA and Corosync, enables the no-subscription repo (and the testing repo if you want) and update the installation to the latest version. Just run this command in your PVE shell and follow the on-screen wizard.

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/post-pve-install.sh)"

#2 Quick reset a container password

If you're using containers in Proxmox, you can easily reset the root password via the Proxmox host. Use the commands bellow in the shell and you're done.

pct enter <id> #insert container ID from Proxmox to get inside it
passwd #to set a new root password

#3 Quick reset a VM password

For VMs, the reset password process is similar, but it depends on a few things. First, the VM must be running and also have the Qemu Guest Agent installed and active. Also for Windows VMs, if the filesystem is read-only, domain policies override local accounts, or the agent is not responding, it will not work. Remember that you need to replace <VMID> with the actual VM ID listed in Prxmox.

Linux VM - root user

qm guest exec <VMID> -- bash -c "echo 'root:NewStrongPasswordHere' | chpasswd"

Linux VM - normal user

qm guest exec <VMID> -- bash -c "echo 'username:NewStrongPasswordHere' | chpasswd"

Windows VM

qm guest exec <VMID> -- powershell.exe -Command "net user Administrator NewStrongPasswordHere" #replace Administrator with the actual user name, if different

share

Was this article helpful?

Let me know so I can keep improving.

Related articles

🤖
AI & LLMs
How to Install OpenClaw on Ubuntu and Complete Your First Setup
Install OpenClaw on Ubuntu, run the recommended onboarding flow, verify the Gateway, and open the Control UI safely on a VPS without exposing it carelessly on day one.