Skip to content

Instantly share code, notes, and snippets.

@zph
Last active March 17, 2021 05:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zph/01119c836dca98293581c0e20f07c927 to your computer and use it in GitHub Desktop.
Save zph/01119c836dca98293581c0e20f07c927 to your computer and use it in GitHub Desktop.
Install zfs from source on Proxmox
# Credit https://happyadministrator.com/2021/01/03/zfs-2-0-0-final-install-on-proxmox-6-x/
# Revised to work around UTS_RELEASE error by ZPH 2021/03/01
apt-get upgrade
apt-get upgrade
apt-get install build-essential autoconf automake libtool gawk alien fakeroot dkms libblkid-dev uuid-dev libudev-dev libssl-dev zlib1g-dev libaio-dev libattr1-dev libelf-dev pve-headers python3 python3-dev python3-setuptools python3-cffi libffi-dev git
apt install pve-headers-$(uname -r)
cd /tmp/
git clone https://github.com/zfsonlinux/zfs
cd zfs/
git checkout zfs-2.0.3
sh autogen.sh
make deb
./configure
make deb
apt-get remove zfsutils-linux
rm -f kmod-zfs-devel*.deb
dpkg -i ./*.deb
apt install zfsutils-linux
shutdown -r now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment