10 --> Make OpenWRT image and install and use VMware

1. Make VMware's OpenWRT image file
Environment description: ubuntu 16.04, OpenWRT compiles the X86 output file; the content is as follows:
Insert picture description here(1). Install the image conversion tool qemu-img

sudo apt-get install qemu-utils

(2). Convert *.img into VMware hard disk file

$ sudo qemu-img convert -f raw openwrt-19.07-snapshot-unknown-x86-64-combined-squashfs.img -O vmdk openWRT-X86-64-19.07.vmdk

Insert picture description here2. VMware makes openWRT-X86 virtual machine
Environment description: VMWare ESXi 6.1, x86-64
(1). Create virtual machine
New virtual machine -> Typical -> Install the operating system later -> Choose Linux, other linux 3.x- 64 Kernel -> Fill in the virtual machine name and installation location -> The default maximum disk size (8G), split into multiple files -> Finish
Remarks: Remove the CD-ROM drive, printer, etc.

(2). Add *.vmdk file to the virtual machine

1). On the left side of the created virtual machine, select the hard disk in the hardware, and click Remove in the lower left corner

2). Click on the lower left corner to add a hard disk -> virtual disk type, select IDE -> use existing virtual disk -> select the'*.vmdk' file -> complete
3). Expand the IDE virtual disk size, you can adjust it according to your needs. This experiment Use 1GB expansion space

3. Verify the virtual machine environment.
Start the virtual machine.
Insert picture description here
Reference link:
https://openwrt.org/docs/guide-user/virtualization/vmware

Guess you like

Origin blog.csdn.net/weixin_38387929/article/details/113793309