Clevvi Technology
Mark Elkins - Reoccuring
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
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
- 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.
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
.
-
Remember to follow the instructions mentioned above for the SSH keys.
-
Refresh the Proxmox GUI in your browser to load the new Javascript code.
-
Add your new FreeNAS ZFS-over-iSCSI storage using the FreeNAS-API.
-
Thanks for your support.