On 23/02/2023 16:05, Yelena Konyukh wrote:
Hi Ralf,

Thank you very much for replying.

Yes, my issue appears to be due to using "ifconfig".
The IP does not get lost since I have configured the virtual network interface via a file in /etc/network/interfaces.d as below:
/etc/network/interfaces.d# cat enP1p0s1
allow-hotplug enP1p0s1
iface enP1p0s1 inet static
address 192.168.0.1
netmask 255.255.255.0

Okay, and once the interface appears (i.e., when jailhouse is enabled), the IP is set, and after you while, you loose it. Do I get that right?

Does dmesg give you any hints why the interface goes down? What about the interface in the non-root cell? Do you have the same issue there?

Thanks
  Ralf


Thank you agai.

Best Regards,

Yelena

On Wednesday, February 22, 2023 at 3:27:10 PM UTC Ralf Ramsauer wrote:

    Hi Yelena,

    On 21/02/2023 18:23, Yelena Konyukh wrote:
     >
     > Hi All,
     >
     > I would be very grateful for any comments on the following issue:
     >
     > I run Jailhouse on an arm64 platform with Xilinx kernel. I use
     > ivshmem-net driver and the relevant cells and .DTBs
    configurations to
     > support a virtual network interface in my root cell and my non-root
     > Linux cell.
     >
     > Generally speaking, everything works quite well - the virtual
    network
     > interfaces communicate with each other and, once I have setup my
    root
     > cell, which also has a physical network interface, to act as a
    router
     > for my non-root Linux, my non-root cell has access to the
    external network.
     >
     > However, I noticed that sometimes the IP which I setup on the root
     > cell's virtual interface gets "lost". That is  - I assign an IP with
     > ifconfig to the virtual NIC and after a period of time (sometimes it
     > takes > 1 minute) the IP is no longer there. I keep re-setting
    the IP
     > and eventually it "sticks"...
     > At some point I thought it is setting the IP on the root's NIC after
     > netif_carrier_on() is invoked for the root's NIC that makes the IP
     > "stick", but it now looks like it is not the case and I no longer
    have
     > any clue as to what causes the IP "stick".

    Uhm, what distribution do you use for your root-cell?

    Unless the NIC state doesn't change over time (which could explain the
    loss of the IP) it sounds to me like there is some Network
    Configuration
    Application that grabs the interface as soon as it exists and tries to
    reconfigure it. Then it maybe tries to DHCP on the interface and the IP
    is lost. Something like NetworkManager, systemd-networkd, … Is there
    any
    of those applications running in your root cell?

    Ralf

     >
     > Has anyone seen anything similar?
     > Any comments would be very much appreciated.
     >
     > Thank you
     >
     > Best Regards,
     >
     > Yelena
     >
     >
     > --
     > You received this message because you are subscribed to the Google
     > Groups "Jailhouse" group.
     > To unsubscribe from this group and stop receiving emails from it,
    send
     > an email to [email protected]
     > <mailto:[email protected]>.
     > To view this discussion on the web visit
     >
    
https://groups.google.com/d/msgid/jailhouse-dev/e647559a-49c2-4c8e-95bf-692b8495f9ban%40googlegroups.com 
<https://groups.google.com/d/msgid/jailhouse-dev/e647559a-49c2-4c8e-95bf-692b8495f9ban%40googlegroups.com>
 
<https://groups.google.com/d/msgid/jailhouse-dev/e647559a-49c2-4c8e-95bf-692b8495f9ban%40googlegroups.com?utm_medium=email&utm_source=footer
 
<https://groups.google.com/d/msgid/jailhouse-dev/e647559a-49c2-4c8e-95bf-692b8495f9ban%40googlegroups.com?utm_medium=email&utm_source=footer>>.

--
You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/c2344328-236a-4ec8-b713-9b04df0735c1n%40googlegroups.com <https://groups.google.com/d/msgid/jailhouse-dev/c2344328-236a-4ec8-b713-9b04df0735c1n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/751fa785-0438-dfdd-c5aa-86ccee76cb34%40oth-regensburg.de.

Reply via email to