Virtual box installed CentOS encountered n problems, pure Novice for later more pure novice hair benefits, less detours, less waste time!

Source: Internet
Author: User

has been doing front-end, recently raised the study of virtual machines and CentOS, so the online search downloaded virtual box, installation is very simple and very smooth, but in the install CentOS encountered problems, card me two nights, solve one after another, depressed, now listed under, let novice people less detours, Less time wasted:

1. Cannot find the mirror

The low-level problem is that the ISO file is not downloaded, so you can start with the CentOS selection under Virtual box ... (Khan, I myself is so, later Niang found n more like me)

Workaround:

1) Please go to www.virtualbox.org/wiki/Downloads to download the ISO image file, generally choose DVD file can, everything version is too large, 6 points a few g.

2) under VB Select your installed system, point settings, select Storage, in the storage Tree "controller: IDE" Select, generally is the online ISO, select "Add Virtual CD-ROM", in the open window select your ISO file, return to determine.

3) will go to VB, select the System "display", or double-click the boot system, will enter the installation interface. After that, I looked at the various next steps.

2. Finally installed, all kinds of impulse, want to quickly see the new maintenance site, hurriedly ping www.tongxinr.com, dumbfounded, ping not pass, try Yum command install software source, prompt "error error:cannot find a valid baseurl for Repo:base ", degrees Niang on someone to send base file, and then I also various check how network virtual machine system file, Putty, SecureCRT ....

In fact, because too lazy, do not want to waste time to install a do not know how much use of the connector, in the already ping does not pass this premise, I choose to judge its network problems, so again degrees ...

Final Solution:

1) Modify the/etc/resolv.conf file, vi/etc/resolv.conf, or echo "NameServer 8.8.8.8" >>/etc/resolv.conf

2) also tried not to, because also installed Ubuntu, this time can only modify the network connection, VB under the connection mode to "bridge" or "NAT" many attempts, not to enter the CentOS after modification, manual input IPv4 settings, edit IP, three must be entered, enter " 192.168.1.200 (this arbitrarily does not conflict on line), 255.255.255.0, 192.168.1.1 ", the following DNS input" 8.8.8.8 ", determined to exit

3) above two steps can generally be ping pass, but there are extreme, this time, please enter "# Service NetworkManager Stop" in the black Window-"#service network restart", so then re-ping, If there is a problem please re-"#service network restart" After the ping, no, I can not help you, I this has been very strange to move to such an extreme situation, you treasure.

Finally, I hope you and I like the Novice on the road of Linux more and more smooth!

Virtual box installed CentOS encountered n problems, pure Novice for later more pure novice hair benefits, less detours, less waste time!

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.