所以我已经完成了调查这个问题的工作......
我最近使用 VirtualBox 在我的 LinuxMint 机器上创建了一个 CentOS 6 虚拟机。我在创建时保留了所有推荐值(8GB HDD、512MB RAM、等等等等……)。但它无法连接到互联网!当我尝试 ping 外部网络 (google.com) 时,它无法识别主机:
ping: unknown host google.com
Run Code Online (Sandbox Code Playgroud)
当我尝试 ping 我的主机盒的内部 IP 时,它说:
connect: Network is unreachable
Run Code Online (Sandbox Code Playgroud)
(也许它可以看到我的主机网络,只是不知道它的路由?)
我已经清除了我的iptables
,使用了 VirtualBox 提供的每个给定的网络适配器,并使用了 NAT 和桥接适配器模式。我还从 Google 上收获了我在精神上所能找到的一切。
当我ifconfig
只显示lo
接口(环回)时,除非我eth0
通过ifcfg-eth0
文件(set ONBOOT="yes"
)手动启用接口并重新启动。但是当我启用该eth0
接口时,它不显示 IP;只是 MAC 和 IPv6 之一。我认为它根本不是主机的互联网或到来宾操作系统的链接......我设置了一个 WinXP VM,它可以访问互联网。
也许答案比我想象的更明显?
当我尝试从 GRUB 启动到操作系统时,缺少 Windows 7 BOOTMGR。在分区或其他任何方面,我都无法成为专业人士,所以这里是 gparted 的图像:
和复制粘贴/boot/grub/menu.lst
:
# general configuration:
timeout 10
default 0
color light-blue/black light-cyan/blue
# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*
# (0) Arch Linux
title Arch Linux
root (hd0,4)
kernel /vmlinuz-linux root=/dev/sda4 ro
initrd /initramfs-linux.img
# (1) Arch Linux
title Arch Linux Fallback
root (hd0,4) …
Run Code Online (Sandbox Code Playgroud)