Linux pve02 6.8.4-2-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.4-2 (2024-04-10T17:36Z) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Nov 23 15:41:19 WIB 2024 on pts/0
root@pve02:~# apt install nfs-kernel-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package nfs-kernel-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'nfs-kernel-server' has no installation candidate
root@pve02:~# apt update
Get:1 http://security.debian.org bookworm-security InRelease [48.0 kB]
Get:2 http://ftp.debian.org/debian bookworm InRelease [151 kB]
Get:3 http://ftp.debian.org/debian bookworm-updates InRelease [55.4 kB]   
Get:4 http://security.debian.org bookworm-security/main amd64 Packages [204 kB]
Err:5 https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease
  401  Unauthorized [IP: 51.79.228.122 443]
Err:6 https://enterprise.proxmox.com/debian/pve bookworm InRelease
  401  Unauthorized [IP: 51.79.228.122 443]
Get:7 http://security.debian.org bookworm-security/main Translation-en [125 kB]
Get:8 http://security.debian.org bookworm-security/contrib amd64 Packages [644 B]
Get:9 http://security.debian.org bookworm-security/contrib Translation-en [372 B]
Get:10 http://ftp.debian.org/debian bookworm/main amd64 Packages [8,789 kB]
Get:11 http://ftp.debian.org/debian bookworm/main Translation-en [6,109 kB]                                                                                  
Get:12 http://ftp.debian.org/debian bookworm/contrib amd64 Packages [54.1 kB]                                                                                
Get:13 http://ftp.debian.org/debian bookworm/contrib Translation-en [48.8 kB]                                                                                
Get:14 http://ftp.debian.org/debian bookworm-updates/main amd64 Packages [2,468 B]                                                                           
Get:15 http://ftp.debian.org/debian bookworm-updates/main Translation-en [2,928 B]                                                                           
Get:16 http://ftp.debian.org/debian bookworm-updates/contrib amd64 Packages [768 B]                                                                          
Get:17 http://ftp.debian.org/debian bookworm-updates/contrib Translation-en [408 B]                                                                          
Reading package lists... Done                                                                                                                                
E: Failed to fetch https://enterprise.proxmox.com/debian/ceph-quincy/dists/bookworm/InRelease  401  Unauthorized [IP: 51.79.228.122 443]
E: The repository 'https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/bookworm/InRelease  401  Unauthorized [IP: 51.79.228.122 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve bookworm InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@pve02:~# apt install nfs-kernel-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  nfs-kernel-server
0 upgraded, 1 newly installed, 0 to remove and 77 not upgraded.
Need to get 151 kB of archives.
After this operation, 626 kB of additional disk space will be used.
Get:1 http://ftp.debian.org/debian bookworm/main amd64 nfs-kernel-server amd64 1:2.6.2-4 [151 kB]
Fetched 151 kB in 0s (499 kB/s)       
Selecting previously unselected package nfs-kernel-server.
(Reading database ... 45770 files and directories currently installed.)
Preparing to unpack .../nfs-kernel-server_1%3a2.6.2-4_amd64.deb ...
Unpacking nfs-kernel-server (1:2.6.2-4) ...
Setting up nfs-kernel-server (1:2.6.2-4) ...
Created symlink /etc/systemd/system/nfs-client.target.wants/nfs-blkmap.service → /lib/systemd/system/nfs-blkmap.service.
Created symlink /etc/systemd/system/multi-user.target.wants/nfs-server.service → /lib/systemd/system/nfs-server.service.
nfs-mountd.service is a disabled or a static unit, not starting it.
nfsdcld.service is a disabled or a static unit, not starting it.

Creating config file /etc/exports with new version

Creating config file /etc/default/nfs-kernel-server with new version
Processing triggers for man-db (2.11.2-2) ...
root@pve02:~# zfs create rpool/data/nfs_share
root@pve02:~# 
root@pve02:~# chmod 777 /rpool/data/nfs_share
root@pve02:~# 
root@pve02:~# nano /etc/exports
root@pve02:~# 
root@pve02:~# cat /etc/exports 
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#
/rpool/data/nfs_share  *(rw,sync,no_subtree_check,no_root_squash)
root@pve02:~# 
root@pve02:~# exportfs -ra
root@pve02:~# 
root@pve02:~# systemctl restart nfs-kernel-server
root@pve02:~# 
root@pve02:~# exportfs -v
/rpool/data/nfs_share
                <world>(sync,wdelay,hide,no_subtree_check,sec=sys,rw,secure,no_root_squash,no_all_squash)
root@pve02:~

Leave a Reply

Your email address will not be published. Required fields are marked *