Re: report on debian-9.0-sparc64-NETINST-1.iso with qemu [SOLVED]
On 27/01/17 18:52, Bruno Haible wrote:
>> But there is a point in Marks reply: maybe nowadays virtio-net also
>> has to be switched into the legacy mode.
>> Instead of "-net nic,model=virtio -net user" can you please try:
>>
>> -netdev user,id=hostnet0 -device
>> virtio-net-pci,disable-modern=off,disable-legacy=off,disable-modern=on,netdev=hostnet0
>
> Yeah! This works! The machine now can connect to the internet.
> The ifconfig output now is:
>
> # /target/sbin/ifconfig
> enp0s5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet 10.0.2.15 netmask 255.255.255.0 broadcast 0.0.0.0
> inet6 fec0::5054:ff:fe12:3456 prefixlen 64 scopeid 0x40<site>
> inet6 fe80::5054:ff:fe12:3456 prefixlen 64 scopeid 0x20<link>
> ether 52:54:00:12:34:56 txqueuelen 1000 (Ethernet)
> RX packets 291 bytes 263098 (256.9 KiB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 174 bytes 15608 (15.2 KiB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
> inet 127.0.0.1 netmask 255.0.0.0
> inet6 ::1 prefixlen 128 scopeid 0x10<host>
> loop txqueuelen 1 (Local Loopback)
> RX packets 0 bytes 0 (0.0 B)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 0 bytes 0 (0.0 B)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> # lsmod | grep virt
> virtio_net 24168 0
> virtio_pci 14583 0
> virtio_ring 12099 2 virtio_net,virtio_pci
> virtio 6188 2 virtio_net,virtio_pci
>
> (qemu) info network
> virtio-net-pci.0: index=0,type=nic,model=virtio-net-pci,macaddr=52:54:00:12:34:56
> \ hostnet0: index=0,type=user,net=10.0.2.0,restrict=off
>
> Thanks a lot!
BTW just a heads-up: I've found and fixed the bug in OpenBIOS which was
causing virtio in its default modern mode to freeze (it was the 64-bit
virtio BAR being programmed incorrectly), and the fix has been merged
into QEMU git master as of yesterday.
So in the upcoming 2.9 release you will no longer need to specify
"disable-modern=on" as part of the qemu-system-sparc64 command line and
"-net nic,model=virtio -net user" will work once again.
ATB,
Mark.
Reply to: