Re: [pve-devel] Finding VMs by hostname, not id

2016-10-14 Thread Andreas Steinel
On Fri, Oct 14, 2016 at 9:15 PM, Michael Rasmussen wrote: > On Fri, 14 Oct 2016 19:56:04 +0200 Andreas Steinel > wrote: > > Isn't there a chicken and egg problem now? Where is the name defined if I > > install via PXE in an automatic fashion? > > For

Re: [pve-devel] Finding VMs by hostname, not id

2016-10-14 Thread Michael Rasmussen
On Fri, 14 Oct 2016 19:56:04 +0200 Andreas Steinel wrote: > > Isn't there a chicken and egg problem now? Where is the name defined if I > install via PXE in an automatic fashion? > For Debian based distributions preseed exists. For Redhat based distributions kickstart

Re: [pve-devel] Finding VMs by hostname, not id

2016-10-14 Thread Andreas Steinel
Yes, that's one way to go. We used ddns almost 10 years ago and went for a "full static" setup. Isn't there a chicken and egg problem now? Where is the name defined if I install via PXE in an automatic fashion? Until now I setup the VM automatically (CLI) and give it a name and retrieve the mac,

Re: [pve-devel] Finding VMs by hostname, not id

2016-10-14 Thread Michael Rasmussen
On Fri, 14 Oct 2016 16:59:52 +0200 Andreas Steinel wrote: > On Fri, Oct 14, 2016 at 4:45 PM, Michael Rasmussen wrote: > > > On Fri, 14 Oct 2016 16:09:48 +0200 > > Andreas Steinel wrote: > > > > > > > > How do you guys solve this

Re: [pve-devel] Finding VMs by hostname, not id

2016-10-14 Thread Andreas Steinel
On Fri, Oct 14, 2016 at 4:45 PM, Michael Rasmussen wrote: > On Fri, 14 Oct 2016 16:09:48 +0200 > Andreas Steinel wrote: > > > > > How do you guys solve this problem in big environments? Is there a > simpler > > way I don't see right now? > > > You could

Re: [pve-devel] Finding VMs by hostname, not id

2016-10-14 Thread Michael Rasmussen
On Fri, 14 Oct 2016 16:09:48 +0200 Andreas Steinel wrote: > > How do you guys solve this problem in big environments? Is there a simpler > way I don't see right now? > You could use DHCP assigned IP and a DNS server which automatically adds or removes IP from domain. If

[pve-devel] Finding VMs by hostname, not id

2016-10-14 Thread Andreas Steinel
Hi, I'd like to discuss a feature request about having a "real" hostname on KVM machines or some other mechanism to solve my problem. I have a rather big environment with over a hundred KVM VMs and also different networks including different DNS settings. Currently I "encode" further VM