Solve ArchLinux network issue on Qemu

Huy
The Full Snack Developer
1 min readJul 7, 2016

If you are installing ArchLinux on Qemu, you may experience some networking problem such as losing internet connection after installed.

The simple way to fix it is, boot the Qemu machine with -net nic -net user parameter and start the network devices manually in Arch.

Start Qemu with this parameters:

qemu-system-x86_64 -vga std -m 2048 -hda hdd.img -net nic -net user

After boot, add this script to ArchLinux’s .bash_profile:

ip link set up lo 
ip link set up ens3
dhcpcd

Now you can restart the VM and network will be ready.

Originally published at github.com.

--

--

Huy
The Full Snack Developer

I write code, draw stuff. Currently interested in Machine Learning and Note Taking Techniques.