Promox export NFS disks to local-lvm

saudade1999

New Member
Oct 20, 2023
1
0
1
Im a bit new with proxmox and we are currently migrating our virtualization technology from Ovirt to Proxmox ve. Im running against some practical problems when trying to automate this process. I have configured a nfs storage in both ovirt and proxmox and everything is working as expected. The problem is when trying to import the disks from the nfs to the local-lvm using the ovf defenition files.

I have susscefuly mounted a disk with this sequence of cmds:
Bash:
_> qm create 200 --name TestVM
_>  qm importdisk 200 /path/to/nfs/images/<some_huge_id> local-lvm -format raw

However when I try to run directly the cmd:

Bash:
_>  qm importovf 200  /path/to/nfs/vms/<vm_id>.ovf /path/to/nfs/images/<some_huge_id>
400 Parameter verification failed.
storage: invalid format - storage ID 'images/<some_huge_id>' contains illegal characters
[OPTIONS]


It doenst seem possible to import directly a disk from the nfs without having a vm <vm_id> pre created.
And the cmd 'qm importovf' doens't let create only the defenition of the vm without a local-lvm disk.

I was trying to figure out if there is any way I can simple 'qm impordisk' without expliciting the <vm_id> so I can transfer to the local-lvm with formar RAW or use the 'qm importovf' to only create the vm defenition and then attache it u sing the 'qm impordisk'. I don't know if this makes sense.

Sorry for my bad explanation.
 

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!