Minimum centos 6.2 installation for virtual machines

Source: Internet
Author: User
ArticleDirectory
    • Install centos 6.2

In the home network environment, one desktop computer and one laptop computer share a wireless router to access the Internet through ADSL. A desktop is a wired link and a laptop is a wireless connection.
Vro1.1 IP Address: 192.168.1.1
Desktop IP Address: 192.168.1.101
Laptop IP Address: 192.168.1.100
Subnet Mask: 255.255.255.0

Now centos 6.2 is installed in the notebook using virtualbox 4.1.2. The operating system of the notebook is Ubuntu 12.04, and the virtual machine centos is the minimum installation.

 

Install centos 6.2

Run virtualbox to create a centos VM. Do not start the VM immediately after the VM is created. Set the network configuration of the VM first. There should be two NICs in the notebook: eth0 is a wired Nic, no use; wlan0 is a wireless Nic, which is currently used. All we need to bridge the NIC of the virtual machine to wlan0:

 

After the network configuration is complete, you can insert a centos installation CD to execute the installation. I am currently using the minimal centos installation. After installation, it is a text interface.

 

Enter the root account and the root password set during installation, and log on to centos. The network card is not configured for centos.

 

Generally, routers provide DHCP services. We need to execute the dhclient command to manually obtain the IP Address:

 
Dhclient eth0

Run the ifconfig command again to check whether eth0 has obtained the IP Address:

 

Using dhclient only obtains the IP address for this login, and you need to execute it again after restart. To be able to automatically get the IP address when starting, we need to modify/etc/sysconfig/network-scripts/ifcfg-eth0:

 

Restart the computer and we can see that eth0 automatically obtains the IP address. OK. Now that the VM can access the Internet, you can use the yum command to configure it slowly.

 

Before this article, I had been troubled by the inability to access the Internet through virtual machines for several days. Later I finally solved the problem with the help of the chinaunix Forum. For details, refer to the forum post "centos 6.2 installation without Internet access".

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.