Proxmox VE 8

Proxmox ve8移除订阅提示

sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service

Debian12/11/10 开启BBR

echo -e "\nnet.core.default_qdisc=fq\nnet.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf && sysctl -p

输入

sysctl net.ipv4.tcp_congestion_control

如果成功开启,那么会看到以下输出结果

net.ipv4.tcp_congestion_control = bbr

Proxmox VE 8 (PVE8)修改国内软件镜像源

 

# 将此文件的中的所有内容注释掉
nano /etc/apt/sources.list.d/pve-enterprise.list

 

# 下载中科大的GPG KEY
wget https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg

 

# 使用Proxmox非企业版源
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list

 

# 将Debian官方源替换为中科大源
sed -i 's|^deb http://ftp.debian.org|deb https://mirrors.ustc.edu.cn|g' /etc/apt/sources.list
sed -i 's|^deb http://security.debian.org|deb https://mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list

 

# 替换Ceph源
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list

 

# 替换CT镜像下载源
cp /usr/share/perl5/PVE/APLInfo.pm /usr/share/perl5/PVE/APLInfo.pm_back sed -i 's|http://download.proxmox.com|https://mirrors.ustc.edu.cn/proxmox|g' /usr/share/perl5/PVE/APLInfo.pm

针对 /usr/share/perl5/PVE/APLInfo.pm 文件的修改,重启后生效

systemctl restart pvedaemon.service

 

网卡配置文件

/etc/network/interfaces

PVE Tools 

一键安装

echo "nameserver 8.8.8.8" >> /etc/resolv.conf && rm -rf pvetools && rm -rf /etc/apt/sources.list.d/pve-enterprise.list && export LC_ALL=en_US.UTF-8 && apt update && apt -y install git && git clone https://github.com/ivanhao/pvetools.git && echo "cd /root/pvetools && ./pvetools.sh" > pvetools/pvetools && chmod +x pvetools/pvetools* && ln -s /root/pvetools/pvetools /usr/local/bin/pvetools && pvetools

——————————————————————————

镜像转换命令 

 
附命令用法

qemu-img convert -f <原格式> -O <目标格式> <原文件路径> <目标文件路径> 
这里 -f <原格式>可以忽略。qemu-img会自动识别
vmdk转qcow2

qemu-img convert -O qcow2 test.vmdk test.qcow2
#qcow2转vmdk
qemu-img convert -O vmdk test.qcow2 test.vmdk
vdi转qcow2

qemu-img convert -O qcow2 test.vdi test.qcow2
vhd&vhdx转qcow2

qemu-img convert -O qcow2 test.vhdx test.qcow2
RAW转qcow2

qemu-img convert -O qcow2 test.raw test.qcow2
img转qcow2

qemu-img convert -O qcow2 test.img test.qcow2

 

 

 

posted on 2023-10-12 14:26  Atrixin  阅读(278)  评论(0编辑  收藏  举报