Replacing a VM disk when it's zvol on ZFS pool

mixomatosys

New Member
Oct 15, 2022
2
0
1
Boston
Hello, I'm currently trying to install GNS3 on my Proxmox VE server which requires using the ESXi OVA and converting disks to qcow in order to run it. My storage for VMs in my server is a ZFS pool and I seem to be running into a wall at the step where I'm supposed to replace the VM disks with the converted files from the OVA. It appears when you run a ZFS pool like this the files just aren't stored normally in the filesystem but rather become zvols and this is where I'm stumped on how to replace this file.

This is my zfs list: https://i.imgur.com/W3vMv7E.png

The two highlighted disks are the ones that I need to replace with the converted vmdk files from the OVA. Does anyone know how to do this?
 
A ZFSPool Storage can only store VM/LXCs virtual disks as datasets/zvols with raw and not qcow2. But qcow2 files can be stored on a Directory Storage and a directory storage can point to a mountpoint of any filesystem.
So what you can do is to create a new dataset on your ZFS pool (for example zfs create YourPool/NewDatasetName) and you can then go to Datacenter -> Storage -> Add -> Directory to create a new Directory Storage pointing to the mountpoint of that dataset (usually "/YourPool/NewDatasetName/"). But don't forget to run pvesm set --is_mountpoint yes StorageIdOfYourNewDirectoryStorage afterwards or you might run into problems.
 
Last edited:
thanks for the reply. i actually just figured it out a different way and what i was really looking for is the 'qm importdisk' option. this got me going.
 

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!