|
This How-To is explaining how to install an operating system
inside of another operating system. For example in this how-to were
going setup a virtual machine running CentOS inside a windows XP
operating system using QEMU. Name: QEMU HomePage: http://fabrice.bellard.free.fr/qemu/ Function:
QEMU is a generic and open source machine emulator and virtualizer
1. First lets download and install the windows version of Qemu. http://www.h7.dion.ne.jp/~qemu-win/ 2. Next step is to unzip qemu-0.9.0-windows.zip and install it.
3. Now open up the command line and navigate to were Qemu was installed.
4. Next step is to setup a virtual harddrive file. qemu-img create -f raw harddisk.img 1000M
5. Now insert the CentOS CD into your CD drive and run the following command qemu.exe -L . -hda harddisk.img -cdrom //./f: -boot d 6. From now on just follow the setup steps like you would any normal installation of CentOS installation.
7. Once CentOs setup has run and CentOS is installed run the following command to start it. qemu.exe -L . -m 128 -hda harddisk.img -cdrom //./f: -boot c -M pc
8. I like to make it into a batch file in the qemu directory and create a shortcut on the desktop.
Code:
REM Start CentOS in Qemu.
@ECHO OFF
REM SDL_VIDEODRIVER=directx is faster than windib. But keyboard cannot work
well.
SET SDL_VIDEODRIVER=windib
REM SDL_AUDIODRIVER=waveout or dsound can be used. Only if QEMU_AUDIO_DRV=sdl.
SET SDL_AUDIODRIVER=dsound
REM QEMU_AUDIO_DRV=dsound or fmod or sdl or none can be used. See qemu
-audio-help.
SET QEMU_AUDIO_DRV=dsound
REM QEMU_AUDIO_LOG_TO_MONITOR=1 displays log messages in QEMU monitor.
SET QEMU_AUDIO_LOG_TO_MONITOR=0
REM PCI-based PC(default) -M pc
REM ISA-based PC -M isapc
REM -M isapc is added for NE2000 ISA card.
qemu -L . -m 128 -hda harddisk.img -soundhw all -localtime -cdrom //./f: -boot c
-M pc |
BookMarking: cell1
|
|
cell3 |
| cell4
|
|
Trouble Shooting:
Go to the wiki page
Go to the 'Contact Us ' Forum
Go to the how-to's 'Support ' Forum
External Links:
http://fabrice.bellard.free.fr/qemu/qemu-doc.html
http://wiki.archlinux.org/index.php/Qemu |