OpenSuse in Virtual Box no IP address

I’m running Open Suse 13.1 in an Oracle Virtual Box VM. I can’t seem to get an IP address, hence I can’t get the VM to get out to the Internet or ping anything.

Right now, I have the Network Adapter set to NAT and it’s on “Adapter Type” Intel Pro/1000 MT Desktop (82540EM). My desktop’s real NIC is a wifi card. Don’t know how that changes anything. (I’ve tried changing the interface from NAT to bridged, and it didn’t make a difference.)

In the VM, if I run an ifconfig -a, I get this…

linux-nda2:/home/david # ifconfig -a
enp0s3 Link encap:Ethernet HWaddr 08:00:27:2C:69:A8
inet6 addr: fe80::a00:27ff:fe2c:69a8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1322 (1.2 Kb) TX bytes:11971 (11.6 Kb)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:54 errors:0 dropped:0 overruns:0 frame:0
TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3356 (3.2 Kb) TX bytes:3356 (3.2 Kb)

There is no inet address for the enp0s3 interface. And, two, I’m not sure why the interface is not called inet or something like that instead of enp0s3.

On 2014-02-17 02:46, dorlow wrote:

> There is no inet address for the enp0s3 interface.

You could try


rcnetwork restart
rcnetwork status

Paste the result back here if it doesn’t work, inside code tags, please.
The ‘#’ button - for command outputs and listings
See how

> And, two, I’m not
> sure why the interface is not called inet or something like that instead
> of enp0s3.

Why should it be? This is Linux. Welcome! :slight_smile:


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

:slight_smile:
This is openSUSE running systemd.
One of the benefits of systemd is that you can use “systemctl” to manage any Unit file configured for any subsystem.

Instead of learning the numerous commands for each subsystem, you can typically execute the same command for all, eg

# systemctl restart network

And, if it fails, the result should spit out relevant information (hopefully).

The reason why your NIC is named the way it is, is because the name is now built on the NIC’s chipset/name… not some generic name. It’s supposed to avoid confusion on multi-homed machines, but I think many are finding it just harder to type (I am).

TSU

On 2014-02-17 16:46, tsu2 wrote:
>
> :slight_smile:
> This is openSUSE running systemd.
> One of the benefits of systemd is that you can use “systemctl” to manage
> any Unit file configured for any subsystem.

But also, this is openSUSE, and it happens to be an openSUSE policy that
all services must have an rc file to start it.

There was recent talk in factory about how to enforce this policy.

> Instead of learning the numerous commands for each subsystem, you can
> typically execute the same command for all, eg
>
> Code:
> --------------------
> # systemctl restart network
> --------------------

Thus if the above exists, mandatorily in openSUSE “rcnetwork restart”
will also exist and work :slight_smile:

No need to learn the names, either. You type “rc”, hit {tab} twice, and
you get the entire list :wink:


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

I suspect the problem is on the host, something with the Wireless connection and the way Virtualbox interacts with it.

As many have found (me included), opensuse 13.1 works in a VM and essentially they’re all the same. So it’s not there that the problem lies, unless the configuration you installed has some specific issues - installation of special software, low on memory or disk, etc…

But if that’s not the case it’s on the host you must seek the solution, either in the settings of Virtualbox or in the network of the host: is it a plain vanilla 192.168.x.x with dhcp or is it something else?

Actually, I’ve been seeing this quite regularly in VMware as well (Guest doesn’t pick up a DHCP IP address on bootup).
Am thinking about converting them to static IP addresses to see if it solves the problem.

So far am not seeing this in any other OS but on the other hand approx. 90% of my Guests are openSUSE.

TSU

On 02/17/2014 01:28 PM, Carlos E. R. pecked at the keyboard and wrote:
> On 2014-02-17 16:46, tsu2 wrote:
>> :slight_smile:
>> This is openSUSE running systemd.
>> One of the benefits of systemd is that you can use “systemctl” to manage
>> any Unit file configured for any subsystem.
> But also, this is openSUSE, and it happens to be an openSUSE policy that
> all services must have an rc file to start it.
>
> There was recent talk in factory about how to enforce this policy.
>
>> Instead of learning the numerous commands for each subsystem, you can
>> typically execute the same command for all, eg
>>
>> Code:
>> --------------------
>> # systemctl restart network
>> --------------------
> Thus if the above exists, mandatorily in openSUSE “rcnetwork restart”
> will also exist and work :slight_smile:
>
>
> No need to learn the names, either. You type “rc”, hit {tab} twice, and
> you get the entire list :wink:
>
Wouldn’t it be great to type systemctrl restart <tab><tab> and get a
list of running processes available for a restart or any other parameter
for systemctrl?

