Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of linux Virtual Machine cloned by centos

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the centos clone linux virtual machine example analysis, has a certain reference value, interested friends can refer to, I hope you read this article after a great harvest, the following let Xiaobian take you to understand.

steps are as follows

1) Clone a new VM

2) Enter in the terminal command window

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

Go to the following page, delete eth0; modify eth2 to eth0, and copy the physical ip address.

3) Modify IP address

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

: wq save exit

4) Modify hostname

Command line type vi /etc/sysconfig/network

:wq! save and exit

5) Verify if IP address change succeeds

Command line input sync save memory

Command line type reboot Restart

After the reboot, type ifconfig on the command line

You can see that the ip address has been updated to the one you just set

Thank you for reading this article carefully. I hope that the "centos cloning linux virtual machine example analysis" shared by Xiaobian will help everyone. At the same time, I hope that everyone will support you a lot and pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report