File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 2626## 安装 KubeVirt 环境
2727
2828``` bash
29- bash <( wget -qO- https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/kubevirtinstall.sh)
29+ bash <( curl -sSL https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/kubevirtinstall.sh)
3030```
3131
3232## 开设单个虚拟机
3333
3434``` bash
35- wget -q https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/onevm.sh
35+ curl -sSL -o onevm.sh https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/onevm.sh
3636chmod +x onevm.sh
3737./onevm.sh < name> < cpu> < memory_gb> < disk_gb> < password> < sshport> < startport> < endport> [system]
3838```
@@ -81,31 +81,31 @@ chmod +x onevm.sh
8181## 批量开设虚拟机
8282
8383``` bash
84- wget -q https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/create_vm.sh
84+ curl -sSL -o create_vm.sh https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/create_vm.sh
8585chmod +x create_vm.sh
8686./create_vm.sh
8787```
8888
8989## 查看所有虚拟机
9090
9191``` bash
92- wget -q https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/listvms.sh
92+ curl -sSL -o listvms.sh https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/listvms.sh
9393chmod +x listvms.sh
9494./listvms.sh
9595```
9696
9797## 删除单个虚拟机
9898
9999``` bash
100- wget -q https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/deletevm.sh
100+ curl -sSL -o deletevm.sh https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/deletevm.sh
101101chmod +x deletevm.sh
102102./deletevm.sh < name>
103103```
104104
105105## 卸载(完整清理)
106106
107107``` bash
108- bash <( wget -qO- https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/kubevirtuninstall.sh)
108+ bash <( curl -sSL https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/kubevirtuninstall.sh)
109109```
110110
111111## 日志文件
Original file line number Diff line number Diff line change @@ -450,7 +450,7 @@ print_summary() {
450450 echo " virtctl console <name> -n kubevirt-vms # 进入 VM 控制台"
451451 echo " "
452452 echo " 开始使用:"
453- echo " wget -q https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/onevm.sh"
453+ echo " curl -sSL -o onevm.sh https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/onevm.sh"
454454 echo " chmod +x onevm.sh"
455455 echo " ./onevm.sh vm1 2 2 20 MyPass 25000 34975 35000 debian"
456456 echo " "
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ check_onevm_script() {
3131 ONEVM_SCRIPT=" ./onevm.sh"
3232 else
3333 _info " 正在下载 onevm.sh..."
34- wget -q https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/onevm.sh -O /tmp /onevm.sh
34+ curl -sSL -o /tmp/onevm.sh https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/onevm.sh
3535 chmod +x /tmp/onevm.sh
3636 ONEVM_SCRIPT=" /tmp/onevm.sh"
3737 fi
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ list_all_vms() {
6262 _warn " 当前没有虚拟机。"
6363 echo " "
6464 echo " 使用以下命令创建虚拟机:"
65- echo " wget -q https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/onevm.sh"
65+ echo " curl -sSL -o onevm.sh https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/onevm.sh"
6666 echo " chmod +x onevm.sh"
6767 echo " ./onevm.sh vm1 2 2 20 MyPass 25000 34975 35000 debian"
6868 return
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ check_prerequisites() {
8080 fi
8181
8282 if ! command -v kubectl > /dev/null 2>&1 && ! command -v k3s > /dev/null 2>&1 ; then
83- _error " 未找到 kubectl/k3s,请先运行安装脚本:bash <(wget -qO- .../kubevirtinstall.sh)"
83+ _error " 未找到 kubectl/k3s,请先运行安装脚本:bash <(curl -sSL .../kubevirtinstall.sh)"
8484 fi
8585
8686 # 使用 k3s kubectl 如果没有独立 kubectl
You can’t perform that action at this time.
0 commit comments