freenas-proxmox/README.md

5.5 KiB
Raw Blame History

FreeNAS ZFS over iSCSI interface Donate

JFrog support is NOT the best and I am having so many issues just trying to login to the product. The backend product works like a champ but I was experimenting with it and didnt have it exactly right before it automatically logged me out and could not get back in. Currently, looking at Cloudsmith with some success there but I dont have control of the components section (e.g.-main, testing).

!!!2022-05-31 - This is temporary but may become permenant in the future if Cloudsmith implemets a feature for having other "components" like 'testing'. Use the following to get the repo:

curl -1sLf \
  'https://dl.cloudsmith.io/public/ksatechnologies/truenas-proxmox/setup.deb.sh' \
  | sudo -E bash

This version of 'freenas-proxmox' @ Cloudsmith

- Support for TrueNAS 13 is available
- Patched for issues with TrueNAS-Scale paths that had more then one level (e.g. Tank/Disk/vDisks) when converting slashes to dashes.

Thank you for all that have recently donated to the project - Updated 2022-05-25

Alexander Finkhäuser - Reoccuring
Bjarte Kvamme - Reoccuring
Jonathan Schober - Reoccuring
Mark Komarinski
Jesse Bryan
Maksym Vasylenko
Daniel Most
Velocity Host
Robert Hancock

And thanks to all that have donated to the project in the past.

Clevvi Technology
Mark Elkins
Marc Hodler
Martin Gonzalez

I have created a debian repo that holds a package to install scripts into the Proxmox VE system that will automatically do all the necessary patching when one or any combo of the following files are changed in the Proxmox VE stream:

/usr/share/pve-manager/js/pvemanagerlib.js    <- From package pve-manager
/usr/share/pve-docs/api-viewer/apidoc.js      <- From package pve-docs
/usr/share/perl5/PVE/Storage/ZFSPlugin.pm     <- From package libpve-storage-perl

It will also install the /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm (The FreeNAS API plugin), git and librest-client-perl

If you wish, you may remove the directory 'freenas-proxmox' where your system is currently housing the repo and then issue the following to have a clean system before installing the package.

On Proxmox 5

apt install --reinstall pve-manager pve-docs libpve-storage-perl

On Proxmox 6

apt reinstall pve-manager pve-docs libpve-storage-perl

On Proxmox 7

apt reinstall pve-manager pve-docs libpve-storage-perl

ATTENTION: UNAVAILABLE AT THIS TIME.

Issue the following to install the repo and get your Proxmox VE updating the FreeNAS patches automatically:

wget http://repo.ksatechnologies.com/debian/pve/ksatechnologies-release.gpg -O /etc/apt/trusted.gpg.d/ksatechnologies-repo.gpg
echo "deb http://repo.ksatechnologies.com/debian/pve stable freenas-proxmox" > /etc/apt/sources.list.d/ksatechnologies-repo.list

I will be using a 'testing' repo to develop the new phase of the Proxmox VE FreeNAS plugin.

This next phase will introduce the following...

  • Auto detection of the Proxmox VE version
  • Auto detection of the FreeNAS version so it will use the V1 or V2 API's or you can select it manually via the Proxmox VE FreeNAS modal
  • Remove the need for SSH keys and use the API
    • This is tricky because the format needs to be that of the output of'zfs list' which is not part of the LunCmd but that of the backend Proxmox VE system and the API's do a bunch of JSON stuff.

If you'd like, you may also issue the following commands now or later to use the 'testing' repo.
Just comment the 'stable' line and uncomment the 'testing' line in
/etc/apt/sources.list.d/ksatechnologies-repo.list to use. 'testing' is disabled be default.
ATTENTION: UNAVAILABLE AT THIS TIME.

echo "" >> /etc/apt/sources.list.d/ksatechnologies-repo.list
echo "# deb http://repo.ksatechnologies.com/debian/pve testing freenas-proxmox" >> /etc/apt/sources.list.d/ksatechnologies-repo.list

Then issue the following to install the package

apt update
apt install freenas-proxmox

Then just do your regular upgrade via apt to your system; the package will automatically issue all commands to patch the files.

apt update
apt [full|dist]-upgrade

If you wish not to use the package you may remove it at anytime with

apt [remove|purge] freenas-proxmox

This will place you back to a normal and unpatched Proxmox VE install.

Please be aware that this plugin uses the FreeNAS APIs and NOT the ssh/scp interface like the other plugins use, but...

You will still need to configure the SSH connector for listing the ZFS Pools because this is currently being done in a Proxmox module (ZFSPoolPlugin.pm). To configure this please follow the steps at https://pve.proxmox.com/wiki/Storage:_ZFS_over_iSCSI that have to do with SSH between Proxmox VE and FreeNAS. The code segment should start out mkdir /etc/pve/priv/zfs.

  1. Remember to follow the instructions mentioned above for the SSH keys.

  2. Refresh the Proxmox GUI in your browser to load the new Javascript code.

  3. Add your new FreeNAS ZFS-over-iSCSI storage using the FreeNAS-API.

  4. Thanks for your support.