On Wed, Oct 11, 2017 at 08:08:01AM +0200, Alexandre DERUMIER wrote: > Any comment ?
I've been meaning to look into qemu_fw_cfg more closely. I like the idea, but am wondering if it makes sense to do it this way. It definitely combines well with the cloudinit patch set, but I wonder if it might be useful to be able to pass along other data - either additionally or instead of the config. Mainly I'd like the option to be able to see the vmid, eg. I like deriving ip addresses from the vmid, so if the guest could see that, I could clone and start a template without having to configure anything at all ;-) It could be encoded in the name though... or perhaps an option to pass along a file by path? But that would have to be limited to root... I think we already talked about this a little bit in the early cloudinit patche series... > ----- Mail original ----- > De: "aderumier" <aderum...@odiso.com> > À: "pve-devel" <pve-devel@pve.proxmox.com> > Cc: "aderumier" <aderum...@odiso.com> > Envoyé: Vendredi 6 Octobre 2017 16:49:10 > Objet: [PATCH qemu-server 0/4] qemu_fw_cfg support for vm init > > This patch series add support for qemu_fw_cfg, > which allow to send through a firmware the content the vmid.conf. > > It's add ipconfig,searchdomain,nameserver && sshkey like lxc. > > The main usage is to bootstrap a new vm, setup network configuration or other > init configs. > > > > > Alexandre Derumier (4): > add qemu firmware cfg > add ipconfigX to vm config > add searchdomain, nameserver && sshkey option > add firstboot debian sample > > PVE/API2/Qemu.pm | 2 +- > PVE/QemuServer.pm | 124 > ++++++++++++++++++++++++++++++++++++++++++++++++++++-- > firstboot.debian | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 241 insertions(+), 4 deletions(-) > create mode 100755 firstboot.debian _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel