Hi Patrick,
Thanks for the info. Rolling the two issues into the same ticket sounds like
the perfect solution. Any idea when the ticket might be addressed? And is there
a way to follow the ticket so that I know when closure happens? Right now I'm
stuck hardcoding IP addresses to MACs and assigning names in /etc/hosts. I only
have to do that for VMs, so getting rid of that process would be great.
Regards,
John
On Feb 08, 2016, at 11:35 PM, Patrick Mooney <[email protected]> wrote:
John,
This behavior is related to how LX are configured for networking. Native
illumos network utilities are used to bring up zone interface(s), including
acquisition of DHCP leases. No advanced configuration is generated for
dhcpagent, so it operates with defaults which do not send the hostname when
requesting an address. A ticket has been opened (I don't have it handy) to
address the inability to specify DHCP options for dhcpagent in LX zones. This
issue could probably be rolled into that ticket.
On 8 February 2016 at 23:12, John Croix <[email protected]> wrote:
I’m running SmartOS at home, and I have a Raspberry PI running dnsmasq as my
DHCP and DNS server. My DHCP-configured computers will give their hostname back
to dnsmasq so that I can look up the computer by name instead of IP address. I
can’t seem to make that work for an Ubuntu LX zone that I create in SmartOS.
For example, here’s the JSON for a Ubuntu 14.04 LTS zone that I created:
{
"brand": "lx",
"kernel_version": "3.13.0",
"dataset_uuid": "52be84d0-6b06-11e5-a4c0-9f0c52fa368a",
"resolvers": ["192.168.1.2","8.8.8.8", "8.8.4.4"],
"max_physical_memory": 4096,
"autoboot": true,
"alias": "owncloud",
"hostname": "owncloud",
"zonename": "owncloud",
"nics": [
{
"nic_tag": "admin",
"ip": "dhcp",
"primary": true
}
]
}
The DHCP IP address assigned is 192.168.1.160. If I do a “dig -x
192.168.1.160”, I won’t get the hostname that I’ve given to this zone. In fact,
I won’t get anything in the form of a name. The LX zone, though, knows its
hostname, and I’ve verified that it is correct.
Is there a way to get the hostname registered with dnsmasq for a LX zone? It
happens automatically for Linux systems that are running Ubuntu, but not for LX
Ubuntu images.
Thanks,
John
smartos-discuss | Archives | Modify Your Subscription
-------------------------------------------
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