目录

pve安装笔记

虚拟usb启动

参考评论区

1
args: -device 'qemu-xhci,addr=0x18' -drive 'id=synoboot,file=/root/synoboot.img,if=none,format=raw' -device 'usb-storage,id=synoboot,drive=synoboot,bootindex=1'

PVE删除local-lvm分区

1
2
lvremove pve/data
lvextend -l +100%FREE -r pve/root

在数据中心-存储中删除local-lvm分区,并编辑local,在内容一项中勾选所有可选项

禁用TSO GSO

i226-v 网卡启用TSO GSO会频繁宕

临时禁用 重启失效

1
2
# eno1 为网卡
ethtool -K eno1 tso off gso off

持久化配置

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Path to /etc/network/if-up.d/disabletso
# Disables TCP offloading on all ifaces
#
# Inspired by: @Michelunik https://serverfault.com/a/422554/62953

RUN=true
case "${IF_NO_TOE,,}" in
    no|off|false|disable|disabled)
        RUN=false
    ;;
esac


# Other offloading options that could be disabled (not TCP related):
#  sg tso ufo gso gro lro rxvlan txvlan rxhash
# see man ethtool

if [ "$MODE" = start -a "$RUN" = true ]; then
  TOE_OPTIONS="tso gso"
  for TOE_OPTION in $TOE_OPTIONS; do
    /sbin/ethtool --offload "$IFACE" "$TOE_OPTION" off &>/dev/null || true
  done
fi

通过SLAAC获取IPV6

1
2
3
4
5
6
7
/etc/sysctl.conf
net.ipv6.conf.all.accept_ra=2
net.ipv6.conf.default.accept_ra=2
net.ipv6.conf.vmbr0.accept_ra=2
net.ipv6.conf.all.autoconf=1
net.ipv6.conf.default.autoconf=1
net.ipv6.conf.vmbr0.autoconf=1

禁用IPV6

1
2
3
4
5
# /etc/sysctl.conf
# disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1