如何在pve(proxmox)中安装openwrt软路由?(代码片段)

author author     2023-01-01     659

关键词:

工具准备

  • WinSCP或者XFTP
  • OpenWrt镜像(自行寻找)
  • 安装好PVE的主机一台

安装教程

镜像上传

创建虚拟机

将镜像导入到OpenWrt虚拟机

root@Home:~# qm importdisk 999 bleach-mini-20221231-openwrt-x86-64-generic-squashfs-combined-efi.img local
importing disk bleach-mini-20221231-openwrt-x86-64-generic-squashfs-combined-efi.img to VM 999 ...
Formatting /var/lib/vz/images/999/vm-999-disk-0.raw, fmt=raw size=1090813440 preallocation=off
transferred 0.0 B of 1.0 GiB (0.00%)
transferred 12.0 MiB of 1.0 GiB (1.15%)
transferred 24.0 MiB of 1.0 GiB (2.31%)
transferred 36.0 MiB of 1.0 GiB (3.46%)
transferred 48.0 MiB of 1.0 GiB (4.61%)
transferred 60.0 MiB of 1.0 GiB (5.77%)
transferred 72.0 MiB of 1.0 GiB (6.92%)
transferred 84.0 MiB of 1.0 GiB (8.07%)
transferred 96.0 MiB of 1.0 GiB (9.23%)
transferred 108.0 MiB of 1.0 GiB (10.38%)
transferred 120.0 MiB of 1.0 GiB (11.54%)
transferred 132.0 MiB of 1.0 GiB (12.69%)
transferred 144.0 MiB of 1.0 GiB (13.84%)
transferred 156.0 MiB of 1.0 GiB (15.00%)
transferred 168.0 MiB of 1.0 GiB (16.15%)
transferred 180.0 MiB of 1.0 GiB (17.30%)
transferred 192.0 MiB of 1.0 GiB (18.46%)
transferred 204.0 MiB of 1.0 GiB (19.61%)
transferred 216.0 MiB of 1.0 GiB (20.76%)
transferred 228.0 MiB of 1.0 GiB (21.92%)
transferred 240.0 MiB of 1.0 GiB (23.07%)
transferred 252.0 MiB of 1.0 GiB (24.22%)
transferred 264.0 MiB of 1.0 GiB (25.38%)
transferred 276.0 MiB of 1.0 GiB (26.53%)
transferred 287.9 MiB of 1.0 GiB (27.68%)
transferred 300.0 MiB of 1.0 GiB (28.84%)
transferred 312.0 MiB of 1.0 GiB (29.99%)
transferred 324.0 MiB of 1.0 GiB (31.15%)
transferred 336.0 MiB of 1.0 GiB (32.30%)
transferred 348.0 MiB of 1.0 GiB (33.45%)
transferred 360.0 MiB of 1.0 GiB (34.61%)
transferred 372.0 MiB of 1.0 GiB (35.76%)
transferred 384.0 MiB of 1.0 GiB (36.91%)
transferred 396.0 MiB of 1.0 GiB (38.07%)
transferred 408.0 MiB of 1.0 GiB (39.22%)
transferred 420.0 MiB of 1.0 GiB (40.37%)
transferred 432.0 MiB of 1.0 GiB (41.53%)
transferred 444.0 MiB of 1.0 GiB (42.68%)
transferred 456.0 MiB of 1.0 GiB (43.83%)
transferred 468.0 MiB of 1.0 GiB (44.99%)
transferred 480.0 MiB of 1.0 GiB (46.14%)
transferred 491.9 MiB of 1.0 GiB (47.29%)
transferred 504.0 MiB of 1.0 GiB (48.45%)
transferred 516.0 MiB of 1.0 GiB (49.60%)
transferred 528.0 MiB of 1.0 GiB (50.76%)
transferred 540.0 MiB of 1.0 GiB (51.91%)
transferred 552.0 MiB of 1.0 GiB (53.06%)
transferred 564.0 MiB of 1.0 GiB (54.22%)
transferred 576.0 MiB of 1.0 GiB (55.37%)
transferred 588.0 MiB of 1.0 GiB (56.52%)
transferred 600.0 MiB of 1.0 GiB (57.68%)
transferred 612.0 MiB of 1.0 GiB (58.83%)
transferred 624.0 MiB of 1.0 GiB (59.98%)
transferred 636.0 MiB of 1.0 GiB (61.14%)
transferred 648.0 MiB of 1.0 GiB (62.29%)
transferred 660.0 MiB of 1.0 GiB (63.44%)
transferred 672.0 MiB of 1.0 GiB (64.60%)
transferred 684.0 MiB of 1.0 GiB (65.75%)
transferred 696.1 MiB of 1.0 GiB (66.91%)
transferred 708.0 MiB of 1.0 GiB (68.06%)
transferred 720.0 MiB of 1.0 GiB (69.21%)
transferred 732.0 MiB of 1.0 GiB (70.37%)
transferred 744.0 MiB of 1.0 GiB (71.52%)
transferred 756.0 MiB of 1.0 GiB (72.67%)
transferred 768.0 MiB of 1.0 GiB (73.83%)
transferred 780.0 MiB of 1.0 GiB (74.98%)
transferred 792.0 MiB of 1.0 GiB (76.13%)
transferred 804.0 MiB of 1.0 GiB (77.29%)
transferred 816.0 MiB of 1.0 GiB (78.44%)
transferred 828.0 MiB of 1.0 GiB (79.59%)
transferred 840.0 MiB of 1.0 GiB (80.75%)
transferred 852.0 MiB of 1.0 GiB (81.90%)
transferred 864.0 MiB of 1.0 GiB (83.05%)
transferred 876.0 MiB of 1.0 GiB (84.21%)
transferred 888.0 MiB of 1.0 GiB (85.36%)
transferred 900.1 MiB of 1.0 GiB (86.52%)
transferred 912.0 MiB of 1.0 GiB (87.67%)
transferred 924.0 MiB of 1.0 GiB (88.82%)
transferred 936.0 MiB of 1.0 GiB (89.98%)
transferred 948.0 MiB of 1.0 GiB (91.13%)
transferred 960.0 MiB of 1.0 GiB (92.28%)
transferred 972.0 MiB of 1.0 GiB (93.44%)
transferred 984.0 MiB of 1.0 GiB (94.59%)
transferred 996.0 MiB of 1.0 GiB (95.74%)
transferred 1008.0 MiB of 1.0 GiB (96.90%)
transferred 1020.0 MiB of 1.0 GiB (98.05%)
transferred 1.0 GiB of 1.0 GiB (99.20%)
transferred 1.0 GiB of 1.0 GiB (100.00%)
transferred 1.0 GiB of 1.0 GiB (100.00%)
Successfully imported disk as unused0:local:999/vm-999-disk-0.raw

