[molecules/boot] add new QEMU (0.13.0) that supports latest Windows and 64bit
This commit is contained in:
parent
6feb80052a
commit
94f85e8559
|
@ -0,0 +1,118 @@
|
|||
QEMU on Windows
|
||||
|
||||
QEMU is an emulator for various CPUs. It works on Linux, Windows, FreeBSD and Mac OS X.
|
||||
Windows version is in an alpha stage.
|
||||
|
||||
Double hyphen "--" is no more needed. Please use a single hyphen for all options.
|
||||
|
||||
1. Install
|
||||
|
||||
Please extract ziped file. When extracted, you are ready.
|
||||
|
||||
2. Starting a program
|
||||
|
||||
There are two ways to start a program.
|
||||
|
||||
2.1 Using a batch file
|
||||
|
||||
A file "qemu-win.bat" starts QEMU. Double click boots Linux on your desktop.
|
||||
|
||||
When you use Command Prompt(MS-DOS Prompt), type
|
||||
|
||||
qemu.exe -L . -hda linux.img
|
||||
|
||||
An option "-hda" set hard disk image and an option "-L" set bios location.
|
||||
|
||||
When a mouse cursor is missing, type Ctrl and Alt key together. Please use Alt
|
||||
and Tab on WindowsMe.
|
||||
|
||||
To exit from Linux, press Ctrl-Alt-2 keys together then you will see (qemu) prompt.
|
||||
Then type quit.
|
||||
|
||||
(qemu) quit
|
||||
|
||||
2.2 Using a shortcut
|
||||
|
||||
Create a new shortcut of qemu.exe. Right click on the shortcut, append appropriate
|
||||
options like "C:\...\qemu.exe" -L . -hda linux.img at link to text field.
|
||||
Double click the shortcut.
|
||||
|
||||
3. Test
|
||||
|
||||
There is a benchmark in linux.img. When Linux boots, type
|
||||
|
||||
sh-2.05b# cd nbench
|
||||
sh-2.05b# ./nbench
|
||||
|
||||
INTEGER INDEX and FLOATING-POINT INDEX are index to Pentium 90MHz.
|
||||
|
||||
4. x86_64 emulation
|
||||
|
||||
A file "qemu-x86_64.bat" also boots linux on your desktop. It boots 32 bit and
|
||||
64 bit OS.
|
||||
|
||||
5. Hard disk image
|
||||
|
||||
A hard disk image file can be created by qemu-img.exe.
|
||||
To create a 10MB hard disk image file, type in command prompt:
|
||||
|
||||
qemu-img.exe create harddisk.img 10M
|
||||
|
||||
6. Floppy and CD-ROM
|
||||
|
||||
You can change a floppy and a CD-ROM image from QEMU Monitor.
|
||||
QEMU Monitor can be seen by pressing Ctrl, Alt, 2 key together.
|
||||
Pressing Ctrl, Alt, 1 key together returns to your guest OS.
|
||||
|
||||
It needs to convert floppy and CD-ROM to image file to use it.
|
||||
|
||||
For floppy, there are many converters. Please choose your favorite one.
|
||||
|
||||
If you have CD-R writing software, you can use it. If you don't have it,
|
||||
you can use mkisofs command in cdrtools.
|
||||
|
||||
To use them together, type:
|
||||
|
||||
qemu.exe -L . -m 128 -boot a -fda floppy.img -hda harddisk.img -cdrom cdimage.iso
|
||||
|
||||
-L : bios location
|
||||
-m : memory size (Mbyte)
|
||||
-boot : boot device floppy(a), hard disk(c), CD-ROM(d)
|
||||
-fda : floppy image
|
||||
-hda : hard disk image
|
||||
-cdrom : CD-ROM image
|
||||
|
||||
When you want to change a floppy and CD-ROM image, type:
|
||||
(qemu) change fda filename.img
|
||||
or
|
||||
(qemu) change cdrom fdimage.iso
|
||||
|
||||
7. Uninstall
|
||||
|
||||
Please delete the extracted folder. If you use an installer, the program uses a registry.
|
||||
|
||||
8. Notes
|
||||
|
||||
Don't start two QEMU on one hard disk image. It will break the hard disk image.
|
||||
|
||||
9. License
|
||||
|
||||
Please refer to files in License folder.
|
||||
This program is provided "as is" and without any warranty. Please use it
|
||||
at your own risk.
|
||||
|
||||
10. Links
|
||||
|
||||
QEMU
|
||||
http://fabrice.bellard.free.fr/qemu/
|
||||
Bochs BIOS
|
||||
http://bochs.sourceforge.net/
|
||||
VGA BIOS
|
||||
http://www.nongnu.org/vgabios/
|
||||
MinGW
|
||||
http://www.mingw.org/
|
||||
SDL Library
|
||||
http://www.libsdl.org/
|
||||
|
||||
Have fun,
|
||||
kazu
|
|
@ -0,0 +1,111 @@
|
|||
QEMU on Windows
|
||||
|
||||
QEMU は、多種のCPUをエミュレートするプログラムです。Windows版は
|
||||
アルファバージョン(開発初期のバージョン)です。
|
||||
|
||||
ダブルハイフン"--"は、必要なくなりました。すべてのオプションにシングルハイフンを
|
||||
使って下さい。
|
||||
|
||||
1.インストール
|
||||
zipファイルを展開してください。インストーラーを使う必要はありません。
|
||||
|
||||
2. qemu の実行
|
||||
実行するのには、2つ方法があります。
|
||||
|
||||
2.1 バッチファイルを使う方法
|
||||
qemu-win.batをダブルクリックすると、デスクトップ上にlinuxが起動します。
|
||||
|
||||
コマンドプロンプト(MS-DOSプロンプト)上では次のようにします。
|
||||
|
||||
qemu.exe -L . -hda linux.img
|
||||
|
||||
-L が、biosの位置を、-hda がハードディスクのイメージファイルを
|
||||
指定するオプションです。
|
||||
|
||||
マウスカーソルが消えたときは、CtrlとAltキーを同時に押してください。WindowsMeでは、
|
||||
AltとTabを使ってください。
|
||||
|
||||
linuxを終了するには、Ctrl-Alt-2のキーを同時に押します。(qemu)プロンプトがでたら、
|
||||
quitとタイプします。
|
||||
|
||||
(qemu) quit
|
||||
|
||||
2.2 ショートカットを使う方法
|
||||
qemu.exeのショートカットを作ります。右クリックしてプロパティを表示し、リンク先
|
||||
に、-L . -hda linux.img を付け足します。ショートカットをダブルクリックすれば
|
||||
実行されます。
|
||||
|
||||
3. 確認
|
||||
同梱されているlinux.imgには、nbenchというベンチマークが含まれています。
|
||||
起動するには、次のようにします。
|
||||
|
||||
sh-2.05b# cd nbench
|
||||
sh-2.05b# ./nbench
|
||||
|
||||
INTEGER INDEX と FLOATING-POINT INDEX が Pentium 90MHz との比較を表します。
|
||||
|
||||
4. x86_64のエミュレーション
|
||||
|
||||
qemu-x86_64.batをダブルクリックしても、デスクトップにLinuxが起動します。
|
||||
32ビットと64ビットのOSを動かすことができます。
|
||||
|
||||
5. ハードディスクイメージ
|
||||
qemu-img.exeを使って、ハードディスクのイメージファイルを作ることができます。
|
||||
10Mバイトのハードディスクイメージを作るには、次のようにします。
|
||||
|
||||
qemu-img.exe create harddisk.img 10M
|
||||
|
||||
6. フロッピーとCD-ROM
|
||||
QEMUモニターを使って、フロッピーやCD-ROMイメージを替えることができます。
|
||||
QEMUモニターを表示するには、Ctrl,Alt,2のキーを同時に押してください。Ctrl, Alt, 1
|
||||
を同時に押すと、ゲストOSの画面にもどります。
|
||||
|
||||
フロッピーとCD-ROMを使うには、イメージファイルに変換する必要があります。
|
||||
|
||||
フロッピーのイメージ化には、DiskExploreなど好みのものを使ってください。
|
||||
|
||||
CD-ROMは、iso形式のイメージに変換する必要があります。CD-Rライティングソフトがあれば、
|
||||
それが使えると思います。なければ、cdrtoolsというフリーのソフトウェアもあります。
|
||||
|
||||
これらを同時に使うには、次のようにします。
|
||||
|
||||
qemu.exe -L . -m 128 -boot a -fda floppy.img -hda harddisk.img -cdrom cdimage.iso
|
||||
|
||||
-L : bios の位置
|
||||
-m : メモリサイズ(Mバイト)
|
||||
-boot : 起動するデバイス フロッピー(a)、ハードディスク(c)、CD-ROM(d)
|
||||
-fda : フロッピーイメージ
|
||||
-hda : ハードディスクイメージ
|
||||
-cdrom : CD-ROMイメージ
|
||||
|
||||
フロッピーとCD-ROMイメージを取り替えたいときは、QEMUモニターで次のようにします。
|
||||
(qemu) change fda filename.img
|
||||
もしくは、
|
||||
(qemu) change cdrom cdimage.iso
|
||||
|
||||
7. アンインストール
|
||||
展開したフォルダを削除してください。インストーラを使った場合、レジストリを使用しています。
|
||||
|
||||
|
||||
8. 注意
|
||||
1つのハードディスクイメージで、2つQEMUを同時に動かさないでください。ディスク
|
||||
イメージが壊れます。
|
||||
|
||||
9. ライセンス
|
||||
仮想CPUコアライブラリおよびPCシステムエミュレータはLGPLライセンスとなっています。
|
||||
Licenseフォルダにあるファイルをご覧ください。
|
||||
なお、本プログラムの使用による問題について保証は出来かねますのでご了承ください。
|
||||
|
||||
10. リンク
|
||||
QEMU
|
||||
http://fabrice.bellard.free.fr/qemu/
|
||||
Bochs BIOS
|
||||
http://bochs.sourceforge.net/
|
||||
VGA BIOS
|
||||
http://www.nongnu.org/vgabios/
|
||||
MinGW
|
||||
http://www.mingw.org/
|
||||
SDL Library
|
||||
http://www.libsdl.org/
|
||||
|
||||
kazu
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,20 @@
|
|||
REM Start qemu on windows.
|
||||
@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.exe -L . -m 128 -hda linux.img -soundhw sb16,es1370 -localtime -M pc
|
|
@ -0,0 +1,20 @@
|
|||
REM Start qemu on windows.
|
||||
@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-system-x86_64.exe -L . -m 128 -hda linux.img -soundhw sb16,es1370 -localtime -M pc
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
dsound: Could not initialize DirectSound
|
||||
dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID
|
||||
audio: Could not init `dsound' audio driver
|
Binary file not shown.
Binary file not shown.
|
@ -17,10 +17,15 @@ echo.
|
|||
|
||||
set DRIVE=%CD:~0,1%
|
||||
|
||||
set KERNEL=sabayon
|
||||
set INITRD=sabayon.igz
|
||||
set KERNEL_ARGS=root=/dev/ram0 initrd=/boot/sabayon.igz aufs init=/linuxrc cdroot looptype=squashfs max_loop=64 loop=/livecd.squashfs splash=silent,theme:sabayon vga=791 console=tty1 quiet music
|
||||
set SYSLINUX=boot
|
||||
|
||||
rem Start QEMU
|
||||
start /B %DRIVE%:\qemu\qemu.exe -m 640M -localtime -soundhw sb16 -usb -L %DRIVE%:\qemu -hda fat:%DRIVE%: -kernel %DRIVE%:\%SYSLINUX%\%KERNEL% -initrd %DRIVE%:\%SYSLINUX%\%INITRD% -append "%KERNEL_ARGS%"
|
||||
|
||||
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto 64BIT
|
||||
|
||||
rem 32bit
|
||||
start /B %DRIVE%:\qemu\qemu.exe -m 768M -localtime -soundhw sb16 -usb -L %DRIVE%:\qemu -cdrom %DRIVE%:
|
||||
goto END
|
||||
|
||||
:64BIT
|
||||
start /B %DRIVE%:\qemu\qemu-system-x86_64.exe -m 768M -localtime -soundhw sb16 -usb -L %DRIVE%:\qemu -cdrom %DRIVE%:
|
||||
|
||||
:END
|
||||
|
|
Loading…
Reference in New Issue