mirror of
https://github.com/oneclickvirt/oneclickvirt.github.io.git
synced 2026-06-01 08:11:32 +08:00
2024.12.01
This commit is contained in:
@@ -108,16 +108,16 @@ Note that the Password here should be a mix of English and numbers only, and sta
|
||||
### Test Example
|
||||
|
||||
```shell
|
||||
./buildvm.sh 102 test1 oneclick123 1 512 10 40001 40002 40003 50000 50025 debian11 local N
|
||||
./buildvm.sh 111 test1 oneclick123 1 512 10 40001 40002 40003 50000 50025 debian11 local N
|
||||
```
|
||||
|
||||
After setup is completed, you can execute ```cat vm102``` to view the information or check the NOTES section for the corresponding VM on the WEB interface.
|
||||
After setup is completed, you can execute ```cat vm111``` to view the information or check the NOTES section for the corresponding VM on the WEB interface.
|
||||
|
||||
Below is the information for the example VM that has been set up:
|
||||
|
||||
| Attribute | Value |
|
||||
|-------------------------|----------------|
|
||||
| VMID | 102 |
|
||||
| VMID | 111 |
|
||||
| SSH Username | test1 |
|
||||
| SSH Password | oneclick123 |
|
||||
| Number of CPU Cores | 1 |
|
||||
@@ -131,6 +131,10 @@ Below is the information for the example VM that has been set up:
|
||||
| Host Storage Disk | local |
|
||||
| IPV6 address | N |
|
||||
|
||||
:::tip
|
||||
Note that only VMIDs from 11 to 256 can be used here, no other numbers can be used.
|
||||
:::
|
||||
|
||||
## Deletion specific VM
|
||||
|
||||
- Stop VM
|
||||
@@ -147,10 +151,10 @@ curl -L https://raw.githubusercontent.com/oneclickvirt/pve/main/scripts/pve_dele
|
||||
|
||||
**Meaning of each parameter**
|
||||
|
||||
You can delete the VM with the corresponding VMID, as demonstrated here using the example 102 above
|
||||
You can delete the VM with the corresponding VMID, as demonstrated here using the example 111 above
|
||||
|
||||
```shell
|
||||
./pve_delete.sh 102
|
||||
./pve_delete.sh 111
|
||||
```
|
||||
|
||||
The actual number of deletions is not fixed, a space separates each VMID, and more than one can be deleted at a time.
|
||||
@@ -271,6 +275,10 @@ The above command is used to create a virtual machine with a dedicated IPv4 addr
|
||||
| Storage | local disk |
|
||||
| IPv6 Addon | Not attached by default |
|
||||
|
||||
:::tip
|
||||
Note that only VMIDs from 11 to 256 can be used here, no other numbers can be used.
|
||||
:::
|
||||
|
||||
### Manually Assign Additional IPV4 Addresses to Open Virtual Machines
|
||||
|
||||
- Manual specification of IPV4 address with subnet length in the command is required.
|
||||
@@ -329,6 +337,10 @@ The above command is used to create a virtual machine with an independent IPV4 a
|
||||
| IPV6 | None |
|
||||
| MAC_ADDRESS | None |
|
||||
|
||||
:::tip
|
||||
Note that only VMIDs from 11 to 256 can be used here, no other numbers can be used.
|
||||
:::
|
||||
|
||||
### Host manually appends an additional IPV4 address and then specifies the IPV4 address to open the virtual machine
|
||||
|
||||
- You need to add the extra IPV4 address to ```vmbr0``` in ```/etc/network/interfaces``` (note that ```chattr -i``` unlocks the file and then ```chattr +i``` locks it back).
|
||||
@@ -378,6 +390,10 @@ The above command is used to create a virtual machine with an independent IPV4 a
|
||||
| IPV6 | None |
|
||||
| MAC_ADDRESS | None |
|
||||
|
||||
:::tip
|
||||
Note that only VMIDs from 11 to 256 can be used here, no other numbers can be used.
|
||||
:::
|
||||
|
||||
#### Incoming and outgoing traffic goes to the bound IPV4 address
|
||||
|
||||
execute
|
||||
@@ -439,6 +455,9 @@ The above command is used to create a virtual machine with only IPv6 addresses.
|
||||
| Operating System | debian12 |
|
||||
| Storage Disk| local |
|
||||
|
||||
:::tip
|
||||
Note that only VMIDs from 11 to 256 can be used here, no other numbers can be used.
|
||||
:::
|
||||
|
||||
### Delete Example vm152
|
||||
|
||||
|
||||
@@ -84,10 +84,10 @@ curl -L https://raw.githubusercontent.com/oneclickvirt/pve/main/scripts/buildct.
|
||||
### Test Example
|
||||
|
||||
```shell
|
||||
./buildct.sh 102 oneclick123 1 512 5 20001 20002 20003 30000 30025 debian11 local N
|
||||
./buildct.sh 111 oneclick123 1 512 5 20001 20002 20003 30000 30025 debian11 local N
|
||||
```
|
||||
|
||||
After setting up, you can execute `cat ct102` to view the information, or check the NOTES section on the web interface.
|
||||
After setting up, you can execute `cat ct111` to view the information, or check the NOTES section on the web interface.
|
||||
|
||||
Here is the information for the created example CT:
|
||||
|
||||
@@ -95,7 +95,7 @@ Please note that "CT" and other technical terms might have specific meanings in
|
||||
|
||||
| Attribute | Value |
|
||||
|---------------------------|-------------|
|
||||
| VMID | 102 |
|
||||
| CTID | 111 |
|
||||
| SSH Username | root |
|
||||
| SSH Password | oneclick123 |
|
||||
| Number of CPU Cores | 1 |
|
||||
@@ -109,6 +109,10 @@ Please note that "CT" and other technical terms might have specific meanings in
|
||||
| Host Storage Disk | local |
|
||||
| IPV6 address | N |
|
||||
|
||||
:::tip
|
||||
Note that only CTIDs from 11 to 256 can be used here, no other numbers can be used.
|
||||
:::.
|
||||
|
||||
## Deletion specific CT
|
||||
|
||||
- Stop CT
|
||||
@@ -125,10 +129,10 @@ curl -L https://raw.githubusercontent.com/oneclickvirt/pve/main/scripts/pve_dele
|
||||
|
||||
**Meaning of each parameter**
|
||||
|
||||
You can delete the CT with the corresponding CTID, as demonstrated here using the example 102 above
|
||||
You can delete the CT with the corresponding CTID, as demonstrated here using the example 111 above
|
||||
|
||||
```shell
|
||||
./pve_delete.sh 102
|
||||
./pve_delete.sh 111
|
||||
```
|
||||
|
||||
The actual number of deletions is not fixed, a space separates each CTID, and more than one can be deleted at a time.
|
||||
@@ -222,6 +226,10 @@ The above command signifies the creation of a container with a pure IPV6 address
|
||||
| Operating System | debian12 |
|
||||
| Storage Disk | Local Disk (System Disk) |
|
||||
|
||||
:::tip
|
||||
Note that only CTIDs from 11 to 256 can be used here, no other numbers can be used.
|
||||
:::.
|
||||
|
||||
#### Deletion Example
|
||||
|
||||
```shell
|
||||
|
||||
@@ -125,16 +125,16 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
|
||||
### 测试示例
|
||||
|
||||
```shell
|
||||
./buildvm.sh 102 test1 oneclick123 1 512 10 40001 40002 40003 50000 50025 debian11 local N
|
||||
./buildvm.sh 111 test1 oneclick123 1 512 10 40001 40002 40003 50000 50025 debian11 local N
|
||||
```
|
||||
|
||||
开设完毕可执行```cat vm102```查看信息,或到WEB端对应VM的NOTES中查看
|
||||
开设完毕可执行```cat vm111```查看信息,或到WEB端对应VM的NOTES中查看
|
||||
|
||||
以下为开设的示例VM的信息:
|
||||
|
||||
| 属性 | 值 |
|
||||
|-------------------------|----------------|
|
||||
| VMID | 102 |
|
||||
| VMID | 111 |
|
||||
| SSH登录的用户名 | test1 |
|
||||
| SSH登录的密码 | oneclick123 |
|
||||
| CPU核数 | 1 |
|
||||
@@ -148,6 +148,10 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
|
||||
| 宿主机的存储盘 | local |
|
||||
| 绑定独立IPV6(留空默认N) | N |
|
||||
|
||||
:::tip
|
||||
注意这里的VMID仅可使用11到256,其他数字不可用
|
||||
:::
|
||||
|
||||
## 删除指定虚拟机
|
||||
|
||||
- 停止VM
|
||||
@@ -172,10 +176,10 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
|
||||
|
||||
**使用方法**
|
||||
|
||||
可以删除对应VMID的虚拟机,这里用上文中的示例102做演示
|
||||
可以删除对应VMID的虚拟机,这里用上文中的示例111做演示
|
||||
|
||||
```shell
|
||||
./pve_delete.sh 102
|
||||
./pve_delete.sh 111
|
||||
```
|
||||
|
||||
实际删除数量不固定,空格分隔每个VMID即可,可一次性删除多个
|
||||
@@ -309,6 +313,10 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
|
||||
| 存储盘 | local盘 |
|
||||
| IPV6附加 | 默认不附加 |
|
||||
|
||||
:::tip
|
||||
注意这里的VMID仅可使用11到256,其他数字不可用
|
||||
:::
|
||||
|
||||
### 手动指定额外IPV4地址开设虚拟机
|
||||
|
||||
- 需要手动在命令中指定IPV4地址,且带上子网长度
|
||||
@@ -375,6 +383,10 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
|
||||
| IPV6 | 无 |
|
||||
| MAC地址 | 无 |
|
||||
|
||||
:::tip
|
||||
注意这里的VMID仅可使用11到256,其他数字不可用
|
||||
:::
|
||||
|
||||
### 宿主机手动附加额外IPV4地址后再指定IPV4地址开设虚拟机
|
||||
|
||||
- 需要自己在```/etc/network/interfaces```中给```vmbr0```添加额外的IPV4地址(注意```chattr -i```解锁文件修改后再```chattr +i```加锁回去)
|
||||
@@ -432,6 +444,10 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
|
||||
| IPV4地址 | a.b.c.d |
|
||||
| IPV6 | 无 |
|
||||
|
||||
:::tip
|
||||
注意这里的VMID仅可使用11到256,其他数字不可用
|
||||
:::
|
||||
|
||||
#### 进出流量都走绑定的IPV4地址
|
||||
|
||||
执行
|
||||
@@ -501,6 +517,9 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
|
||||
| 系统 | debian12 |
|
||||
| 存储盘 | local |
|
||||
|
||||
:::tip
|
||||
注意这里的VMID仅可使用11到256,其他数字不可用
|
||||
:::
|
||||
|
||||
### 删除vm152示例
|
||||
|
||||
|
||||
@@ -91,16 +91,16 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
|
||||
### 测试示例
|
||||
|
||||
```shell
|
||||
./buildct.sh 102 oneclick123 1 512 5 20001 20002 20003 30000 30025 debian11 local N
|
||||
./buildct.sh 111 oneclick123 1 512 5 20001 20002 20003 30000 30025 debian11 local N
|
||||
```
|
||||
|
||||
开设完毕可执行```cat ct102```查看信息,或在web端的NOTES查看
|
||||
开设完毕可执行```cat ct111```查看信息,或在web端的NOTES查看
|
||||
|
||||
以下为开设的示例CT的信息:
|
||||
|
||||
| 属性 | 值 |
|
||||
|---------------------------|-------------|
|
||||
| VMID | 102 |
|
||||
| CTID | 111 |
|
||||
| SSH登录的用户名 | root |
|
||||
| SSH登录的密码 | oneclick123 |
|
||||
| CPU核数 | 1 |
|
||||
@@ -114,6 +114,10 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
|
||||
| 宿主机的存储盘 | local |
|
||||
| IPV6 | 无 |
|
||||
|
||||
:::tip
|
||||
注意这里的CTID仅可使用11到256,其他数字不可用
|
||||
:::
|
||||
|
||||
## 删除指定容器
|
||||
|
||||
- 停止CT
|
||||
@@ -138,10 +142,10 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
|
||||
|
||||
**使用方法**
|
||||
|
||||
可以删除对应CTID的容器,这里用上文中的示例102做演示
|
||||
可以删除对应CTID的容器,这里用上文中的示例111做演示
|
||||
|
||||
```shell
|
||||
./pve_delete.sh 102
|
||||
./pve_delete.sh 111
|
||||
```
|
||||
|
||||
实际删除数量不固定,空格分隔每个CTID即可,可一次性删除多个
|
||||
@@ -250,6 +254,10 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
|
||||
| 系统 | debian12 |
|
||||
| 存储盘 | local盘 (系统盘) |
|
||||
|
||||
:::tip
|
||||
注意这里的CTID仅可使用11到256,其他数字不可用
|
||||
:::
|
||||
|
||||
#### 删除示例
|
||||
|
||||
```shell
|
||||
|
||||
Reference in New Issue
Block a user