I'm not super-solid on Solaris(h) networking, but: You're using a KVM (Linux? Windows?) guest to host your DHCP? (I'll assume you have a good reason ;) Are you just wanting an internal only, let the guests talk to each other, try ansible out test setup? (Sounds like LX zones for the DHCP clients, which OS?)
But you mentioned NAT so I assume you're trying to route from Global Zone outside-world IP (public IP or itself NAT to outside world), to KVM? On Mon, Apr 17, 2017 at 11:27 AM, Alex Corcoles <[email protected]> wrote: > I've made some progress on this. I've been able to set up NAT and DHCP > on my KVM zone (required nics.*.allow_mac_spoofing to get NAT > working), but I'm stuck getting DHCP/DNS to work properly. I'd like LX > zones to have a hostname, request DHCP stating the hostname so that > they are added to DNS. > > However, I see that LX zones use /native/sbin/dhcpagent as their DHCP > client, which does not seem to be a) stating their hostname to the > DHCP server b) properly configuring DNS (/etc/resolv.conf is not being > updated). The options documented in vmadm(1m) related to that seem to > mostly not apply to LX zones :( > > My attempts at doing this are at: > > https://github.com/alexpdp7/smartos.ansible.sandbox/tree/pr/dns_dhcp > > Basically: > > https://github.com/alexpdp7/smartos.ansible.sandbox/blob/ > pr/dns_dhcp/lab.yml > https://github.com/alexpdp7/smartos.ansible.sandbox/blob/ > pr/dns_dhcp/roles/centos_zone/tasks/main.yml > > contain the relevant bits for this... > > Cheers, > > Álex > ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
