ERROR:interface eth0 does not exist; ensure that you have loaded the correct kernel moudle for your hardware

error sshd needs service(s) net: http://www.gossamer-threads.com/lists/gentoo/user/264060,为此重新编译了设备驱动的内核模块

Check dependice: /lib/rc/bin/rc-depend -u http://www.linuxsir.org/bbs/thread384672.html
The help: http://forums-web1.gentoo.org/viewtopic-t-856714-postdays-0-postorder-asc-start-0.html?sid=0f344075132f4b3c9a2f180cb5615731

I install gentoo-20121221 in VirtualBox on my host XUbuntu, when the kenel was copiled and after reboot, run
localhost /ect/init.d/ # ./sshd start
localhost /ect/init.d/ # network interface eth0 does not exist
localhost /ect/init.d/ # dmesg | grep -i net
localhost /ect/init.d/ # [    8.415192] systemd-udevd[969]: renamed network interface eth0 to enp0s3

So, 
localhost /ect/init.d/ # ln -s net.lo net.enp0s3
localhost /ect/init.d/ # rc-update delete net.eth0 default
localhost /ect/init.d/ # rc-update delete net.enp0s3 default
localhost /ect/init.d/ # ./sshd start
localhost /ect/init.d/ # * Starting sshd ...

Before above, I have set port foward for my VBox guest:
Gentoo -> Setting -> Network ->
    Attached to: NAT
   Port Forwarding: 
        Name Protocol    Host IP    Host Port    Guest IP    Guest Port
        Rule1                127.0.0.1 2222           10.0.2.15   22

And then, command in host XUbuntu:
$ ssh -p 2222 root@127.0.0.1

Now it's ok to use SSH.
localhost # startx
localhost # xterm: command not found
localhost # emerge --deep --newuse xinit
localhost # startx
localhost # twm:command not found
localhost # 
localhost # startx
localhost # startx

If you startx successly, but the mouse or keyboard don't work, please install some relative drivers for your input devices, search them as follow:

localhost # emerge -s xf86-input
localhost# emerge foo1 foo2 ...
localhost# pa aux|grep xterm
localhost# kill xterm_pid
localhost# startx

Now it works!

emerge --deep --newuse xinit

About net.sit0 and dhcpcd: http://forums.gentoo.org/viewtopic-t-914434-start-0.html
       Your shouldn't foget "emerge dhcp" when you're install Gentoo by Livecd Shell, or there is some problem for you net.sit0, haha.

[Solved] install Gentoo in VBox: network interface eth0 does not exist的更多相关文章

  1. LFS: Interface eth0 doesn't exist

    环境 宿主主机:Ubuntu 14.04.4 LTS 32位 LFS内核:Linux 4.2.0 好不用容易将LFS引导起来了,但系统启动后,无法配置网口.系统启动时提示:Interface eth0 ...

  2. udev:renamed network interface eth0 to eth1

    删除/etc/udev/rules.d/70-persistent-net.rules这个文件,重启

  3. Configure a bridged network interface for KVM using RHEL 5.4 or later?

    environment Red Hat Enterprise Linux 5.4 or later Red Hat Enterprise Linux 6.0 or later KVM virtual ...

  4. 如何解决虚拟机克隆导致"Bringing up interface eth0: Error: No suitable device found: no device found for connection 'System eth0'."

    在VMware的虚拟机中克隆CentOS,在重启网卡的时候报错: Bringing up interface eth0:  Error: No suitable device found: no de ...

  5. 问题:Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]—— 找不到网卡。

    克隆虚拟机的时候或其他情况出现以下问题(命令service network restart):   Bringing up interface eth0:  Device eth0 does not ...

  6. openwrt network interface(openwrt中的网络接口)

    这篇算是对openwrt网络接口的一个翻译吧,源地址:http://wiki.openwrt.org/doc/networking/network.interfaces network的接口类型:物理 ...

  7. Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization

    跑 service network restart  NIC出现无法启动,他说,没有发现 Bringing up interface eth0: Device eth0 does not seem t ...

  8. 重启网络服务时 Bringing up interface eth0

    重启网络服务时报错:  Bringing up interface eth0: Error:Connection activation failed:Device not managed by Net ...

  9. Linux-debian系统 /etc/network/interface 文件解读

    原文 http://wiki.slimdevices.com/index.php/SqueezeOS_networking 话说Debian系的网卡配置跟Redhat系很不一样,Redhat是放在/e ...

随机推荐

  1. MVC框架 - 异常处理

    在ASP.NET中,错误处理是通过使用标准的尝试捕捉方法或使用应用程序事件.ASP.NET MVC附带内置支持,被称为异常过滤器功能异常处理.在这里我们要学习两种方法:一个是定义HandleError ...

  2. 新浪SAE部署django博客

    步骤: 第一步:注册新浪SAE账号(即新浪微博),下载TortoiseSVN 第二步:部署代码 使用SAE来部署代码,SAE提供的是PAAS层的云服务,即不是给你一个虚拟主机而是直接上传应用.进入SA ...

  3. 看完final的感受

    今天没课,(其实是有体育课的,去打了一会球就跑路了...)就在宿舍看world final ; 我去,老毛子真是好厉害,看的我目瞪口呆,哈喇子直流; 上交的大神好厉害,本来还以为上交要夺冠的,最后罚时 ...

  4. Freebsd 编译内核

    # cd /usr/src/sys/i386/conf # cp GENERIC GENERIC.20060812# ee GENERIC 如果要加入ipf防火墙的话则加入options        ...

  5. Oracle DBA需掌握的命令集锦(推荐)

    第一章:日志管理 1.forcing log switches sql> alter system switch logfile; 2.forcing checkpoints sql> a ...

  6. Unity3d之按键

    if (Input.GetKeyDown(KeyCode.A)){ Debug.Log("您按下了A键"); } if (Input.GetKeyUp(KeyCode.A)) { ...

  7. 锋利的jQuery第2版学习笔记8~11章

    第8章,用jQuery打造个性网站 网站结构 文件结构 images文件夹用于存放将要用到的图片 styles文件夹用于存放CSS样式表,个人更倾向于使用CSS文件夹 scripts文件夹用于存放jQ ...

  8. backbone.Collection源码笔记

    Backbone.Collection backbone的Collection(集合),用来存储多个model,并且可以多这些model进行数组一样的操作,比如添加,修改,删除,排序,插入,根据索引取 ...

  9. 【转载】Deep Learning(深度学习)学习笔记整理

    http://blog.csdn.net/zouxy09/article/details/8775360 一.概述 Artificial Intelligence,也就是人工智能,就像长生不老和星际漫 ...

  10. ASP.NET MVC 4 SimpleMembership Provider (1)

    新的ASP.NET MVC 4.0 提供了一个新的Membership Provider,叫SimpleMembership. 首先,我们建立一个新的solution 首先我们先看一下web.conf ...