[GH-ISSUE #31] Have a example of New-PveNodesLxc #22

Closed
opened 2026-02-26 17:32:11 +03:00 by kerem · 1 comment
Owner

Originally created by @tofkamp on GitHub (Jan 27, 2025).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-api-powershell/issues/31

I am trying to create a simple LXC on proxmox with this tool. I can connect and get the proxmox version, so the connection is ok.

New-PveNodesLxc -PveTicket $pveTicket -Arch amd64 -Hostname "hostname"  -NetN @{ 0 = "vmbr0" } `
  -Memory 2000   -Node "pve" -Ostemplate "local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst" -Ostype "debian" `
 -SshPublicKeys $sshkeys -Start -Storage "lvm-local-zfs" -Swap 512  -Tty 2 -Unprivileged -Vmid 1601

I get a 400 "Parameter verification failed", but not which one. The -debug option does not help either.
In the response I can see "VERBOSE: Requested HTTP/1.1 POST with 0-byte payload", which is a bit less than expected.

If I have a working example, I could modify it to fit to my enviroment. Could you provide some examples in the documentation ?
Maybe a simple one, and one with almost every parameter ?

Originally created by @tofkamp on GitHub (Jan 27, 2025). Original GitHub issue: https://github.com/Corsinvest/cv4pve-api-powershell/issues/31 I am trying to create a simple LXC on proxmox with this tool. I can connect and get the proxmox version, so the connection is ok. ``` New-PveNodesLxc -PveTicket $pveTicket -Arch amd64 -Hostname "hostname" -NetN @{ 0 = "vmbr0" } ` -Memory 2000 -Node "pve" -Ostemplate "local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst" -Ostype "debian" ` -SshPublicKeys $sshkeys -Start -Storage "lvm-local-zfs" -Swap 512 -Tty 2 -Unprivileged -Vmid 1601 ``` I get a 400 "Parameter verification failed", but not which one. The -debug option does not help either. In the response I can see "VERBOSE: Requested HTTP/1.1 POST with 0-byte payload", which is a bit less than expected. If I have a working example, I could modify it to fit to my enviroment. Could you provide some examples in the documentation ? Maybe a simple one, and one with almost every parameter ?
kerem closed this issue 2026-02-26 17:32:11 +03:00
Author
Owner

@franklupo commented on GitHub (Jan 27, 2025):

Hi,
works like API https://pve.proxmox.com/pve-docs/api-viewer/index.html

best reagrds

<!-- gh-comment-id:2616089177 --> @franklupo commented on GitHub (Jan 27, 2025): Hi, works like API https://pve.proxmox.com/pve-docs/api-viewer/index.html best reagrds
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-api-powershell#22
No description provided.