Re: How to setup network connection for initramfs running in QEMU?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Douglas,

Do you've /etc/hosts ? Have you tried giving the loopback address in that file?

Just check any /etc/hosts file from another distribution and hack on it to at least have loopback address pinged. Then we'll try to fix machine to machine ping. (Tun-tap? Not sure really.)




On 26-May-2017 8:34 AM, "Douglas Su" <d0u9.su@xxxxxxxxxxx> wrote:
Thanks to this mail list, I have already successfully set up a simple initramfs and booted it in QEMU with busybox tools.

However, there is no network connection for the initramfs, that makes me hard to exchange files between qemu and the host.

Command `ip link show` tells there exists only one 'lo' interface, and I can't ping 127.0.0.1 successfully.

So how to boot initramfs in qemu with full network support?

Best regards.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux