mirror of
https://github.com/thelittlerocket/pve.git
synced 2024-11-15 03:24:54 +08:00
Update README.md
This commit is contained in:
parent
14f958b56f
commit
5f0019cb9b
1 changed files with 40 additions and 10 deletions
50
README.md
50
README.md
|
@ -84,14 +84,6 @@ bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spirit
|
|||
bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/pve/main/build_nat_network.sh)
|
||||
```
|
||||
|
||||
### 相关qcow2镜像
|
||||
|
||||
- 已预安装开启cloudinit,开启SSH登陆,预设值SSH监听V4和V6的22端口,开启允许密码验证登陆,开启允许ROOT登陆
|
||||
|
||||
https://github.com/spiritLHLS/Images/releases/tag/v1.0
|
||||
|
||||
## 以下脚本测试开发中勿要使用
|
||||
|
||||
### 单独生成KVM虚拟化的VM
|
||||
|
||||
- 自动开设NAT服务器
|
||||
|
@ -101,12 +93,32 @@ https://github.com/spiritLHLS/Images/releases/tag/v1.0
|
|||
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/buildvm.sh -o buildvm.sh && chmod +x buildvm.sh
|
||||
```
|
||||
|
||||
- 测试开一个NAT服务器
|
||||
#### 使用方法
|
||||
|
||||
- 系统支持:详见 [跳转](https://github.com/spiritLHLS/Images/releases/tag/v1.0) 中列出的系统,使用时只需写文件名字,不需要.qcow2尾缀
|
||||
|
||||
```
|
||||
./buildvm.sh VMID 用户名 密码 CPU核数 内存 硬盘 SSH端口 80端口 443端口 外网端口起 外网端口止 系统
|
||||
```
|
||||
|
||||
#### 示例
|
||||
|
||||
测试开一个NAT服务器
|
||||
|
||||
```
|
||||
./buildvm.sh 102 test1 1234567 1 512 5 40001 40002 40003 50000 50025 ubuntu20
|
||||
```
|
||||
|
||||
开设完毕可执行
|
||||
|
||||
```
|
||||
cat vm102
|
||||
```
|
||||
|
||||
查看信息
|
||||
|
||||
#### 删除示例
|
||||
|
||||
- 删除端口映射删除测试机器
|
||||
|
||||
```
|
||||
|
@ -116,11 +128,21 @@ iptables -t nat -F
|
|||
iptables -t filter -F
|
||||
service networking restart
|
||||
systemctl restart networking.service
|
||||
rm -rf vm102
|
||||
```
|
||||
|
||||
#### 相关qcow2镜像
|
||||
|
||||
- 已预安装开启cloudinit,开启SSH登陆,预设值SSH监听V4和V6的22端口,开启允许密码验证登陆,开启允许ROOT登陆
|
||||
|
||||
https://github.com/spiritLHLS/Images/releases/tag/v1.0
|
||||
|
||||
## 以下脚本测试开发中勿要使用
|
||||
|
||||
### 批量开设NAT的KVM虚拟化的VM
|
||||
|
||||
- 批量继承设置,但使用前需要保证未使用过上面单独生成KVM虚拟化的VM的测试命令,否则可能出现BUG
|
||||
- **使用前需要保证未使用过上面单独生成KVM虚拟化的VM的测试命令,否则可能出现BUG**
|
||||
- 可多次运行批量继承设置
|
||||
- 自动开设NAT服务器
|
||||
- 自动进行内外网端口映射
|
||||
|
||||
|
@ -128,6 +150,14 @@ systemctl restart networking.service
|
|||
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/create_vm.sh -o create_vm.sh && chmod +x create_vm.sh && bash create_vm.sh
|
||||
```
|
||||
|
||||
开设完毕可执行
|
||||
|
||||
```
|
||||
cat vmlog
|
||||
```
|
||||
|
||||
查看信息
|
||||
|
||||
## 友链
|
||||
|
||||
VPS融合怪测评脚本
|
||||
|
|
Loading…
Reference in a new issue