qemu-discuss
[Top][All Lists]
Advanced

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

Re: [Qemu-discuss] qemu-system-sparc and network devices


From: Scott Harris
Subject: Re: [Qemu-discuss] qemu-system-sparc and network devices
Date: Sat, 3 Feb 2018 16:30:16 -0600
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

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





reply via email to

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