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. 【Android 界面效果31】Android--侧滑菜单应用的实现

    侧滑菜单应用现在非常多,而且实现方式也多种多样.通过在网上的多方查找,我找到郭霖少侠的这篇文章:http://blog.csdn.net/guolin_blog/article/details/874 ...

  2. Jqeury获取table当前行与指定列

    今天遇到了一个Jqeury获取table当前行与指定列的问题: 大概的实现要求是一个页面中,上面有几个input输入框,下面有一个table,当在输入框中输入内容的时候,点击添加按钮的时候,在下面ta ...

  3. Oracle基础 PL-SQL编程基础(4) 异常处理

    异常处理: 即使良好的PL-SQL程序也会遇到错误或者未预料的事件,一个优秀的程序都应该能够处理各种出错情况,尽可能的从错误中恢复.程序在运行时出现的错误成为异常.发生异常后,语句讲终止执行,PLSQ ...

  4. angular-ui-router state.go not passing data to $stateParams

    app.js中定义了一个state如下,url接收一个id参数 $stateProvider.state("page.details", { url: "/details ...

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

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

  6. css3简易实现图标动画由小到大逐个显现

    在制作网站时避免图片太平淡经常会用到动画效果:由小到大跳跃出现.这种效果很有视觉冲击力,显著提高关注度~ 原理:利用css3的动画属性@keyframes@-moz-keyframes@-webkit ...

  7. 转:C# 获取磁盘及CPU的序列号

    原文地址:http://www.cnblogs.com/stray521/archive/2010/08/06/1793647.html //获取磁盘序列号 try { System.Manageme ...

  8. What Makes a Good Programmer Good?

    I’ve worked with a lot of programmers over the years — some of them super amazing, and some distinct ...

  9. Layabox:全球唯一Flash直接开发H5的工具Laya.Flash终于开放(转)

    HTML5是风口,但年轻幼稚,Flash昔日黄花,但丰满妖娆,Layabox使用Flash直接开发HTML5(或编译页游),渴望性感而青春,但久在深闺,只见于一些大企业和朋友圈中,被指“饥饿营销”,保 ...

  10. About Restful Web Api Something.

    这种轻量级的服务架构目前来说还是比较流行的,比如微信的公众平台的接口开发就是一个很好的案例,提到restful那么他到底是一个什么样的东西? REST(Representational State T ...