install proxmox in new server\vps

Load RESCUE

(load last version)

connect server+proxy port

ssh -L 8888:127.0.0.1:5901 root@IP.SE.RV.ER

wget http://download.proxmox.com/iso/proxmox-ve_8.2-1.iso

lsblk
(replace nvme0n1 nvme0n0 on your disk)

qemu-system-x86_64 -smp 4 -m 4096 -boot d -cdrom ./proxmox-ve_8.2-1.iso -drive file=/dev/nvme1n1,format=raw,media=disk -drive file=/dev/nvme0n1,format=raw,media=disk -vnc 127.0.0.1:1

connect from vnc 127.0.0.1:8888
install server
shutdown

disconect qemu-system-x86_64
connect without cd

qemu-system-x86_64 -smp 4 -m 4096 -boot d file=/dev/nvme1n1,format=raw,media=disk -drive file=/dev/nvme0n1,format=raw,media=disk -vnc 127.0.0.1:1

change networck
nano /etc/network/inetrface

proxmox setup network

proxmox backup add CIFS

создаем файл с доступами

nano /etc/samba/credentials

username=****
password=****

ctrl+s
ctrl+x
chmod 600 /etc/samba/credentials

монтируем диск

mount.cifs -o cache=none,credentials=/etc/samba/credentials,noperm,vers=3.0,gid=1000,iocharset=utf8,sec=ntlmssp,file_mode=0770,dir_mode=0770 //****.your-storagebox.de/backup /mnt/pve/****.your-storagebox.de

proxmox-backup-manager datastore create CIFS_REPO /mnt/pve/****.your-storagebox.de/synctumbackup --comment 'Backups directory via cifs'


nano /etc/network/interfaces
add mount

auto ens18
iface ens18 inet static
	address 10.5.0.250/24
	gateway 10.5.0.1

	post-up mount.cifs -o cache=none,credentials=/etc/samba/credentials,noperm,vers=3.0,gid=1000,iocharset=utf8,sec=ntlmssp,file_mode=0770,dir_mode=0770 //u411724.your-storagebox.de/backup /mnt/pve/u411724.your-storagebox.de

proxmox setup network

ip route
default via 116.***.***.129 dev eth0
116.***.***.128/26 via 116.***.***.129 dev eth0
116.***.***.129 dev eth0 scope link

# get corectly name
ip link show
cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto enp0s31f6
iface enp0s31f6 inet static
address 116.***.***.149/26
gateway 116.***.***.129
dns-nameservers 1.1.1.1 8.8.8.8
post-up iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o enp0s31f6 -j MASQUERADE

auto vmbr0
iface vmbr0 inet static
address 10.0.0.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

source /etc/network/interfaces.d/*

auto snapshot

apt install zfs-auto-snapshot