I was thinking, wouldn't it be nice to have an emulator with a supported OS as your main operating system on a standard x86 PC? Such a subject was discussed on a forum for PearPC, a PowerPC emulator for x86 targets, but as the main developer stopped developing, talk about it slowed down. However, what I'm looking for is something much more different! I am talking about one that uses regular hard drive and partitions to use as the hosting space for the OS rather than disk image files on a hard drive volume.
QEMU is a great processor emulator for not just x86, but many other different CPU platforms. QEMU user mode is already out there, which emulates necessary things for a program to do and emulate the architecture alone and run linux programs designed for one arcitecture for another. For example, let's say you're running a PowerPC computer running Linux, and you want to run a program that's only available for x86 Linux. QEMU user mode can emulate necessary things for an x86 processor, like the CPU and the IO system, and launch the program on it. It can even do it the other way around. While it can run x86 programs on non-x86 architectures, you can also use it to run non-x86 programs on the x86 architecture. I basically want the same idea (not code) to be used, but instead use it to boot an OS that would otherwise be incompatible with the architecture or even the CPU!
QEMU can also emulate in recent builds different models of the x86 CPU, like the Intel Core 2 Duo or an AMD Althon with this flag:
Code: Select all
-cpu $MODEL$
Code: Select all
qemu -cpu core2duo IMAGE.img
Anyway, back to the subject. I would like to bring all of QEMU's emulation power as a bootloader. Let's refer to an x86-compatible OS as OS-A and an OS for a different architecture as OS-B. I would like my bootloader to run OS-A via any CPU or hardware implimented through QEMU, and I would also like it to boot OS-B as an OS for any x86 PC. However, I would like a boot menu to allow to either boot from a disk image or a physical disk (like from the CD drive or installed hard drive partition).
First off, is my goal even possible? If so, how? Thanks!
Rico