how to import vm's from another vmhost into proxmox

linhu

New Member
Aug 19, 2023
27
0
1
Hi, i have a old vm system and will move all the vm's to proxmox, how can i do that?
The vm on the old systems has .img format.
So what is the best solution?
 
I would go for qm import via CLI:

qm importdisk
An alias for qm disk import.
qm importovf <vmid> <manifest> <storage> [OPTIONS]
Create a new VM using parameters read from an OVF manifest
<vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
<manifest>: <string>
path to the ovf file
<storage>: <string>
Target storage ID
--dryrun <boolean>
Print a parsed representation of the extracted OVF parameters, but do not create a VM
--format <qcow2 | raw | vmdk>
Target format

qm disk import <vmid> <source> <storage> [OPTIONS]
Import an external disk image as an unused disk in a VM. The image format has to be supported by qemu-img(1).
<vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
<source>: <string>
Path to the disk image to import
<storage>: <string>
Target storage ID
--format <qcow2 | raw | vmdk>
Target format

https://pve.proxmox.com/pve-docs/qm.1.html
 

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!