我当时认为64位主机可以启动32位LXC,因为我们可以选择在创建LXC时指定arch.
@H_301_5@ hostmc$> lxc-create -n ubuntu -t ubuntu -- i386
主机:
@H_301_5@ hostmc$> uname -a Linux D 3.11.0-26-generic #45~precise1-Ubuntu SMP Tue Jul 15 04:02:35 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
但是然后登录到32位LXC容器时,我发现uname -a将arch指定为x86_64,甚至运行文件命令也将arch指定为x86_64而不是i386
@H_301_5@ hostmc$> lxc-console -n ubuntu
ubuntu@ubuntu:~$uname -a
Linux ubuntu 3.11.0-26-generic #45~precise1-Ubuntu SMP Tue Jul 15 04:02:35 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@ubuntu:~$file /bin/ls
/bin/ls: ELF 64-bit LSB executable,x86-64,version 1 (SYSV),dynamically linked (uses shared libs),for GNU/Linux 2.6.24,BuildID[sha1]=0x37cdd635587f519989044055623abff939002027,stripped