Ken

On 2014-02-17 19:53, Ken Schneider wrote:
> On 02/17/2014 01:28 PM, Carlos E. R. pecked at the keyboard and wrote:

>> No need to learn the names, either. You type “rc”, hit {tab} twice, and
>> you get the entire list :wink:
>>
> Wouldn’t it be great to type systemctrl restart <tab><tab> and get a
> list of running processes available for a restart or any other parameter
> for systemctrl?

Did you try? it works here. :slight_smile:

There is a bash completion module in systemd.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

Of course, bridged networking and a static IP is the best solution. In my (limited) VB experience it always works but it requires more administration.

On 02/17/2014 04:34 PM, Carlos E. R. pecked at the keyboard and wrote:
> On 2014-02-17 19:53, Ken Schneider wrote:
>> On 02/17/2014 01:28 PM, Carlos E. R. pecked at the keyboard and wrote:
>
>>> No need to learn the names, either. You type “rc”, hit {tab} twice, and
>>> you get the entire list :wink:
>>>
>> Wouldn’t it be great to type systemctrl restart <tab><tab> and get a
>> list of running processes available for a restart or any other parameter
>> for systemctrl?
> Did you try? it works here. :slight_smile:
>
> There is a bash completion module in systemd.
>
That works but I was hoping to only see running services when trying
restart, instead it shows all services. But it does help for finding the
name of the service. This does help to eliminate the need for the ‘rc’
links.

Ken

On 2014-02-18 02:59, Ken Schneider wrote:
> On 02/17/2014 04:34 PM, Carlos E. R. pecked at the keyboard and wrote:

>> There is a bash completion module in systemd.
>>
> That works but I was hoping to only see running services when trying
> restart, instead it shows all services.

Ah, yes, true. It is a very long list.

Try “systemadm”. You have to install “systemd-ui”.

Not too stable, though… I managed to crash it just now:


