$Date:: 2008-07-16 #$

VMware Player + QEMU


0. 環境

QEMU0.9.x 入手元
VMware Player2.0.x 入手元

1. ディスクイメージの作成

qemu-img create -f vmdk filename.vmdk ??G

2. VMXファイルの作成

ディスクイメージと同じディレクトリに、 以下のサンプルを参考に filename.vmx を作成する。
#!/path/to/vmware
#↑
#ホストがUnix系の場合

config.version = "8"
memsize = "384"
bios.bootDelay = "5000"

## HDD
ide0:0.present = "true"
ide0:0.fileName = "★ディスクイメージファイル名★"

## CD-ROM
ide1:0.present = "true"
#ide1:0.autodetect = "true"
## 通常使用時
ide1:0.deviceType = "cdrom-raw"
ide1:0.fileName = "auto detect"
## ISOイメージを利用する場合
#ide1:0.deviceType = "cdrom-image"
#ide1:0.fileName = "★ISOイメージファイルのフルパス★"

## ethernet
ethernet0.present = "true"
ethernet0.connectionType = "bridged"
#ethernet0.connectionType = "nat"

## floppy
floppy0.present = "false"
# VMware 2.0.2 でフロッピーを認識させる場合、
# .autodetectがないとエラーが出る
#floppy0.autodetect = "true"
#floppy0.fileName = "A:"

#usb.present = "true"
sound.present = "true"

displayName = "★表示名★"
guestOS = "★ゲストOS名★"
#guestOS = "other26xlinux"
#guestOS = "other26xlinux-64"
#guestOS = "other24xlinux"
#guestOS = "other24xlinux-64"
#guestOS = "turbolinux"
#guestOS = "ubuntu"
#guestOS = "ubuntu-64"
#guestOS = "redhat"
#guestOS = "rhel2"
#guestOS = "rhel3"
#guestOS = "rhel3-64"
#guestOS = "rhel4"
#guestOS = "rhel4-64"
#guestOS = "madrake"
#guestOS = "linux"
#guestOS = "freeBSD"
#guestOS = "freeBSD-64"
#guestOS = "dos"
#guestOS = "winXPHome"
#guestOS = "winXPPro"
#guestOS = "winXPPro-64"
#guestOS = "winVista"
#guestOS = "winVista-64"
#etc...

参考: sanbarrow.com

3. GuestOSがFreeBSDで、時計が遅れる場合

/boot/loader.conf を以下のように書き換え、リブート
hint.apic.0.disabled="1"

4. Xを高解像度に設定する方法

Fedora 8 の場合、GUIからの設定で、1280x1024に設定できた。
[システム]-[管理]-[ディスプレイ]
[モニター設定]タブ
[ハードウェア]タブ: モニタータイプ
/etc/X11/xorg.conf の例
  :
Section "Device"
    Identifier "Videocard0"
    Driver "vmware"
EndSection
  :
Section "Monitor"
    Identifier "Monitor0"
    HorizSync 1.0 - 1000.0
    VertRefresh 1.0 - 1000.0
    Option "DPMS"
EndSection
  :
Section "Screen"
  :
    Device "Videocard0"
    Monitor "Monitor0"
    DefaultDepth 24
  :
    Subsection "Display"
        Viewport 0 0
        Depth 24
        Modes "1280x1024" "1024x768" "800x600"
    EndSubsection
  :

Valid HTML 4.01 Transitional