|
2 | 2 | outline: deep |
3 | 3 | --- |
4 | 4 |
|
5 | | -## Repo |
| 5 | +## Repo 仓库地址 |
6 | 6 |
|
7 | | -https://github.com/oneclickvirt/webvirtcloud |
| 7 | +GitHub: [oneclickvirt/webvirtcloud](https://github.com/oneclickvirt/webvirtcloud) |
8 | 8 |
|
9 | 9 | [](https://hits.spiritlhl.net) |
10 | 10 |
|
11 | | -## webvirtcloud-scripts |
| 11 | +--- |
| 12 | + |
| 13 | +### Controller 控制端安装 |
12 | 14 |
|
13 | | -Controller安装 |
| 15 | +> **最低配置要求**: |
| 16 | +> - CPU: 1 核 |
| 17 | +> - 内存: 1 GB |
| 18 | +> - 硬盘: 空余 10 GB |
14 | 19 |
|
15 | | -至少1核1G内存10G空的硬盘 |
| 20 | +#### 默认登录信息 Login Info |
16 | 21 |
|
17 | | -username: ```admin@webvirt.cloud``` |
| 22 | +- 用户名 / Username: `admin@webvirt.cloud` |
| 23 | +- 密码 / Password: `admin` |
18 | 24 |
|
19 | | -password: ```admin``` |
| 25 | +#### 面板地址 Panel Access |
20 | 26 |
|
21 | | -Client panel - https://192-168-0-114.nip.io |
| 27 | +- 用户面板 / Client Panel: `https://192-168-0-114.nip.io` |
| 28 | +- 管理后台 / Admin Panel: `https://192-168-0-114.nip.io/admin` |
22 | 29 |
|
23 | | -Admin panel - https://192-168-0-114.nip.io/admin |
| 30 | +> 请将 `192.168.0.114` 替换为你的公网 IP,以获取真实可访问地址。 |
| 31 | +> Replace `192.168.0.114` with your actual **public IP address**. |
24 | 32 |
|
25 | | -将192.168.0.114换成部署机的公网IP,上述地址就是面板地址 |
| 33 | +#### 安装命令 Install Command |
26 | 34 |
|
27 | | -```shell |
28 | | -curl -slk https://raw.githubusercontent.com/oneclickvirt/webvirtcloud/main/scripts/install_webvirt_cloud.sh -o install_webvirt_cloud.sh && chmod 777 install_webvirt_cloud.sh && bash install_webvirt_cloud.sh ctl |
| 35 | +```bash |
| 36 | +curl -slk https://raw.githubusercontent.com/oneclickvirt/webvirtcloud/main/scripts/install_webvirt_cloud.sh -o install_webvirt_cloud.sh \ |
| 37 | +&& chmod +x install_webvirt_cloud.sh \ |
| 38 | +&& bash install_webvirt_cloud.sh ctl |
29 | 39 | ``` |
30 | 40 |
|
31 | | -Hypervisor 安装 |
| 41 | +### Hypervisor 计算节点安装 |
32 | 42 |
|
33 | | -开发测试环境:2核4G内存50G空的硬盘 |
| 43 | +> **建议配置**: |
| 44 | +> - 测试环境: 2 核 CPU / 4 GB 内存 / 50 GB 空硬盘 |
| 45 | +> - 生产环境建议更高配置 |
| 46 | +> Minimum recommended for testing: |
| 47 | +> - 2 cores CPU / 4GB RAM / 50GB disk (more for production use) |
34 | 48 |
|
35 | | -实际使用建议配置更高 |
| 49 | +#### 下载并准备安装脚本 |
36 | 50 |
|
37 | | -```shell |
38 | | -curl -slk https://raw.githubusercontent.com/oneclickvirt/webvirtcloud/main/scripts/install_hypervisor1.sh -o install_hypervisor1.sh && chmod 777 install_hypervisor1.sh |
| 51 | +```bash |
| 52 | +curl -slk https://raw.githubusercontent.com/oneclickvirt/webvirtcloud/main/scripts/install_hypervisor1.sh -o install_hypervisor1.sh \ |
| 53 | +&& chmod +x install_hypervisor1.sh |
39 | 54 | ``` |
40 | 55 |
|
41 | | -替换```x.x.x.x```为实际的已部署了Controller的IP地址,然后再执行下述命令 |
| 56 | +#### 执行安装命令(替换 Controller IP) |
42 | 57 |
|
43 | | -```shell |
| 58 | +请将 `x.x.x.x` 替换为你的 **Controller 控制端的实际 IP 地址**: |
| 59 | + |
| 60 | +```bash |
44 | 61 | bash install_hypervisor1.sh x.x.x.x |
45 | 62 | ``` |
46 | 63 |
|
47 | | -安装过程中可能会自动退出,提示当前的```NetworkManager```版本不符合要求,提示你需要重启服务器,大概提示如下: |
| 64 | +### 安装中可能出现的问题与提示 |
48 | 65 |
|
49 | | -``` |
| 66 | +安装过程中可能会自动退出并提示 NetworkManager 版本问题,如下所示: |
| 67 | + |
| 68 | +```text |
50 | 69 | Connection 'eth0' (bed050e9-ff49-4665-8112-24ddf2a1cd3c) successfully deleted. |
51 | 70 | Warning: nmcli (1.48.10) and NetworkManager (1.42.2) versions don't match. Restarting NetworkManager is advised. |
52 | 71 | Error: Failed to add 'br-ext' connection: connection.autoconnect-ports: unknown property |
53 | 72 | ``` |
54 | 73 |
|
55 | | -此时重启服务器后需要再次执行上述命令 |
| 74 | +> **解决方法**: |
| 75 | +> 重启服务器后重新执行安装命令 |
| 76 | +> Reboot your server, then **run the install command again**. |
| 77 | +
|
| 78 | +### 安装耗时提示 |
| 79 | + |
| 80 | +- 整个过程大约耗时 **20~25 分钟** |
| 81 | +- 大部分时间用于下载 `finnix-125.iso`: |
| 82 | + `/var/lib/libvirt/isos/finnix-125.iso` |
| 83 | +- 该部分无法加速,**建议使用 tmux 或 screen** 等工具防止中断 |
| 84 | + |
| 85 | +### 添加计算节点到控制面板 |
56 | 86 |
|
57 | | -安装完毕后会显示纳管所用的token,这是需要在Controller的Admin面板中的Computers页面添加的节点信息 |
| 87 | +安装完成后会生成一个 **Token**,用于在控制端(Admin 面板)中添加计算节点: |
58 | 88 |
|
59 | | -安装过程大概需要20~25分钟,主要耗时在```/var/lib/libvirt/isos/finnix-125.iso```的下载,这块无法加速,建议挂在tmux或者screen中进行安装 |
| 89 | +路径: |
| 90 | +`Admin Panel > Computers > Add Node` |
60 | 91 |
|
61 | | -# Thanks |
| 92 | +## Thanks |
62 | 93 |
|
63 | | -[webvirt.cloud](https://webvirt.cloud/) |
| 94 | +- [WebVirt.Cloud 官方网站](https://webvirt.cloud/) |
0 commit comments