Solaris 11 LDOM guest network not working

I'm really stuck here. I've created an LDOM on a SPARC T4-1 with Solaris 11.4 to run a copy of Linux for SPARC. I got the Linux ISO installed and Linux itself installed and booted OK. The only thing is is that there's no networking available in the Linux guest.

This question is basically the same as this one: https://www.unix.com/solaris/275859-ldom-solaris-11-add-network-vsw-virtual-switch.html but I wasn't able to figure it out even after reading that. Can someone please help me with this particular case?

Here's the same info Wittman gave in his OP:

root@hemlock:/etc# ipadm
NAME              CLASS/TYPE STATE        UNDER      ADDR
lo0               loopback   ok           --         --
   lo0/v4         static     ok           --         127.0.0.1/8
   lo0/v6         static     ok           --         ::1/128
net0              ip         ok           --         --
   net0/v4        static     ok           --         192.168.0.183/24
   net0/v6        addrconf   ok           --         fe80::210:e0ff:fe8a:1138/10
sp-phys0          ip         ok           --         --
   sp-phys0/v4    static     ok           --         169.254.182.77/24
root@hemlock:/etc# 

And

root@hemlock:/etc# dladm show-phys
LINK            MEDIA         STATE      SPEED  DUPLEX    DEVICE
net0            Ethernet      up         100    full      igb0
net1            Ethernet      unknown    0      unknown   igb1
net2            Ethernet      unknown    0      unknown   igb2
net3            Ethernet      unknown    0      unknown   igb3
net4            Ethernet      up         100    full      vsw0
sp-phys0        Ethernet      up         10     full      usbecm2
root@hemlock:/etc# ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  NORM  UPTIME
primary          active     -n-cv-  UART    8     40192M    11%   11%  6d 18h 14m
linux            active     -n----  5000    8     4G       0.0%  0.0%  1h 29m
root@hemlock:/etc# dladm show-link
LINK                CLASS     MTU    STATE    OVER
ldoms-vsw0.vport0   vnic      1500   up       net0
ldoms-vsw0.vport1   vnic      1500   up       net0
net0                phys      1500   up       --
net1                phys      1500   unknown  --
net2                phys      1500   unknown  --
net3                phys      1500   unknown  --
net4                phys      1500   up       --
sp-phys0            phys      1500   up       --
root@hemlock:/etc# 

