all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* Re: [PVE-User] Cloud-init don't manage resolv.conf on Debian 10
       [not found] <mailman.591.1611243365.344.pve-user@lists.proxmox.com>
@ 2021-01-21 16:50 ` aderumier
       [not found]   ` <CAGehcqEo+bDhSxbUa5ub_Nb-ZjMycFmed8JrHUAOakRKdYpmkA@mail.gmail.com>
  0 siblings, 1 reply; 2+ messages in thread
From: aderumier @ 2021-01-21 16:50 UTC (permalink / raw)
  To: Proxmox VE user list, pve-user

Le jeudi 21 janvier 2021 à 12:34 -0300, Humberto Jose de Sousa via pve-
user a écrit :
> Hello folks.
> 
> I'm trying to use cloud-init in a VM with a fresh install of Debian
> 10. All
> works, except resolv.conf.
> 
> Anyone could give a tip?
> 
> I'm on the latest proxmox no-subscription. I configured the cloud-
> init
> through a web interface.
> In the VM I installed the cloud-init package. I also tried to install
> the
> resolvconf package, but it did not work.

Hi,

cloud-init write dns config in /etc/network/interfaces.d/cloudinit.cfg.

this is working for ubuntu, because /etc/resolv.conf is not a real
file,
but a symlink manage by resolvconf package (or systemd-resolvd I'm not
sure).


you can try to install "resolvconf" package on debian, it should works


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PVE-User] Cloud-init don't manage resolv.conf on Debian 10
       [not found]     ` <CAGehcqGggAQxcsq6bh-r08hHCywKbvu21-QJE4kjqG8BsW=bkg@mail.gmail.com>
@ 2021-01-22  9:04       ` aderumier
  0 siblings, 0 replies; 2+ messages in thread
From: aderumier @ 2021-01-22  9:04 UTC (permalink / raw)
  To: Humberto Jose de Sousa; +Cc: pve-user

it's works for me with resolvconf  and config in lo interface.

#apt install resolvconf
(verify that /etc/resolv.conf is now a symlink)

#echo "" > /etc/resolv.conf

reboot

after reboot /etc/resolv.conf values are same than
/etc/nework/interfaces.d/50-cloud-init

Le jeudi 21 janvier 2021 à 19:41 -0300, Humberto Jose de Sousa a
écrit :
> I verified the file content that you pointed:
> 
> cat /etc/network/interfaces.d/50-cloud-init
> auto lo
> iface lo inet loopback
>     dns-nameservers x.x.x.x x.x.x.x
>     dns-search xx.xxxx.edu.br
> 
> auto eth0
> iface eth0 inet static
>     address x.x.x.x/xx
>     gateway x.x.x.x
> 
> I think that problem is because the dns parameters are written in the
> loopback interface. This happen to you?
> 
> The resolvconf package didn't work.
> 
> Em qui., 21 de jan. de 2021 às 15:25, Humberto Jose de Sousa
> <humbertos@ifsc.edu.br> escreveu:
> >
> > I verified the file content that you pointed:
> >
> > cat /etc/network/interfaces.d/50-cloud-init
> > auto lo
> > iface lo inet loopback
> >     dns-nameservers x.x.x.x x.x.x.x
> >     dns-search xx.xxxx.edu.br
> >
> > auto eth0
> > iface eth0 inet static
> >     address x.x.x.x/xx
> >     gateway x.x.x.x
> >
> > I think that problem is because the dns parameters are written in
> the loopback interface. This happen to you?
> >
> > The resolvconf package didn't work.
> >
> > Em qui., 21 de jan. de 2021 às 13:50, <aderumier@odiso.com>
> escreveu:
> >>
> >> Le jeudi 21 janvier 2021 à 12:34 -0300, Humberto Jose de Sousa via
> pve-user a écrit :
> >>
> >> Hello folks.
> >>
> >> I'm trying to use cloud-init in a VM with a fresh install of
> Debian 10. All
> >> works, except resolv.conf.
> >>
> >> Anyone could give a tip?
> >>
> >> I'm on the latest proxmox no-subscription. I configured the cloud-
> init
> >> through a web interface.
> >> In the VM I installed the cloud-init package. I also tried to
> install the
> >> resolvconf package, but it did not work.
> >>
> >>
> >> Hi,
> >>
> >> cloud-init write dns config in
> /etc/network/interfaces.d/cloudinit.cfg.
> >>
> >> this is working for ubuntu, because /etc/resolv.conf is not a real
> file,
> >> but a symlink manage by resolvconf package (or systemd-resolvd I'm
> not sure).
> >>
> >>
> >> you can try to install "resolvconf" package on debian, it should
> works
> 
> 
> 
> --
> 
> Humberto José de Sousa
> 
> Analista de TI - CTIC
> 
> (48) 3381-2821
> 
> Instituto Federal de Santa Catarina - Câmpus São José
> 
> R. José Lino Kretzer, 608, Praia Comprida, São José / SC - CEP:
> 88103-310
> 
> https://www.ifsc.edu.br/web/campus-sao-jose



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-22  9:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.591.1611243365.344.pve-user@lists.proxmox.com>
2021-01-21 16:50 ` [PVE-User] Cloud-init don't manage resolv.conf on Debian 10 aderumier
     [not found]   ` <CAGehcqEo+bDhSxbUa5ub_Nb-ZjMycFmed8JrHUAOakRKdYpmkA@mail.gmail.com>
     [not found]     ` <CAGehcqGggAQxcsq6bh-r08hHCywKbvu21-QJE4kjqG8BsW=bkg@mail.gmail.com>
2021-01-22  9:04       ` aderumier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal