Hello
I see this page
https://github.com/xhjcehust/qemu-virtnet-loopback
You are so kind to tell me the network arguments part for connecting on Windows host (with configurated loopback interface named retealoopback)
I tried:
-netdev tap,id=mynet1,ifname=retealoopback -device virtio-net-pci,netdev=mynet1
as second network adapter
Qemu output was:
tap: Could not open 'retealoopback' - on standard output stream
and
C:\Program Files\qemu\qemu-system-x86_64.exe: -netdev tap,id=mynet1,ifname=retealoopback: Device 'tap' could not be initialized - on Debug(error) output stream
Context was:
C:\Users\antonio.apostoliu>ipconfig
....
Ethernet adapter retealoopback:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 192.168.209.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
.....
C:\Users\antonio.apostoliu>
I used:
The loopback interface was configurated with next powershell script
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
$NIC_NAME = "retealoopback"
$IpAddress='192.168.209.1'
$PrefixLength=24
[string] $strFilenameTranscript = "retealoopback.log"
Start-Transcript -path $strFilenameTranscript | Out-Null
.\devcon.exe -r install $env:windir\Inf\Netloop.inf *MSLOOP | Out-Null
$eth_loopback = Get-NetAdapter|where{$_.DriverDescription -eq "Microsoft KM-TEST Loopback Adapter"}
Rename-NetAdapter -Name $
eth_loopback.name -NewName $NIC_NAME
if ($IpAddress){
New-NetIPAddress -InterfaceAlias $NIC_NAME -IPAddress $IpAddress -PrefixLength $PrefixLength -AddressFamily ipv4
}
Set-NetIPInterface -InterfaceIndex $eth_loopback.ifIndex -InterfaceMetric "254" -WeakHostReceive Enabled -WeakHostSend Enabled
Disable-NetAdapterBinding -Name $NIC_NAME -ComponentID ms_msclient
Disable-NetAdapterBinding -Name $NIC_NAME -ComponentID ms_pacer
Disable-NetAdapterBinding -Name $NIC_NAME -ComponentID ms_server
Disable-NetAdapterBinding -Name $NIC_NAME -ComponentID ms_tcpip6
Disable-NetAdapterBinding -Name $NIC_NAME -ComponentID ms_lltdio
Disable-NetAdapterBinding -Name $NIC_NAME -ComponentID ms_rspndr
Stop-Transcript
Best regards