[gentoo-user] VirtualBox guest eth0/enp0s3 problem

April 04th, 2013 - 09:30 am ET by João Matos | Report spam

Hi list.

I decided to install a virtual server for testing some stuff, but I
couldn't configure eth0 as usual. The system complain it doesn't exist.
After compiling the kernel hundreds of times, I supposed the problem
wasn't my kernel configuration then installed dhcpcd.

For my surprise, I got an IP address, but there weren't eth0, just enp0s3
instead. It wouldn't be a problem (even with dhcp), but I can't start any
service. They (sshd) complain that there is no eth0.

I'm using stable packages (x86).

Any suggestions? Thank you.

João de Matos
Linux User #461527


<div dir="ltr"><div><div><div>Hi list.<br><br></div>I decided to install a virtual server for testing some stuff, but I couldn&#39;t configure eth0 as usual. The system complain it doesn&#39;t exist. After compiling the kernel hundreds  of times, I supposed the problem wasn&#39;t my kernel configuration then installed dhcpcd.<br>

<br></div>For my surprise, I got an IP address, but there weren&#39;t eth0, just enp0s3 instead. It wouldn&#39;t be a problem (even with dhcp), but I can&#39;t start any service. They (sshd) complain that there is no eth0.<br>

<br></div><div>I&#39;m using stable packages (x86).<br><br></div><div>Any suggestions? Thank you.<br></div><div><div><div><div><br>-- <br>João de Matos<br>Linux User #461527<br></div></div></div></div></div>

email Follow the discussionReplies 4 repliesReplies Make a reply

Similar topics

Replies

#1 Felix Kuperjans
April 04th, 2013 - 09:50 am ET | Report spam
Hi João,

João Matos:
Hi list.

I decided to install a virtual server for testing some stuff, but I
couldn't configure eth0 as usual. The system complain it doesn't
exist. After compiling the kernel hundreds of times, I supposed the
problem wasn't my kernel configuration then installed dhcpcd.


Due to the new udev version, the devices will be renamed by default to
names like enp0s3. This is not done by the kernel and no driver issue,
just a renaming at boot time done by udev.

For my surprise, I got an IP address, but there weren't eth0, just
enp0s3 instead. It wouldn't be a problem (even with dhcp), but I can't
start any service. They (sshd) complain that there is no eth0.


You might have some old references to eth0 around, e.g.:
- /etc/init.d/net.eth0 (move this file to /etc/init.d/net.enp0s3)
- entries in /etc/conf.d/net (same here, rename them all to enp0s3)
- net.eth0 is maybe installed in the default runlevel. Remove it and add
net.enp0s3
- in case SSH still refuses to start, try running "/lib/rc/bin/rc-depend
-u" as root and/or setting rc_depend_strict="NO" in /etc/rc.conf

I'm using stable packages (x86).

Any suggestions? Thank you.

João de Matos
Linux User #461527


Regards,
Felix
Replies Reply to this message
#2 Alan McKinnon
April 04th, 2013 - 09:50 am ET | Report spam
On 04/04/2013 15:27, João Matos wrote:
Hi list.

I decided to install a virtual server for testing some stuff, but I
couldn't configure eth0 as usual. The system complain it doesn't exist.
After compiling the kernel hundreds of times, I supposed the problem
wasn't my kernel configuration then installed dhcpcd.

For my surprise, I got an IP address, but there weren't eth0, just
enp0s3 instead. It wouldn't be a problem (even with dhcp), but I can't
start any service. They (sshd) complain that there is no eth0.

I'm using stable packages (x86).

Any suggestions? Thank you.

João de Matos
Linux User #461527





eselect news read



Alan McKinnon

Replies Reply to this message
#3 João Matos
April 04th, 2013 - 10:00 am ET | Report spam

2013/4/4 Felix Kuperjans

Hi João,

