IT/가상머신

QEMU 모니터 모드

smores 2012. 11. 9. 07:51
http://en.wikibooks.org/wiki/QEMU/Monitor

여기 설명 잘 나와있다. 모니터 모드에서는 FDD 이미지 등을 갈아끼울 수 있다는...

간단히 정리하자면 

ctrl + alt + shift + 2 : 모니터모드 진입
ctrl + alt + shift + 1 : 모니터모드 빠져나옴


사실 이걸 알아야 될 상황이 발생한 이유는 BL3.5 로 QEMU 하드 이미지를 직접 만들어 보고 싶었기 때문... FDD 이미지만 두개 (사실은 부팅 FDD 이미지 하나와 자료파일 하나, 이것은 공디스크에 넣어서 쓰라는...) 로 부팅 가능한 시스템 인스톨을 해 보려 하는데 덕분에 QEMU에서 FDD 이미지를 바꿔넣어야 하는 상황이 발생한다. 인터넷 뒤져보니 나처럼 직접 QEMU용 BL35 하드 이미지 만들어 보려는 놈이 있어서 거기 언급된 내용을 읽다가 알게 된 사실임.

http://lists.ibiblio.org/pipermail/baslinux/2009-June/016087.html

[BL] bl3 in qemu - boot problem with floppy2

baslinux at lists.ibiblio.org baslinux at lists.ibiblio.org 
Thu Jun 18 16:36:22 EDT 2009


I'm trying to run a BasicLinux 3.50 virtual machine in qemu
using Slitaz linux as the host system. But there's one problem ...

When the boot process is finished reading BL DISK1.IMG, it says:

<quote>
Insert floppy 2 and press ENTER
</quote>

I go to the qemu monitor and issue these commands:

<quote>
(qemu) eject floppy0
(qemu) change floppy0 /home/virtual/bl/DISK2.TGZ
(qemu)
</quote>

Then exit the qemu monitor to go back to the BL virtual machine:

<quote>
Insert floppy 2 and press ENTER
</quote>

Upon pressing enter i get this message:

<quote>
[MS-DOS FS Rel. 12,FAT 16,check=n,conv=b,uid=0,gid=0,umask=022,bmap]
[me=0xe7,cs=9424,#f=223,fs=24210,fl=1451234,ds=324697968,de=63472,data=324701936
,se=40567,ts=2070600374,ls=32157,rc=0,fc=4294967295]
Transaction block size=512
VFS: Can't find a valid MSDOS filesystem on dev 02:00.
mount: Mounting /dev/fd0 on /fd failed: Invalid argument
zcat: /fd/disk2.tgz: No such file or directory

Insert floppy 2 and press ENTER
</quote>

At this point, if i press Ctrl+c, it stops the boot process
and leaves me with a command-line BL which works fine.
There's just no X-windows system available.

I also tried copying DISK2.TGZ to disk2.tgz (i.e., lowercase
instead of uppercase), and changing to that in qemu,
but that gave the same error message.

Am i doing something wrong with the qemu commands?

-monz


헌데 위의 놈은 DISK2.TGZ를 직접 이미지로 생각하는 착오를 범하는 듯... README 읽어보면 공디스크에 복사해서 쓰라고 나오는데... ㅋㅋ

어쨌거나 위의 방법을 써서 준비해둔 두개의 FDD 이미지로 QEMU 에서 부팅하는데까지 성공...

FDD 2번째 것 만드는 팁은 DISK2.TGZ를 넣어둔 CD 이미지 준비해 둔 상태에서 일단 도스 부팅 디스켓 이미지(포맷 후 자료 넣을 놈)와 위의 CD 이미지를 모두 마운트 한 상태로 도스 하드로 부팅 - 물론 QEMU 가상머신 - 한 후 FDD 포맷 후 CD에 있는 DISK2.TGZ 를 A: 로 복사하여 완성 !!