/freenas-proxmox

ZFS over iSCSI to FreeNAS API's from Proxmox VE

Primary LanguagePerlMIT LicenseMIT

TrueNAS ZFS over iSCSI interface Donate

Updates 2023-02-12
- Added systemctl restart pvescheduler.service command to the package.

Roadmap

  • Fix automated builds.
    • Production - 'main' repo component.
  • Package the patches with the deb package.
    • Remove the need for the git dependency.
  • Change to LWP::UserAgent
    • Remove depenancy of the REST::Client because LWP::UserAgent is already installed and used by Proxmox VE.
  • Change from FreeNAS to TrueNAS.
    • Cleanup the FreeNAS repo and name everything to TrueNAS to be inline with the product.
  • Add API key for direct TrueNAS services.
    • Will be a new enable field and API key and will only be used by the plugin.
    • You will still need the SSH keys, username, and password because of Proxmox VE using iscsiadm to get the list of disks.
      • 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.

Thank you for all that have recently donated to the project - Updated 2022-06-04

Alexander Finkhäuser - Recurring
Bjarte Kvamme - Recurring
Jonathan Schober - Recurring
Frederic Silvi
Security Camera
Vincent Cui
Jakub Jochec

Mark Komarinski
Jesse Bryan
Maksym Vasylenko
Daniel Most
Velocity Host
Robert Hancock
Clevvi Technology
Mark Elkins
Marc Hodler
Martin Gonzalez

'main' repo (Follows a release branch - Current 2.x) Currently unavailable.

Will be production ready code that has been tested (as best as possible) from the 'testing' repo.

'testing' repo (Follows the master branch)

Will be 'beta' code for features, bugs, and updates.

New Installs.

Issue the following from a command line:

curl https://ksatechnologies.jfrog.io/artifactory/ksa-repo-gpg/ksatechnologies-release.gpg -o /etc/apt/trusted.gpg.d/ksatechnologies-release.gpg
curl https://ksatechnologies.jfrog.io/artifactory/ksa-repo-gpg/ksatechnologies-repo.list -o /etc/apt/sources.list.d/ksatechnologies-repo.list

Then issue the following to install the package

apt update
apt install freenas-proxmox

Before freenas-proxmox-2.2.0-0-beta8 please issue the following:

systemctl restart pvescheduler.service

due to this post TheGrandWazoo#109 (comment)

Then just do your regular upgrade via apt at the command line or the Proxmox Update subsystem; 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 non-patched Proxmox VE install.

NOTE: Please be aware that this plugin uses the TrueNAS APIs but still uses SSH keys due to the underlying Proxmox VE perl modules that use the iscsiadm command.

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 TrueNAS. 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 TrueNAS ZFS-over-iSCSI storage using the TrueNAS-API.

  4. Thanks for your support.