João Matos:
> Hi list.
>
> I decided to install a virtual server for testing some stuff, but I
> couldn't configure eth0 as usual. The system complain it doesn't
> exist. After compiling the kernel hundreds of times, I supposed the
> problem wasn't my kernel configuration then installed dhcpcd.
Due to the new udev version, the devices will be renamed by default to
names like enp0s3. This is not done by the kernel and no driver issue,
just a renaming at boot time done by udev.
>
> For my surprise, I got an IP address, but there weren't eth0, just
> enp0s3 instead. It wouldn't be a problem (even with dhcp), but I can't
> start any service. They (sshd) complain that there is no eth0.
You might have some old references to eth0 around, e.g.:
- /etc/init.d/net.eth0 (move this file to /etc/init.d/net.enp0s3)
- entries in /etc/conf.d/net (same here, rename them all to enp0s3)




Everything is working ok now. :)

Next time I'll keep in mind looking at "eselect new". I've installed gentoo
3 weeks ago, I didn't know it would change since then.

Thank you both.


- net.eth0 is maybe installed in the default runlevel. Remove it and add
net.enp0s3
- in case SSH still refuses to start, try running "/lib/rc/bin/rc-depend
-u" as root and/or setting rc_depend_strict="NO" in /etc/rc.conf
>
> I'm using stable packages (x86).
>
> Any suggestions? Thank you.
>
> João de Matos
> Linux User #461527
Regards,
Felix






João de Matos
Linux User #461527
Graduando em Engenharia de Computação 2005.1
UEFS - Universidade Estadual de Feira de Santana


<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/4 Felix Kuperjans <span dir="ltr">&lt;<a href="mailto:" target="_blank"></a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi João,<br>
<br>
João Matos:<br>
<div class="im">&gt; Hi list.<br>
&gt;<br>
&gt; I decided to install a virtual server for testing some stuff, but I<br>
&gt; couldn&#39;t configure eth0 as usual. The system complain it doesn&#39;t<br>
&gt; exist. After compiling the kernel hundreds  of times, I supposed the<br>
&gt; problem wasn&#39;t my kernel configuration then installed dhcpcd.<br>
</div>Due to the new udev version, the devices will be renamed by default to<br>
names like enp0s3. This is not done by the kernel and no driver issue,<br>
just a renaming at boot time done by udev.<br>
<div class="im">&gt;<br>
&gt; For my surprise, I got an IP address, but there weren&#39;t eth0, just<br>
&gt; enp0s3 instead. It wouldn&#39;t be a problem (even with dhcp), but I can&#39;t<br>
&gt; start any service. They (sshd) complain that there is no eth0.<br>
</div>You might have some old references to eth0 around, e.g.:<br>
- /etc/init.d/net.eth0 (move this file to /etc/init.d/net.enp0s3)<br>
- entries in /etc/conf.d/net (same here, rename them all to enp0s3)<br></blockquote><div><br></div><div>Everything is working ok now. :)<br><br></div><div>Next time I&#39;ll keep in mind looking at &quot;eselect new&quot;. I&#39;ve installed gentoo 3 weeks ago, I didn&#39;t know it would change since then. <br>

<br></div><div>Thank you both.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- net.eth0 is maybe installed in the default runlevel. Remove it and add<br>
net.enp0s3<br>
- in case SSH still refuses to start, try running &quot;/lib/rc/bin/rc-depend<br>
-u&quot; as root and/or setting rc_depend_strict=&quot;NO&quot; in /etc/rc.conf<br>
<div class="im">&gt;<br>
&gt; I&#39;m using stable packages (x86).<br>
&gt;<br>
&gt; Any suggestions? Thank you.<br>
&gt;<br>
&gt; --<br>
&gt; João de Matos<br>
&gt; Linux User #461527<br>
</div>Regards,<br>
Felix<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>João de Matos<br>Linux User #461527<br>Graduando em Engenharia de Computação 2005.1<br>UEFS - Universidade Estadual de Feira de Santana
</div></div>

Replies Reply to this message
#4 Mick
April 05th, 2013 - 10:10 am ET | Report spam

On Thursday 04 Apr 2013 14:57:38 Joà£o Matos wrote:
Everything is working ok now. :)

Next time I'll keep in mind looking at "eselect new".



Best you try:

eselect news read new

or

eselect news list

if you want to list them all.
Regards,
Mick



email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search