Using the Vcenter 5.5 template to create a Linux system after the network card problem handling __linux

Source: Internet
Author: User

These days in the construction of virtual machine environment, using the Vcenter 5.5 template to create virtual machines, encountered a problem with the network card, after the relevant processing, restore normal, the process is recorded as follows.


Environment:

ESXi 5.5.0.1

Vcenter 5.5

Center OS 6.5


Operation Process:

First installs the ESXi 5.5.0.1 on the physical machine, after the installation completes will the physical machine resources virtualization;

Then use vsphere client to connect one of the esx I, create a virtual machine, install the Windows Server R2 operating system;

In the Windows R2 server operating system, install the Oracle 11.2.0.4 database as the vcenter background database, and then install the vcenter related services;

Start Vcenter to build a datacenter, and then add a few ESXi physical machines to the vcneter;

Create a new virtual machine for center 6.5, do not set the hostname and IP address, and then generate the CentOS template;

On other physical machines, follow the CentOS template to deploy Linux in bulk, then start the power supply and modify the hostname and IP address of each machine.


Problem:

Because is the template bulk deployment, so each virtual machine network card MAC address is the same, can not start normally, and later tried a variety of methods, the experiment was successful.

In each template generated by the virtual machine has such a file/etc/udev/rules.d/70*-net.rules file, the file contains Eth0 and eht1, two options, eth0 network card is the same, and the same template, can not be used;

Only use each machine is different ETH1 network card configuration, the whole idea is to unregister the file in the Eth0 network card configuration, the ETH1 network card name modified to Eht0, and then/etc/sysconfig/network-scripts/ifcfg-eth0 The MAC address of the NIC in the configuration file is modified to the MAC address in the ETH1 network card in the above file, and the system can be identified by rebooting.


Processing process:

For each virtual machine operation process is as follows:

Start the power supply, enter the root user name and password login into the system;

# hostname NewName

# Vim/etc/sysconfig/network Modify hostname in the file to NewName

# vim/etc/hosts added in file: IP newname, for example: 10.0.0.100 ora.ora.ora.com


# Vim/etc/udev/rules.d/70*-net.rules the eth0 configuration option in the annotation file to modify the NIC name in the eth1 configuration to Eht0

# vim/etc/sysconfig/network-sctipts/ifcfg-eht0 Change the Mac to the MAC address of the original eth1 in the file above

# reboot


Should be able to recognize the new network card after rebooting the system

# hostname

# ifconfig-a

# Setup modifies the IP address and DNS of the new network card

# ifconfig-a

# ping Www.baidu.com Verify that you can connect to the network properly

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.