在已存在虚拟机内新建硬盘,接口一定要为IDE,不然安装后DD-wrt一直重启。虚拟机使用Winodws和Linux都可,用于将DD-wrt镜像写入到硬盘中,然后新建VMware虚拟机以此硬盘启动DD-wrt。
下载DD-wrt x86镜像,选择dd-wrt_public_vga.image。
Linux下使用dd命令写入DD-wrt镜像:
#https://www.haiyun.me
dd if=./dd-wrt_public_vga.image of=/dev/sdb
记录了22528+0 的读入
记录了22528+0 的写出
11534336字节(12 MB)已复制,0.610544 秒,18.9 MB/秒
Windows下使用physdiskwrite工具写入:
physdiskwrite c:\dd-wrt_public_vga.image
#如果硬盘大于2G加-u参数
physdiskwrite v0.5.2 by Manuel Kasper <mk@neon1.net>
Searching for physical drives...
Information for \\.\PhysicalDrive0:
Windows: cyl: 5221
tpc: 255
spt: 63
C/H/S: 16383/15/63
Model: VMware Virtual IDE Hard Drive
Serial number: 00000000000000000001
Firmware rev.: 00000001
Information for \\.\PhysicalDrive1:
Windows: cyl: 130
tpc: 255
spt: 63
C/H/S: 2080/16/63
Model: VMware Virtual IDE Hard Drive
Serial number: 01000000000000000001
Firmware rev.: 00000001
Which disk do you want to write? (0..1) 1
11534336/11534336 bytes written in total
新建VMware虚拟机使用刚刚写入DD-wrt镜像的硬盘启动系统,默认账号root,密码:admin。