qemu-discuss
[Top][All Lists]
Advanced

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

Re: add vEthernet to QEMU


From: Howard Spoelstra
Subject: Re: add vEthernet to QEMU
Date: Fri, 2 Feb 2024 00:39:47 +0100



On Thu, Feb 1, 2024 at 11:23 PM Michele Denber <mdenber@gmx.com> wrote:
On 2/1/2024 1:13 PM, Howard Spoelstra wrote:


This is from our guide to qemu-system-ppc with tap networking:

Install an OpenVPN tap device and bridge it with your normal ethernet connection. Then use the following on the Qemu-system-ppc command line:

-device sungem,netdev=network01
-netdev tap,ifname=TapEthernet1,id=network01
(replace “TapEthernet1” with the name of the tap device as shown in the Windows network connections)

 Which works just fine for qemu-system-ppc guests without configuring anything else on the tap device. You need both these lines, otherwise the lance network device indeed has no peer:

-device lance,netdev=mynet0
-netdev tap,ifname=TAP_Ethernet,id=mynet0

and then configure the network in the solaris guest....

Thanks for the reply.  I had actually tried that before but that doesn't work either.

C:\Program Files\qemu>qemu-system-sparc -machine SS-5 -m 64 -drive file=sunos-hdd.img,bus=0,unit=3,media=disk -device scsi-cd,channel=0,scsi-id=6,id=cdrom,drive=cdrom,physical_block_size=512 -drive if=none,file=Solaris1.1.2SPARC.iso,media=cdrom,id=cdrom -vga cg3 -device lance,netdev=mynet0 -netdev tap,id=mynet0,ifname=tap0,script=no,downscript=no

qemu-system-sparc: -device lance,netdev=mynet0: Parameter 'driver' expects a pluggable device type


            - Michele


Ah, it seems qemu-system-sparc does not support that syntax. This one line should enable the tap device:
-nic tap,model=lance,ifname=tap0
 
Did you configure the guest? There are some hints here how to set up the router etc.:
https://en.wikibooks.org/wiki/QEMU/SunOS_4.1.4

Best,
Howard

reply via email to

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