How to copy files into QEMU?
Moderators: Cat_7, Ronald P. Regensburg
How to copy files into QEMU?
I have MacOS X 10.3.0 running, but I want to update it to 10.3.9 via a Combo updater I have downloaded on my M1 Mac Mini, but I don't know how to create a folder that can be used by QEMU to bring files from "outside" (the emulator), onto the disk image that is my 30GB HD of my emulated 900MHz G4 system. Might be a dumb question with an easily found answer, but... figured I'd ask here anyways.
Re: How to copy files into QEMU?
Hi,
I assume you downloaded a dmg? Qemu can read some dmg formats. You can add the dmg to your command line as cdrom:
-drive file=10.3combo.dmg,format=dmg,media=cdrom
If that will not work (perhaps due to Qemu not being able to read the format of the dmg), you might create a new disk image, add it to the command line, and format it in OSX 10.3.
Then mount the dmg in your host, mount the newly created disk image and copy the content of the dmg onto the new disk image. Then add that disk image as a drive to the command line.
Best,
Cat_7
I assume you downloaded a dmg? Qemu can read some dmg formats. You can add the dmg to your command line as cdrom:
-drive file=10.3combo.dmg,format=dmg,media=cdrom
If that will not work (perhaps due to Qemu not being able to read the format of the dmg), you might create a new disk image, add it to the command line, and format it in OSX 10.3.
Then mount the dmg in your host, mount the newly created disk image and copy the content of the dmg onto the new disk image. Then add that disk image as a drive to the command line.
Best,
Cat_7
- adespoton
- Forum All-Star
- Posts: 4285
- Joined: Fri Nov 27, 2009 5:11 am
- Location: Emaculation.com
- Contact:
Re: How to copy files into QEMU?
You can also use Disk Utility to either a) mount the QEMU image on the host as well as the update image, and copy the files across that way, or b) convert the compressed dmg to a read-write dmg which QEMU can mount. Third option is c) to use network filesharing between the host and guest, and then copy the dmg over.
Personally, I found it fastest to use option a.
Personally, I found it fastest to use option a.
Re: How to copy files into QEMU?
when i tried to mount dmg, it crashed immediatelyCat_7 wrote: ↑Fri Jun 11, 2021 4:44 am Hi,
I assume you downloaded a dmg? Qemu can read some dmg formats. You can add the dmg to your command line as cdrom:
-drive file=10.3combo.dmg,format=dmg,media=cdrom
If that will not work (perhaps due to Qemu not being able to read the format of the dmg), you might create a new disk image, add it to the command line, and format it in OSX 10.3.
Then mount the dmg in your host, mount the newly created disk image and copy the content of the dmg onto the new disk image. Then add that disk image as a drive to the command line.
Best,
Cat_7