VirtualBox의 Linux에서 Virtualbox 인터넷 연결 문제 파티션을 마운트 한 다음 # arch-chroot인터넷

VirtualBox에 Arch Linux를 성공적으로 설치했지만 인터넷이 작동하지 않습니다. 설치하는 동안 인터넷 연결에 문제가 없었지만 가상 하드 드라이브 (syslinux bootloader를 사용하여)로 부팅 할 때 인터넷에 연결할 수 없습니다.

설치 CD로 부팅하고 루트 파티션을 마운트 한 다음 # arch-chroot인터넷 에서 설치된 시스템을 사용하면 아무것도하지 않고도 잘 작동하며 # ip link두 가지 인터페이스 loeth0

내가 사용하려고하면 # systemctl enable dhcpcd@enp3s0.service해당 파일 또는 디렉토리는 그러나 : 명령을,이 작업이 실패 오류 ‘를 제공하지 않습니다 # ip link거기에 두 개의 인터페이스가 말한다 loenp3s0.

동일한 이더넷 포트에 대해 두 개의 다른 이름이있는 이유를 알고 싶습니다. 이 문제를 어떻게 해결해야합니까?



답변

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

네트워크 없이는 네트워크에서 패키지를 가져올 수 없습니다.

관련 링크

초보자 가이드 : https://wiki.archlinux.org/index.php/Beginners%27_guide#Installation
네트워크 수정 : https://bbs.archlinux.org/viewtopic.php?pid=1243601


답변

방금 같은 문제가 발생했습니다. 해결책은 간단했습니다.
systemctl start dhcpcd.service

그 후 모든 것이 (핑, 팩맨 등) 작동하기 시작했습니다.

BTW : # systemctl enable dhcpcd@enp3s0.service오타가 있습니다. enp0s3이어야합니다. No such file or directory 오류를 설명합니다.)