qemu-discuss
[Top][All Lists]
Advanced

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

Re: [Qemu-discuss] [Qemu-arm] Ubuntu installation shows "No network inte


From: Peter Maydell
Subject: Re: [Qemu-discuss] [Qemu-arm] Ubuntu installation shows "No network interfaces detected"
Date: Fri, 12 Apr 2019 09:33:01 +0100

On Thu, 11 Apr 2019 at 23:16, Da Zhang <address@hidden> wrote:
>
> Hi guys,
>
> I am trying to create an Ubuntu ARM disk image for my gem5 ARM experiments. 
> The installation always shows "No network interfaces detected".
> This is my command for running qemu:
>
> qemu-system-aarch64 \
>     -cpu host \
>     -device virtio-scsi-device \
>     -device scsi-cd,drive=cdrom \
>     -device virtio-blk-device,drive=hd0 \
>     -drive 
> "file=ubuntu-16.04.5-server-arm64.iso,id=cdrom,if=none,media=cdrom" \
>     -drive "if=none,format=qcow2,file=ubuntu-16.04.5-server-arm64.img,id=hd0" 
> \
>     -pflash "ubuntu-16.04.5-server-arm64-flash0.img" \
>     -pflash "ubuntu-16.04.5-server-arm64-flash1.img" \
>     -m 1G \
>     -machine virt \
>     -enable-kvm \
>     -nographic \
>     -net nic,netdev=n1 \
>     -netdev user,id=n1 \
>     ;

This command line doesn't specify any ethernet device
interfaces, which is why you have no networking.
I would recommend
 -netdev user,id=mynet -device virtio-net-pci,netdev=mynet

though other kinds of network device will work too,
like the rtl8139 that Narcis suggests. virtio-net will
give the best performance.

PS: I have suggested virtio-net-pci because we recommend
the PCI virtio over the virtio-mmio that your command
line is using for virtio-blk. Your guest OS will need to
have the PCI support enabled, though. There is also a
virtio-net-device which will use virtio-mmio. If PCI
works for you I would suggest switching your virtio-blk-device
use to virtio-blk-pci, and similarly for virtio-scsi-pci.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]