I. Environmental Introduction
PVE version: Proxmox Virtual Environment 5.4-3
OpenWRT version: openwrt-x86-64-combined-squashfs.img.gz
- Click the “Create Virtual Machine” button, tick “Advanced”, tick “Startup at startup” (soft router usually starts at startup), fill in the name of the virtual machine (eg OpenWRT ), and click “Next”
- Select “Linux” as the operating system and “4.X / 3.X / 2.6 Kernel” as the version. Select “Not applicable to any medium” and click “Next”
- The system is default, click “Next”
- The hard disk can be set here randomly, it will be deleted later, click “Next”
- The CPU is selected according to the actual situation, click “Next”
- The memory size setting is also selected according to the actual situation, click “Next”
- Select “intel E1000” for the network model, turn off the firewall (remove the tick), and click “Next”
- Click “Finish” directly
- Select “LEDE”-> “Hardware”, find the hard disk, select it and click “detach”
- After the hard disk is separated, select the unused disk 0 and click “Delete”
Third, the disk settings
- Extract the openwrt-x86-64-combined-squashfs.img.gz file, and extract the openwrt-x86-64- Combined-squashfs.img renamed to OpenWRT.img (the original file name is too long, it is more troublesome to enter commands)
- Use WinSCP to upload OpenWRT.img to the root directory
- 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, openwrt.img is the OpenWRT image just uploaded
- Add disks. Enter the OpenWRT hardware settings, select the unused disk 0, click Edit, the default configuration of the pop-up window can be clicked directly
- Adjust the disk size, select the hard disk, and click “Resize Disk”. A pop-up box is displayed to enter the disk size to be increased.
Fourth, the startup sequence
LEDE option, boot order, changed to hard disk
- Five,start LEDE and configure (omitted)
I won’t elaborate here.
- Six, add a network card (omitted)
Close LEDE, add a network card, and add a network card after configuring the LEDE lan, it will be more convenient and less prone to problems.
At this point, PVE installation of LEDE is almost complete.
BY : GXNAS BLOG