mirror of
https://github.com/thelittlerocket/pve.git
synced 2024-11-15 11:38:00 +08:00
Update install_iso.sh
This commit is contained in:
parent
e9a040568e
commit
64066a2248
1 changed files with 18 additions and 10 deletions
|
@ -7,27 +7,35 @@ echo "2. LXC 的模板目录(/var/lib/vz/template/cache/)"
|
||||||
echo "3. 全都要"
|
echo "3. 全都要"
|
||||||
read -p "请输入选项编号(1或2): " choice
|
read -p "请输入选项编号(1或2): " choice
|
||||||
|
|
||||||
# 下载Ubuntu和Debian的最新系统镜像
|
|
||||||
wget -P /root/ https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
|
|
||||||
wget -P /root/ https://github.com/spiritLHLS/pve/releases/download/debian-11.6.0-amd64-netinst.iso/debian-11.6.0-amd64-netinst.iso
|
|
||||||
|
|
||||||
# 将镜像文件移动到Proxmox VE的模板目录中
|
# 将镜像文件移动到Proxmox VE的模板目录中
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
1)
|
1)
|
||||||
|
wget -P /root/ https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
|
||||||
|
wget -P /root/ https://github.com/spiritLHLS/pve/releases/download/debian-11.6.0-amd64-netinst.iso/debian-11.6.0-amd64-netinst.iso
|
||||||
mv /root/focal-server-cloudimg-amd64.img /var/lib/vz/template/iso/
|
mv /root/focal-server-cloudimg-amd64.img /var/lib/vz/template/iso/
|
||||||
mv /root/debian-11.6.0-amd64-netinst.iso /var/lib/vz/template/iso/
|
mv /root/debian-11.6.0-amd64-netinst.iso /var/lib/vz/template/iso/
|
||||||
echo "已将镜像文件移动到 Proxmox VE 的模板目录"
|
echo "已将镜像文件移动到 Proxmox VE 的模板目录"
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
mv /root/focal-server-cloudimg-amd64.img /var/lib/vz/template/cache/
|
wget -P /root/ http://download.proxmox.com/images/system/ubuntu-20.04-standard_20.04-1_amd64.tar.gz
|
||||||
mv /root/debian-11.6.0-amd64-netinst.iso /var/lib/vz/template/cache/
|
wget -P /root/ http://download.proxmox.com/images/system/debian-11-standard_11.3-0_amd64.tar.gz
|
||||||
|
wget -P /root/ http://download.proxmox.com/images/system/debian-10-standard_10.7-1_amd64.tar.gz
|
||||||
|
mv /root/ubuntu-20.04-standard_20.04-1_amd64.tar.gz /var/lib/vz/template/cache/
|
||||||
|
mv /root/debian-11-standard_11.3-0_amd64.tar.gz /var/lib/vz/template/cache/
|
||||||
|
mv /root/debian-10-standard_10.7-1_amd64.tar.gz /var/lib/vz/template/cache/
|
||||||
echo "已将镜像文件移动到 LXC 的模板目录"
|
echo "已将镜像文件移动到 LXC 的模板目录"
|
||||||
;;
|
;;
|
||||||
3)
|
3)
|
||||||
cp /root/focal-server-cloudimg-amd64.img /var/lib/vz/template/iso/
|
wget -P /root/ https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
|
||||||
cp /root/debian-11.6.0-amd64-netinst.iso /var/lib/vz/template/iso/
|
wget -P /root/ https://github.com/spiritLHLS/pve/releases/download/debian-11.6.0-amd64-netinst.iso/debian-11.6.0-amd64-netinst.iso
|
||||||
mv /root/focal-server-cloudimg-amd64.img /var/lib/vz/template/cache/
|
mv /root/focal-server-cloudimg-amd64.img /var/lib/vz/template/iso/
|
||||||
mv /root/debian-11.6.0-amd64-netinst.iso /var/lib/vz/template/cache/
|
mv /root/debian-11.6.0-amd64-netinst.iso /var/lib/vz/template/iso/
|
||||||
|
wget -P /root/ http://download.proxmox.com/images/system/ubuntu-20.04-standard_20.04-1_amd64.tar.gz
|
||||||
|
wget -P /root/ http://download.proxmox.com/images/system/debian-11-standard_11.3-0_amd64.tar.gz
|
||||||
|
wget -P /root/ http://download.proxmox.com/images/system/debian-10-standard_10.7-1_amd64.tar.gz
|
||||||
|
mv /root/ubuntu-20.04-standard_20.04-1_amd64.tar.gz /var/lib/vz/template/cache/
|
||||||
|
mv /root/debian-11-standard_11.3-0_amd64.tar.gz /var/lib/vz/template/cache/
|
||||||
|
mv /root/debian-10-standard_10.7-1_amd64.tar.gz /var/lib/vz/template/cache/
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "无效的选项,程序退出"
|
echo "无效的选项,程序退出"
|
||||||
|
|
Loading…
Reference in a new issue