Name resolution does not work in chrooted ArchLinux ARM
4
votes
1
answer
1540
views
### What I did
Install qemu, qemu-arch-extra, qemu-user-static (AUR) in ArchLinux X86_64.
systemd takes care of the binfmt, verified from
/proc/sys/fs/binfmt_misc/
.
Download ArchLinux ARM tarball from its website. The direct link is this
http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
.
Extract it in a folder with sudo bsdtar -xpf
command. Copy the
/usr/bin/qemu-aarch64-static
file into that folder. Chroot with arch-chroot
.
In commandline:
sudo pacman -S qemu qemu-arch-extra
sudo yay -S qemu-user-static
sudo bsdtar -xpf ArchLinuxARM-aarch64-latest.tar.gz -C folder
ls /proc/sys/fs/binfmt_misc/
sudo cp /usr/bin/qemu-aarch64-static folder/usr/bin
sudo arch-chroot folder
### Result
In the chrooted environment, I can ping any IP address but can not ping any
remote host (e.g. example.com
) i.e. name resolution does not work.
/etc/resolv.conf
file is populated. ip
shows correct configs of NICs.
So, how can I enable name resolution in chrooted ArchLinux ARM? I have tried
the same procedure in Ubuntu X86_64 with chrooted into Ubuntu AARCH64. It works.
Asked by Biswapriyo
(758 rep)
Nov 27, 2019, 03:46 PM
Last activity: Jan 24, 2020, 05:47 PM
Last activity: Jan 24, 2020, 05:47 PM