A detailed explanation of VMware Virtual Machine Network setup

Source: Internet
Author: User
Tags ftp memory usage resource linux

In many cases, computer enthusiasts need to have a network environment to learn network server installation and settings, hacker attack and defense technology, But often most amateur computer enthusiasts do not have such a condition. The advent of virtual machine software VMware enables us to obtain a very efficient and practical network experiment platform at very low prices. However, the network settings of VMware virtual machines have always been a puzzle for many beginners, Often in major computer forums to see someone to seek information about VMware Network Settings solution, although the Internet also has a lot of this article, but often said not complete, or write too professional, so that the beginner is still a cloud. In response to this situation, After learning to read all kinds of articles and VMware software documents on the network, I combined my own experience to sort out these contents, trying to compare the Shishi and concise presentation to illustrate the setup process of VMware Virtual Machine network.

I would like to use the Linux platform's VMware Virtual machine installation and network settings as an example to illustrate the VMware installation and network setup process.

First, the installation of VMware

1, get VMware

2, install the hardware requirements of VMware

Virtual machine is a very expensive computer resources software, the hardware requirements of the computer is relatively high, especially for the memory capacity requirements higher. Generally speaking, 256M memory is the bottom line, relative to the CPU is not so high requirements, generally more than five hundred or six hundred MHz CPU can run, of course, if you want to make the virtual system and the actual system running relatively smooth, and can be in the virtual system and the main system running PHOTOSHP, CAD and other large software, the recommended use of 512M of memory, 1G above the CPU. As far as my computer is concerned, the configuration is poisonous dragon 700M cpu+256m SDRAM memory, running Redhat 8.0 main system and Windows Server virtual system, and running DNS server, HTTP server, FTP server, etc. on the main system and virtual system respectively, The system can basically run smoothly, memory usage in more than 52%, CPU utilization rate of around 9%, swap usage up to 57M (usually as long as 5M or so), this is only in the normal operation of the resource consumption, in the virtual system boot and shutdown when the actual resource consumption is greater. If you want to listen to MP3 when you're running a virtual system, MP3 has a noticeable pause and a burst tone. It's basically a resource, and of course, it's OK to run several FTP and HTTP clients on both the main system and the virtual system. If you have only 128M of memory, theoretically can run virtual machine, as far as possible to shut down all the Linux background process, without kde,gnome and other such a large desktop management system, and only the X and TWM window manager can save a lot of memory, and in the virtual machine running WIN98, WIN95 or character interface of the Linux system, such as low hardware requirements of the system, running VMware is still possible, just in the window when the switch will have a little card. If your memory is only 64M, then you can only beg for a miracle, or can you run a DOS virtual system? Interested friends might as well try it out and see how far VMware's hardware requirements are.

Installation of 3,vmware

To extract a package:

#tar Xfvz vmware-workstation-3.2.0-2230.tar.gz

Enter the installation directory

#cd Vmware-distrib

Running the Setup program

#./vmware-install.pl

According to the prompts to install the software, the installer will ask the software files of the installation directory, direct return to use the default value on it.

Be careful not to blindly press ENTER, when the installer prompts you to let VMware support the network must choose Yes, when prompted whether to support the Host-only network is the time to choose Yes.

Note: VMware will choose a system-matching configuration based on your system kernel version during the installation process, and if you cannot find it, you will need a GCC compiler, otherwise VMware won't be able to install it.

If the installation goes well, the installer will have a similar: Enjoy vmware! Kind of hint. The description has been successfully installed.

Second, running VMware

VMware can be run in the terminal by entering VMware and enter

One thing to be aware of is that VMware is just a foreground program, and its operation requires the support of VMware back-end virtual devices, that is, you ran VMware's background service before you ran VMware, which is typically done after Setup is installed. and add VMware's startup script to the/ETC/RC.D/INIT.D directory, make it run automatically every time you turn it on, and if for some reason the VMware daemon is turned off please manually turn on:

#service VMware Start

Use Ifconfig to view VMware's virtual network devices:

#ifconfig

Lo Link encap:local Loopback

inet addr:127.0.0.1 mask:255.0.0.0

Up loopback RUNNING mtu:16436 metric:1

RX packets:454 errors:0 dropped:0 overruns:0 frame:0

TX packets:454 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:33512 (32.7 kb) TX bytes:33512 (32.7 KB)

Vmnet1 Link encap:ethernet hwaddr 00:50:56:c0:00:01

inet addr:192.168.221.1 bcast:192.168.221.255 mask:255.255.255.0

Up broadcast RUNNING multicast mtu:1500 metric:1

RX packets:191 errors:0 dropped:0 overruns:0 frame:0

TX packets:63 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:100

RX bytes:0  (0.0 b) TX bytes:0 (0.0 b)

Vmnet8 Link encap:ethernet hwaddr 00:50:56:c0:00:08

inet addr:172.16.74.1 bcast:172.16.74.255 mask:255.255.255.0

Up broadcast RUNNING multicast mtu:1500 metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:100

RX bytes:0  (0.0 b) TX bytes:0 (0.0 b)

You can see VMware's virtual network devices Vmnet1 and VMNET8

If you do not see these two virtual devices with the Ifconfig command, then the VMware Daemon is not running, there will be an error executing VMware, please run it with the command described above.

VMware is not free software, the first time to run the need to enter a serial number, you can press get SN button from the VMware official website to obtain a trial three-month serial number. To avoid trouble, I'll stick a few here:

VMWare 3.0 for Linux:

625ax-8de40-46ra3-30hum

625ax-8de40-46ra3-30hum

60n88-8dw44-16h77-32kt4

6818x-84wd1-01kdk-3jn9x

For Win v3.2.0-2230

0f11n-004u4-0u0hj-12xdg

04590-00nu1-0umkx-161aw

0dm1j-004h0-0kta4-1614f

04hcm-085k0-0r8um-1fh0u

0451j-0ajhj-0kxkx-1412u

Entering the serial number will eject the Virtual Machine Configuration Wizard, which is not covered in this article, and these are easier to master, so this part of the content is for the reader to explore.

Press the "Power on" button on the VMware toolbar to start the virtual machine, press F2 to enter the BIOS setup, let the virtual machine boot from the CD, and then restart the virtual machine after saving, so you can boot from the CD and install the system.

(Note: In the use of VMware, the author found that installing a virtual system on a virtual machine is slow and often unresponsive when the main system does not have a video card 3D driver installed, but the installation is significantly faster with the 3D acceleration Drive installed on the video card. So in the process of installing the virtual system, if you find a similar problem, you can first put the graphics card 3D driver installed to try again. )

Don't forget to install VM tools after the system is installed (VMware toolbar-->settings-->vmware tool Install) This can significantly increase the performance of your virtual system.

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.