Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have a example of New-PveNodesLxc #31

Open
tofkamp opened this issue Jan 27, 2025 · 1 comment
Open

Have a example of New-PveNodesLxc #31

tofkamp opened this issue Jan 27, 2025 · 1 comment

Comments

@tofkamp
Copy link

tofkamp commented Jan 27, 2025

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 ?

@franklupo
Copy link
Member

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

best reagrds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants