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
