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

Detailed explanation of the use of the <meta> tag in HTML

In the web pages we make, if we want more people ...

CSS3 achieves cool 3D rotation perspective effect

CSS3 achieves cool 3D rotation perspective 3D ani...

mysql delete multi-table connection deletion function

Deleting a single table: DELETE FROM tableName WH...

Detailed explanation of this reference in React

Table of contents cause: go through: 1. Construct...

Detailed explanation of JavaScript stack and copy

Table of contents 1. Definition of stack 2. JS st...

JavaScript knowledge: Constructors are also functions

Table of contents 1. Definition and call of const...

Install .NET 6.0 in CentOS system using cloud server

.NET SDK Download Link https://dotnet.microsoft.c...

Detailed explanation of the fish school algorithm in CocosCreator game

Preface I recently wanted to learn CocosCreator, ...

Network configuration of Host Only+NAT mode under VirtualBox

The network configuration of Host Only+NAT mode u...

Detailed explanation of Javascript basics

Table of contents variable Data Types Extension P...

How to use CSS custom variables in Vue

Table of contents The CSS custom variable functio...

A brief analysis of different ways to configure static IP addresses in RHEL8

While working on a Linux server, assigning static...

Some small methods commonly used in html pages

Add in the <Head> tag <meta http-equiv=&q...

How to mount a data disk on Tencent Cloud Server Centos

First, check whether the hard disk device has a d...