Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Andrew-R

macrumors member
Original poster
May 18, 2024
68
10
Well, I finally did it! (had this idea for looong ime, to try and network two qemu instances so they can compile stuff together)


I am not sure if it makes sense for PowerPC/OSX as host (new qemu is no go there) but because some qemu machines only single CPU, or, like in sparc case -smp 2 is unstable in NetBSD this can be useful for some speedups!


I used this guide as starting point:

and this page for qemu networking:


img:

There also was lnk for OSX 10.4/10.3 PPC cross-compiler setup


But I m not sure how well you can replicate that (re to all those users who have slow ppc laptops).
 
  • Like
Reactions: Matias_

lol, it even works (today I learned that our cloud provider can also host simple static websites (Google apparently can too, like Amazon Web Services ...) and used s3cmd (+ also firefox browser 140.something from Slackware 15.0 - so not purely modern-free solution) for uploading NetBSD/sparc packages to it, with listing generated by 'tree' command as suggested at

 
And now more fun: I added NetBSD/macppc to same virtual network! It displays cinelerra-gg from virtual netBSD/sparc, because TCX emulation in qemu show swapped red/blue colors..


Code:
qemu-system-ppc -cdrom ~/ISO/NetBSD-10.0-macppc.iso -hda ~/QEMU/Mac-netbsd-2gb.qcow2  -M mac99,via=pmu -boot c -prom-env  'boot-device=hd:,ofwboot.xcf;1' -net nic,macaddr=52:54:00:02:12:23,model=ne2k_pci -net vde,sock=/tmp/vde.qemux0 -g 1024x768x32

Code:
qemu-system-sparc -hda /dev/shm/sparc-netbsd-15g-compressed-r1.qcow2 -g 1024x768x24   -smp 1 -accel tcg,thread=multi,tb-size=256 -M SS-20 -m 0.25G -net nic,macaddr=52:54:00:01:12:24 -net vde,sock=/tmp/vde.qemux0

Ran X server on "mac" side as

"startx -- -listen tcp -ac" (I know no access control is a bad idea, in general).

Now everything seems to have correct colors. Cinelerra-gg launched from LE host displays OK in NetBSD/macppc machine, too. And I can send cinelerra-gg UI and main video windows from "Sparc" side to LE (i586) X host as well. A lot of fun, too sad glx seems to be broken between BE and LE X servers :(
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.