> minas-tirith:~ # systemadm
> *** Error in `systemadm': double free or corruption (out): 0x0000000000624650 ***
&gt; ======= Backtrace: =========
&gt; /lib64/libc.so.6(+0x7410f)[0x7fef0ee5e10f]
&gt; /lib64/libc.so.6(+0x7996e)[0x7fef0ee6396e]
&gt; /lib64/libc.so.6(+0x7a647)[0x7fef0ee64647]
&gt; systemadm[0x41951c]
&gt; systemadm[0x40948c]
&gt; systemadm[0x40ad89]
&gt; /usr/lib64/libgobject-2.0.so.0(g_closure_invoke+0x138)[0x7fef0f98c318]
&gt; /usr/lib64/libgobject-2.0.so.0(+0x22cad)[0x7fef0f99dcad]
&gt; /usr/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xde9)[0x7fef0f9a59b9]
&gt; /usr/lib64/libgobject-2.0.so.0(g_signal_emit_by_name+0x522)[0x7fef0f9a61a2]
&gt; systemadm[0x4134f6]
&gt; /usr/lib64/libffi.so.4(ffi_call_unix64+0x4c)[0x7fef0c245cd8]
&gt; /usr/lib64/libffi.so.4(ffi_call+0x219)[0x7fef0c245729]
&gt; /usr/lib64/libgobject-2.0.so.0(g_cclosure_marshal_generic+0x1f8)[0x7fef0f98cb58]
&gt; /usr/lib64/libgobject-2.0.so.0(g_closure_invoke+0x138)[0x7fef0f98c318]
&gt; /usr/lib64/libgobject-2.0.so.0(+0x22a6b)[0x7fef0f99da6b]
&gt; /usr/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xde9)[0x7fef0f9a59b9]
&gt; /usr/lib64/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7fef0f9a5c72]
&gt; /usr/lib64/libgio-2.0.so.0(+0xcd0ec)[0x7fef0fc990ec]
&gt; /usr/lib64/libgio-2.0.so.0(+0xbd4c5)[0x7fef0fc894c5]
&gt; /usr/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x146)[0x7fef0f6c3316]
&gt; /usr/lib64/libglib-2.0.so.0(+0x4b668)[0x7fef0f6c3668]
&gt; /usr/lib64/libglib-2.0.so.0(g_main_loop_run+0x6a)[0x7fef0f6c3a6a]
&gt; /usr/lib64/libgtk-3.so.0(gtk_main+0x85)[0x7fef100e0d65]
&gt; systemadm[0x40c2e5]
&gt; /lib64/libc.so.6(__libc_start_main+0xf5)[0x7fef0ee0bbe5]
&gt; systemadm[0x404a9d]
&gt; ======= Memory map: ========
&gt; 00400000-00424000 r-xp 00000000 08:07 805323                             /usr/bin/systemadm
&gt; 00623000-00624000 r--p 00023000 08:07 805323                             /usr/bin/systemadm
&gt; 00624000-00625000 rw-p 00024000 08:07 805323                             /usr/bin/systemadm
&gt; 00a40000-00fae000 rw-p 00000000 00:00 0                                  [heap]
&gt; 7fef00000000-7fef003c3000 rw-p 00000000 00:00 0
&gt; 7fef003c3000-7fef04000000 ---p 00000000 00:00 0
&gt; 7fef063e1000-7fef063e2000 rw-p 00000000 00:00 0
&gt; 7fef063e2000-7fef06428000 r--p 00000000 08:07 1327683                    /usr/share/fonts/truetype/arialbd.ttf
&gt; 7fef06428000-7fef0645b000 r--p 00000000 08:07 1327682                    /usr/share/fonts/truetype/ariali.ttf
&gt; 7fef0645b000-7fef0645c000 ---p 00000000 00:00 0
&gt; 7fef0645c000-7fef06c5c000 rw-p 00000000 00:00 0                          [stack:15222]
&gt; 7fef06c5c000-7fef06ca0000 r--p 00000000 08:07 1327685                    /usr/share/fonts/truetype/arial.ttf
&gt; 7fef06ca0000-7fef06ca3000 r-xp 00000000 08:07 1189586                    /usr/lib64/pango/1.8.0/modules/pango-basic-fc.so
&gt; 7fef06ca3000-7fef06ea2000 ---p 00003000 08:07 1189586                    /usr/lib64/pango/1.8.0/modules/pango-basic-fc.so
&gt; 7fef06ea2000-7fef06ea3000 r--p 00002000 08:07 1189586                    /usr/lib64/pango/1.8.0/modules/pango-basic-fc.so
&gt; 7fef06ea3000-7fef06ea4000 rw-p 00003000 08:07 1189586                    /usr/lib64/pango/1.8.0/modules/pango-basic-fc.so
&gt; 7fef06ea4000-7fef06ea7000 r--s 00000000 08:07 1457919                    /var/cache/fontconfig/d458be102e54cf534d1eef0dcbb02d07-x86_64.cache-4
&gt; 7fef06ea7000-7fef06f74000 r--s 00000000 08:07 1445655                    /var/cache/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-x86_64.cache-4
&gt; 7fef06f74000-7fef06f75000 r--s 00000000 08:07 1468652                    /var/cache/fontconfig/fb8341411dac03919a6f30c61d3ee363-x86_64.cache-4
&gt; 7fef06f75000-7fef06f76000 r--s 00000000 08:07 1468645                    /var/cache/fontconfig/31d258c26849b1f3b28618b43aef0df4-x86_64.cache-4
&gt; 7fef06f76000-7fef06f77000 r--s 00000000 08:07 1468638                    /var/cache/fontconfig/8aefcdceaf7081f7a76e5c97af6ee8fa-x86_64.cache-4
&gt; 7fef06f77000-7fef06f79000 r--s 00000000 08:07 1468631                    /var/cache/fontconfig/d5324d870fcb6fde6925cc576c7f8278-x86_64.cache-4
&gt; 7fef06f79000-7fef06fb6000 r--s 00000000 08:07 1468618                    /var/cache/fontconfig/4c50721ef3546eb2746d415117216e74-x86_64.cache-4
&gt; 7fef06fb6000-7fef06fb8000 r--s 00000000 08:07 1468430                    /var/cache/fontconfig/b7c4333675e0ca84d9af12927db7f5e5-x86_64.cache-4
&gt; 7fef06fb8000-7fef06fc3000 r--s 00000000 08:07 1468420                    /var/cache/fontconfig/b6565330f3cba832d0b61036a78e2648-x86_64.cache-4
&gt; 7fef06fc3000-7fef06fcf000 r--s 00000000 08:07 1468381                    /var/cache/fontconfig/c7065e1c7dd0f6b2e3062b6686e0f20f-x86_64.cache-4
&gt; 7fef06fcf000-7fef06fe2000 r--s 00000000 08:07 1468333                    /var/cache/fontconfig/aea8c537c52b25f9610906e9b4a66191-x86_64.cache-4
&gt; 7fef06fe2000-7fef06fe4000 r--s 00000000 08:07 1468259                    /var/cache/fontconfig/fc21ea1fe6724c15d7343bb68dd7155d-x86_64.cache-4
&gt; 7fef06fe4000-7fef06fe5000 r--s 00000000 08:07 1468249                    /var/cache/fontconfig/2f36c32c6ec3ca87de89a6eb757fa974-x86_64.cache-4
&gt; 7fef06fe5000-7fef06ffb000 r--s 00000000 08:07 1468241                    /var/cache/fontconfig/b5c7c63143a222d0fb41621bb05e4dd9-x86_64.cache-4
&gt; 7fef06ffb000-7fef06ffc000 r--s 00000000 08:07 1468169                    /var/cache/fontconfig/b248374641ab374d27a47787d24a662a-x86_64.cache-4
&gt; 7fef06ffc000-7fef06ffd000 r--s 00000000 08:07 1468162                    /var/cache/fontconfig/60a6a8e2eba8f5e339200398e3020a89-x86_64.cache-4
&gt; 7fef06ffd000-7fef06fff000 r--s 00000000 08:07 1468155                    /var/cache/fontconfig/27de980c8d701e5bddda670399e94a62-x86_64.cache-4
&gt; 7fef06fff000-7fef07003000 r--s 00000000 08:07 1468143                    /var/cache/fontconfig/ed3e3a69f51dac48dccfcc8873808a95-x86_64.cache-4
&gt; 7fef07003000-7fef07004000 r--s 00000000 08:07 1468127                    /var/cache/fontconfig/b49eb203a6323044c3ef321518a7c4ad-x86_64.cache-4
&gt; 7fef07004000-7fef0700c000 r--s 00000000 08:07 1468118                    /var/cache/fontconfig/9642024f79e0ae81175262dc8692fd36-x86_64.cache-4
&gt; 7fef0700c000-7fef07021000 r--s 00000000 08:07 1468087                    /var/cache/fontconfig/fd7552ca2e22d556db7b78aa62e5d17d-x86_64.cache-4
&gt; 7fef07021000-7fef07022000 r--s 00000000 08:07 1468005                    /var/cache/fontconfig/1900b679ac95d61d92a4f38af8454124-x86_64.cache-4
&gt; 7fef07022000-7fef07024000 r--s 00000000 08:07 1467996                    /var/cache/fontconfig/4882e7936dde2f8c6b2c9778cdfbf579-x86_64.cache-4
&gt; 7fef07024000-7fef07026000 r--s 00000000 08:07 1467986                    /var/cache/fontconfig/52789122bf2c422b7a4fa53d117ff631-x86_64.cache-4
&gt; 7fef07026000-7fef0



Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

Ken,
Here is a thumbnail on what you’re asking about.

All systemd Unit files are named “name.unit-type” eg network.service
This means

  • If you want to list often used Unit files
systemctl
  • If you want to list Unit files in their various states (I recommend piping “more” as follows) You can use this command to discover the various “types” which is the next command below
systemctl -all | more
  • If you want to list all files of the same type, as follows. You should know that these types are generally consistent with subsystems so “target” refers to Unit files that load and run on boot, and the following displays service files.
systemctl -t service
  • You may notice that when you list Unit files, you return state (running, stopped, active, inactive, loaded, unloaded, etc) so you can grep the following that returns services that are loaded but not active for whatever reason (some only run for a moment then exit). These can usually be started with a simple “start” command
systemctl -t service | grep exited

HTH,
TSU