書籍OS自作入門で作ったイメージをVMwareで起動する

バイナリエディタで作成したhelloos.imgをVMwareで起動します。


起動画面


前提
WindowsVmware Server 1.0.4
(※尚、下記手順はすべて自己責任でお願いします)


まずはOS自作入門用の最小構成のバーチャルマシンを作成します。

  • [ File ] -> [ New ] -> [ Virtual Machine... ]

New Virtual Machine Wizard手順

  • Virtual machine configuration - Typical
  • Guest operating system - Other
  • Version - Other
  • Virtual machine name - (好きな名前)
  • Network connection - Do not use a network connection
  • Disk capacity - 0.1GB
  • Allocate add disk space now - チェックを外す


テキストエディタでバーチャルマシンのフォルダ内のvmxファイルを開きます。

1   |config.version = "8"
2   |virtualHW.version = "4"
3   |scsi0.present = "TRUE"
4   |memsize = "32"
5   |ide0:0.present = "TRUE"
6   |ide0:0.fileName = "Other.vmdk"
7   |ide1:0.present = "TRUE"
8   |ide1:0.fileName = "auto detect"
9   |ide1:0.deviceType = "cdrom-raw"
10  |floppy0.present = "FALSE"
11  |floppy0.startConnected = "TRUE"
12  |floppy0.fileName = "E:\Documents and Settings\foo\My Documents\source\OS自作入門\tolset\helloos0\helloos.img"
13  |floppy0.fileType = "file"
14  |displayName = "os-30days"
15  |guestOS = "other"
16  |priority.grabbed = "normal"
17  |priority.ungrabbed = "normal"
  • 4行目 192→32(メモリは最低限の32で起動)
  • 10行目 FALSE→TRUEに変更
  • 11行目〜13行目 追加


VMwareでPower Onで起動


OSが起動できて感動、さらにVMwareで起動したことで感動2倍ですね!!


参考
VMware まとめ Wiki