How to replicate Centos/linux virtual machines in VMware Fusion

Source: Internet
Author: User
Tags vmware fusion

Today I want to make a few CentOS virtual machines on Mac, try to build the full distributed environment of Hadoop. A virtual machine installed in the past too much trouble, want to direct the existing CentOS virtual machine to copy a few finished, but copied out of the virtual machine can not surf the internet, tossing a turn, and finally a satisfactory solution, recorded in this.

Environment: Mac OSX (10.10.2) + VMware Fusion (7.0.0)

Step one: Copy the virtual machine files first

In the Virtual Machine Library window, select the VM you want to copy, right-click Show in Finder

Go to the directory where the virtual machine files are located, and then copy a file

Then change the file to a name, like CENTOS.04.VMWAREVM.

Step Two: Open the file in VMware

File->open Select the new file you just copied

Then change a name in virtual machine libary.

Enable it, VMware will ask you how this virtual machine came from? Select I Copied it

Step three, modify the hostname

Vi/etc/sysconfig/network

Change the contents of "hostname=" to a machine name, such as centos.04, to save the exit

Vi/etc/hosts

Add a row at the end

127.0.0.1 centos.04, save exit

And then

Shutdown-h now shutdown

Step four to the new virtual machine's network card, generate a new MAC address

Because the virtual machine is copied, the MAC address is the same as the "mother" virtual machine, so to modify, and modify the hardware, you must first shut down the computer.

Right-->settings on the virtual machine, modify the NIC properties, reference, generate a new MAC address

Then reboot to enter cent OS

Step Five: Modify the network card address

vi/etc/udev/rules.d/70-persistent-net.rules edit this file, it records all the network card information on the current machine

According to the newly generated MAC address, find the corresponding line, the name of the network card is changed to eth0, the other all deleted

Save exit

vi/etc/sysconfig/network-scripts/ifcfg-eth0 Open this file again, it records the first NIC eth0 details

Change the UUID to a number, make sure it is different from the original system, and then change the HWADDR to the newly generated MAC address, save the exit

Rebooting the system

Shutdown-r now

Enter the system, you can ping a URL, smooth, should be done!

How to replicate Centos/linux virtual machines in VMware Fusion

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.