Networking ETH Oberon on QEMU.
Hi, Strictly this is a QEMU question but someone here might be able to answer. This command produces error reply "qemu-system-i386: Invalid parameter 'net'". qemu-system-i386 -drive file=$Sysdev,format=raw \ -netdev tap,id=n1,ipv4=on,ipv6=off,net=172.23.8.0/24,host=172.23.8.2 \ -device ne2k_pci,netdev=n1 Therefore try this. The intention is qemu host 172.23.8.1 and qemu guest 172.23.8.2. (Note the ambiguity of "host".) qemu-system-i386 -drive file=$Sysdev,format=raw \ -netdev user,id=n1,ipv4=on,ipv6=off,net=172.23.8.0/24,host=172.23.8.2 \ -device ne2k_pci,netdev=n1 A working guest system is produced. Good. Check whether the interface is created. ip addr show | grep 172.23.8.1 ip addr show | grep 172.23.8.2 No result. No interface. (I don't really expect the second to work from the host side.) Has anyone made a network connection with Oberon on QEMU? Ideas? Thanks, ... P. -- https://en.wikibooks.org/wiki/Medical_Machines https://en.wikibooks.org/wiki/Oberon Tel: +1 604 670 0140 Bcc: peter at easthope. ca
On Mon, 6 Jul 2020 at 18:23, <peter@easthope.ca> wrote:
Hi,
Strictly this is a QEMU question but someone here might be able to answer.
This command produces error reply "qemu-system-i386: Invalid parameter 'net'".
qemu-system-i386 -drive file=$Sysdev,format=raw \ -netdev tap,id=n1,ipv4=on,ipv6=off,net=172.23.8.0/24,host=172.23.8.2 \ -device ne2k_pci,netdev=n1
Oh my word. That's a long command line. Is this is a x86 guest on an x86 host? And is the host running Linux? Is the CPU of the host machine under, say, a decade old? If so, it should have hardware virtualisation. I can state with reasonable confidence that if it does have hardware virtualisation, that Oberon or at least A2 works under it, because I run A2 under VirtualBox which uses the same hardware virtualisation. As such, you could use the KVM Virtual Machine Manager to set up and configure your guest VM -- KVM just calls QEMU in order to create drives, set up memory etc. This is considerably easier and gives you a (reasonably) friendly GUI to set up networking and so on. If you use GNOME, GNOME Boxes wraps KVM in an easier GUI. If you *don't* use Linux, and I think QEMU only runs on xNix and Windows, then if you are using macOS or Windows, VirtualBox is free, FOSS (so long as you don't use the Extension Pack, which I think offers no functionality Oberon or A2 can use) and will do the same job much more easily. (****** -- Liam Proven – Profile: https://about.me/liamproven Email: lproven@cix.co.uk – gMail/gTalk/gHangouts: lproven@gmail.com Twitter/Facebook/LinkedIn/Flickr: lproven – Skype: liamproven UK: +44 7939-087884 – ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053
Am 06.07.2020 um 18:22 schrieb peter@easthope.ca:
Strictly this is a QEMU question but someone here might be able to answer.
This command produces error reply "qemu-system-i386: Invalid parameter 'net'".
qemu-system-i386 -drive file=$Sysdev,format=raw \ -netdev tap,id=n1,ipv4=on,ipv6=off,net=172.23.8.0/24,host=172.23.8.2 \ -device ne2k_pci,netdev=n1
You should decide if you want to use TAP networking or USER networking... USER networking: Qemu will emulate a virtual NAT inside the guest, and will take care of dhcp and giving the guest an IP address. The host does not see anything in the network configuration. Like with your broadband router, if you want to connect from host to guest, you need to add port forwardings and connect to your host's IP address. Easy to set up, does not require root, and you don't have to reconfigure your host. But doing anything but TCP and UDP is tricky (like if you want to do NetBEUI or IPX for old DOS games...) TAP networking: Qemu will emulate a network adapter which also appears on the host. You cannot configure any IPs etc. in qemu, as Qemu does not care about IP (it does not even care that you speak TCP/IP over it). So you have to configure the IP of your guest and host manually (via OS settings). So this is more flexible, but also more work to set up. If your guest needs a DHCP server, you have to run one on your host. To use tap networking, you just need to give -netdev tap,id=n1 and configure all the rest on the newly appearing TAP device.
Therefore try this. The intention is qemu host 172.23.8.1 and qemu guest 172.23.8.2. (Note the ambiguity of "host".)
Then you want netdev=user and host=172.23.8.1 and dhcpstart=172.23.8.2 (in case you want the IP assigned via DHCP).
Has anyone made a network connection with Oberon on QEMU? Ideas?
What Oberon version exactly? A few years ago, I was able to set up networking on ETH Native Oberon (not on qemu though), but I could not use the built-in networking (various 3com cards supported only) as those cards are not emulated by VirtualBox (which I used instead of qemu). Instead I used a PPP link via virtual serial port connected to a second VM running Linux and pppd. That Linux VM had a virtual network nic attached and was set up to forward the IP traffic. That same setup should work on QEMU, too (and if your host is Linux, you can probably skip the Linux VM and run pppd directly on it). I don't know what network cards are supported by QEMU, but I am pretty sure that the NE2000 network driver selected by your command line is not supported by ETH Native Oberon... Regards, Michael
participants (3)
-
Liam Proven -
Michael Schierl -
peter@easthope.ca