[SOLVED] Api Restore Parameters


Sep 15, 2017

I have a problem with my script but I don't find logs to see if I missing a parameter, so I would like to know if there others parameters that I will have forgot for Lxc? I would like to create a restoration system.

I use these parameters :

POST /api2/json/nodes/{node}/lxc
vmid, ostemplate and storage.

Can you help me ?

Thank you in advance.

Best regards,

you can find a full list of all api paths and their options here[0]

the parameters you use should be ok for restoring a container with the settings in the template. what about {node} though?

where does the problem occur exactly? do you see the restored container on PVE? do you get some kind of error in your scripts execution? we can't really help you much without more info.

it works for me if i run:
pvesh create /nodes/localhost/lxc --ostemplate local:vztmpl/alpine-3.8-default_20180913_amd64.tar.xz --vmid 120 --storage local-lvm

which is the same as sending a post request with the given options

[0]: https://pve.proxmox.com/pve-docs/api-viewer/index.html
Hello oguz,

Thank you for your reply, when I run this :
pvesh create /nodes/Volos/lxc --ostemplate Backup:backup/vzdump-lxc-105-2019_06_05-18_16_37.tar.gz --vmid 105 --storage containers

It return : CT 105 already exists on node 'Volos'
Apparently it's doesn't launch the restauration system but it try to create a new virtual machine.

Best regards,


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!