You are not logged in.

#1 2016-02-04 02:14:02

Trieforce
Member
Registered: 2010-12-11
Posts: 88

ubuntu contained in systemd-nspawn can't seam to pickup nameservers

Arch host obviously. If I directly put nameserver in to resolve.conf all works, but I have to do it at every boot.

I installed ubuntu this way

sudo debootstrap --no-check-gpg --include=vim,dialog,apt,wget,debconf,dbus,devscripts,gnupg  wily ubuntu

I enabled networkd and resolve inside container and removed "update-rc.d networking remove", but nothing happens. I have an ubuntu on webhost and it does not even run networkd.

I am not sure it is apropriate, but I have seen many people here using ubuntu in containers, may be some of you will know. Also nspawn is in-existent in forum.ubuntu.com.

Problem:

ping google.com
ping: unknown host google.com

Last edited by Trieforce (2016-02-04 02:42:00)

Offline

#2 2016-02-04 06:58:53

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: ubuntu contained in systemd-nspawn can't seam to pickup nameservers

Trieforce wrote:

If I directly put nameserver in to resolve.conf all works, but I have to do it at every boot.

resolv.conf of Arch or Ubuntu? If it's ubuntu, then you mean that the file becomes empty everytime you boot? In that case, try setting the immutable attribute on the file.

Offline

#3 2016-02-04 11:12:54

Trieforce
Member
Registered: 2010-12-11
Posts: 88

Re: ubuntu contained in systemd-nspawn can't seam to pickup nameservers

On the ubuntu. It is no use to set immutable because it's a link to run and the file is generated by systemd.

Ubuntu, in general starts trowing errors here and there when I try to use apt. I think it has something to do with packages I have. Just installing ubuntu-standard gives me problems.

I begin to remember why I switched to arch in the first place...

Offline

Board footer

Powered by FluxBB