From: aderumier@odiso.com
To: Humberto Jose de Sousa <humbertos@ifsc.edu.br>
Cc: "pve-user@pve.proxmox.com" <pve-user@pve.proxmox.com>
Subject: Re: [PVE-User] Cloud-init don't manage resolv.conf on Debian 10
Date: Fri, 22 Jan 2021 10:04:07 +0100 [thread overview]
Message-ID: <666ba844620b56bd12745f6ad9cfce503b44b7a8.camel@odiso.com> (raw)
In-Reply-To: <CAGehcqGggAQxcsq6bh-r08hHCywKbvu21-QJE4kjqG8BsW=bkg@mail.gmail.com>
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
prev parent reply other threads:[~2021-01-22 9:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[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>
[not found] ` <CAGehcqGggAQxcsq6bh-r08hHCywKbvu21-QJE4kjqG8BsW=bkg@mail.gmail.com>
2021-01-22 9:04 ` aderumier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=666ba844620b56bd12745f6ad9cfce503b44b7a8.camel@odiso.com \
--to=aderumier@odiso.com \
--cc=humbertos@ifsc.edu.br \
--cc=pve-user@pve.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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