For LEDE, the official website only provides IMG files, not ISO files. For PVE virtual machines, installing LEDE is still a bit troublesome. The following tutorial details how PVE installs LEDE (the new version is also called OpenWrt).

1、 Environment introduction

PVE version: Proxmox Virtual Environment 5.4-3

LEDE version: openwrt koolshare mod-v2.31-r10822-50aa0525d1-x86-64-combined squashfs.img.gz

2、 Environment creation

1. Click the "Create Virtual Machine" button, tick "Advanced", tick "Power on and start automatically" (generally, soft route is powered on and started), fill in the name of the virtual machine (such as LEDE), and click "Next"

2. Select "Linux" for the operating system and "4. X/3. X/2.6 Kernel" for the version (there may be different options for higher PVE versions). Select "Not applicable to any media" and click "Next"

3. By default, click Next

4. The hard disk is set randomly here and will be deleted later. Click "Next"

5. Select CPU according to the actual situation and click "Next"

6. Memory size setting is also selected according to the actual situation, click "Next"

7. Select "intel E1000" for the network model, close the firewall (check off), and click "Next"

8. Click "Finish" directly

9. Select "LEDE" -->"Hardware", find the hard disk, select and click "Detach"

10. After the hard disk is detached, select the unused disk 0 and click Delete

3、 Disk Settings

1. Unzip the openwrt-koolshare-mod-v2.31-r10822-50aa0525d1-x86-64-combined squashfs.img.gz file, and unzip the openwrt-koolshare-mod-v2.31-r10822-50aa0525d1-x86-64-combined squashfs.img file with the same name as openwrt.img (the original file name is too long, and it is troublesome to enter commands)

2. Use WinSCP to upload openwrt.img to the root directory

3. Add disks. Select Shell and enter qm importdisk 100 ./ openwrt.img local-lvm You will see that vm-100-disk-0 is being created

100 is the virtual machine number, and openwrt.img is the newly uploaded LED image (if there are 100 virtual machines, change them to others, such as 101)

4. Add disks. Enter the LEDE hardware settings, select the unused disk 0, click Edit, and then the default configuration window will pop up. Click Add directly

5. Adjust the disk size, select the hard disk, click "Adjust Disk Size", and enter the disk size to be increased in the pop-up box.

4、 Start sequence

LEDE option, boot order, change to hard disk

5、 Start LEDE and configure

6、 Add network card

Turn off the LED, add the network card, and add the network card after configuring the LAN of LEDE. It will be more convenient and not easy to cause problems.