-
jhertz
Hi, can anyone point me in the right direction when it comes to network config for smartos in virtualbox? My smartos install can connect to the outside, but the VMs are unable to.
-
jhertz
I am using a Briged Adapter, if that is usefull info
-
danmcd
Are the VMs using the same nic tag as the GZ nic you *can* reach?
-
jhertz
Yes, there is only one NIC tag and they both use that one
-
danmcd
Okay... I wonder if there's a VBox setting for the bridged Adapter where more-than-one-MAC can be assigned to it? Because I *suspect* what's happening is *something* doesn't like more than the GZ's MAC address on that link.
-
danmcd
Whether it's VBox, or your VBox host, something's stopping bits from moving.
-
danmcd
I take it you can move bits between GZ and NGZ just fine, right?
-
danmcd
(1st-order reality check question ^^^ .)
-
jperkin
I don't know if bridged mode works, way back when I used nat mode:
perkin.org.uk/posts/automated-virtualbox-smartos-installs.html
-
danmcd
Oh shit yes this is virtualbox.
-
danmcd
I have OmniOS (only global) on VBox on my personal MacBook Pros, and I can't use bridged on there at all, even for the GZ.
-
danmcd
Thanks for that reminder jperkin.
-
pjustice
jperkin: is there an archive of older binary packages somewhere? I'd like to find unbound-1.17.1nb1 for a test.
-
jperkin
pjustice: possibly, all the older releases are archived under /pkgsrc/public/packages in Manta, but if that particular revision was only available for a certain time in e.g. trunk and then updated then no
-
jperkin
is your unbound issue easily reproducible? happy to take a look after I'm done with some percona bits
-
pjustice
Well, that's part of what I'm trying to determine. Wanted to put back the previous version, as my current understanding of the differences between two systems is basically that the one didn't get restarted and is still running the 1.17.1nb1 version.
-
pjustice
(and I'm living in fear of it getting cycled...)
-
jperkin
2022Q4 has 1.17.0
-
pjustice
Lemme see if the tgz is in manta
-
jperkin
trunk only has 1.18.0 now
-
pjustice
Yup, that's the issue
-
pjustice
Ok, 1.17.0 installed. The problem has vanished. These machines previously had 1.17.1nb1, and the upgrade to 1.18.0 arrived in early September, I think.
-
pjustice
I've spent hours poring over the diff between 1.17.1 and 1.18.0, but it's huge.
-
pjustice
I'm noticing that 1.18.0 calls sendmsg(), but 1.17.0 doesn't seem to, for queries that generally trigger the misbehavior in 1.18.0.
-
danmcd
Ahhh, so there WAS a difference.
-
danmcd
pjustice: were you mailing smartos-discuss?
-
danmcd
-
pjustice
eys
-
pjustice
yes
-
danmcd
Okay... I wonder if 1.18.0 is doing sendmsg without turning on "xnet sockets" which support the modern sendmsg() semantics?
-
pjustice
But the differences, as noted there, have resolved to the package version.
-
pjustice
It appears that older versions don't do sendmsg() at all.
-
danmcd
I know jperkin understands that issue/problem/design-decision-back-from-sun-days.
-
pjustice
Or at least I'm not seeing any.
-
danmcd
I saw that up top... fascinating.
-
danmcd
Anyway, lemme look at something...
-
danmcd
... okay, I have 1.17.1 on my OmniOS zone. I don't see any odd patches in their build of 1.18 (which will likely show up on the next stable, 151048).
-
danmcd
Our sendmsg() SHOULDN'T be any different than Omni's.
-
danmcd
There are some sendmsg() apps that need "-D_XPG4_2" to use the modern sendmsg().
-
danmcd
No idea why your unbound 1.18 is throwing these errors.
-
danmcd
dtrace -n 'sendmsg:entry { printf("\n\tsendmsg from: %s", execname);}'
-
danmcd
that shows no sendmsg from "unbound" (but if I swap to "send" I see them).
-
pjustice
Yes, I'm seeing send() and sendto() happening, but no sendmsg() in 1.17.0.
-
pjustice
I haven't had much luck figuring out where to look to see if _XPG4_2 is getting defined in the build.
-
pjustice
The choice of which variant of send*() to call seems to come down to which callback gets used -- comm_point_udp_ancil_callback or comm_point_udp_callback
-
sjorge
perhaps check if the omnios-extras unbound has extra patches?
-
bahamat
pjustice: Are you running virtualbox bridged to a wifi interface?
-
pjustice
bahamat: I think that was a different conversation with someone else.
-
bahamat
pjustice: Oh, sorry, yes it was..
-
danmcd
( bahamat vbox is @jhertz) "ancil" ==> Ancillary data. THIS is why you need sendmsg()./
-
pjustice
no worries
-
danmcd
Looking up that symbol...
-
danmcd
... yeah.. .IPV6_PKTINFO
-
danmcd
So to send ancillary data like that you need to use X/Net sockets not normal libsocket ones. (It's a distinction I think we need to kill, but that's a whole #illumos problem, not specific to us in #smartos).
-
danmcd
I'm sure jperkin has seen stuff like this in OTHER pkgsrc apps.
-
pjustice
Given that, the question would seem to be what defines to the build changed between these two versions.
-
pjustice
_XPG4_2 would seem to be a prime candidate.
-
danmcd
Did the ...ancil... function get introduced with 1.18 ?
-
danmcd
Oooh..
-
danmcd
-
pjustice
No, I don't think there's really a significant change to the code as regards calling sendmsg. The difference would seem to have to be in defines.
-
danmcd
Or linking with `-lxnet`
-
pjustice
Both versions are linked with -lsocket
-
danmcd
You can cheat by using #define _XPG_42 or whatever it is... this is a problem jperkin is best-suited to solving.
-
» danmcd wonders if Oracle Solaris got rid of old-fashined SunOS 4.x sendmsg() or not?
-
pjustice
I'm going to have to wander off to an appointment for a bit here. Will check here when I return.