Skip to content

Commit

Permalink
更新LXD的镜像源说明
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS committed Mar 23, 2024
1 parent bff7436 commit 355b64e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 31 deletions.
24 changes: 8 additions & 16 deletions docs/en/guide/lxd/lxd_lxc.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,24 @@ curl -L https://raw.githubusercontent.com/oneclickvirt/lxd/main/scripts/buildone
### Usage

```
. /buildone.sh name Cpu_num Memory_size Hard_disk_size SSH_port Extranet_start_port Extranet_stop_port Download_speed Upload_speed Whether_IPV6_is_enabled(Y or N) System(leave blank for debian11)
. /buildone.sh name Cpu_num Memory_size Hard_disk_size SSH_port Extranet_start_port Extranet_stop_port Download_speed Upload_speed Whether_IPV6_is_enabled(Y or N) System(leave blank for debian12)
```

Memory size is calculated in MB, hard disk size is calculated in GB, download speed upload speed is calculated in Mbit, whether to enable IPV6 does not have to fill in Y or N, no this parameter can also be left blank default does not enable IPV6

If ```external start port`` and ```external stop port`` are both set to 0, then we don't do interval port mapping, only the basic SSH port is mapped, note that ```can't be null``, and it needs to be set to 0 if it's not to be mapped.

Support for customizing the system of the server, do not fill out the default use of debian11 when left blank, note that the incoming parameters for the system name + version number, such as:
Support for customizing the system of the server, do not fill out the default use of debian12 when left blank, note that the incoming parameters for the system name + version number, such as:

- debian10, debian11, debian12
- ubuntu18, ubuntu20, ubuntu22
- centos8, centos9 (actually opened out of the Stream version)
- alpine3.15, alpine3.16, alpine3.17, alpine3.18
- openwrt21,openwrt22,fedora37,fedora38,fedora39
- rockylinux8,rockylinux9,oralce8,oracle9
- oralce7,centos7 (CGroupV1 needs to be enabled in GRUB or it won't start.)
- kali,archlinux
- debian12, debian13
- ubuntu22, ubuntu24
- centos8,centos9
- alpine3.16, alpine3.17, alpine3.18,alpine3.19

* Note that the combination of lowercase letters + numbers or only lowercase letters, try it yourself, if the search is not the system will automatically exit the script
* The version number can be with English decimal point, in order to adapt to the alpine version number has been supported.
* If you can't open it, it may be that the hard disk is not big enough or it doesn't fit the host, try it by yourself.

:::tip
The version number has ended the long-term maintenance of the general no longer have an official mirror, temporarily did not find the archive address of the historical mirror, if you find welcome to leave a message I will add support!
:::

### Example

Here is the information about the example chick that is being raised:
Expand All @@ -61,10 +53,10 @@ Here is the information about the example chick that is being raised:
| Upload Bandwidth | 500Mbit |
| Download Bandwidth | 500Mbit |
| Automatically Set External IPv6 Address | No |
| Operating System | Debian 11 |
| Operating System | Debian 12 |

```
./buildone.sh test 1 256 2 20001 20002 20025 500 500 N debian11
./buildone.sh test 1 256 2 20001 20002 20025 500 500 N debian12
```

If you need to see the information, run
Expand Down
2 changes: 2 additions & 0 deletions docs/en/guide/lxd/lxd_thanks.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/index.html

https://github.com/SuperManito/LinuxMirrors

https://images.opsmaru.dev/

Thank [@Ella-Alinda](https://github.com/Ella-Alinda) [@fscarmen](https://github.com/fscarmen) for providing guidance.
22 changes: 7 additions & 15 deletions docs/guide/lxd/lxd_lxc.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,17 @@ CPU核数需要小于或等于宿主机的核数,内存大小以MB计算,硬

如果```外网起端口``````外网止端口```都设置为0则不做区间外网端口映射了,只映射基础的SSH端口,注意```不能为空```,不进行映射需要设置为0

支持自定义服务器的系统,不填写留空时默认使用debian11,注意传入参数为系统名字+版本号,如:
支持自定义服务器的系统,不填写留空时默认使用debian12,注意传入参数为系统名字+版本号,如:

- debian10,debian11,debian12
- ubuntu18,ubuntu20,ubuntu22
- centos8,centos9 (实际开设出来都是Stream版本)
- alpine3.15,alpine3.16,alpine3.17,alpine3.18
- openwrt21,openwrt22,fedora37,fedora38,fedora39
- rockylinux8,rockylinux9,oralce8,oracle9
- oralce7,centos7 (都需要在GRUB中启用CGroupV1否则无法启动,详细介绍见常见问题答疑)
- kali,archlinux
- debian12,debian13
- ubuntu22,ubuntu24
- centos8,centos9 (实际都是Stream版本)
- alpine3.16,alpine3.17,alpine3.18,alpine3.19

* 注意都是小写字母+数字的组合或仅小写字母,自行尝试,如果搜索无该系统则会自动退出脚本
* 版本号可以带英文小数点,为了适配alpine的版本号已支持
* 开不起来的可能是硬盘或内存不够大或者本身就不适配宿主机,自行尝试查看开不起来的报错

:::tip
版本号中已结束长期维护的一般不再有官方镜像了,暂时未找到历史镜像的存档地址,如果有找到欢迎留言我会添加支持
:::

### 示例

以下为开设的示例服务器的信息:
Expand All @@ -67,11 +59,11 @@ CPU核数需要小于或等于宿主机的核数,内存大小以MB计算,硬
| 上传带宽 | 500Mbit |
| 下载带宽 | 500Mbit |
| 自动设置外网IPV6地址 | N |
| 系统 | debian11 |
| 系统 | debian12 |


```
./buildone.sh test 1 256 2 20001 20002 20025 500 500 N debian11
./buildone.sh test 1 256 2 20001 20002 20025 500 500 N debian12
```

需要进入容器内部则执行
Expand Down
2 changes: 2 additions & 0 deletions docs/guide/lxd/lxd_thanks.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/index.html

https://github.com/SuperManito/LinuxMirrors

https://images.opsmaru.dev/

感谢 [@Ella-Alinda](https://github.com/Ella-Alinda) [@fscarmen](https://github.com/fscarmen) 提供的指导

0 comments on commit 355b64e

Please sign in to comment.