After CentOS is imported under VirtualBox, the Internet cannot be accessed. virtualboxcentos

Source: Internet
Author: User

After CentOS is imported under VirtualBox, the Internet cannot be accessed. virtualboxcentos

From the "management" menu of VirtualBox, select "Export Virtual Computer" to save a backup. Then, select "Import Virtual Computer" from the "manage" menu, but cannot access the Internet. Solution:

1. modify the configuration file

Vi/etc/udev/rules. d/70-persistent-net.rules

Comment out eth0 settings

Change eth1 to eth0

 

Ii. Change the MAC address of the NIC

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Change the NIC address to the MAC address in Virtual Box.

Restart: reboot


Centos in virtualbox cannot be started

I have created a virtual machine in VirtualPC and installed CentOS5.5, but when I started it, An was later used VirtualBox. I also encountered a problem when setting the Virtual Machine hard disk. I used sun.
 
Virtualbox installation centos settings bridging network static IP cannot connect to the Internet

It is easier to solve the problem because it is easy to use in DHCP.
When DHCP is enabled, ifconfig-a checks the eth0 information.
Then, view the route information in route-n,
Set your static IP address based on the above information.
This is easy to succeed.

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.