Wen Zhao to VMware Workstation Nat online with host (mobile VM requires re-adding VMDK files)

Source: Internet
Author: User
Tags change settings

Recently, in the use of VMware Workstation in the Linux server-related experiments, there is the need for a virtual host can use the host to surf the internet, but there is a special requirement is that the host's IP address is not only fixed but also allow customization, So on-line search related configuration but unsatisfactory, through the test finally fix, the following for the record content for everyone to refer to the configuration used.


One. Prerequisite environmental Requirements

VMware Workstation

Install the virtual machine you want to use

Host is able to surf the internet

Two. Configuration process

1. First modify the virtual machine's network card connection mode to NAT

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/3F/wKiom1X4I9qzE96hAAHDjc0rcwA843.jpg "title=" 1.png " alt= "Wkiom1x4i9qze96haahdjc0rcwa843.jpg"/>


2. Modify the virtual network card parameters.

Open edit--Virtual network editor--Change settings (lower right corner)--Enter the following settings screen

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/3F/wKiom1X4JCPzcBrzAAKp0u4CpEU454.jpg "title=" 2.png " alt= "Wkiom1x4jcpzcbrzaakp0u4cpeu454.jpg"/>


Modify the network mode of the internal virtual machine by specifying the gateway, and the address segment, as shown in the modifications.

3. Specify how to access the internal virtual machine

1) The internal internal network through the DHCP mode.

Modify network adapter profile selected Internet mode for DHCP

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/3C/wKioL1X4JozBX7sAAACdaUqDTDI918.jpg "title=" 3.png " alt= "Wkiol1x4jozbx7saaacdauqdtdi918.jpg"/>


Restart the network card:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/3C/wKioL1X4JreRERWnAADW8kwgjVM311.jpg "title=" 4.png " alt= "Wkiol1x4jrererwnaadw8kwgjvm311.jpg"/>

View the currently acquired IP address and the default gateway:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/3F/wKiom1X4JKuDP0FbAAJ75UvvrYg790.jpg "title=" 52.png "alt=" Wkiom1x4jkudp0fbaaj75uvvryg790.jpg "/>

Set a correct DNS

Vi/etc/resolv.conf

such as: 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/3C/wKioL1X4JxeSli3TAAA240di-nc327.jpg "title=" 6. PNG "alt=" wkiol1x4jxesli3taaa240di-nc327.jpg "/>


2) The internal network through the fixed IP method.

To modify a configuration file:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/3C/wKioL1X4Jziz1oHWAAFtvEchwZU313.jpg "title=" 71.png "alt=" Wkiol1x4jziz1ohwaaftvechwzu313.jpg "/>

Restart the network card according to the previous step

View current NIC and gateway parameters


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/3C/wKioL1X4J2uClVHQAAJiu1oYX8I431.jpg "title=" 8.png " alt= "Wkiol1x4j2uclvhqaajiu1oyx8i431.jpg"/>

The above is the entire test process. The above configuration can be done.

And some students need to move the virtual machine. The methods to modify the VMDK file path when the vmdk file path is inconsistent are described below

is actually first removed in addition to the existing

1. Delete the previously unrecognized hard drive file as follows: Select and click Remove. (If you want to delete all unrecognized hard disk files as soon as you do)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/3F/wKiom1X4Jdex6_vAAAC0tsbQhLs615.jpg "title=" 9.png " alt= "Wkiom1x4jdex6_vaaac0tsbqhls615.jpg"/>

2. When adding a hard drive in the add process you need to select an existing virtual hard disk and select the location of the vmdk file. (Add all the vmdk files in turn)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/3C/wKioL1X4KELyRQGOAAFgogcgb_8401.jpg "title=" 10.png "alt=" Wkiol1x4kelyrqgoaafgogcgb_8401.jpg "/>


The above for all the contents of the Touch ~ ~ ~ ~ ^_^!!

This article is from the "Wen Zhao" blog, please be sure to keep this source http://zhaowencheng.blog.51cto.com/7821671/1695124

Wen Zhao to VMware Workstation Nat online with host (mobile VM requires re-adding VMDK files)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.