0
点赞
收藏
分享

微信扫一扫

Hyper-v安装OpenWrt/LEDE

成义随笔 2022-06-15 阅读 75

下载最新的OpenWRT/LEDE:

​​https://github.com/coolsnowwolf/lede/releases​​ [可能需翻墙]

Hyper-v安装OpenWrt/LEDE_OpenWRT

解压出来的是:openwrt-x64-R22.5.5-generic-squashfs-combined-efi.img


下载转换成vhdx的工具:StarWind Converter[免费]

​​https://www.starwindsoftware.com/tmplink/starwindconverter.exe​​ 

分别下载后安装完成。

先用sartWind Converter 将img 转换成vhd或vhdx。

Hyper-v安装OpenWrt/LEDE_OpenWRT_02

Hyper-v安装OpenWrt/LEDE_OpenWRT_03

Hyper-v安装OpenWrt/LEDE_OpenWRT_04

Hyper-v安装OpenWrt/LEDE_OpenWRT_05

Hyper-v安装OpenWrt/LEDE_Hyper-V_06

Hyper-v安装OpenWrt/LEDE_OpenWRT_07

Hyper-v安装OpenWrt/LEDE_OpenWRT_08

img转换成vhd.

打开powershell:

最后创建hyper-v虚拟机时就用这个文件。(注意这个文件只能用作第一代hyper-v虚机,二代虚机无法启动)

New-VM -Name 'LEDE' -Generation 1 -MemoryStartupBytes 1GB -Path 'd:\Hyper-V' -VHDPath 'D:\Hyper-V\lede\vhd\openwrt-x64-R22.5.5-generic-squashfs-combined-efi.vhd' -SwitchName 'Hyper-vInternal' -BootDevice IDE

增加一张WAN的网卡。

Add-VMNetworkAdapter -VMName 'LEDE' -SwitchName 'Hyper_vSwitch'

Hyper-v安装OpenWrt/LEDE_OpenWRT_09

这样就可以启动虚机了。

Hyper-v安装OpenWrt/LEDE_OpenWRT_10

客户端的也可获取openwrt分配的IP:

Hyper-v安装OpenWrt/LEDE_Hyper-V_11

Hyper-v安装OpenWrt/LEDE_Hyper-V_12

web也可以访问了。


举报

相关推荐

0 条评论