Linux virtual machine cloning Notes

Ready to work

First of all previously configured cluster of linux to install a clean environment are required installed, after completion of each clone clone-machine network card configuration and firewall needs to be reconfigured, you can start recording!

Clone

Cloning provided by VMware, simply by changing the wizard can be a good name, the name has nothing to do at this time and virtual machine host name, then you need to start Clone-machine configuration.

Modify the host name of the clones

# By vim etc/sysconfig/networkmodifying (input # contents of the back), to modify the value inside the HOSTNAME.
This is the vim / vi command describes the operation and function of use, I do not know please come in drag Chouchou chant, incidentally collection chant (manual funny)

Modifying the clone NIC configuration ip configuration, etc. (important)

Modified by modifying 70-persistent-net.rules.
[root @ hadoop101 /] # vim /etc/udev/rules.d/70-persistent-net.rules
to enter the following page, delete the line eth0; eth1 will be revised to eth0, while physical copy ip address.
Modify and copy the address of the virtual network adapter address operation

Modify the clone-machine IP address

[root @ hadoop101 /] # vim /etc/sysconfig/network-scripts/ifcfg-eth0
(1) copy of the physical ip address updates
modify as you wish ip (with time to pay attention to their virtual machine configuration nat gateway to ensure that the same network segment, but also check whether other virtual machines repeating)
the IPADDR = # IP address 192.168.1.101
to paste the copied to the upper address HWADDR = 00: 0C: 2x: 6x: 0x: xx #MAC address

Configure hosts (optional)

Available cluster configuration, enhance efficiency.

  • Open the / etc / hosts in a Linux host 100

[root @ hadoop100 Desktop] # vim /etc/hosts
add the following

  • 192.168.1.100 hadoop100
    192.168.1.101 hadoop101
    192.168.1.102 hadoop102
    192.168.1.103 hadoop103
    192.168.1.104 hadoop104
    192.168.1.105 hadoop105
    192.168.1.106 hadoop106
    192.168.1.107 hadoop107
    192.168.1.108 hadoop108

After the addition was complete save

  • Reboot (reboot)

  • Modify host mapping file window7 of (hosts file)

    (1) into the C: \ Windows \ System32 \ drivers \ etc path
    (2) Open the hosts file and add the following

  • 192.168.1.100 hadoop100
    192.168.1.101 hadoop101
    192.168.1.102 hadoop102
    192.168.1.103 hadoop103
    192.168.1.104 hadoop104
    192.168.1.105 hadoop105
    192.168.1.106 hadoop106
    192.168.1.107 hadoop107
    192.168.1.108 hadoop108

  • Window10 modify host mapping file (hosts file)
    (1) into the C: \ Windows \ System32 \ drivers \ etc path
    (2) copy hosts file to your desktop
    (3) Open Desktop hosts file and add the following

  • 192.168.1.100 hadoop100
    192.168.1.101 hadoop101
    192.168.1.102 hadoop102
    192.168.1.103 hadoop103
    192.168.1.104 hadoop104
    192.168.1.105 hadoop105
    192.168.1.106 hadoop106
    192.168.1.107 hadoop107
    192.168.1.108 hadoop108

(4) covering desktop hosts file C: \ Windows \ System32 \ drivers \ etc hosts file path

Published 37 original articles · won praise 17 · views 1849

Guess you like

Origin blog.csdn.net/qq_37714755/article/details/104290895