Re: [pve-devel] GUI for DHCP
I guess this would only make sense if qemu people accept such patches upstream. Maybe worth to ask on the qemu list for opinions Just found this guest agent: add guest-exec and guest-exec-status interfaces https://www.mail-archive.com/qemu-devel@nongnu.org/msg271775.html (I think they are going to do the same for windows) So maybe it could be possible to exec ifconfig to setup network. Could me usefull for my case where I have a lot of vlans, without need to use dhcp. (But dhcp implementation can easier for simple setup) - Mail original - De: dietmar diet...@proxmox.com À: aderumier aderum...@odiso.com Cc: datanom.net m...@datanom.net, pve-devel pve-devel@pve.proxmox.com Envoyé: Vendredi 13 Février 2015 15:44:57 Objet: Re: [pve-devel] GUI for DHCP (I think it could be also possible to hack official qemu-guest agent). But that mean that user need a special proxmox qemu-guest agent. I guess this would only make sense if qemu people accept such patches upstream. Maybe worth to ask on the qemu list for opinions. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
Also, has someone already have a look at the new vhost-user feature ? http://www.redhat.com/archives/libvir-list/2014-May/msg00934.html http://www.virtualopensystems.com/fr/solutions/guides/snabbswitch-qemu/ openstack is going to implement it, and also new snabbswitch virtual switch. I don't understand yet all thing, but maybe it could be possible to create a virtual dhcp for each vm. (something like old qemu userspace net) - Mail original - De: aderumier aderum...@odiso.com À: dietmar diet...@proxmox.com Cc: pve-devel pve-devel@pve.proxmox.com Envoyé: Jeudi 19 Février 2015 09:04:55 Objet: Re: [pve-devel] GUI for DHCP I guess this would only make sense if qemu people accept such patches upstream. Maybe worth to ask on the qemu list for opinions Just found this guest agent: add guest-exec and guest-exec-status interfaces https://www.mail-archive.com/qemu-devel@nongnu.org/msg271775.html (I think they are going to do the same for windows) So maybe it could be possible to exec ifconfig to setup network. Could me usefull for my case where I have a lot of vlans, without need to use dhcp. (But dhcp implementation can easier for simple setup) - Mail original - De: dietmar diet...@proxmox.com À: aderumier aderum...@odiso.com Cc: datanom.net m...@datanom.net, pve-devel pve-devel@pve.proxmox.com Envoyé: Vendredi 13 Février 2015 15:44:57 Objet: Re: [pve-devel] GUI for DHCP (I think it could be also possible to hack official qemu-guest agent). But that mean that user need a special proxmox qemu-guest agent. I guess this would only make sense if qemu people accept such patches upstream. Maybe worth to ask on the qemu list for opinions. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
Another more clean way, could be configure a dhcp relay on my routeur (which are gateway for each vlan), the forward dhcp requests to the proxmox hosts (define all proxmox hosts in dhcp relay) (In this case, all proxmox hosts need to be able to reply to all dhcp requests of all vms) But the problem is that work only with 1cluster. I also seems that IPv6 SLAAC solves the problem. With RDNSS you can get IPv6 address, gateway, and DNS server. And this does not have any problems with VLANs, because it is handled by the router. I that correct? ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
I also seems that IPv6 SLAAC solves the problem. With RDNSS you can get IPv6 address, gateway, and DNS server. And this does not have any problems with VLANs, because it is handled by the router. I that correct? Yes, with ipv6 it should work fine without dhcp server. (But I need it for ipv4 ;) Another idead, I don't known if it's possible through qemu-agent to configure network ? - Mail original - De: dietmar diet...@proxmox.com À: aderumier aderum...@odiso.com Cc: datanom.net m...@datanom.net, pve-devel pve-devel@pve.proxmox.com Envoyé: Vendredi 13 Février 2015 09:44:35 Objet: Re: [pve-devel] GUI for DHCP Another more clean way, could be configure a dhcp relay on my routeur (which are gateway for each vlan), the forward dhcp requests to the proxmox hosts (define all proxmox hosts in dhcp relay) (In this case, all proxmox hosts need to be able to reply to all dhcp requests of all vms) But the problem is that work only with 1cluster. I also seems that IPv6 SLAAC solves the problem. With RDNSS you can get IPv6 address, gateway, and DNS server. And this does not have any problems with VLANs, because it is handled by the router. I that correct? ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
I don't known if it's technically possible to use same ip on each host by vlan (for dhcp reponse of the vm of the hosts), Sounds like AnyCast to me... On Fri Feb 13 2015 at 3:16:30 AM Dietmar Maurer diet...@proxmox.com wrote: I also seems that IPv6 SLAAC solves the problem. With RDNSS you can get IPv6 address, gateway, and DNS server. And this does not have any problems with VLANs, because it is handled by the router. I that correct? Yes, with ipv6 it should work fine without dhcp server. (But I need it for ipv4 ;) Another idead, I don't known if it's possible through qemu-agent to configure network ? AFAIK that is currently not possible. I also wonder if we can use zeroconf somehow? (IPV4 link local addresses: 169.254.0.0/16) ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
I also seems that IPv6 SLAAC solves the problem. With RDNSS you can get IPv6 address, gateway, and DNS server. And this does not have any problems with VLANs, because it is handled by the router. I that correct? Yes, with ipv6 it should work fine without dhcp server. (But I need it for ipv4 ;) Another idead, I don't known if it's possible through qemu-agent to configure network ? AFAIK that is currently not possible. I also wonder if we can use zeroconf somehow? (IPV4 link local addresses: 169.254.0.0/16) ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
or maybe, create a dummy interface for dhcp server ip, and plug it to the bridge. And don't known if it can communicate with the vm taps interface and if the traffic is not going out the physical eth interface. - Mail original - De: aderumier aderum...@odiso.com À: dietmar diet...@proxmox.com Cc: pve-devel pve-devel@pve.proxmox.com Envoyé: Vendredi 13 Février 2015 09:23:46 Objet: Re: [pve-devel] GUI for DHCP Any idea about this ? Sorry, no idea Another more clean way, could be configure a dhcp relay on my routeur (which are gateway for each vlan), the forward dhcp requests to the proxmox hosts (define all proxmox hosts in dhcp relay) (In this case, all proxmox hosts need to be able to reply to all dhcp requests of all vms) But the problem is that work only with 1cluster. - Mail original - De: dietmar diet...@proxmox.com À: aderumier aderum...@odiso.com, datanom.net m...@datanom.net Cc: pve-devel pve-devel@pve.proxmox.com Envoyé: Vendredi 13 Février 2015 06:23:09 Objet: Re: [pve-devel] GUI for DHCP On February 12, 2015 at 7:53 PM Alexandre DERUMIER aderum...@odiso.com wrote: One question I also have is: do we install a dnsmasq on each proxmox host of a cluster ? Yes. I'm using a lot of vlans with /24, in a 16 proxmox nodes cluster, that mean that I need 16 ips per vlan to manage dhcp. I don't known if it's technically possible to use same ip on each host by vlan (for dhcp reponse of the vm of the hosts), so no need to care (I think?) about arp on the network. or maybe filtering arp for this ip to not going outside. Any idea about this ? Sorry, no idea. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
Any idea about this ? Sorry, no idea Another more clean way, could be configure a dhcp relay on my routeur (which are gateway for each vlan), the forward dhcp requests to the proxmox hosts (define all proxmox hosts in dhcp relay) (In this case, all proxmox hosts need to be able to reply to all dhcp requests of all vms) But the problem is that work only with 1cluster. - Mail original - De: dietmar diet...@proxmox.com À: aderumier aderum...@odiso.com, datanom.net m...@datanom.net Cc: pve-devel pve-devel@pve.proxmox.com Envoyé: Vendredi 13 Février 2015 06:23:09 Objet: Re: [pve-devel] GUI for DHCP On February 12, 2015 at 7:53 PM Alexandre DERUMIER aderum...@odiso.com wrote: One question I also have is: do we install a dnsmasq on each proxmox host of a cluster ? Yes. I'm using a lot of vlans with /24, in a 16 proxmox nodes cluster, that mean that I need 16 ips per vlan to manage dhcp. I don't known if it's technically possible to use same ip on each host by vlan (for dhcp reponse of the vm of the hosts), so no need to care (I think?) about arp on the network. or maybe filtering arp for this ip to not going outside. Any idea about this ? Sorry, no idea. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
AFAIK that is currently not possible. yes, current qemu allow only to read|write file, could work, but it's difficult to have something working with any guest. I have also find a qemu-agent re-implementation in python https://github.com/xolox/python-negotiator which allow custom script and command execution (I think it could be also possible to hack official qemu-guest agent). But that mean that user need a special proxmox qemu-guest agent. I also wonder if we can use zeroconf somehow? (IPV4 link local addresses: 169.254.0.0/16) Don't think it can work. it's really only for this speficic range 169.254.0.0/16 - Mail original - De: dietmar diet...@proxmox.com À: aderumier aderum...@odiso.com Cc: datanom.net m...@datanom.net, pve-devel pve-devel@pve.proxmox.com Envoyé: Vendredi 13 Février 2015 11:16:07 Objet: Re: [pve-devel] GUI for DHCP I also seems that IPv6 SLAAC solves the problem. With RDNSS you can get IPv6 address, gateway, and DNS server. And this does not have any problems with VLANs, because it is handled by the router. I that correct? Yes, with ipv6 it should work fine without dhcp server. (But I need it for ipv4 ;) Another idead, I don't known if it's possible through qemu-agent to configure network ? AFAIK that is currently not possible. I also wonder if we can use zeroconf somehow? (IPV4 link local addresses: 169.254.0.0/16) ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
(I think it could be also possible to hack official qemu-guest agent). But that mean that user need a special proxmox qemu-guest agent. I guess this would only make sense if qemu people accept such patches upstream. Maybe worth to ask on the qemu list for opinions. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
I don't known if it's technically possible to use same ip on each host by vlan (for dhcp reponse of the vm of the hosts), so no need to care (I think?) about arp on the network. or maybe filtering arp for this ip to not going outside. Any idea about this ? Honestly, dhcp has do many drawbacks for me. I think we should really try to find something better. But so far I have no good ideas :-/ ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
On February 12, 2015 at 8:23 PM Michael Rasmussen m...@datanom.net wrote: Honestly, dhcp has do many drawbacks for me. I think we should really try to find something better. But so far I have no good ideas :-/ could config and leases file be storage in cluster file system so a dnsmasq running on each host could share this? I think this should be possible using locks. There is no need to do that if we use a static assignment? ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
On Thu, 12 Feb 2015 20:37:04 +0100 (CET) Dietmar Maurer diet...@proxmox.com wrote: There is no need to do that if we use a static assignment? What do you mean by static assignment? -- Hilsen/Regards Michael Rasmussen Get my public GnuPG keys: michael at rasmussen dot cc http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xD3C9A00E mir at datanom dot net http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE501F51C mir at miras dot org http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE3E80917 -- /usr/games/fortune -es says: If you want to see card tricks, you have to expect to take cards. -- Harry Blackstone pgpA5Wb8WrV8D.pgp Description: OpenPGP digital signature ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
One question I also have is: do we install a dnsmasq on each proxmox host of a cluster ? I'm using a lot of vlans with /24, in a 16 proxmox nodes cluster, that mean that I need 16 ips per vlan to manage dhcp. I don't known if it's technically possible to use same ip on each host by vlan (for dhcp reponse of the vm of the hosts), so no need to care (I think?) about arp on the network. or maybe filtering arp for this ip to not going outside. Any idea about this ? - Mail original - De: datanom.net m...@datanom.net À: pve-devel pve-devel@pve.proxmox.com Envoyé: Jeudi 12 Février 2015 14:24:04 Objet: Re: [pve-devel] GUI for DHCP On Thu, 12 Feb 2015 14:12:29 +0100 (CET) Alexandre DERUMIER aderum...@odiso.com wrote: From the doc, it's possible to listen on specific interfaces interface=eth1 interface=eth2 or also like this dhcp-range=eth1,192.168.100.100,192.168.100.199,4h dhcp-range=eth2,192.168.200.100,192.168.200.199,4h I am aware of this. I was referring to the patches you pointed to. -- Hilsen/Regards Michael Rasmussen Get my public GnuPG keys: michael at rasmussen dot cc http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xD3C9A00E mir at datanom dot net http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE501F51C mir at miras dot org http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE3E80917 -- /usr/games/fortune -es says: Q: How do you keep a moron in suspense? ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
On Thu, 12 Feb 2015 19:59:30 +0100 (CET) Dietmar Maurer diet...@proxmox.com wrote: Honestly, dhcp has do many drawbacks for me. I think we should really try to find something better. But so far I have no good ideas :-/ could config and leases file be storage in cluster file system so a dnsmasq running on each host could share this? I think this should be possible using locks. -- Hilsen/Regards Michael Rasmussen Get my public GnuPG keys: michael at rasmussen dot cc http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xD3C9A00E mir at datanom dot net http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE501F51C mir at miras dot org http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE3E80917 -- /usr/games/fortune -es says: Modularise. Use subroutines. - The Elements of Programming Style (Kernighan Plaugher) pgp5YSwNTKfSZ.pgp Description: OpenPGP digital signature ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
Attached image shows what I have in mind. Idea is that users are able to create a DHCP service on every configured device or bridge. There was a long discussion about DHCP in 2013. AFAIK I sent a patch, but I have no idea if that still works, or if someone else sent an implementation. So the first step would be to fínd the latest patches, test them, and re-sent them to the list. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
On February 12, 2015 at 7:53 PM Alexandre DERUMIER aderum...@odiso.com wrote: One question I also have is: do we install a dnsmasq on each proxmox host of a cluster ? Yes. I'm using a lot of vlans with /24, in a 16 proxmox nodes cluster, that mean that I need 16 ips per vlan to manage dhcp. I don't known if it's technically possible to use same ip on each host by vlan (for dhcp reponse of the vm of the hosts), so no need to care (I think?) about arp on the network. or maybe filtering arp for this ip to not going outside. Any idea about this ? Sorry, no idea. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
There is no need to do that if we use a static assignment? What do you mean by static assignment? VM 100 == IP1 VM 200 == IP2 VM XXX == IPYYY And we make sure these mapping do not overlap in out cluster. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
So the first step would be to fínd the latest patches, maybe theses patches: ? [PATCH 1/2] add ip parameter to network settings https://www.mail-archive.com/pve-devel@pve.proxmox.com/msg05026.html {PATCH 2/2] setup DHCP server at vm_start https://www.mail-archive.com/pve-devel@pve.proxmox.com/msg05027.html - Mail original - De: dietmar diet...@proxmox.com À: datanom.net m...@datanom.net, pve-devel pve-devel@pve.proxmox.com Envoyé: Jeudi 12 Février 2015 11:17:04 Objet: Re: [pve-devel] GUI for DHCP Attached image shows what I have in mind. Idea is that users are able to create a DHCP service on every configured device or bridge. There was a long discussion about DHCP in 2013. AFAIK I sent a patch, but I have no idea if that still works, or if someone else sent an implementation. So the first step would be to fínd the latest patches, test them, and re-sent them to the list. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
On Thu, 12 Feb 2015 13:26:23 +0100 (CET) Alexandre DERUMIER aderum...@odiso.com wrote: So the first step would be to fínd the latest patches, maybe theses patches: ? [PATCH 1/2] add ip parameter to network settings https://www.mail-archive.com/pve-devel@pve.proxmox.com/msg05026.html {PATCH 2/2] setup DHCP server at vm_start https://www.mail-archive.com/pve-devel@pve.proxmox.com/msg05027.html From my understanding it seems like dnsmasq is binding unconditionally to every interface? Should it not only bind to selected interfaces? An idea for the need to have assigned an IP for an interface: If user chooses to have DHCP for a specific interface we create an alias interface which listens on broadcast and first IP in subnet for DHCP requests only. This also means first IP in subnet must be reserved if users wants to have DHCP support. -- Hilsen/Regards Michael Rasmussen Get my public GnuPG keys: michael at rasmussen dot cc http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xD3C9A00E mir at datanom dot net http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE501F51C mir at miras dot org http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE3E80917 -- /usr/games/fortune -es says: Support bacteria -- it's the only culture some people have! pgpGoo6P24NBB.pgp Description: OpenPGP digital signature ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
[pve-devel] GUI for DHCP
Hi all, Attached image shows what I have in mind. Idea is that users are able to create a DHCP service on every configured device or bridge. I still need to sort out how to make it available on ovs-bridge. Any ideas? -- Hilsen/Regards Michael Rasmussen Get my public GnuPG keys: michael at rasmussen dot cc http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xD3C9A00E mir at datanom dot net http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE501F51C mir at miras dot org http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE3E80917 -- /usr/games/fortune -es says: Wake up and smell the coffee. -- Ann Landers pgpb6uHdeGx8L.pgp Description: OpenPGP digital signature ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
Re: [pve-devel] GUI for DHCP
Attached image shows what I have in mind. I like this way. I still need to sort out how to make it available on ovs-bridge. Any ideas? I'll try to see how openstack implemented it. (It's working with ovs in openstack) - Mail original - De: datanom.net m...@datanom.net À: pve-devel pve-devel@pve.proxmox.com Envoyé: Mercredi 11 Février 2015 17:44:27 Objet: [pve-devel] GUI for DHCP Hi all, Attached image shows what I have in mind. Idea is that users are able to create a DHCP service on every configured device or bridge. I still need to sort out how to make it available on ovs-bridge. Any ideas? -- Hilsen/Regards Michael Rasmussen Get my public GnuPG keys: michael at rasmussen dot cc http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xD3C9A00E mir at datanom dot net http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE501F51C mir at miras dot org http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE3E80917 -- /usr/games/fortune -es says: Wake up and smell the coffee. -- Ann Landers ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel