mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #140] reset vm root password #71
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#71
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nadermx on GitHub (Jun 2, 2023).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/140
Hi, I see that the API offers this
https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/agent/set-user-passwordAnd I see the qm command offers it
But honestly I can't seem to get any variation of the wrapper to execute it.
Seems to be about the closest I got, any help would be appreciated
Edit:
Also tried this, which seems to run, but does not actually reset the password
@jhollowe commented on GitHub (Jun 2, 2023):
you need to use the parameter names from the API docs you linked to directly instead of in
data.So the call would be
vm.agent("set-user-password").post(username='root', password=new_password)(assuming you have not already encrypted the password)I haven't tested this, but that should be what you need. Please reopen if that doesn't work for you!