[pve-devel] rfc : implementing a cloudinit metadata server
Alexandre DERUMIER
aderumier at odiso.com
Fri Sep 1 10:03:52 CEST 2017
>>Also, does this method work for windows guest?
this windows cloudinit implementation
https://cloudbase.it/cloudbase-init/
support both http and configdrive methods
----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Vendredi 1 Septembre 2017 06:35:02
Objet: Re: [pve-devel] rfc : implementing a cloudinit metadata server
> on proxmox host, we add an iptables rules like
>
> iptables -t nat -A PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --port 80 -j
> DNAT - to-destination <proxmoxhostip>:8006
>
> to redirect request to proxmox host.
>
> (Not sure if we need to implement a separate daemon, or reuse pveproxy and add
> openstack endpoints)
This would expose the API server to all guests, so I guess it would be better
toö use a separate daemon instead.
> Now, the tricky part, is that we need to make api responding the correct datas
> for the correct client.
> I don't have found how they are doing that in openstack or ec2,
>
> but I think it could be possible to check client macaddress in arp table from
> the src ip 169.254.x.x, then from mac address, find vmid.
>
>
> What do you think about it ?
Sounds good, but you need to find a reliable way to detect the correct client.
Also, does this method work for windows guest?
More information about the pve-devel
mailing list