Coder Social home page Coder Social logo

Comments (9)

sjorge avatar sjorge commented on July 29, 2024

Of note, I stumbled in this mess while trying to re-validate ubuntu in LX now that 22.04 has an image. It's still broken in other 'fun' ways.

e.g.

root@ubt2204:~# curl -6 ifconfig.co
2a02:578:470f:10::159
root@ubt2204:~# ping6 ifconfig.co
ping6: IPV6_RECVERR: Protocol not available

The last known version to work is 16.04

root@ubuntu-14-04-b:~# curl -6 ifconfig.co
2a02:578:470f:10::159
root@ubuntu-14-04-b:~# ping6 ifconfig.co
WARNING: your kernel is veeery old. No problems.
PING ifconfig.co(2606:4700:3036::ac43:85e4) 56 data bytes
64 bytes from 2606:4700:3036::ac43:85e4: icmp_seq=1 ttl=59 time=3.08 ms
64 bytes from 2606:4700:3036::ac43:85e4: icmp_seq=2 ttl=59 time=3.79 ms
^C
--- ifconfig.co ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 3.088/3.439/3.791/0.356 ms

IIRC the warning is because it does some sort of fallback, which we newer ubuntu's do not.

from illumos-omnios.

sjorge avatar sjorge commented on July 29, 2024

This warrants the question, is this worth fixing in lx_init if the actual user-space stuff is not going to be happy and have weird unpredictable results depending (on I assume the syscalls it tries).

from illumos-omnios.

sjorge avatar sjorge commented on July 29, 2024

If OmniOS doesn't have https://smartos.org/bugview/OS-4683 it is probably also something that should be pulled in.

from illumos-omnios.

citrus-it avatar citrus-it commented on July 29, 2024

If OmniOS doesn't have https://smartos.org/bugview/OS-4683 it is probably also something that should be pulled in.

We don't, but it's one we definitely should look into.

from illumos-omnios.

bahamat avatar bahamat commented on July 29, 2024

FWIW, on SmartOS, we assume that if there's a static IP set, there needs to also be a static gateway defined.

from illumos-omnios.

sjorge avatar sjorge commented on July 29, 2024

That would also be acceptable if a 2nd defrouter entry could take an ipv6 one.

from illumos-omnios.

stale avatar stale commented on July 29, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from illumos-omnios.

sjorge avatar sjorge commented on July 29, 2024

Unstale

from illumos-omnios.

sjorge avatar sjorge commented on July 29, 2024

For those playing a round at home

cat > /usr/local/sbin/svc_lx_helper << SVC_LX_HELPER
#!/usr/bin/bash

echo "Mounting ZFS datasets ..."
/native/sbin/zfs mount -a

if [ ! -e /etc/inet/ndpd.conf ]; then
  echo "Creating /etc/inet/ndpd.conf ..."
  mkdir -p /etc/inet
  cat > /etc/inet/ndpd.conf << EOF
ifdefault StatefulAddrConf off
ifdefault StatelessAddrConf off
EOF

  echo "Reboot triggered by ndpd.conf creationg."
  reboot
fi
SVC_LX_HELPER

chmod +x /usr/local/sbin/svc_lx_helper

cat > /etc/systemd/system/lx-helper.service << SYSTEMD_SERVICE
[Unit]
Description=LX Zone Helper
Require=native-usr.service
Before=network-pre.target

[Service]
Type=simple
ExecStart=/usr/local/sbin/svc_lx_helper

[Install]
WantedBy=multi-user.target
SYSTEMD_SERVICE
systemctl daemon-reload
systemctl enable --now lx-helper.service

You can avoid the ::/0 addresses that confuse things by disabling all dynamic addresses so it just sets the default router, you can then use a static address.

Above is a little helper systemd unit that does so, it also mounts all delegated datasets.

from illumos-omnios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.