Compare commits

...
11 Commits
Author SHA1 Message Date
狐狸Nomad 7a2c3034c2 update 2.PVE初始化配置.md.
Signed-off-by: 狐狸Nomad <9463297+callmer@user.noreply.gitee.com>
2022-11-17 06:37:41 +00:00
狐狸Nomad 252580cb9e 修复IPv6网关
Signed-off-by: 狐狸Nomad <9463297+callmer@user.noreply.gitee.com>
2022-11-17 06:30:40 +00:00
狐狸Nomad e8dbdcb201 删除文件 img/pve_br_last_phyport.png 2022-11-17 06:30:15 +00:00
狐狸Nomad 264c5ee1c1 修复IPv6网关
Signed-off-by: 狐狸Nomad <9463297+callmer@user.noreply.gitee.com>
2022-11-17 06:25:43 +00:00
狐狸Nomad 0e992e2b21 删除文件 img/pve_net_preview.png 2022-11-17 06:25:10 +00:00
狐狸Nomad 7305c0dc70 update 5.PVE制作虚拟机模板.md.
Signed-off-by: 狐狸Nomad <9463297+callmer@user.noreply.gitee.com>
2022-11-07 09:29:22 +00:00
狐狸Nomad 6d8c36bb54 update 5.PVE制作虚拟机模板.md.
Signed-off-by: 狐狸Nomad <9463297+callmer@user.noreply.gitee.com>
2022-11-06 11:12:00 +00:00
狐狸Nomad 9a68f1afeb update 5.PVE制作虚拟机模板.md.
Signed-off-by: 狐狸Nomad <9463297+callmer@user.noreply.gitee.com>
2022-11-06 09:56:54 +00:00
秋刀狐狸 0bfcd004c0 update 5.PVE制作虚拟机模板.md.
Signed-off-by: 秋刀狐狸 <9463297+callmer@user.noreply.gitee.com>
2022-10-31 16:48:55 +00:00
秋刀狐狸 583b7aef9e update 5.PVE制作虚拟机模板.md.
Signed-off-by: 秋刀狐狸 <9463297+callmer@user.noreply.gitee.com>
2022-10-31 08:52:50 +00:00
秋刀狐狸 3765fcb0a9 add src/Fox_Debian_99_Sysctl.conf.
Signed-off-by: 秋刀狐狸 <9463297+callmer@user.noreply.gitee.com>
2022-10-31 08:46:56 +00:00
5 changed files with 37 additions and 8 deletions
+3 -1
View File
@@ -246,7 +246,9 @@ apt install intel-microcode (amd64-microcode)
![最后的物理接口网桥](img/pve_br_last_phyport.png)
在创建最后一个物理网口的 PVE 网桥时,需要额外配置 `IPv4/IPv6` 和对应的 `网关` 参数。
在创建最后一个物理网口的 PVE 网桥时,需要额外配置 `IPv4` 地址和对应的 `网关` 参数。
`IPv6` 仅需填写地址,无需填写 `网关` 参数。
在所有物理网口的 PVE 网桥创建完成后,可以点击 `应用配置` 按钮,此时页面会失去连接。
+10 -7
View File
@@ -44,11 +44,11 @@ sudo systemctl restart ssh.service
### 1.2.配置系统软件源
使用 SSH 工具登录 Debian 虚拟机,常用 SSH 工具可以看之前文章中的 [SSH 工具推荐](./1.PVE系统安装.md#03ssh工具) 。
使用 SSH 工具登录 Debian 虚拟机,常用 SSH 工具可以看之前文章中的 [SSH 工具推荐](./1.PVE系统安装.md#03ssh工具) 。
首先需要对 Debian 系统的软件源进行修改,这里使用 USTC 的软件源
首先需要对 Debian 系统的软件源进行修改,这里使用 USTC 镜像站作为演示
如果以后系统版本发生变化参考使用 snullp 大叔开发的 [配置生成器](https://mirrors.ustc.edu.cn/repogen/) 。
以后系统版本发生变化时,请参考使用 snullp 大叔开发的 [配置生成器](https://mirrors.ustc.edu.cn/repogen/) 。
逐条执行以下命令:
@@ -79,7 +79,7 @@ deb https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib
# deb-src https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
```
更新软件源的同步内容,并更新系统,逐条执行以下命令:
更新软件源的同步内容,并更新系统,逐条执行以下命令:
```bash
## 清理不必要的包
@@ -96,7 +96,7 @@ sudo apt dist-upgrade
```bash
## 安装系统软件
sudo apt install qemu-guest-agent zsh git curl htop lm-sensors fail2ban vim tmux
sudo apt install qemu-guest-agent zsh git curl htop lm-sensors vim tmux nftables sshguard
## 安装系统自动更新工具
sudo apt install unattended-upgrades apt-listchanges powermgmt-base python3-gi
@@ -109,6 +109,9 @@ sudo apt install snapd
## 安装 Adguard Home
sudo snap install adguard-home
## 写入磁盘
sudo sync
```
Adguard Home 安装完成后,先停止其服务:
@@ -118,7 +121,7 @@ Adguard Home 安装完成后,先停止其服务:
sudo snap stop adguard-home
```
### 1.3.配置系统网卡
### 1.3.配置网卡IPv4
使用 `Cloud-Init` 并给虚拟机分配了静态 IPv4 地址后,虚拟机的网卡还会从路由器的 DHCP 再获取一个 IPv4 地址。
@@ -587,7 +590,7 @@ sudo systemctl status systemd-timesyncd.service
sudo mkdir /etc/systemd/timesyncd.conf.d
## 创建 NTP 配置文件
sudo nano /etc/systemd/timesyncd.conf.d/server-ntp.conf
sudo nano /etc/systemd/timesyncd.conf.d/server_ntp.conf
```
在 nano 编辑器对话框中输入以下内容,并保存:
Binary file not shown.

Before

Width:  |  Height:  |  Size: 213 KiB

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 74 KiB

+24
View File
@@ -0,0 +1,24 @@
# This configuration file is customized by fox
# Optimize system parameters
kernel.panic = 20
kernel.panic_on_oops = 1
net.core.default_qdisc = fq_codel
net.ipv4.tcp_congestion_control = bbr
# Other adjustable system parameters
net.ipv4.conf.all.log_martians = 1
net.ipv4.icmp_ratelimit = 100
net.ipv4.igmp_max_memberships = 100
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 120
net.ipv4.tcp_max_orphans = 4096
net.ipv4.tcp_max_tw_buckets = 4096
net.ipv4.tcp_syncookies = 1
net.ipv6.conf.all.use_tempaddr = 0
net.ipv6.conf.default.use_tempaddr = 0