IP地址设置

openwrtsmartdns停止后没网

在pve中安装openwrt后,有可能会出现pve系统无法连接外网的问题。有可能出现以下两种错误:1Temporaryfailureinnameresolution直接报dns的错误2failed:Networkisunreachable或DestinationHostUnreachable在第一种情况下,有可能是由于在openwrt中启用了smar... 查看详情

proxmox不付费订阅要出麻烦(代码片段)

前几天因事去北京,有兄弟反应,proxmox安装pveceph出现警告,具体信息如下:W:(pve-apt-hook)!!WARNING!!W:(pve-apt-hook)Youareattemptingtoremovethemeta-package‘proxmox-ve‘!W:(pve-apt-hook)W:(pve-apt-hook)Ifyoureallyyouwanttopermanentl 查看详情

openwrt中安装配置transmission

参考文章https://wiki.openwrt.org/doc/uci/transmission 1.安装包必装的transmission-daemon-openssl(后台服务)选装的transmission-cli-openssl(命令行管理)transmission-remote-openssl(远程UI管理)transmission-web-openssl(web管理)我选择的 查看详情

升级pve7到最新版本并设置国内源(代码片段)

...-enterprise.list添加PVE官方GPGkey:sudowgethttp://mirrors.ustc.edu.cn/proxmox/debian/proxmox-ve-release-6.x.gpg-O/etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg添加PVE官方源:sudosh-c\'echo"debhttp://mirrors.ustc.edu.cn/proxmox/debian/pvebullseyepve-no-subscription">/etc/apt/sources.... 查看详情

Proxmox | /etc/default/pveproxy

