[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] qemu-system-sparc and network devices
From: |
Jan Orliński |
Subject: |
Re: [Qemu-discuss] qemu-system-sparc and network devices |
Date: |
Wed, 7 Feb 2018 09:22:04 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Hi,
thank You for Your answers.
As I stated before the problem is that qemu-system-sparc does not seem
to support the NIC. When I append the following line to the qemu parameters:
-netdev tap,id=net1,ifname=tap0,script=qemu-ifup,downscript=no -net
nic,netdev=net1,model=lance
I get following warnings:
Warning: netdev net1 has no peer
Warning: requested NIC (anonymous, model lance) was not created (not
supported by this machine?)
Note that qemu-ifup is a script that adds the interface tap0 to a
network bridge (created earlier with brctl). Interface tap0 is created
before the qemu is run with:
tunctl -u <user> -t tap0
The second warning complains about the lack of support for the NIC. The
first warning is caused by a fact that the network backend (tap device)
is not connected to any frontend NIC I guess.
Regards,
Jan Orliński
On 03/02/2018 23:30, Scott Harris wrote:
> Hi
>
> The qemu-system-sparc has a 'lance' model NIC built in and so doesn't
> require adding it as a device to the configuration. For my application
> that involves getting Sparcstation2 software to run on a Linux PC, the
> command line looks something like :
>
> qemu-system-sparc -M "SS-5" -m 256\
> -nographic -parallel vc\
> -name "Netbsd 5"\
> -drive "file=Boot.qcow2,index=0,media=disk"\
> -boot order=cd,menu=off\
> -net nic,vlan=0,model=lance,macaddr=DE:AD:BE:EF:F3:E5\
> -net tap,vlan=0,ifname=tap0,script=no,downscript=no\
> -localtime
>
> The file 'qemu-ifup' is required prior to running qemu-system-sparc to
> create a tap0 and then bridge it to the host's eth0 device (for my
> case). This works fine and gives the virtual sparc machine access to
> my local network where a dhcp server will give it a local IP address
> and everybody is happy.
>
> This setup works fine for my purposes but the '-net' option is
> deprecated. I personally would like to avoid the deprecated options
> but I can't actually get the recommended '-netdev' option to work
> properly with qemu-system-sparc. You can't actually add a 'lance'
> device to the virtual sparc machine because one is built in and you
> apparently can't have more than one NIC in a typical SparcStation5 (or
> similar) system. Any attempts I have made to set the lance NIC device
> global prameters on the command line seem to work fine (or at least
> don't flag an error) but the virtual machine NIC still fails to have a
> MAC address assigned to it (other than 00:00:00...) and the bridged
> networking fails. HTH
>
> Best regards
> Scott Harris, P.Eng.
>
> S
> On 2018-02-02 6:23 AM, Jan Orliński wrote:
>> Hi,
>>
>> I was recently doing some development for sparc architecture and
>> realized that qemu-system-sparc does not support any NIC. When I list
>> available devices with `qemu-system-sparc -device ?` no network device
>> appears. I tried it with Qemu versions 2.0, 2.9 and 2.11. Does it mean
>> that Qemu for sparc does not support any network device? I find this odd
>> as the qemu-system-sparc64 seems to support a long list of NICs. I found
>> a thread [Qemu-discuss] need help in setting up tap networking for using
>> qemu vir
>> <https://lists.gnu.org/archive/html/qemu-discuss/2014-09/msg00056.html>
>> describing the LAN9220 usage, so I guess it is somehow possible (by
>> applying some patch maybe?).
>>
>> Thanks,
>>
>> Jan
>>
>
>