Re: add vEthernet to QEMU

2024-02-01 Thread Howard Spoelstra
On Thu, Feb 1, 2024 at 11:23 PM Michele Denber  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


Re: add vEthernet to QEMU

2024-02-01 Thread Michele Denber

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


Re: add vEthernet to QEMU

2024-02-01 Thread Howard Spoelstra
On Thu, Feb 1, 2024 at 5:39 PM Michele Denber  wrote:

> On 1/31/2024 8:29 AM, Sanjeev Kumar wrote:
>
> Hi,
> I am starting QEMU with option
>
> *-netdev tap,id=mynet0,ifname=TAP_Ethernet,script=no,downscript=no*
>
> TAP_Ethernet is a TAP Windows Adapter v9 created using openVPN.
>
> by this way, i am able to send data from windows to QEMU through TAP
> adapter.
>
>
> I have the same setup but that option doesn't work for me:
>
> 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
> -netdev tap,id=mynet0,ifname=tap0,script=no,downscript=no
> qemu-system-sparc: warning: netdev mynet0 has no peer
> qemu-system-sparc: warning: nic lance.0 has no peer
>
> The VM starts but ping to any host on the LAN fails.  How do you have your
> tap device configured?
>
> - Michele
>

Hi,

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

Best,
Howard


Re: add vEthernet to QEMU

2024-02-01 Thread Michele Denber

On 1/31/2024 8:29 AM, Sanjeev Kumar wrote:

Hi,
I am starting QEMU with option

/-netdev tap,id=mynet0,ifname=TAP_Ethernet,script=no,downscript=no/
/
/
TAP_Ethernet is a TAP Windows Adapter v9 created using openVPN.

by this way, i am able to send data from windows to QEMU through TAP
adapter.


I have the same setup but that option doesn't work for me:

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 
-netdev tap,id=mynet0,ifname=tap0,script=no,downscript=no
qemu-system-sparc: warning: netdev mynet0 has no peer
qemu-system-sparc: warning: nic lance.0 has no peer

The VM starts but ping to any host on the LAN fails.  How do you have
your tap device configured?

            - Michele


add vEthernet to QEMU

2024-01-31 Thread Sanjeev Kumar
Hi,
I am starting QEMU with option

*-netdev tap,id=mynet0,ifname=TAP_Ethernet,script=no,downscript=no*

TAP_Ethernet is a TAP Windows Adapter v9 created using openVPN.

by this way, i am able to send data from windows to QEMU through TAP
adapter.

similarly, can i have Hyper-V Virtual Ethernet Adapter associated to QEMU?

Thanks & Regards,
Sanjeev.