】Proxmox|/etc/default/pveproxy【英文标题】:【发布时间】:2021-05-0120:02:04【问题描述】:我有一个小问题。我试图通过IP地址禁用对proxmox网络面板的访问,并通过我的域启用它。正如我在proxmox网站(https://pve.proxmox.com/pve-docs/pveproxy.8.... 查看详情

如何在python2.7中安装MySQLdb 在virtualenv中安装

】如何在python2.7中安装MySQLdb在virtualenv中安装【英文标题】:HowtoinstallMySQLdbinpython2.7installinginvirtualenv【发布时间】:2012-04-2600:48:06【问题描述】:我该如何解决thisone?我在venv/lib中有MySQL-python-1.2.3dist。在此之前它像pythonsetup.pyins... 查看详情

如何在高山容器中安装 Docker?

】如何在高山容器中安装Docker?【英文标题】:HowcanIinstallDockerinsideanalpinecontainer?【发布时间】:2019-06-0314:00:20【问题描述】:如何在alpine容器中安装Docker并运行docker映像?我可以安装,但无法启动docker,并且在运行时出现“dock... 查看详情

如何在 apache2 tomcat6 中安装 ffmpeg 或在 ubuntu 中安装 xampp?

】如何在apache2tomcat6中安装ffmpeg或在ubuntu中安装xampp?【英文标题】:Howtoinstallffmpeginapache2tomcat6,orxamppinubuntu?【发布时间】:2011-05-2414:06:54【问题描述】:我想知道如何在apache2tomcat6中安装ffmpeg或在ubuntu中安装xampp。这样我就可以... 查看详情

如何在 xampp 中安装 mcrypt 扩展

】如何在xampp中安装mcrypt扩展【英文标题】:Howtoinstallmcryptextensioninxampp【发布时间】:2016-09-2802:09:26【问题描述】:如何在windows的xampp中安装mcrypt?我的PHP7.0.5版和xampp包没有mcryptextension那么我如何在xampp上安装mcrypt呢?【问题讨... 查看详情

如何在 Ubuntu 中安装 libwebsocket 库?

】如何在Ubuntu中安装libwebsocket库?【英文标题】:HowcanIinstallthelibwebsocketlibraryinUbuntu?【发布时间】:2015-04-0611:33:08【问题描述】:我正在尝试在我的ubuntu中安装libwebsocket。所以我下载了项目https://github.com/warmcat/libwebsockets解压后... 查看详情

如何在打字中安装快递?

】如何在打字中安装快递?【英文标题】:Howtoinstallexpressintypings?【发布时间】:2016-07-0211:14:51【问题描述】:我正在尝试在我的应用中使用expressjs。使用typingsinstallexpress--ambient--save安装后,我运行tsc,但出现两个错误:typings/ma... 查看详情

proxmox6.2简单配置(代码片段)

...pt/sources.list.d/pve-enterprise.list.bak2)下载秘钥wgethttp://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg-O/etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg3)添加社区源echo"debhttp://download.proxmox.wiki/debian/pvestretchpve-no-subscription">/etc/apt/sources.list.d/... 查看详情

proxmox6.2简单配置(代码片段)

...pt/sources.list.d/pve-enterprise.list.bak2)下载秘钥wgethttp://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg-O/etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg3)添加社区源echo"debhttp://download.proxmox.wiki/debian/pvestretchpve-no-subscription">/etc/apt/sources.list.d/... 查看详情

如何在python3中安装文本

】如何在python3中安装文本【英文标题】:Howtoinstalltextractinpython3【发布时间】:2018-05-0901:24:09【问题描述】:sudopython3-mpipinstalltextractsudoapt-getinstalltextractpipinstalltextractsudoapt-getinstallswig我想在python3中安装textract,但安装方式不正... 查看详情

如何在 Kubernetes 中安装 MariaDB ColumnStore?

】如何在Kubernetes中安装MariaDBColumnStore?【英文标题】:HowtoinstallMariaDBColumnStoreinKubernetes?【发布时间】:2019-06-1812:29:56【问题描述】:我一直在尝试在我的kuberentes集群中安装MariaDBColumnStore,但没有成功。我似乎找不到任何关于如... 查看详情

如何在 sles 12 中安装 docker?

】如何在sles12中安装docker?【英文标题】:howtoinstalldockerinsles12?【发布时间】:2016-12-1406:35:54【问题描述】:我想在我的suse系统(版本sles12)中安装docker稳定版。在suse系统中安装docker,需要添加docker的仓库。我没有找到任何用... 查看详情

proxmoxve7.2(pve)部署指南

...,打破并提高自己的认知,方能长远的进步关键词:PVE、Proxmox部署————————————————————————————一、部署提要1.1下载地址两个地址都可以,看自己情况吧​​https://www.proxmox.com/en/downloads​​​... 查看详情

如何在 PlayGround 中安装 Alamofire

】如何在PlayGround中安装Alamofire【英文标题】:HowtoinstallAlamofireinPlayGround【发布时间】:2016-12-1618:31:48【问题描述】:我已经在Xcode8.2上安装了AlamoFire,没有任何问题。我可以在项目中编写一些代码时导入它,但我不能在PlayGround... 查看详情