[SOLVED] Help importing existing disks/datasets to VM

Hitcorz

New Member
Apr 13, 2024
5
0
1
So I am new to Proxmox and have just installed it on my machine.

and I am having some trouble figuring out how to (if even possible) import disk/datasets that already have data on them to a VM.

so for some background. the machine that has Proxmox on had Truenas installed before I installed Proxmox.
I have now installed Proxmox and created a VM with a Truenas install. all that works as it should.
my dilemma is that I want to add all the disks and datasets that Truenas had back to Truenas without wiping the data from the disks
I basically just want a passthrough for the disks to the VM

I understand how to add a new wiped disk to the VM but adding the already existing disk is where I am stuck and I am having trouble finding any help online.

so I thought I would ask for help here,
I have attached a screen cap of the disks I want to add to the VM

appreciate all the help I can get, Thank you
 

Attachments

  • prox.PNG
    prox.PNG
    36 KB · Views: 3
Don't import the pools on the PVE host or otherwise you can't passthrough them. Or if you try you will corrupt its data. That means you can't use these disks for anything else than TrueNAS.

Only option for TrueNAS to access the real physical disks directly (so that SMART will work, no virtualization overhead, correct sectorsize and so on) would be to buy a HBA card and PCI passthrough the whole HBA with all SATA/SAS disks attached to it.
For NVMe SSDs you could PCI passthrough them directly. See: https://pve.proxmox.com/wiki/PCI_Passthrough

If you can't use PCI passthrough your only option would be to "Disk passthrough" individual disks: https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)
But with that TrueNAS would still work with virtual disks and in case any disk fails the VM would fail to start until you remove the disk passthrough of the failed disk, even if the pool would be still healthy and working because of parity/mirrors.
 
  • Like
Reactions: Hitcorz
Don't import the pools on the PVE host or otherwise you can't passthrough them. Or if you try you will corrupt its data. That means you can't use these disks for anything else than TrueNAS.

Only option for TrueNAS to access the real physical disks directly (so that SMART will work, no virtualization overhead, correct sectorsize and so on) would be to buy a HBA card and PCI passthrough the whole HBA with all SATA/SAS disks attached to it.
For NVMe SSDs you could PCI passthrough them directly. See: https://pve.proxmox.com/wiki/PCI_Passthrough

If you can't use PCI passthrough your only option would be to "Disk passthrough" individual disks: https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)
But with that TrueNAS would still work with virtual disks and in case any disk fails the VM would fail to start until you remove the disk passthrough of the failed disk, even if the pool would be still healthy and working because of parity/mirrors.
Thank you for all the help.
Six of the disks are on a HBA card. So a quick fix.
And the two other disk I have where easy to pass through with the link you gave me.
 

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!