You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/guide/pve/pve_install.md
+83-12Lines changed: 83 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -10,33 +10,35 @@ If you don't know how to choose an option during installation, just press enter.
10
10
For low-configuration hosts, it is recommended to check the contents of the ```Custom``` partition after all the content has been installed to perform memory tuning and reduce the memory footprint.
11
11
:::
12
12
13
-
## One-click PVE installation
13
+
## Installation on non-physical machines
14
+
15
+
### One-click PVE installation
14
16
15
17
:::tip
16
18
Suggest debian12, the actual test part of the independent server debian11 system will appear a reboot network will be lost, debian12 does not have such a problem!
17
19
:::
18
20
19
21
- The installation is the latest PVE from the apt source at the moment.
20
22
- For example, debian10 is pve6.4, debian11 is pve7.x, debian12 is pve8.x
21
-
- Changes to the ``/etc/hosts`` file (to fix the wrong hostname setting for merchants and to add the required content for PVE)
-```/etc/network/interfaces``` file modification (fix auto, dhcp type to static, add vmbr0 gateway)
24
26
- Detect whether it is China IP, if it is China IP use Tsinghua mirror source, otherwise use the official source, and at the same time deal with the source of apt and the corresponding nameserver, to avoid disconnections
25
27
- Create vmbr0 (independent IP gateway), the host allows addr and gateway for intranet IP or extranet IP, has been automatically recognized
26
28
- vmbr0 creation support to open pure IPV4, pure IPV6, dual-stack virtual machine, automatic identification of IPV4 address and IPV6 address, automatic identification of the corresponding IP interval
27
29
- Installation of the necessary toolkit for PVE to open a virtual machine
28
30
- x86_64 replace enterprise subscriptions in apt sources with community sources, arm sources built using third-party patches for fixes
29
31
- Print query Linux system kernel and PVE kernel installed or not
30
-
- Setting up DNS detection ``8.8.8.8.8`` for boot add DNS systemd service
32
+
- Setting up DNS detection ```8.8.8.8.8``` for boot add DNS systemd service
31
33
- Download PVE and printout of login information after adding APT source link for PVE
32
34
33
35
All modified files have been set to read-only mode to avoid overwriting after reboot.
34
36
35
-
If you want to modify the file, please use ``chattr -i file path`` to cancel the read-only lock, and run ``chattr +i file path`` to lock the read-only lock when you finish modifying the file.
37
+
If you want to modify the file, please use````chattr -i file path``` to cancel the read-only lock, and run ```chattr +i file path``` to lock the read-only lock when you finish modifying the file.
36
38
37
39
You will be prompted to reboot your system once during the execution process, **After rebooting, be sure to wait at least 20 seconds to make sure the system does not reboot automatically again**.
38
40
39
-
Because the original environment may be missing ``ifupdown`` or ``ifupdown2`` environment, there is a self-installation daemon loaded for the installation, after the installation of the system will automatically reboot the system again, wait for 20 seconds without reboot to ensure that the installation has been run.
41
+
Because the original environment may be missing ```ifupdown``` or ```ifupdown2``` environment, there is a self-installation daemon loaded for the installation, after the installation of the system will automatically reboot the system again, wait for 20 seconds without reboot to ensure that the installation has been run.
40
42
41
43
If the host itself exists SLAAC assigned IPV6 address, will be able to choose whether to use the largest IPV6 subnet range, the default carriage return does not use the largest IPV6 subnet range only use the local IPV6, if you subsequently need to attach a separate IPV6 address to the virtual machine/container, the option must be selected ```y```.
42
44
@@ -58,22 +60,22 @@ After successful installation, the web page may not be safe to open, click on Ad
58
60
59
61
The login information is your SSH account and password.
60
62
61
-
## Pre-configure the environment
63
+
###Pre-configure the environment
62
64
63
65
- Creating a resource pool mypool
64
66
- Remove the subscription popup
65
67
- Attempt to enable hardware passthrough
66
68
- Detect and auto-install AppArmor modules.
67
69
- Before rebooting the system, it is recommended to hook up [nezha probe](https://github.com/naiba/nezha) to facilitate the use of the command line in the background without SSH, to avoid the possibility that SSH may lead to the loss of the root password after the reboot due to the merchant's strange presets.
68
-
- Before executing ``reboot``, you need to wait for the background task to finish executing, some host system apt command execution is very slow, you have to wait for a while to finish executing, of course, most of the machines are not so bad!
70
+
- Before executing ```reboot```, you need to wait for the background task to finish executing, some host system apt command execution is very slow, you have to wait for a while to finish executing, of course, most of the machines are not so bad!
Before using this command, please make sure that you have restarted the server and that PVE can use the WEB terminal normally before executing this command. Do not execute this command immediately after restarting the machine, wait for at least 1 minute after the WEB terminal is successfully started before executing this command.
@@ -91,14 +93,14 @@ If the host needs to attach an IPV6 tunnel (add an IPV6 subnet to a host that do
91
93
- If vmbr0 is not created, it is automatically created with the same logic as the main installation
92
94
- Create vmbr1 (NAT gateway) to support IPV4 servers that open NAT for IPV6 networks with NAT.
93
95
- Create vmbr2 (standalone IPV6 gateway), use ndppd to solve the problem of MAC verification of IPV6 addresses by the host, support the opening of servers with standalone IPV6 networks.
94
-
- If you want to see the complete settings, you can execute ``cat /etc/network/interfaces`` to see, if you need to modify the gateway you need to modify the file, the web site can not be modified!
96
+
- If you want to see the complete settings, you can execute ```cat /etc/network/interfaces``` to see, if you need to modify the gateway you need to modify the file, the web site can not be modified!
95
97
- Load iptables and set back to source and allow NAT port forwarding.
96
98
97
99
In short, ```vmbr0``` is responsible for v4 standalone IPs, and ```vmbr1``` is responsible for complex v4/v6 NATs, ```vmbr2``` is responsible for v6 standalone IPs.
98
100
99
101
Open independent IPV4 virtual machine using vmbr0, gateway with the host, IPV4/CIDR using the same network segment address and the same subnet mask, using the host's unbound IPV4 address for IPV4/CIDR, of course, if the subsequent use of this script does not need to pay attention to this point of the nuances of the thing
100
102
101
-
Use vmbr1 for IPV4 VM with NAT, ``172.16.1.1`` for gateway, ``172.16.1.x/24`` for IPV4/CIDR, where x can't be 1, but of course you don't need to pay attention to this minutia if you use this script later.
103
+
Use vmbr1 for IPV4 VM with NAT, ```172.16.1.1``` for gateway, ```172.16.1.x/24``` for IPV4/CIDR, where x can't be 1, but of course you don't need to pay attention to this minutia if you use this script later.
This step may require you to reboot your system after a few minutes of successful execution, see the final execution of the script at the end of the tip. However, a reboot will ensure that some of the hidden settings are loaded successfully, so be sure to reboot the server once if you are in a position to do so.
111
113
:::
114
+
115
+
To this point the main body is installed.
116
+
117
+
## Installation on a physical machine
118
+
119
+
This method has not been tested and adapted on a large scale, only the author himself installed PVE8.4 on the local machine, if there are problems corresponding to the warehouse and then open issues
You also need a USB flash drive with a good read/write rate for making a boot disk, as the boot disk needs to be formatted using rufus for boot disk making, you need to make sure that the USB flash drive is empty before making the disk
130
+
131
+
rufus download address (download to your local, not USB flash drive):
132
+
133
+
https://rufus.ie/zh/
134
+
135
+
or
136
+
137
+
https://github.com/pbatard/rufus
138
+
139
+
Burning needs to use DD method to burn, the original data of the USB flash disk will be completely erased after burning.
140
+
141
+
### PVE installation
142
+
143
+
Find out how to get into the BIOS on the host itself, and modify two things after entering the BIOS
144
+
145
+
1. Safe boot needs to be turned off
146
+
147
+
2. the order of the boot needs to be moved to the first USB order
148
+
149
+
Then save the settings, then insert the USB flash drive, reboot the system, and choose to use the graphical interface for installation.
150
+
151
+
FQDN need to fill in a URL, you can fill in something like pve.spiritlhl.net, preferably a sub-domain of the domain name you own, not the actual domain name if you write it as something like pve.localsite.com will also work, the subsequent may not be used!
152
+
153
+
After the installation will automatically shut down and restart, reboot after the black screen can be unplugged USB, to avoid restarting the installation from the USB flash drive, of course, if you forget to reboot to the installation page, shut down the machine after unplugging the USB flash drive and then start up is also OK!
After downloading, unzip the zip file, drag the ```wireless``` folder into the root directory of a new USB flash drive, and the ```wireless.sh``` file has to be put into the root directory as well.
164
+
165
+
After the flash drive is plugged into the physical machine, you need to mount the flash drive, here sdx1 is the actual path of the flash drive queried by the first command, you need to modify it yourself
166
+
167
+
```shell
168
+
fdisk -l
169
+
mount /dev/sdx1 /mnt
170
+
```
171
+
172
+
The ```wireless.zip``` on the USB flash drive should be unzipped and opened to see the deb file.
173
+
174
+
At this point, run the one-click configuration
175
+
176
+
```shell
177
+
bash /mnt/wireless.sh
178
+
```
179
+
180
+
After the configuration is complete, the system will automatically reboot and the public network will be available after the reboot.
181
+
182
+
During the execution of the configuration script, you will be prompted to enter the name and password of the WIFI. Since there is no Chinese input method in the pure CI environment, the name of the WIFI must be composed of English numbers only, and the password must be the same.
0 commit comments