diff --git a/docs/en_US/guide/pve_kvm.md b/docs/en_US/guide/pve_kvm.md index 6255c9dc38..121ec0b2fc 100644 --- a/docs/en_US/guide/pve_kvm.md +++ b/docs/en_US/guide/pve_kvm.md @@ -63,12 +63,6 @@ The list of currently available image names is as follows: - If the host machine has an IPV6 subnet, IPV6 networking will be automatically added. However, there won't be any public IPV6 addresses. - Optionally enable or disable standalone IPV6, requires the host to have at least one /64 subnet -Command: - -```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm.sh -o buildvm.sh && chmod +x buildvm.sh -``` - ### Usage Instructions System Support: @@ -79,6 +73,14 @@ System Support: Note that usernames consisting of only numbers may cause issues with cloud-init. It's preferable to use usernames that are entirely in English or start with an English character. ::: +**Download Script** + +```shell +curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm.sh -o buildvm.sh && chmod +x buildvm.sh +``` + +**Meaning of each parameter** + ```shell ./buildvm.sh VMID Username Password Number_of_CPU_Cores Memory Disk SSH_Port Port_80 Port_443 Public_Port_Start Public_Port_End System Storage_Disk Independent_IPV6_address(leave default N blank) ``` @@ -195,18 +197,22 @@ Before use, ensure that the current host machine has at least 2 available IP add - Relevant system information will be stored in the corresponding virtual machine's NOTE section, accessible for viewing on the web interface. - Optionally enable or disable standalone IPV6, requires the host to have at least one /64 subnet. -Command: +#### Usage Instructions + +**Download Script** ```shell curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm_extraip.sh -o buildvm_extraip.sh && chmod +x buildvm_extraip.sh ``` -#### Example of Creation +**Meaning of each parameter** ```shell ./buildvm_extraip.sh VMID Username Password Number_of_CPU_Cores Memory_Size_in_MB Disk_Size_in_GB OS Storage_Disk Attach_IPV6(Default is N) ``` +#### Test Example + ```shell ./buildvm_extraip.sh 152 test1 oneclick123 1 1024 10 debian12 local N ``` @@ -233,18 +239,22 @@ The above command is used to create a virtual machine with a dedicated IPv4 addr - Relevant system information will be stored in the NOTE of the corresponding virtual machine and can be viewed on the WEB end. - Optionally enable or disable standalone IPV6, requires the host to have at least one /64 subnet. -Command: +#### Usage Instructions + +**Download Script** ```shell curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm_manual_ip.sh -o buildvm_manual_ip.sh && chmod +x buildvm_manual_ip.sh ``` -#### Example Usage +**Meaning of each parameter** ```shell ./buildvm_manual_ip.sh VMID USERNAME PASSWORD CPU_CORES MEMORY_SIZE_GB STORAGE_SIZE_GB OS STORAGE_DISK IPV4_ADDRESS ATTACH_IPV6(defaults to N) ``` +#### Test Example + ```shell ./buildvm_manual_ip.sh 152 test1 oneclick123 1 1024 10 debian12 local a.b.c.d/24 N ``` @@ -274,18 +284,22 @@ The prerequisite is that the host provides an IPv6 subnet instead of just a stan - Automatically detect available IPv6 ranges and bind the corresponding V6 address, based on the virtual machine's number, to the virtual machine. - System-related information will be stored in the NOTES section of the respective virtual machine, accessible for viewing on the web interface. -Command: +#### Usage Instructions + +**Download Script** ```shell curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm_onlyv6.sh -o buildvm_onlyv6.sh && chmod +x buildvm_onlyv6.sh ``` -#### Example Usage +**Meaning of each parameter** ```shell ./buildvm_onlyv6.sh VMID username password CPU_cores memory_GB disk_GB operating_system storage_disk ``` +#### Test Example + ```shell ./buildvm_onlyv6.sh 152 test1 oneclick123 1 1024 10 debian12 local ``` diff --git a/docs/en_US/guide/pve_lxc.md b/docs/en_US/guide/pve_lxc.md index 148fb226c9..4943539669 100644 --- a/docs/en_US/guide/pve_lxc.md +++ b/docs/en_US/guide/pve_lxc.md @@ -27,14 +27,6 @@ Before creating containers, use the 'screen' command to run them in the backgrou ### Usage Instructions -Download the script - -Command: - -```shell -curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildct.sh -o buildct.sh && chmod +x buildct.sh -``` - System Support: - debian10, debian11 - ubuntu18, ubuntu20, ubuntu22 @@ -48,6 +40,14 @@ System parameters are always in lowercase, consisting of the system name concate The default username for all CTs is root. +**Download Script** + +```shell +curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildct.sh -o buildct.sh && chmod +x buildct.sh +``` + +**Meaning of each parameter** + ```shell ./buildct.sh CTID Password Number_of_CPU_Cores Memory Disk SSH_Port Port_80 Port_443 Start_Public_Port End_Public_Port System Storage_Disk Independent_IPV6_address(leave default N blank) ``` @@ -118,7 +118,9 @@ Before initiating the creation process, it's recommended to use the 'screen' com - If the host machine has an IPv6 subnet, it will be automatically assigned to the containers. However, public IPv6 addresses will not be provided. - Optionally enable or disable standalone IPV6, requires the host to have at least one /64 subnet. -Command: +### Usage Instructions + +**Download Script** ```shell curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/create_ct.sh -o create_ct.sh && chmod +x create_ct.sh && bash create_ct.sh diff --git a/docs/guide/pve_kvm.md b/docs/guide/pve_kvm.md index 9c0ac0caed..298a06f9a8 100644 --- a/docs/guide/pve_kvm.md +++ b/docs/guide/pve_kvm.md @@ -72,6 +72,18 @@ bash <(curl -sSL https://ghproxy.com/https://raw.githubusercontent.com/fscarmen/ - 如果宿主机自带IPV6子网将自动附加上IPV6网络,但无公网IPV6地址 - 可选择是否开启独立IPV6,需要宿主机至少有一个/64的子网 +### 使用方法 + +- 系统支持: + - x86_64架构的详见 [跳转](https://github.com/oneclickvirt/kvm_images/releases/tag/v1.0) 中列出的系统,使用时只需写文件名字,不需要.qcow2尾缀 + - arm架构的详见 [跳转](http://cloud-images.ubuntu.com/) 中列出的系统,使用时只需要写系统名字+系统版本号,如ubuntu20、ubutnu22这种 + +:::tip +注意这里的用户名不能是纯数字,会造成cloudinit出问题,最好是纯英文或英文开头 +::: + +**下载脚本** + 国际 ```shell @@ -84,15 +96,7 @@ curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm.sh curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm.sh -o buildvm.sh && chmod +x buildvm.sh ``` -### 使用方法 - -- 系统支持: - - x86_64架构的详见 [跳转](https://github.com/oneclickvirt/kvm_images/releases/tag/v1.0) 中列出的系统,使用时只需写文件名字,不需要.qcow2尾缀 - - arm架构的详见 [跳转](http://cloud-images.ubuntu.com/) 中列出的系统,使用时只需要写系统名字+系统版本号,如ubuntu20、ubutnu22这种 - -:::tip -注意这里的用户名不能是纯数字,会造成cloudinit出问题,最好是纯英文或英文开头 -::: +**各参数含义** ```shell ./buildvm.sh VMID 用户名 密码 CPU核数 内存 硬盘 SSH端口 80端口 443端口 外网端口起 外网端口止 系统 存储盘 独立IPV6地址(留空默认N) @@ -215,6 +219,10 @@ PVE修改VM配置前都得停机先,再修改配置,修改完再启动,免 - 如果宿主机自带IPV6子网将可选择是否附加上IPV6地址 - 系统的相关信息将会存储到对应的虚拟机的NOTE中,可在WEB端查看 +#### 使用方法 + +**下载脚本** + 国际 ```shell @@ -227,12 +235,14 @@ curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm_ex curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm_extraip.sh -o buildvm_extraip.sh && chmod +x buildvm_extraip.sh ``` -#### 创建示例 +**各参数含义** ```shell ./buildvm_extraip.sh VMID 用户名 密码 CPU核数 内存大小以MB计算 硬盘大小以GB计算 系统 存储盘 独立IPV6(默认为N) ``` +#### 测试示例 + ```shell ./buildvm_extraip.sh 152 test1 oneclick123 1 1024 10 debian12 local N ``` @@ -259,6 +269,10 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/mai - 系统的相关信息将会存储到对应的虚拟机的NOTE中,可在WEB端查看 - 可选择是否开启独立IPV6,需要宿主机至少有一个/64的子网 +#### 使用方法 + +**下载脚本** + 国际 ```shell @@ -271,12 +285,14 @@ curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm_ma curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm_manual_ip.sh -o buildvm_manual_ip.sh && chmod +x buildvm_manual_ip.sh ``` -#### 创建示例 +**各参数含义** ```shell ./buildvm_manual_ip.sh VMID 用户名 密码 CPU核数 内存大小以MB计算 硬盘大小以GB计算 系统 存储盘 IPV4地址 独立IPV6(默认为N) ``` +#### 测试示例 + ```shell ./buildvm_manual_ip.sh 152 test1 oneclick123 1 1024 10 debian12 local a.b.c.d/24 N ``` @@ -306,6 +322,10 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/mai - 自动检测可用的IPV6区间,对应虚拟机编号的V6地址绑定到虚拟机上 - 系统的相关信息将会存储到对应的虚拟机的NOTE中,可在WEB端查看 +#### 使用方法 + +**下载脚本** + 国际 ```shell @@ -318,12 +338,14 @@ curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm_on curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm_onlyv6.sh -o buildvm_onlyv6.sh && chmod +x buildvm_onlyv6.sh ``` -#### 创建示例 +**各参数含义** ```shell ./buildvm_onlyv6.sh VMID 用户名 密码 CPU核数 内存大小以MB计算 硬盘大小以GB计算 系统 存储盘 ``` +#### 创建示例 + ```shell ./buildvm_onlyv6.sh 152 test1 oneclick123 1 1024 10 debian12 local ``` diff --git a/docs/guide/pve_lxc.md b/docs/guide/pve_lxc.md index 9ca93bdb31..9524b41d8f 100644 --- a/docs/guide/pve_lxc.md +++ b/docs/guide/pve_lxc.md @@ -27,7 +27,7 @@ outline: deep ### 使用方法 -下载脚本 +**下载脚本** 国际 @@ -54,6 +54,8 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/mai 所有系统的CT默认用户名是root +**各参数含义** + ```shell ./buildct.sh CTID 密码 CPU核数 内存 硬盘 SSH端口 80端口 443端口 外网端口起 外网端口止 系统 存储盘 独立IPV6(默认为N) ``` @@ -164,7 +166,9 @@ iptables-save | awk '{if($1=="COMMIT"){delete x}}$1=="-A"?!x[$0]++:1' | iptables - 自动检测可用的IPV6区间,对应容器编号的V6地址绑定到容器上 - 系统的相关信息将会存储到对应的容器的NOTE中,可在WEB端查看 -#### 下载脚本 +#### 使用方法 + +**下载脚本** 国际 @@ -178,12 +182,14 @@ curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildct_on curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildct_onlyv6.sh -o buildct_onlyv6.sh && chmod +x buildct_onlyv6.sh ``` -#### 创建示例 +**各参数含义** ```shell ./buildct_onlyv6.sh CTID 密码 CPU核数 内存大小以MB计算 硬盘大小以GB计算 系统 存储盘 ``` +#### 创建示例 + ```shell ./buildct_onlyv6.sh 152 oneclick123 1 1024 10 debian12 local ```