networking - Network problems after installing text-only Fedora 14 using VirtualBox

29
2013-07
  • Questioner

    A small background. I've just subscribed to virtual dedicated server running Fedora 14. But before starting to setup it, I've decided that it is a good idea to try all installing/configuration on my own local VM. So I downloaded a Fedora 14 Netinstall CD and used latest VirtualBox to install it (leaving NAT for network configuration).

    The problem itself. It seemed that installation ran fine (it asked configuration for eth0 and worked well with DHCP as an option). Shortly I discovered that my "yum" isn't working. After googling around I found different suggestions - uncommenting base urls in fedora.repo and fedora-update.repo. I've added a google/yahoo DNS servers and disabled ipv6 module. It didn't help. But after messing around I've found out that I can't ping any server by IP. "ifconfig" does not output eth0 at all just a lo. I opened /etc/sysconfig/network-scripts/ifcfg-eth0, but it looked just as one desribed here http://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/s1-dhcp-configuring-client.html . I've even tried using VMWare Fusion 3.1. (I'm running Mac OS X as a host if it's relevant) instead of VirtualBox.

    I'll try to configure it using bridge connection. But right now I ran out of ideas. I've decided to write here only after several hours of configuration and reinstalls.

    Thank you for your attention.

  • Answers
  • 8088

    The root of the problem was that Fedora didn't fireup eth0. I entered the following command and it worked:

    sudo /sbin/chkconfig --level 35 network on
    


  • view all most popular Amazon Coupons
    .

    Related Question

    linux - Network with virtualbox (OS X host/Fedora guest)
  • Stefano Borini

    I am having trouble in setting up Virtualbox to allow Fedora 11 (guest) leave the virtualbox machine and pass through Mac OS X 10.5 (host). I found only this tutorial

    http://vre.upei.ca/dev/node/497

    but it does not match with my findings, and assumes that you have Parallels installed as well. Does any of you already have experience with this setup ?

    I am able to enable NAT and get my vbox to download stuff from the net, but I also need to ssh into the vbox from my host machine. It appears that this is not feasible with the NAT option.


  • Related Answers
  • DGivens

    As the above poster mentioned, you'd want bridged mode. If your network assigns via DHCP, you should get DNS that way.

    You'll likely want to establish a static IP for your guest OS, however, to facilitate SSH access. If it is DHCP, your IP address is likely to change thereby creating some difficulty finding its address if you're not able to physically touch the VM.

    Side note: I had a problem with my Lenovo T60 in bridged requiring a manual tap adapter script but this was hardware specific and I belive it's been corrected in subsequent releases.

  • Diago

    You are referring to a Shared Networking setup and this works "out-of-the-box". I don't have Virtual Box in front of me but you need to configure the network card to use the Mac Network card when you setup the Virtual Machine. The trick with VirtualBox is the requirement of specifying the card during setup. Will update with detailed steps when in front of VirtualBox again.

  • Gren

    I think you should be setting the virtual box network adapter as bridged. You may need to manually set the DNS server in the fedora guest.