In the guest I see this:
[

root@localhost ~]# ping 192.168.0.1
connect: Network is unreachable
[root@localhost ~]# ifconfig eth0 plumb
plumb: Host name lookup failure
ifconfig: `--help' gives usage information.
[root@localhost ~]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:14:4F:F8:1F:C0  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:13797 errors:0 dropped:10994 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1035679 (1011.4 KiB)  TX bytes:0 (0.0 b)

eth1      Link encap:Ethernet  HWaddr 00:14:4F:FA:58:2D  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:13797 errors:0 dropped:10994 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1035679 (1011.4 KiB)  TX bytes:0 (0.0 b)

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

[root@localhost ~]# 

Does any of this give a clue as to what might be wrong?

Strange combination, sparc linux on Solaris ldom, to notice at first.
I do not think that is supported or condoned by Oracle, but since you installed / booted it lets take a look.

Can you show output of :

ldm list -l linux

What linux distribution is this ?

Regards
Peasant.

"Strange combination, sparc linux on Solaris ldom, to notice at first."
No doubt but I have a program that only runs in Linux. If I can get it to work here I won't need a separate machine just for that.

"I do not think that is supported or condoned by Oracle"
Definitely not. They say as much. Not that it matters since I'm just one person and don't have an Oracle support account.

"Can you show output of :"

root@hemlock:~# ldm list -l linux
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  NORM  UPTIME
linux            active     -n----  5000    8     4G       0.0%  0.0%  22h 39m

SOFTSTATE
    Linux running

UUID
    3d88816c-12c6-48af-8e16-d6d05d281d5b

MAC
    00:14:4f:fa:63:f2

HOSTID
    0x84fa63f2

CONTROL
    failure-policy=ignore
    extended-mapin-space=on
    cpu-arch=native
    rc-add-policy=
    shutdown-group=15
    perf-counters=htstrand
    boot-policy=warning
    effective-max-pagesize=256MB
    hardware-max-pagesize=2GB

DEPENDENCY
    master= 

CORE
    CID    CPUSET
    1      (8, 9, 10, 11, 12, 13, 14, 15)

VCPU
    VID    PID    CID    UTIL NORM STRAND
    0      8      1      0.0% 0.0%   100%
    1      9      1      0.1% 0.1%   100%
    2      10     1      0.0% 0.0%   100%
    3      11     1      0.0% 0.0%   100%
    4      12     1      0.0% 0.0%   100%
    5      13     1      0.0% 0.0%   100%
    6      14     1      0.0% 0.0%   100%
    7      15     1      0.0% 0.0%   100%

MEMORY
    RA               PA               SIZE            
    0x80000000       0x200000000      2G
    0x440000000      0x3c0000000      512M
    0x870000000      0x3f0000000      256M
    0xc00000000      0x500000000      256M
    0x1020000000     0x5a0000000      768M
    0x1460000000     0x5e0000000      256M

CONSTRAINT

VARIABLES
    auto-boot?=true
    boot-device=vdisk1

NETWORK
    NAME         SERVICE                MACADDRESS          PVID|PVLAN|VIDs
    ----         -------                ----------          ---------------
    net0         primary-vsw0@primary   00:14:4f:f8:1f:c0   1|--|--      

    NAME         SERVICE                MACADDRESS          PVID|PVLAN|VIDs
    ----         -------                ----------          ---------------
    vnet1        primary-vsw0@primary   00:14:4f:fa:58:2d   1|--|--      

DISK
    NAME         VOLUME                 TOUT ID   DEVICE  SERVER         MPGROUP       
    vdisk1       vol1@primary-vds0           0    disk@0  primary                      
    vdiskiso     voliso@primary-vds0         1    disk@1  primary                      

VCONS
    NAME         SERVICE                PORT   LOGGING
    linux        primary-vcc0@primary   5000   on      

root@hemlock:~# 

"What linux distribution is this ?"
It's just called "Linux for SPARC", from here: Project: Linux for SPARC - oss.oracle.com

[root@localhost etc]# cat /etc/issue
Linux for SPARC release 1.0
Kernel \r on a \m

[root@localhost etc]#

--- Post updated at 11:49 AM ---

OK, am I ever embarrassed. The solution turned out to be as simple as just turning on the networking inside the guest. Doh!

Thanks for taking the time to look at this.

[root@localhost etc]# ifup eth0

Determining IP information for eth0... done.
[root@localhost etc]# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.735 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.565 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=0.577 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=64 time=0.541 ms

--- 192.168.0.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3354ms
rtt min/avg/max/mdev = 0.541/0.604/0.735/0.080 ms

[root@localhost etc]# ip a show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN qlen 1000
    link/ether 00:14:4f:f8:1f:c0 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.186/24 brd 192.168.0.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::214:4fff:fef8:1fc0/64 scope link 
       valid_lft forever preferred_lft forever
[root@localhost etc]# 

1 Like

Looks fine.
As far as i could read online, it's some kind of Oracle Linux derivative which in turn is RHEL base.

Can we see inside the guest ..

ls -lrt /etc/sysconfig/network-scripts/ifcfg-e*

P.S I just saw you figured it out, so you can disregard this.
You still might want to check out those network files to configure onboot network and / or static IP

Regards
Peasant.

1 Like

Oh OK - thanks. That's good to know.

It says:

[root@localhost ~]# ls -lrt /etc/sysconfig/network-scripts/ifcfg-e*
-rw-r--r--. 1 root root 136 Nov  1 18:03 /etc/sysconfig/network-scripts/ifcfg-eth1
-rw-r--r--. 1 root root 136 Nov  1 18:03 /etc/sysconfig/network-scripts/ifcfg-eth0
[root@localhost ~]# 

I get

[root@localhost ~]# more /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:14:4F:F8:1F:C0
TYPE=Ethernet
UUID=8f2adc41-c96e-4687-8dc5-9b15effe7406
ONBOOT=no
NM_CONTROLLED=yes
BOOTPROTO=dhcp
[root@localhost ~]# 

Great point. I will change ONBOOT=no to yes. I don't need a static IP for this system (though the T4 host does have one).

Anyway, I just finished doing a yum update which updated/installed 503 packages, so I'd say it's pretty much working.

Great you have everything working.
Depending on the network topology and desired level of redundancy of network, one might configure it a bit more.

If you have one cable in physical machine connected to one switch then you can remove additional interface from linux LDOM.
Since they are connected to same VSW, there is little point in having an extra interface.

In case you have multiple network ports connected take a look at aggregating interfaces together followed by creation of VSW over that interface.
This is only one of many ways, selection depends on network topology etc.

If you have any questions or doubts feel free to post here.
We shall try to advise the best approach on redundancy of network or any other component in Solaris systems.

Regards
Peasant.

That's a good point. There's just one Ethernet cable connected to the T4 so I don't need the ETH1 interface in the guest at all.

Thanks again for your help My next project is to port a Solaris 10 installation from an M3000 onto the T4. My plan at the moment is to make a flar archive of the M3000 and then load that into a new zone on the T4. Does that sound reasonable?

Please open new topic for new questions or issues.

Regards
Peasant.