Mandriva 2009.1 (Kernel 2.6.29 and X.org 7.5.1) を VMware で動かせました

2009 年 5 月 20 日 | カテゴリー: 環境構築

20090520 Mandriva 2009 Spring on VMware

Mandriva 2009 Spring を VMware 上で動かすことに成功しました!
VMware Workstation と VMware Fusion どちらでも確認できてます。
今回の問題は2つ。
1. Kernel 2.6.29 になってインターフェースが変わったのかビルドが通らなくなった。
2. X.org のバージョンが新しくて対応していなかった。

20090520 Kernel 2.6.29 では vmware-config-tools でビルドエラー

「Linux 上で VMware を動かすためのパッチ」は公式フォーラムに出てきていて、MIB のサーバに置いてあって便利ですが、まぎわらしいです。
VMware Workstation 6.5.2 with Mandriva 2009 Spring
「VMware Tools のためのパッチ」はこっち。
VMware Communities: VMware Tools will not compile – Linux 2.6.29

20090520 パッチを当ててビルド成功!

/usr/lib/vmware-tools/modules/source の *.tar を一つ一つ展開してパッチを当てて固め直す作業です。
シェルスクリプトで書いてしまえばいいのですけど、楽してここのスクリプトを使いました。
Install VMware Tools in Guest OS with kernel 2.6.29

20090520 Detected X.org version 7.5.1

ところが今度は 「Detected X.org X.org 7.5.1. No drivers for X.org version: 7.5.1.」のエラー。
最初はパッチがうまくいっていないのと勘違いして問題の切り分けに時間がかかったのですが、これは Kernel 2.6.29 とはまた別の問題。
X.org のバージョンが新しいことが原因です。

20090520 xorg.conf に手動でドライバ記述を追加。

xorg.conf に手動で vmware 周りの記述を追加することで解決できました。
気をつけることとして、vmmouse をインストールする前に下記のものに入れ替えてしまうと、当たり前ですがドライバがないのだからマウスが動かなくなります。
あとちなみに下記は英語キーボード環境。

# File generated by XFdrake (rev 256990)

# **********************************************************************
# Refer to the xorg.conf man page for details about the format of
# this file.
# **********************************************************************

Section "ServerFlags"
    #DontZap # disable <Ctrl><Alt><BS> (server abort)
    AllowMouseOpenFail # allows the server to start up even if the mouse does not work
    #DontZoom # disable <Ctrl><Alt><KP_+>/<KP_-> (resolution switching)
    Option "NoAutoAddDevices"
EndSection

Section "Module"
    Disable "dri"
    Load "dbe" # Double-Buffering Extension
    Load "v4l" # Video for Linux
    Load "extmod"
    Load "glx" # 3D layer
EndSection

Section "InputDevice"
    Identifier "Keyboard1"
    Driver "kbd"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "latin+level3(ralt_switch)"
    Option "XkbOptions" "compose:rwin"
EndSection

Section "InputDevice"
    Identifier "Mouse1"
    Driver "vmmouse"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "imps/2"
    Option "Emulate3Buttons" "true"
    Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier "monitor1"
    VendorName "Generic"
    ModelName "1024x768 @ 60 Hz"
    HorizSync 31.5-48.0.5
    VertRefresh 50.0-70.0

    # TV fullscreen mode or DVD fullscreen output.
    # 768x576 @ 79 Hz, 50 kHz hsync
    ModeLine "768x576"     50.00  768  832  846 1000   576  590  595  630

    # 768x576 @ 100 Hz, 61.6 kHz hsync
    ModeLine "768x576"     63.07  768  800  960 1024   576  578  590  616
EndSection

Section "Device"
    Identifier "device1"
    VendorName "VMware Inc"
    BoardName "VMware virtual video card"
    Driver "vmware"
    Option "DPMS"
EndSection

Section "Screen"
    Identifier "screen1"
    Device "device1"
    Monitor "monitor1"
    DefaultColorDepth 24

    Subsection "Display"
        Depth 8
        Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
    EndSubsection

    Subsection "Display"
        Depth 15
        Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
    EndSubsection

    Subsection "Display"
        Depth 16
        Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
    EndSubsection

    Subsection "Display"
        Depth 24
        Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier "layout1"
    InputDevice "Keyboard1" "CoreKeyboard"
    InputDevice "Mouse1" "CorePointer"
    Screen "screen1"
EndSection

20090520 動的解像度変更を有効にするために /usr/bin/vmware-usr 起動。

これでマウスが VMware の枠の外へ出られるようになったのですが、動的解像度変更が効きません。
なんでかと思ったら、ビルド後に /usr/bin/vmware-user を起動してくれというメッセージが出るようになっていました。
ようするに、必要な so をロードする処理がここで行われるみたい。いつからこうなりましたっけ?
とりあえず Gnome の起動時に立ち上がるように自動起動に登録。

以上で Mandriva Linux 2009 Spring を VMware で動かすことに成功しました。
家だと VAIO T に入れてるからいいのだけど、それ以外で VMware に頼らざるを得ないときに、2009.1 が対応するのを待ってられなかったので、うまくいってよかったですよー。

コメントはまだありません。