Giter Club home page Giter Club logo

freenas-proxmox's Introduction

FreeNAS ZFS over iSCSI interface Donate

Thank you for all that have donated to the project

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

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.

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.

freenas-proxmox's People

Contributors

beam avatar hans00 avatar qskwood avatar raczkow avatar sontru avatar thegrandwazoo avatar tl8roy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.