Par*_*ikh 9 arch-linux internet virtualbox
我已经在 VirtualBox 上成功安装了 Arch Linux,但 Internet 无法在其中运行。安装过程中互联网连接没有问题,但是当我从虚拟硬盘驱动器(使用 syslinux 引导加载程序)启动时,我无法连接到互联网。
当我从安装 CD 启动并挂载根分区,然后从# arch-chroot
Internet使用已安装的系统时运行良好,根本不执行任何操作,并# ip link
显示两个界面lo
和eth0
当我尝试使用# systemctl enable dhcpcd@enp3s0.service
命令时,它给出错误“操作失败:没有这样的文件或目录但是# ip link
说有两个接口lo
和enp3s0
.
我想知道为什么同一个以太网端口有两个不同的名称?更重要的是我该如何解决这个问题?
vfb*_*lva 11
在 Virtualbox 上以访客身份安装 Archlinux
2013 年 3 月 15 日晚上 11:54
基本上,您可以按照本指南进行操作,但还需要采取一些额外的步骤。 https://wiki.archlinux.org/index.php/Installation_guide#Installation
修复网络:
/usr/sbin/dhcpcd enp0s3 to check that you can load the dhcp client.
ln -s '/usr/lib/systemd/system/dhcpcd@.service' '/etc/systemd/system/multi-user.target.wants/dhcpcd@enp0s3.service'
change the references to eth0 in /etc/ifplugd/ifplugd.conf
create a profile for enp0s3 in /etc/network.d/interfaces by copying the example (this seems to be overwritten by the netcfg-auto-wired).
start and enable the auto service with systemctl
Run Code Online (Sandbox Code Playgroud)
请记住,如果没有网络,您将无法从网络获取软件包:(
相关链接
初学者指南:https : //wiki.archlinux.org/index.php/Beginners%27_guide#Installation
修复网络:https : //bbs.archlinux.org/viewtopic.php? pid = 1243601
我刚刚遇到了同样的问题。解决方案很简单:
systemctl start dhcpcd.service
之后一切(ping、pacman 等)都开始工作了。
顺便说一句:# systemctl enable dhcpcd@enp3s0.service
有一个错字。应该是enp0s3。解释你没有这样的文件或目录错误;)
归档时间: |
|
查看次数: |
26018 次 |
最近记录: |