Solaris 11 LDOM guest network not working


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Solaris 11 LDOM guest network not working
# 1  
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: LDOM Solaris 11 add Network vsw (Virtual switch) 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:

Code:
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

Code:
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:
[
Code:
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?
# 2  
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 :
Code:
ldm list -l linux

What linux distribution is this ?

Regards
Peasant.
# 3  
"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 :"
Code:
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
Code:
[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.

Code:
[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]#

This User Gave Thanks to Michele31416 For This Post:
# 4  
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 ..
Code:
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.
This User Gave Thanks to Peasant For This Post:
# 5  
Quote:
Originally Posted by Peasant
Looks fine.
As far as i could read online, it's some kind of Oracle Linux derivative which in turn is RHEL base.
Oh OK - thanks. That's good to know.
Quote:
Originally Posted by Peasant
Can we see inside the guest ..
Code:
ls -lrt /etc/sysconfig/network-scripts/ifcfg-e*

It says:
Code:
[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 ~]#

Quote:
Originally Posted by Peasant
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.
I get
Code:
[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.
# 6  
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.
# 7  
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?
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #827
Difficulty: Medium
Douglas Crockwell first specified and popularized the JSON format.
True or False?

8 More Discussions You Might Find Interesting

1. Solaris

Ldom guest volumen problem t8 Solaris 11

hello to everyone. im new member here. i have a problem with a guest ldom on solaris 11 sparc in a T8. I need to access to disk vds assigned to guest domain but from control domain. I want to modify a parameter in inittab of the guest domain because start guest domain give me problems... (2 Replies)
Discussion started by: Liam_
2 Replies

2. Solaris

LDOM Solaris 11 add Network vsw (Virtual switch)

hello, I have a problem when configuring the network at the LDOM level, on a SPARC-Enterprise-T5120 machine The network goes through VLAN 503 (level, network tagget) And I need to give network to the guest domain: madarrwebsol10 I hope someone can bring some light .... Excuse my English ... ... (4 Replies)
Discussion started by: Wittman
4 Replies

3. Solaris

Disk expansion on LDOM Guest

Hi, There is LDOM Guest where I need to expand /u02 file systems on it. It is residing on a Solaris 11 Hypervisor (Primary Domain). The storage is expanded on vdisk presented to Hypervisor. I need steps to expand the /u02 on LDOM Guest. (2 Replies)
Discussion started by: vidya_sagar2003
2 Replies

4. UNIX for Dummies Questions & Answers

Configure network connectivity as guest O.S under vmware

Hi! I am not sure if this is the right place to post this question. What I did was to download vmware onto my laptop, them install a linux distro as a guest O.S., on VM network configuration I have used "bridge", them I used Virtual Network Editor to chose the network interface, but as I write... (4 Replies)
Discussion started by: fretagi
4 Replies

5. Solaris

Network Config on Zone in a Guest LDOM

Solaris for Sparc 11.1 with the latest patches. Created a Guest LDOM with two vnet's net0 and net1, installed a guest whole root, ip exclusive zone that I want to be able to utilize DHCP. I have been able to create the zone but unable to get it to boot because I am unable to assign an anet to it.... (4 Replies)
Discussion started by: os2mac
4 Replies

6. Solaris

Help needed - trying to run commands in Guest LDoms from Control LDOM

Hi Folks, I am used to writing scripts to get info by running commands at local zones level from their respective global zone by using zlogin <localzone> "command>" while remaining at the global zone level. Can the same be done with Guest LDoms while remaining at the control LDOM level? ... (4 Replies)
Discussion started by: momin
4 Replies

7. Virtualization and Cloud Computing

KVM FC12 guest save not working ??

Howdy I am using Fedora12 with KVM, with XP64pro as a guest. Everything seems to be working just fine, BUT I can't Save. When I do instruction KVM to save, I get a continuing Saving display, but it continues for a long time until I finally terminate it due to boredom :) I have let it run for... (0 Replies)
Discussion started by: TJMan
0 Replies

8. Solaris

Network not working on Solaris 10

Hi, Need help for the network configuration on Solaris 10 5/8. My NIC's dirver was loaded after Solaris installation and is configured using static ip address for a local network: 172.16.1.12 I have configured set of files as: /etc/hosts : 172.16.1.12 ls12 /etc/hostname.iprb0:... (7 Replies)
Discussion started by: dn100
7 Replies

Featured Tech Videos