banner
miaoer

miaoer

喵二の小博客 https://www.miaoer.net xLog 分站
tg_channel
telegram
bilibili

PVE Deployment CatWrt (OpenWrt)

What is CatWrt?#

CatWrt is an OpenWrt distribution compiled from the open-source Lean LEDE repository. Compared to the official OpenWRT, LEDE adds more plugins that cater to Chinese users, making it more aligned with their operating habits.

CatWrt is directly compiled from the highly praised LEDE source code, providing an experience similar to QWRT, a privatized paid version of LEDE for hard routers, while also offering comprehensive community support and support for various hardware and architectures.

Project address:

GitHub - miaoermua/CatWrt: 🌠 Customized OpenWrt Smart Gateway

img

Official website: CatWrt.v23.8 Super Performance Super Stable Firmware, Supports Multiple Popular mt798x Routers - Miao Er's Blog (miaoer.xyz)

And free technical support and updates.

Installing OpenWrt on PVE#

1. Create a Virtual Machine#

image-20230921173655356

image

Here, select Do not use any media, choose Linux for the guest operating system, and keep the version default.

image

The BIOS option can be set to default (SeaBIOS) or OVMF (UEFI), which will affect the version selected when adding the image later.

If UEFI is chosen, do not check Add EFI Disk. It is recommended to keep the default or standard VGA, VMware compatible for the graphics card.

image

Here, delete the disk.

image

Here, set the number of CPU cores according to your computer's situation. The category can remain default or be selected based on your situation. To improve performance, select host and set the CPU weight to enhance scheduling responsiveness -> improve performance.

image

Memory settings: If not running proxy software and only for dialing, set to 512MB or 768MB. If running proxy software, it is recommended to set higher, such as 1024MB. If running containers (docker), it is recommended to set 2048MB or higher.

Checking the Ballooning device will make memory dynamically allocated. If you need to use memory monitoring software (like htop, pcdn memory detection), it is not recommended to check this. Some software may experience memory leaks because they cannot determine memory size due to this.

image

Network settings: We know that non-(one-arm, large) routers have two types of interfaces, one WAN and one LAN.

The first interface of CatWrt is set to LAN by default, and the second interface is set to WAN by default. Therefore, caution should be exercised here to avoid configuration difficulties due to incorrect interface order settings.

After completing the configuration, add the second network port.

image

Find the device just created, click on it, select hardware, add -> network device -> select another interface (WAN).

image

2. Import CatWrt Disk#

Most OpenWrt x86 distributions provide .img format disk images or corresponding packaged compressed files. Here, you need to choose the corresponding system folder based on whether you selected BIOS or EFI.

For example, if I previously selected OVMF (EFI), I should download the efi image. If I selected SeaBIOS, I should download the image without EFI.

Download address: Releases · miaoermua/CatWrt (github.com)

image

Use ssh to connect to the PVE host, or use the Shell in the web interface.

Download the image and import it into the virtual disk.

root@pve:~# wget https://github.com/miaoermua/CatWrt/releases/download/v23.8/CatWrt.v23.8.x86_64-squashfs-combined.img
root@pve:~# qm importdisk 104 ./CatWrt.v23.8.x86_64-squashfs-combined.img local-lvm

qm importdisk is the command.

104 is the virtual machine ID.

./CatWrt.v23.8.x86_64-squashfs-combined.img is the image path.

If uploaded via the browser, it will be under /var/lib/vz/template/iso/xxx.img.

local-lvm is the storage location, using local storage.

After successful import, it will show successful.

Successfully imported disk as 'unused0:local-lvm:vm-104-disk-0'
root@pve:~#

Next, follow the steps to import the disk.

image

After completion, start it.

Connect via a network cable to a switch bridged with vmbr0, and enter 192.168.1.4 in the browser to proceed with subsequent dialing, DHCP, and higher network port information configuration.

image

Username root, password password.

Note:

1)*. CatWrt has some modifications and configurations of packages compared to LEDE.

2)*. Basic issues provide free technical support, special issues excluded.

This blog is provided by a senior from Jiangxi University of Science and Technology as part of the CatWrt user experience program. Original text: PVE Deployment of CatWrt (OpenWrt) | Enjoy your life | AEnjoy’s Blog

This article is synchronized to xLog by Mix Space. The original link is https://www.miaoer.net/posts/network/pve-deplay-openwrt

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.