This commit is contained in:
spiritlhl
2023-08-16 03:25:28 +00:00
parent 1bbf3f3694
commit 96096fa77b
16 changed files with 116 additions and 307 deletions

View File

@@ -2,37 +2,35 @@
outline: deep
---
## 准备工作
## Preparation Work
需要虚拟化出服务器,你需要:
To virtualize a server, you will need:
1. 一台可以连接公网的服务器( VPS Dedicated Server),最好能完美访问 Github RAW 页面,部分项目部分组件可能未使用 CDN 加速
1. A server (VPS or Dedicated Server) that can connect to the public internet. It's preferable if this server can access GitHub's RAW pages perfectly, as some projects and components might not use CDN acceleration.
2. A stable SSH connection from your local machine. If the connection isn't stable, you can use the ```screen``` command to create a window and execute commands within that window.
::: tip
如果您位于中国大陆,访问 Github 有困难,请注意配套脚本和项目是否有说明已使用 CDN 加速
If you're unfamiliar with the ```screen``` command, please search for relevant tutorials to learn it, or you can use ```tmux``` as an alternative.
:::
2. 本地可以稳定连接SSH如果不能稳定连接请使用```screen```命令创建窗口后,在窗口内执行命令
3. Ensure that the server's system and hardware meet the requirements specified by the corresponding project. Refer to the project's documentation for detailed information.
::: tip
不会用screen命令的自行查找相关教程学习或者用tmux替代也行
:::
3. 确保服务器的系统和硬件满足对应项目的要求,详见对应项目说明
**本文档将以VPS作为范例且该VPS纯净无原生环境问题如有必要请重装系统保证初始环境的纯净**
**This document will use a VPS as an example, and the VPS should be clean without any native environment issues. If necessary, reinstall the system to ensure the initial environment's cleanliness.**
:::warning
PVE项目可能造成宿主机出现问题如果你不会看Bug和修复系统那么不建议你在生产环境中使用使用PVE相关脚本请确保宿主机随时可重装系统
:::
The PVE project might cause problems on the host machine. If you're not familiar with debugging bugs and fixing system issues, it's not recommended to use PVE in a production environment. When using PVE-related scripts, make sure the host machine can be reinstalled at any time.
:::
## 项目仓库
Please make sure to keep the original formatting by enclosing the translation in ``` and ``` for easy copying.
欢迎Star和Fork
## Project Repository
Welcome to Star and Fork
### PVE
可开设KVM虚拟化的虚拟机、LXC虚拟化的容器
Allows for the creation of KVM virtualized virtual machines and LXC virtualized containers.
[https://github.com/spiritLHLS/pve](https://github.com/spiritLHLS/pve)
@@ -40,7 +38,7 @@ PVE项目可能造成宿主机出现问题如果你不会看Bug和修复系
### LXD
可开设LXC虚拟化的容器
LXC Virtualization Containers Can Be Created.
[https://github.com/spiritLHLS/lxd](https://github.com/spiritLHLS/lxd)
@@ -48,7 +46,7 @@ PVE项目可能造成宿主机出现问题如果你不会看Bug和修复系
### Docker
可开设Docker虚拟化的容器
Docker virtualized containers Can Be Created.
[https://github.com/spiritLHLS/docker](https://github.com/spiritLHLS/docker)

View File

@@ -2,55 +2,48 @@
outline: deep
---
# 前言
# Introduction
两种开设方式
There are two methods of building
## 单独开设
## Setting Up Standalone
下载脚本
Download the Script
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/onedocker.sh -o onedocker.sh && chmod +x onedocker.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/onedocker.sh -o onedocker.sh && chmod +x onedocker.sh
```
运行
Run
```
./onedocker.sh name cpu memory password sshport startport endport system
```
目前system仅支持选择alpine或debian默认是debian
Currently, the system only supports selecting Alpine or Debian, with Debian being the default choice.
### 示例
### Example
以下为开设的示例容器的信息:
The following is the information for the created example container:
| 属性 | |
| Attribute | Value |
|------------------------|----------------|
| 容器名字 | test |
| SSH登录的用户名 | root |
| SSH登录的密码 | 123456 |
| CPU核数 | 1 |
| 内存大小 | 512MB |
| SSH端口 | 25000 |
| 内外网映射端口一致的区间 | 3497535000 |
| 系统 | debian |
| Container Name | test |
| Username for SSH Login | root |
| Password for SSH Login | 123456 |
| Number of CPU Cores | 1 |
| Memory Size | 512MB |
| SSH Port | 25000 |
| Port Range for Internal and External Mapping | 34975 to 35000 |
| Operating System | debian |
```shell
./onedocker.sh test 1 512 123456 25000 34975 35000 debian
```
删除示例
Deleting the test container
```shell
docker rm -f test
@@ -58,58 +51,52 @@ rm -rf test
ls
```
进入示例
Accessing the test container
```shell
docker exec -it test /bin/bash
```
要退出容器就执行```exit```退出。
To exit the container, simply execute ```exit```.
### 查询信息
### Inquiry Information
```shell
cat 容器名字
cat Container_Name(change me)
```
输出格式
The output format is
```
容器名字 SSH端口 登陆的root密码 核数 内存 外网端口起 外网端口止
Container_Name SSH_Port Root_Password Number_of_Cores Memory Start_of_Public_Port End_of_Public_Port
```
## 批量开设
## Batch Deployment
- 批量多次运行继承配置生成
- 生成多个时为避免SSH连接中断建议在screen中执行
- Run inheritance configuration generation multiple times in bulk.
- When generating multiple instances, it is recommended to execute within a `screen` session to avoid SSH connection interruptions.
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/create_docker.sh -o create_docker.sh && chmod +x create_docker.sh && bash create_docker.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/onedocker.sh -o onedocker.sh && chmod +x onedocker.sh
```
## 查询批量开设的信息
## Querying information on batch openings
```shell
cat dclog
```
输出格式
The output format is
```
容器名字 SSH端口 登陆的root密码 核数 内存 外网端口起 外网端口止
Container_Name SSH_Port Root_Password Number_of_Cores Memory Start_of_Public_Port End_of_Public_Port
```
一行一个容器对应的信息
One line corresponds to information about a container.
## 卸载所有docker容器和镜像
## Uninstall all Docker containers and images
```shell
docker rm -f $(docker ps -aq); docker rmi $(docker images -aq)

View File

@@ -2,55 +2,48 @@
outline: deep
---
# 使用Docker一键安装某些容器的脚本
# Script for One-Click Installation of Certain Containers using Docker
每个容器都有对应的配置要求,自行查看
Each container has specific configuration requirements; please refer to them individually.
## 一键开设Android系统的容器
## One-Click Setup of Android System Container
- 自定义安卓版本
- 自动创建带校验的web网站
- 自动进行nginx安装和反向代理的配置可选择是否绑定域名默认回车不绑定使用80端口
- 无需考虑宿主机是否支持嵌套虚拟化
- 支持x86_64和ARM架构
- Customizable Android version
- Automatically creates a validated web website
- Automatically installs Nginx and configures reverse proxy. Option to bind a domain is available. Default is port 80 if no domain binding is chosen.
- No need to worry about host machine supporting nested virtualization
- Supports x86_64 and ARM architectures
**宿主机的配置至少要有1核2G内存15G硬盘否则开设可能会导致宿主机卡死**
**Host machine should have a minimum configuration of 1 core, 2GB RAM, and 15GB storage, else starting the setup might lead to host machine freezing.**
安卓版本越新占用越大,以上的配置要求是最低版本安卓的配置要求 (个人测试到 12.0.0-latest 的tag可用更高版本映射白屏了自己测试哪个能用吧)
Newer Android versions occupy more resources. The above configuration requirements are for the minimum version of Android. (Personally tested with the tag "12.0.0-latest", higher versions resulted in a blank screen. Test which version works for you.)
**开设**
**Setup:**
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/create_android.sh -o create_android.sh && chmod +x create_android.sh && bash create_android.sh
```
国内
After executing the command, follow the prompts to input the required information. Make sure to choose the version by entering the corresponding number index. Once the installation is complete, open ```YourMachineIPv4+80Port``` to log in.
If you need to check the generated Android information and web login details, execute ```cat /root/android_info``` to retrieve the information.
Default username: ```onea```
Default password: ```oneclick```
For remote desktop, click on ```H264 Converter``` to initiate the redirection.
**Please note that currently only one Android container can be generated. Do not generate duplicates. If you need to replace the version, please execute the subsequent commands after deletion.**
**Deletion:**
- Delete the container
- Delete the corresponding container image
- Delete the configuration file
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/create_android.sh -o create_android.sh && chmod +x create_android.sh && bash create_android.sh
```
命令执行后按照提示输入即可,注意选择版本输入的是序号,对应选项的数字序号,安装完毕后打开```本机IPV4+80端口```可登录
如果需要查询生成的安卓信息和web登录信息执行```cat /root/android_info```可查询信息
默认的用户名 ```onea```
默认密码 ```oneclick```
远程的桌面点击```H264 Converter```跳转就是了
**暂时只支持生成一个安卓容器,勿要重复生成,如需替换版本请执行后续命令删除后再次开设**
**删除**
- 删除容器
- 删除容器对应镜像
- 删除配置文件
```
docker rm -f android
docker rm -f scrcpy_web
docker rmi $(docker images | grep "redroid" | awk '{print $3}')
@@ -72,7 +65,7 @@ rm -rf /root/android_info
执行
```
```shell
egrep -c '(vmx|svm)' /proc/cpuinfo
```
@@ -80,7 +73,7 @@ egrep -c '(vmx|svm)' /proc/cpuinfo
然后需要先设置docker切换使用v1版cgroup启动
```
```shell
sed -i 's/GRUB_CMDLINE_LINUX="\(.*\)"/GRUB_CMDLINE_LINUX="\1 systemd.unified_cgroup_hierarchy=0"/' /etc/default/grub
update-grub
ls
@@ -193,14 +186,8 @@ docker rm -f 容器的ID
**宿主机的配置至少要有1核2G内存10G硬盘否则开设可能会导致宿主机卡死**
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/docker/main/extra_scripts/guacamole.sh -o guacamole.sh && chmod +x guacamole.sh && bash guacamole.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/docker/main/extra_scripts/guacamole.sh -o guacamole.sh && chmod +x guacamole.sh && bash guacamole.sh
```

View File

@@ -13,18 +13,12 @@ outline: deep
- 安装docker和其他预制组件
- 下载默认需要的一些配置脚本
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/dockerinstall.sh -o dockerinstall.sh && chmod +x dockerinstall.sh && bash dockerinstall.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/dockerinstall.sh -o dockerinstall.sh && chmod +x dockerinstall.sh && bash dockerinstall.sh
```
## 开设虚拟内存
:::warning
@@ -35,14 +29,8 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/docker/
建议只开实际内存大小两倍大小的虚拟内存
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh
```

View File

@@ -1,4 +1,4 @@
## 致谢
## Acknowledgements
https://hub.docker.com/_/debian

View File

@@ -21,18 +21,12 @@ outline: deep
下载脚本
国际
Command:
```bash
curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/build_ipv6_network.sh -o build_ipv6_network.sh && chmod +x build_ipv6_network.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/build_ipv6_network.sh -o build_ipv6_network.sh && chmod +x build_ipv6_network.sh
```
自动为容器配置IPV6映射地址
```bash
@@ -73,51 +67,34 @@ rm /usr/local/bin/add-ipv6.sh
- (***非必须***,该脚本仅仅是为了防止容器滥用方便,不装的也没问题)
- 事前预防
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/rules.sh -o rules.sh && chmod +x rules.sh && bash rules.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/rules.sh -o rules.sh && chmod +x rules.sh && bash rules.sh
```
## 使用screen配置监控屏蔽某些进程的执行遇到某些进程的出现直接关闭容器
- 如需停止监控可使用```screen```命令停止```lxc_moniter```这个名字的窗口并删除
- (***非必须***,该脚本仅仅是为了防止容器滥用方便,不装的也没问题)
- 事后停机
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/build_monitor.sh -o build_monitor.sh && chmod +x build_monitor.sh && bash build_monitor.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/build_monitor.sh -o build_monitor.sh && chmod +x build_monitor.sh && bash build_monitor.sh
```
## 一键安装开lxd母鸡所需要的带vnstat环境的常用预配置环境
- (***非必须***,该脚本仅仅是为了站点对接监控方便,不装的也没问题)
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/backend.sh -o backend.sh && chmod +x backend.sh && bash backend.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/backend.sh -o backend.sh && chmod +x backend.sh && bash backend.sh
```
## 一键安装母鸡可视化操作的面板

View File

@@ -22,18 +22,12 @@ ufw disable
执行下面命令输入1再输入2048代表开2G虚拟内存
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/swap.sh -o swap.sh && chmod +x swap.sh && bash swap.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/swap.sh -o swap.sh && chmod +x swap.sh && bash swap.sh
```
### 安装LXD
实际swap开的虚拟内存应该是实际内存的2倍也就是开1G是合理的上面我描述的情况属于超开了
@@ -101,18 +95,12 @@ export PATH=$PATH:/snap/bin
每次执行脚本都需要输入一次初始化的配置,所以遇到脚本提示需重启系统再次执行,那么就得再次输入初始化的配置
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/lxdinstall.sh -o lxdinstall.sh && chmod +x lxdinstall.sh && bash lxdinstall.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/lxdinstall.sh -o lxdinstall.sh && chmod +x lxdinstall.sh && bash lxdinstall.sh
```
初始化配置的例子:
如果系统盘除去已占用空间还有18G硬盘空余想开2G虚拟内存(2048MB的SWAP)15G的存储池按照命令行的提示则依次输入```2048```和```15```

View File

@@ -10,18 +10,12 @@ outline: deep
下载开机脚本是**非必须**的如果你使用过一键安装LXD的命令自动已下载对应的开机脚本不需要重复下载该脚本
国际
Command:
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/buildone.sh -o buildone.sh && chmod +x buildone.sh && dos2unix buildone.sh
```
国内
```shell
curl -L https://ghproxy.com/https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/buildone.sh -o buildone.sh && chmod +x buildone.sh && dos2unix buildone.sh
```
### 使用方法
```
@@ -108,18 +102,12 @@ lxc若命令无问题执行初始化开小鸡这一步最好放```screen``
执行下面命令加载开机脚本
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/init.sh -o init.sh && chmod +x init.sh && dos2unix init.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/init.sh -o init.sh && chmod +x init.sh && dos2unix init.sh
```
下面命令为开小鸡名字前缀为**tj**的**10**个小鸡
```shell
@@ -142,18 +130,12 @@ lxc若命令无问题执行初始化开小鸡这一步最好放```screen``
加载开机脚本
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/least.sh -o least.sh && chmod +x least.sh && dos2unix least.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/least.sh -o least.sh && chmod +x least.sh && dos2unix least.sh
```
下列命令最后一行为开小鸡名字前缀为**tj**的**10**个小鸡
```shell
@@ -169,18 +151,12 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/mai
如果需要多次批量生成小鸡,可使用
国际
Command:
```
curl -L https://github.com/spiritLHLS/lxd/raw/main/scripts/add_more.sh -o add_more.sh && chmod +x add_more.sh && bash add_more.sh
```
国内
```shell
curl -L https://ghproxy.com/https://github.com/spiritLHLS/lxd/raw/main/scripts/add_more.sh -o add_more.sh && chmod +x add_more.sh && bash add_more.sh
```
可多次运行批量生成小鸡,且继承前面已生成的部分在后面添加,可自定义内存和硬盘大小
## 查看已批量开设的信息

View File

@@ -41,14 +41,8 @@ PS: 如果硬件资源更烂虚拟化不支持可使用docker版本的
**使用后续脚本的务必执行本命令检测母鸡是否符合要求**
国际
Command:
```
bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/pre_check.sh)
```
国内
```
bash <(wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/pre_check.sh)
```
```

View File

@@ -1,4 +1,4 @@
## 致谢
## Acknowledgements
https://github.com/lxc/lxd
@@ -16,4 +16,4 @@ https://github.com/turtle0x1/LxdMosaic
https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/index.html
感谢 [@Ella-Alinda](https://github.com/Ella-Alinda) [@fscarmen](https://github.com/fscarmen) 提供的指导
Thank [@Ella-Alinda](https://github.com/Ella-Alinda) [@fscarmen](https://github.com/fscarmen) for providing guidance.

View File

@@ -4,7 +4,7 @@ outline: deep
# PVE主体安装
安装过程中遇到选项不会选的可无脑按回车本项目所有脚本内置国内外IP自动判断使用的是不同的安装源与配置文件有使用CDN加速镜像下载
安装过程中遇到选项不会选的可无脑按回车
## 一键安装PVE
@@ -30,18 +30,12 @@ outline: deep
如需修改请使用```chattr -i 文件路径```取消只读锁定,修改完毕请执行```chattr +i 文件路径```进行只读锁定
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/install_pve.sh -o install_pve.sh && chmod +x install_pve.sh && bash install_pve.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/install_pve.sh -o install_pve.sh && chmod +x install_pve.sh && bash install_pve.sh
```
```shell
@@ -63,18 +57,12 @@ bash install_pve.sh
- 重启系统前推荐挂上[nezha探针](https://github.com/naiba/nezha)方便在后台不通过SSH使用命令行避免SSH可能因为商家奇葩的预设可能导致重启后root密码丢失
- 执行```reboot```前需要等待后台任务执行完毕一些宿主机的系统apt命令执行很慢得等一会才能执行完毕当然大部分的机器没这么烂
国际
Command:
```shell
bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/build_backend.sh)
```
国内
```shell
bash <(wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/build_backend.sh)
```
## 自动配置宿主机的网关
:::warning
@@ -95,18 +83,12 @@ bash <(wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubus
开NAT的IPV4的虚拟机时使用vmbr1gateway使用```172.16.1.1```IPV4/CIDR使用```172.16.1.x/24```这里的x不能是1当然如果后续使用本套脚本无需关注这点细枝末节的东西
国际
Command:
```shell
bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/build_nat_network.sh)
```
国内
```shell
bash <(wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/build_nat_network.sh)
```
:::tip
这一步是可能需要你执行成功几分钟后重启系统,详见脚本最后执行完毕的提示
:::

View File

@@ -12,19 +12,12 @@ KVM虚拟化开设出的虚拟机默认生成的用户名不是```root```
登录SSH切换为root权限后一定要修改root密码可以使用以下命令修改
国际
Command:
```bash
bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/tools/main/root.sh) [PASSWORD]
```
国内
```bash
bash <(curl -sSL https://ghproxy.com/https://raw.githubusercontent.com/fscarmen/tools/main/root.sh) [PASSWORD]
```
## 部分注意事项
**执行本项目的检测环境的命令**,展示如下
@@ -71,18 +64,12 @@ bash <(curl -sSL https://ghproxy.com/https://raw.githubusercontent.com/fscarmen/
- 虚拟机的相关信息将会存储到WEB端对应VM的NOTES中可在WEB端查看
- 如果宿主机自带IPV6子网将自动附加上IPV6网络但无公网IPV6地址
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm.sh -o buildvm.sh && chmod +x buildvm.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm.sh -o buildvm.sh && chmod +x buildvm.sh
```
### 使用方法
- 系统支持:
@@ -159,18 +146,12 @@ rm -rf vm102
- 虚拟机的相关信息将会存储到WEB端对应VM的NOTES中可在WEB端查看
- 如果宿主机自带IPV6子网将自动附加上IPV6网络但无公网IPV6地址
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/create_vm.sh -o create_vm.sh && chmod +x create_vm.sh && bash create_vm.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/create_vm.sh -o create_vm.sh && chmod +x create_vm.sh && bash create_vm.sh
```
开设完毕可执行```cat vmlog```查看信息或到WEB端对应VM的NOTES中查看
## 删除所有虚拟机
@@ -208,18 +189,12 @@ PVE修改VM配置前都得停机先再修改配置修改完再启动
- 如果宿主机自带IPV6子网将可选择是否附加上IPV6地址
- 系统的相关信息将会存储到对应的虚拟机的NOTE中可在WEB端查看
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm_extraip.sh -o buildvm_extraip.sh && chmod +x buildvm_extraip.sh
```
国内
```shell
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
@@ -251,18 +226,12 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/mai
- 如果商家有给IPV4地址和子网长度请仔细比对按照下面示例的命令写参数
- 系统的相关信息将会存储到对应的虚拟机的NOTE中可在WEB端查看
国际
Command:
```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
```
国内
```shell
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
@@ -298,18 +267,12 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/mai
- 自动检测可用的IPV6区间对应虚拟机编号的V6地址绑定到虚拟机上
- 系统的相关信息将会存储到对应的虚拟机的NOTE中可在WEB端查看
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildvm_onlyv6.sh -o buildvm_onlyv6.sh && chmod +x buildvm_onlyv6.sh
```
国内
```shell
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

View File

@@ -28,18 +28,12 @@ outline: deep
下载脚本
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildct.sh -o buildct.sh && chmod +x buildct.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildct.sh -o buildct.sh && chmod +x buildct.sh
```
* 系统支持:
- debian10debian11
- ubuntu18ubuntu20ubuntu22
@@ -117,18 +111,12 @@ systemctl restart networking.service
- 容器的相关信息将会存储到对应的容器的NOTE中可在WEB端查看
- 如果宿主机自带IPV6子网将自动附加上IPV6网络但无公网IPV6地址
国际
Command:
```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
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/create_ct.sh -o create_ct.sh && chmod +x create_ct.sh && bash create_ct.sh
```
开设完毕可执行```cat ctlog```查看信息或在web端的NOTES查看
@@ -157,18 +145,12 @@ systemctl restart networking.service
- 自动检测可用的IPV6区间对应容器编号的V6地址绑定到容器上
- 系统的相关信息将会存储到对应的容器的NOTE中可在WEB端查看
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/buildct_onlyv6.sh -o buildct_onlyv6.sh && chmod +x buildct_onlyv6.sh
```
国内
```shell
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

View File

@@ -36,18 +36,12 @@ outline: deep
建议只开实际内存大小两倍大小的虚拟内存
国际
Command:
```shell
curl -L https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh
```
国内
```shell
curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh
```
## 检测环境
- 本项目相关脚本执行前务必执行本脚本检测环境如果不符合安装PVE的要求则无法使用后续的脚本
@@ -57,18 +51,12 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/addswap
- 检测系统环境是否可嵌套虚拟化KVM类型的服务器
- 不可嵌套虚拟化KVM类型的服务器也可以开LXC虚拟化的服务器但不推荐安装PVE不如使用[LXD](https://github.com/spiritLHLS/lxd)
国际
Command:
```bash
bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/check_kernal.sh)
```
国内
```bash
bash <(wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/main/scripts/check_kernal.sh)
```
如果你需要更新IPV6信息再查询那么执行以下命令后再查询
```bash

View File

@@ -1,4 +1,4 @@
## 致谢
## Acknowledgements
https://forum.proxmox.com/
@@ -22,4 +22,4 @@ https://github.com/jiangcuo/Proxmox-Arm64
https://github.com/jiangcuo/run_proxmox_in_docker
感谢 [@Ella-Alinda](https://github.com/Ella-Alinda) 提供的PVE指导
Thank [@Ella-Alinda](https://github.com/Ella-Alinda) for providing PVE guidance.

View File

@@ -7,7 +7,6 @@ titleTemplate: Open source, easy to use server virtualization project
hero:
name: One Click Virtualization
text: Open source, easy to use server virtualization project
tagline: Documentation has not been translated yet, waiting for translation.
image: https://raw.githubusercontent.com/spiritlhls/pages/main/logo.png
actions:
- theme: brand