VM creation commands from running Proxmox

imranrazakhan

New Member
Jun 10, 2022
3
0
1
Hi,

I am new to virtualization, proxmox.

I have been assigned a task to prepare Disaster Recovery scripts for already running proxmox server since 5 years. This setup was prepared wih manual steps through GUI, CLI and no proper documents available.

Is there any way i can export creaion commands from current running setup, I know we can do backups / snapshot but i am more intterestd to have Infrstructure as code (Iac).

I did some search and found
Bash:
qm config
option but i dont know how i cant convert this to proper qm command for creation.
 
There is no "converter" from config to runnable qm/pvesh/etc commands, that I am aware of. You can just save the configuration files completely.
They are located here : "/etc/pve/qemu-server/"
A simple recovery is to place the file back in that location.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Like bbgeek17 already wrote, you don't need to convert the config files to a create command, you can simply move them to the qemu-server folder in /etc/pve, after which they will appear in the GUI and will be configurable normally.

However, please keep in mind that simply copying the VM configuration files will not make your VMs usable right from the start, as you will have to fix the setup for the VM disks first (or import them from somewhere).
 
  • Like
Reactions: imranrazakhan
There is no "converter" from config to runnable qm/pvesh/etc commands, that I am aware of. You can just save the configuration files completely.
They are located here : "/etc/pve/qemu-server/"
A simple recovery is to place the file back in that location.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Thanks, Yes after copying i can see VM under Virtual Machine section, Can we import VM disk schema/partition layout without content? I just need VM like old system with similar partitions and without data.
 

About

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!