I have create a qemu image and installed CentOS in this img,
then I mount the img in /mnt/centos/ ,and chroot into CentOS successfully.
All the command work fine in CentOS, but I can not ping google.com, so I type "ifconfig", it display like the following:
I cd to /proc , it is empty. Am I mount the root file system incorrect?Code:# ifconfig Warning: cannot open /proc/net/dev (No such file or directory). Limited output. Warning: cannot open /proc/net/dev (No such file or directory). Limited output. eth1 Link encap:Ethernet HWaddr 6C:F0:49:E9:0E:65 inet addr:192.168.11.4 Bcast:192.168.11.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:45 Base address:0xe000 Warning: cannot open /proc/net/dev (No such file or directory). Limited output. lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1
Anyone know how to config the chroot network and solve this problem?