Welcome, Guest | Home | Search | Login | Register
Author QEMU commands for Mac PPC VM (Read 29871 times)
wove
1024 MB
******
Posts: 1363

View Profile
on: December 14, 2023, 18:05

Since there have been some discussion about virtual machines for PPC I am listing the QEMU commands that are used by UTM to create a PPC Mac Virtual Machine. There will probably need to be some changes made using straight up QEMU rather than the environment created via UTM. However I think most of these commands directly relate to a QEMU PPC machine.

qemu-system-ppc -L /Applications/UTM.app/Contents/Resources/qemu -S -spice unix=on,addr=4D6EFE89-3FF4-4110-8E05-7FE7A930FE6D.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=off -chardev spiceport,id=org.qemu.monitor.qmp,name=org.qemu.monitor.qmp.0 -mon chardev=org.qemu.monitor.qmp,mode=control -nodefaults -vga none -device sungem,mac=C6:F8:CC:03:A4:E2,netdev=net0 -netdev user,id=net0 -device VGA -smp cpus=1,sockets=1,cores=1,threads=1 -machine mac99,via=pmu -accel tcg,thread=multi,tb-size=128 -m 512 -audiodev coreaudio,id=audio1 -audiodev spice,id=audio0 -usb -device usb-tablet,bus=usb-bus.0 -device usb-mouse,bus=usb-bus.0 -device usb-kbd,bus=usb-bus.0 -device ich9-usb-ehci1,id=usb-controller-0 -device ich9-usb-uhci1,masterbus=usb-controller-0.0,firstport=0,multifunction=on -device ich9-usb-uhci2,masterbus=usb-controller-0.0,firstport=2,multifunction=on -device ich9-usb-uhci3,masterbus=usb-controller-0.0,firstport=4,multifunction=on -chardev spicevmc,name=usbredir,id=usbredirchardev0 -device usb-redir,chardev=usbredirchardev0,id=usbredirdev0,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev2 -device usb-redir,chardev=usbredirchardev2,id=usbredirdev2,bus=usb-controller-0.0 -device ide-hd,bus=ide.0,drive=drive1,bootindex=0 -drive "if=none,media=disk,id=drive1,file=/Users/wove/Library/Containers/com.utmapp.UTM/Data/Documents/Mac OS 9.2.1.utm/Data/disk-0.qcow2,discard=unmap,detect-zeroes=unmap" -device ide-cd,bus=ide.1,drive=drive0,bootindex=1 -drive if=none,media=cdrom,id=drive0,readonly=on -device virtio-serial -device virtserialport,chardev=org.qemu.guest_agent,name=org.qemu.guest_agent.0 -chardev spiceport,id=org.qemu.guest_agent,name=org.qemu.guest_agent.0 -name "Mac OS 921" -uuid 4D6EFE89-3FF4-4110-8E05-7FE7A930FE6D -rtc base=localtime

cballero
1024 MB
******
Posts: 1179
System 7, today and forever
View Profile
Reply #1 on: December 14, 2023, 21:01

Cool! 8)

Thanks for this, Wove :D every tip and trick we can use to get things QEMU (or any other virtual or emulated environment) running on our host devices is most definitely appreciated!
Bolkonskij
Administrator
1024 MB
*****
Posts: 2023
View Profile Cornica - Video Entertainment for Mac OS users
Reply #2 on: December 15, 2023, 09:23

Very nice! Except, do I spot it is using Mac OS 9 instead of our glorious Mac OS 7.6.1? ;-)
wove
1024 MB
******
Posts: 1363

View Profile
Reply #3 on: December 15, 2023, 13:43

Oh, you caught me red handed. I am so embraced;)  That is the configuration file for running Mac OS 9 on QEMU that is packaged up by UTM, an app for creating VMs using QEMU on Mac OSX Monterey or newer focused especially on running on Apple Silicone. In my case this is using UTM running on Mac OS Sonoma on a Thinkpad T580.

I suspect it could be modified to run System 7.6, but I have not even tried. My thoughts were to see about using the config file with QEMU under Linux, and also to use the config file to create a VM running Morph OS. A nice feature of retirement, is that I no longer need to even appear to be productive or useful. To paraphrase Cindy Lauper, “Old guys just wanna have fun!” 
68040
512 MB
*****
Posts: 950
68k - thy kingdom come, thy will be done !
View Profile
Reply #4 on: December 15, 2023, 14:46

Its better to put these into the qemu config file than on the command line.
wove
1024 MB
******
Posts: 1363

View Profile
Reply #5 on: December 15, 2023, 15:21

You are correct it is a config file. Where it goes and how it is formatted depends on the host system. In OS X it is an xml plist and part of the container holding the HD and other info relating to the VM. In Linux it is a text file and is stored in different places depending on the distro and how QEMU is installed. Sorting that out is left to the user.

Documentation varies a lot. While the text I posted is the plain text contents of a .config file, it is referred to as "QEMU commands". While it is a plain text file in Linux, OS X (UTM) formats it as a plist file, which is automatically created when you create the VM. UTM provides a menu option to save it as a text file which can be used with typical Linux setups. As far as I can tell UTM does not offer an option to translate text config files into xlm plists.
Pages: [1]

© 2021 System7Today.com.
The Apple Logo, Macintosh™, Mac OS™, and others property of Apple Computer, Inc.
This site is in no way affiliated with Apple Computer, Inc.