他のアーキテクチャのchrootで名前解決を実行するには?

他のアーキテクチャのchrootで名前解決を実行するには?

Manjaro Linuxを実行しているコンピュータでは、chroot(たとえばArch Linux ARM)内で名前をamd64解決できるようにしたいです。arm残念ながら動作しません。私はこれが他のglibcバージョンと関連している可能性があると思いますが、この問題を解決する方法がわかりません。qemu-static-armこの問題は、AURのプリコンパイル済みパッケージと自己コンパイル済みパッケージの両方に存在します。qemu-user-static

以下は、エラーメッセージを含むゲストシステムに入るために行ったことと、これまでに行ったことです。

[t440s ~]# ping -c 1 unix.stackexchange.com
PING unix.stackexchange.com (151.101.65.69) 56(84) bytes of data.
64 bytes from 151.101.65.69 (151.101.65.69): icmp_seq=1 ttl=60 time=22.5 ms

--- unix.stackexchange.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 22.549/22.549/22.549/0.000 ms
[t440s ~]# mount /dev/mmcblk0p1 root/
[t440s ~]# mount --bind /dev/ root/dev/
[t440s ~]# mount --bind /proc/ root/proc/
[t440s ~]# mount --bind /dev/pts/ root/dev/pts/
[t440s ~]# mount --bind /run/ root/run/
[t440s ~]# cp /usr/bin/qemu-arm-static root/usr/bin/
[t440s ~]# chroot root/ qemu-arm-static /bin/bash
[root@t440s /]# cat etc/resolv.conf 
nameserver 141.1.1.1
[root@t440s /]# ping unix.stackexchange.com
/usr/bin/ping: unix.stackexchange.com: Temporary failure in name resolution
[root@t440s /]# ls -ltr /etc/resolv.conf 
lrwxrwxrwx 1 root root 32 Aug  9 03:54 /etc/resolv.conf -> /run/systemd/resolve/resolv.conf
[root@t440s /]# ls -ltr /run/systemd/resolve/resolv.conf
-rw-r--r-- 1 root root 21 Jan 17 18:42 /run/systemd/resolve/resolv.conf
[root@t440s /]# rm /etc/resolv.conf 
[root@t440s /]# cp /run/systemd/resolve/resolv.conf /etc/
[root@t440s /]# ping unix.stackexchange.com
/usr/bin/ping: unix.stackexchange.com: Temporary failure in name resolution

この技術を使って名前解決を達成するには?

ベストアンサー1

binfmt-qemu-staticAURでもインストールできますか?

おすすめ記事