mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-03 17:27:17 +08:00
Update README.md
This commit is contained in:
parent
a8b56ce6b6
commit
428df67bb1
1 changed files with 7 additions and 21 deletions
|
@ -32,27 +32,7 @@ guestfish -a xxx -i -c "cat /etc/ssh/sshd_config"
|
|||
qm exec 虚拟机ID /bin/bash
|
||||
```
|
||||
|
||||
### 创建一堆不同系统的虚拟机测试qcow2镜像
|
||||
|
||||
```
|
||||
./buildvm.sh 102 test1 1234567 1 512 5 40001 41002 41003 50000 50001 ubuntu18
|
||||
./buildvm.sh 103 test2 1234567 1 512 5 40002 42002 42003 50002 50003 ubuntu20
|
||||
./buildvm.sh 104 test3 1234567 1 512 5 40003 43002 43003 50004 50005 ubuntu22
|
||||
./buildvm.sh 105 test4 1234567 1 512 5 40004 44002 44003 50006 50007 debian9
|
||||
./buildvm.sh 106 test5 1234567 1 512 5 40005 45002 45003 50008 50009 debian10
|
||||
./buildvm.sh 107 test6 1234567 1 512 5 40006 46002 46003 50010 50011 debian11
|
||||
./buildvm.sh 113 test12 1234567 1 512 5 40012 49004 48873 50022 50023 archlinux
|
||||
```
|
||||
|
||||
```
|
||||
./buildvm.sh 108 test7 1234567 1 512 5 40007 47002 47003 50012 50013 centos7
|
||||
./buildvm.sh 111 test10 1234567 1 512 5 40010 49001 49993 50018 50019 almalinux8
|
||||
./buildvm.sh 112 test11 1234567 1 512 5 40011 49003 48883 50020 50021 almalinux9
|
||||
./buildvm.sh 114 test13 1234567 1 512 5 40013 49005 48863 50024 50025 alpinelinux_v3_15
|
||||
./buildvm.sh 115 test14 1234567 1 512 5 40014 49006 48864 50026 50027 alpinelinux_v3_17
|
||||
./buildvm.sh 109 test8 1234567 1 512 5 40008 48002 48003 50014 50015 centos8-stream
|
||||
./buildvm.sh 110 test9 1234567 1 512 5 40009 49002 49903 50016 50017 centos9-stream
|
||||
```
|
||||
### 卸载所有虚拟机
|
||||
|
||||
```
|
||||
for vmid in $(qm list | awk '{if(NR>1) print $1}'); do qm stop $vmid; qm destroy $vmid; rm -rf /var/lib/vz/images/$vmid*; done
|
||||
|
@ -63,3 +43,9 @@ systemctl restart networking.service
|
|||
rm -rf vm*
|
||||
```
|
||||
|
||||
### 卸载PVE整体环境
|
||||
|
||||
```
|
||||
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/back/uninstallpve.sh -o uninstallpve.sh && chmod +x uninstallpve.sh && bash uninstallpve.sh
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue