Complete steps of centos cloning linux virtual machine sharing

Complete steps of centos cloning linux virtual machine sharing

Preface

When a Linux is fully set up, you can use cloning to create multiple Linux in a short time; this article will give you a detailed introduction about centos cloning Linux virtual machines. Let's take a look at the detailed introduction.

The steps are as follows

1) Clone a new virtual machine

2) Enter in the terminal command window

[root@hadoop105 /]#vim /etc/udev/rules.d/70-persistent-net.rules

Go to the following page, delete the line of eth0, change eth1 to eth0, and copy the physical IP address


3) Modify IP address

[root@hadoop102 /]#vim /etc/sysconfig/network-scripts/ifcfg-eth0 


:wq save and exit

4) Modify hostname

Enter vi /etc/sysconfig/network in the command line

:wq! Save and exit

5) Verify whether the IP address is changed successfully

Enter sync on the command line to save memory

Enter reboot in the command line

After restarting, enter ifconfig in the command line

You can see that the IP address has been updated to the one just set.

Summarize

The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. If you have any questions, you can leave a message to communicate. Thank you for your support for 123WORDPRESS.COM.

You may also be interested in:
  • Solution to the problem that the CentOS virtual machine cannot access the Internet after cloning (network card information is inconsistent)
  • Solution to the problem that the network card of the virtual machine of VMware cloned Centos6.4 cannot be started
  • Virtual machine clone Linux centos6.5 system network card configuration graphic tutorial

<<:  JavaScript implements mouse drag to adjust div size

>>:  50 lines of code to implement Webpack component usage statistics

Recommend

JavaScript to achieve simple image switching

This article shares the specific code for JavaScr...

Vue.js application performance optimization analysis + solution

Table of contents 1. Introduction 2. Why do we ne...

Instructions for using the --rm option of docker run

When the Docker container exits, the file system ...

What are Web Slices?

IE8 new feature Web Slices (Web Slices) Microsoft...

Example of using CSS filter to write mouse over effect

Use CSS filter to write mouse over effect <div...

Using JavaScript difference to implement a comparison tool

Preface At work, I need to count the materials su...

Implementing Markdown rendering in Vue single-page application

When rendering Markdown before, I used the previe...

Detailed explanation of Linux host name modification command

Linux change hostname command 1. If you only need...

Detailed explanation of Vue life cycle

Table of contents Why understand the life cycle W...

An example of refactoring a jigsaw puzzle game using vue3

Preface It took two days to reconstruct a puzzle ...

JavaScript canvas to achieve scratch lottery example

This article shares the specific code of JavaScri...