Importing Converted Disk to LVM Storage

parisi

New Member
Dec 22, 2022
7
0
1
Recent Proxmox adopter here.
  1. I have added a NVME drive to my system for VM storage.
  2. I have it named VMStorageOne under the server node, its type is LVM.
  3. I am able to create VM's there.
  4. I have a VHDX file that I want to convert.
  5. I have the VMDK file on a disk named Dir1.
  6. How do I take the converted qcow2 file and move it to the LVM (or wherever it should be)?
Thanks,
Paul.
 
Thank you!

I just went through that documentation in detail.

It looks like

qemu-img convert -f vmdk /mnt/usb/windows-server/windows-server.vmdk -O qcow2 /var/lib/vz/images/100/windows-server.qcow2

will put the disk in /var/lib/vz/images/100/

How do I put that disk image into VMStorage? I think that is the right terminology. :)

I have attached a screen clip of my config.
 

Attachments

  • 2023-04-26_17-14-42.png
    2023-04-26_17-14-42.png
    177 KB · Views: 24
The disks in PVE must be named to conform to a certain standard: https://pve.proxmox.com/wiki/Storage:_Directory (File Naming conventions).
Once you have the disk with appropriate name in appropriate place, you can execute "qm rescan" (man qm) to bring the disk as "unattached" to VM config. The final step is to "attach" the disk, which can be done via GUI or CLI.
The next, optional, phase is to move the disk to different storage type. You can use the UI to "move disk" and it will be converted from qcow/raw file format to raw blocks, if the target is LVM.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
This is very helpful. If I may ask a follow up question...

If I had the NVME connected when I first installed the machine,

1. -- what would it have been named
2. -- what type would it (or should it) have been.

This is a simple home lab server for learning. I am mostly interested in what general recommendations are. As I mentioned in the previous post, I want to use the entirety of the NVME to store my various VMs. How do I "extend" the current storage location? I am sure I am still missing something. I appreciate your patience!

Thanks,
Paul.
 

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!