I'm migrating FreeNas to Proxmox

acujl

New Member
Apr 1, 2020
3
0
1
22
Hello there, I hope you guys don't mind another noob in your forums..
I'm still trying to understand how does this platform work so sorry for any mistakes and thanks in advance for your help!

Here's my zpool and zfs list output: https://pastebin.com/LtG3wizT

So right now I've managed to import the zfs into proxmox but right now I have some questions/problems:
  • I used to have 2 VM's in my FreeNas server and they are still alive ("SSD/UbuntuServer " and "SSD/Gaming Machine "), can I "recover" them and use them on proxmox?
  • I also had some NSF and SMB shared folders ("Backup-1TB-Toshibas/backups" and "HDD-Plex/Plex-Media ") how do I access them?
  • And finally, I was trying to create a VM and while importing the iso I noticed that my memory on "local (pve)" was already full (since I installed proxmox on a Pendrive)! Can I expand it or create a new "local (pve)" with a new disc?
once again, thank you for your time!
 

Attachments

  • 1.png
    1.png
    43.4 KB · Views: 23
  • 2.png
    2.png
    38.5 KB · Views: 23
And finally, I was trying to create a VM and while importing the iso I noticed that my memory on "local (pve)" was already full (since I installed proxmox on a Pendrive)! Can I expand it or create a new "local (pve)" with a new disc?
First of, running PVE from a pendrive is not recommended, as the OS does some rather heavy writes (for a pendrive, mind you) to the root partition (logging, etc...). I'd recommend to reinstall on a real disk now, before making too many configuration changes you'd have to replicate.

You can of course also transfer your existing install over to a new disk and expand the partitions there, but that's trickier.

  • I used to have 2 VM's in my FreeNas server and they are still alive ("SSD/UbuntuServer " and "SSD/Gaming Machine "), can I "recover" them and use them on proxmox?
  • I also had some NSF and SMB shared folders ("Backup-1TB-Toshibas/backups" and "HDD-Plex/Plex-Media ") how do I access them?
Yes, that's possible. You can simply attach them to VMs as drives if you name them correctly. For example:
Code:
<create a VM via the GUI, settings as you want them, with a new drive (size doesn't matter) on your "SSD" ZFS pool, remember the VMID, do not start it yet>
<ssh into your PVE host>
# zfs list
...
SSD/vm-XXX-disk-0
...
<the XXX is your VMID from before>
# zfs destroy SSD/vm-XXX-disk-0
# zfs rename SSD/UbuntuServer SSD/vm-XXX-disk-0
# qm rescan
Do the same for your other VM and start them up. They should boot from the old disks.

For the data drives, you can rename them just like above (e.g. zfs rename Backup-1TB-Toshibas/backups Backup-1TB-Toshibas/vm-XXX-disk-1 - note the 1 at the end!) and do another qm rescan.

They should now show up in the GUI as "unused drives", and when you double click them you can add them to VM via a bus of your choice.
 
First of, running PVE from a pendrive is not recommended, as the OS does some rather heavy writes (for a pendrive, mind you) to the root partition (logging, etc...). I'd recommend to reinstall on a real disk now, before making too many configuration changes you'd have to replicate.

You can of course also transfer your existing install over to a new disk and expand the partitions there, but that's trickier.


Yes, that's possible. You can simply attach them to VMs as drives if you name them correctly. For example:
Code:
<create a VM via the GUI, settings as you want them, with a new drive (size doesn't matter) on your "SSD" ZFS pool, remember the VMID, do not start it yet>
<ssh into your PVE host>
# zfs list
...
SSD/vm-XXX-disk-0
...
<the XXX is your VMID from before>
# zfs destroy SSD/vm-XXX-disk-0
# zfs rename SSD/UbuntuServer SSD/vm-XXX-disk-0
# qm rescan
Do the same for your other VM and start them up. They should boot from the old disks.

For the data drives, you can rename them just like above (e.g. zfs rename Backup-1TB-Toshibas/backups Backup-1TB-Toshibas/vm-XXX-disk-1 - note the 1 at the end!) and do another qm rescan.

They should now show up in the GUI as "unused drives", and when you double click them you can add them to VM via a bus of your choice.

First of all, thank you so much for your time and patience.
I was trying to follow your steps and while trying to create the VM on GUI I found that I can't select my SSD zfs pool even though I have a lot of free space left, it simply dosen't appear as a option on my Hard Disk tab.

1585853084497.png
 
you still have to create a storage for each zpool via datacenter -> storage -> add -> zfs
 
I did it! Added the zfs storage and followed your steps but when I initialize the VM it's giving me a "Booting from Hard Drive.." forever!
It's been like this for 15min on a SSD:
1586043223471.png
 

Attachments

  • Annotation 2020-04-05 003431.png
    Annotation 2020-04-05 003431.png
    31.1 KB · Views: 14
  • Annotation 2020-04-05 003427.png
    Annotation 2020-04-05 003427.png
    37.4 KB · Views: 10
Hm, you could try attaching a live OS image (e.g. a debian live CD .iso) to your VM and boot from that. Then you have a live system from which you can inspect your original disk and potentially fix any issues preventing boot.
 

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!