Proxmox PVE 6 設定筆記

安裝好之後的相關設定:

1.

改 source.list
nano /etc/apt/sources.list
deb http://ftp.tw.debian.org/debian buster main contrib
deb http://ftp.tw.debian.org/debian buster-updates main contrib
deb http://download.proxmox.com/debian/pve buster pve-no-subscription
# security updates
deb http://security.debian.org buster/updates main contrib

2.

去企業版
nano /etc/apt/sources.list.d/pve-enterprise.list
#deb https://enterprise.proxmox.com/debian wheezy pve-enterprise

3.

去 ipv6
nano /etc/gai.conf
precedence ::ffff:0:0/96 100

4.

去註冊提醒
wget -q -O – ‘https://gist.github.com/tavinus/08a63e7269e0f70d27b8fb86db596f0d/raw/’ | /bin/sh

 

systemctl restart pveproxy

5.

apt-get update
apt-get dist-upgrade -y –force-yes

6.

改 : replication runner
systemctl edit –full pvesr.timer
#修改Minutely 为 Monthly
#如果需要改成 hourly daily weekly 也行
systemctl daemon-reload

7.

對時
Using Custom NTP Servers
In some cases, it might be desired to not use the default NTP servers. For example, if your Proxmox VE nodes do not have access to the public internet (e.g., because of restrictive firewall rules), you need to setup local NTP servers and tell systemd-timesyncd to use them:

File /etc/systemd/timesyncd.conf
[Time]
NTP=ntp1.example.com ntp2.example.com ntp3.example.com ntp4.example.com
After restarting the synchronization service (systemctl restart systemd-timesyncd) you should verify that your newly configured NTP servers are used by checking the journal (journalctl –since -1h -u systemd-timesyncd):

8.

PVE 6 的 duplicati

8.1

要查一下是否有新版本:

https://updates.duplicati.com/beta/duplicati_2.0.5.1-1_all.deb

8.2

sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo “deb http://download.mono-project.com/repo/debian buster main” | sudo tee /etc/apt/sources.list.d/mono-official.list
sudo apt-get update
sudo apt-get install mono-devel

8.3

sudo apt install apt-transport-https sudo nano git-core python software-properties-common dirmngr -y

8.4

wget https://updates.duplicati.com/beta/duplicati_2.0.5.1-1_all.deb

8.5

sudo apt install ./duplicati_2.0.5.1-1_all.deb -y

 

8.6

要創建2個檔案:

1.: /etc/systemd/system/duplicati.service

sudo nano /etc/systemd/system/duplicati.service
內容:
#=============================================
[Unit]
Description=Duplicati web-server
After=network.target

[Service]
Nice=19
IOSchedulingClass=idle
EnvironmentFile=-/etc/default/duplicati
ExecStart=/usr/bin/duplicati-server $DAEMON_OPTS
Restart=always

[Install]
WantedBy=multi-user.target
#=============================================

 

2. Edit the file /etc/default/duplicati and add DAEMON_OPTS options to your liking:
可以改 連接port
sudo nano /etc/default/duplicati

#=============================================
# Defaults for duplicati initscript
# sourced by /etc/init.d/duplicati
# installed at /etc/default/duplicati by the maintainer scripts

#
# This is a POSIX shell fragment
#

# Additional options that are passed to the Daemon.
DAEMON_OPTS=”–webservice-interface=any –webservice-port=8288 –portable-mode”
#==============================================

8.7

Enable, start and check running status of the duplicati service:

下指令:
sudo systemctl enable duplicati.service
sudo systemctl daemon-reload
sudo systemctl start duplicati.service
sudo systemctl status duplicati.service

發佈留言

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料