-
unix
hi
-
unix
I would like to ask how to set up cloud-init on SmartOS under the BHYVE brand with a custom ISO installation. I mean that I'm not using the official Joyent image. What I want to do is configure the network with cloud-init in a BHYVE VM. I have installed cloud-init, all related services are enabled, I also set up the serial console in the grub, etc. It seems to be working because under '/var/lib/cloud/instances' the VM UUID is created and I can see the IP
-
unix
settings I specified in the metadata on the SmartOS host in the 'obj.pkl' file, but for some reason, it doesn't execute them. The datasource_list [ SmartOS ] is, of course, set. I checked the official Joyent image and applied the same settings that are in the '/etc/cloud' folder, and the kernel parameters in the grub are the same, yet it doesn't work for me.
-
unix
Any ideas?
-
unix
problem solved
-
neuroserve
unix - nice
-
pjustice
I tried to rebuild my one LX zone today, using:
-
pjustice
632a25ad-15dc-42f0-a23b-743b37f62cbb alpine-3 20240726 linux lx-dataset 2024-07-26
-
pjustice
It's tres unhappy. I think the main problem is that dns is hosed.
-
pjustice
e.g.:
-
pjustice
cats:/var/log# host cats.h-net.org
-
pjustice
netmgr/udp.c:1021:isc_nm_udpconnect(): fatal error: RUNTIME_CHECK(result == ISC_R_SUCCESS || result == ISC_R_NOTIMPLEMENTED) failed
-
pjustice
Aborted (core dumped)
-
bahamat
Can you ping it?
-
pjustice
yes, and since ssh is running right now, I can ssh to it.
-
pjustice
(In an earlier attempt, ssh wouldn't run.)
-
bahamat
I mean, can you ping cats.h-net.org?
-
pjustice
nginx won't start because it can't look up its syslog server to send logs to.
-
pjustice
yes
-
bahamat
by name?
-
pjustice
yes
-
pjustice
dns service in the environment is fine
-
pjustice
but something about resolution on this machine is hosed
-
pjustice
this guest
-
bahamat
Can you ping it by name from inside the guest?
-
pjustice
yes, but its name is in /etc/hosts
-
bahamat
What if you take it out?
-
pjustice
`dig` does similar things to `host`
-
pjustice
oddly, `apk update` works
-
bahamat
dig and host both set privileged flats on packets. They don't just do gethostbyname().
-
pjustice
yes, can ping from inside the guest by name even without its name in /etc/hosts
-
pjustice
oh, and this is an alpine image
-
pjustice
ah, there it is, I did say that
-
bahamat
Do you have a dns server declaration in the nginx config?
-
pjustice
no, haven't ever needed to
-
pjustice
lemme see
-
pjustice
doesn't help
-
pjustice
but doc says that's for looking up upstream servers (in proxy, I think?) so maybe it doesn't use it to look up syslog servers to which it will send access log data.