Powered by
Movable Type 4.1

メインだよ(カテゴリーアーカイブ)

2006年7月24日

Xの設定

Virtual Server 2005 R2の上でRedHat9をインストールした時、
/etc/X11/XF86Configは下記のような設定で
800x600 256色のXを動かすことができました。

要は、インストールのデフォルトの設定で、
800x600 256色 にしておけばよいだけです。

CentOS4でも同様な設定でうごきました。

その点、VMWareは楽なのかもしれません。

# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
#Driver "keyboard"
#Option "XkbRules" "xfree86"
Driver "kbd"
Option "XkbModel" "jp106"
Option "XkbLayout" "jp"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "InputDevice"
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Unknown monitor"
HorizSync 31.5 -37.9
VertRefresh 50.0 - 70.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "s3"
VendorName "Videocard vendor"
BoardName "S3 Trio64 (generic)"
#VideoRam 4096
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 8
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "640x480"
EndSubSection

SubSection "Display"
Viewport 0 0
Depth 24
Modes "800x600" "640x480"
EndSubSection

SubSection "Display"
Viewport 0 0
Depth 8
Modes "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection

2006年6月 1日

バーチャルマシンのパスを移動させる

1.バーチャルマシンの上で動いているOSをシャットダウンする。

2.Virtual Server 管理Webサイトから、バーチャルマシンをオフにする。

3.ExplorerからD:\Virtualフォルダ(例)を作成し、そのなかに
  C:\Documents and Settings\All Users\Documents\Shared Virtual Machines\
  C:\Documents and Settings\All Users\Documents\Shared Virtual Networks\
  を移動させる。

4.左のメニューの「サーバーのプロパティ」->「検索のパス」で
  「既定のバーチャル マシン構成フォルダ」を
  C:\Documents and Settings\All Users\Documents\Shared Virtual Machines\
  から、D:\Virtual\Shared Virtual Machines\ に変更する。
  
  また、「検索パス」に
  D:\Virtual\Shared Virtual Networks\
  を追加して「OK」を押す。

5.ここで一旦、Virtual Server管理Webサイトを閉じる。

6.C:\Documents and Settings\All Users\Application Data\Microsoft\Virtual Server\Virtual Machines
  の中にショートカットのファイルがあるので、それのリンク先を先ほどフォルダを移動させた場所のvmcファイルに書き換える。
  "D:\Virtual\Shared Virtual Machines\xxx\xxx.vmc"
  
  C:\Documents and Settings\All Users\Application Data\Microsoft\Virtual Server\Virtual Networks
  の中のショートカットのファイルについても同様に移動先のvncファイルにリンクする。

7.D:\Virtual\Shared Virtual Machines\xxx\xxx.vmcはxmlファイルなのでメモ帳で開ける。
  メモ帳で開いたら<ide_adapter>のあたりで、vhdファイルのパスが書かれている場所を探す。

  

【絶対パス】
  <absolute type="string">C:\Documents and Settings\All Users\Documents\Shared Virtual Machines\xxx\xxx.vhd</absolute>
  【相対パス】
  <relative type="string">.\xxx.vhd</relative>

これらの箇所を移動先のパスに修正し、上書き保存する。

  

【絶対パス】
  <absolute type="string">D:\Virtual\Shared Virtual Machines\xxx\xxx.vhd</absolute>
  【相対パス】
  <relative type="string">.\xxx.vhd</relative>


8.スタートメニューの「管理ツール」から「サービス」を開き、
  「Virtual Machine Helper」サービスを再起動する。
  目的は「Virtual Server」サービスの再起動なので、これで一緒に再起動される。
  
9.再びVirtual Server 管理Webサイトを開く。
  ちゃんとバーチャルマシン上が表示されていれば移動成功。
  左のメニューの「バーチャルマシン」->「構成」->「xxx」を開き、「全般のプロパティ」に進む。
  画面下のほうに、
  

“xxx” と関連付けられているファイル  

  構成ファイル: D:\Virtual\Shared Virtual Machines\xxx\xxx.vmc
  バーチャル ハード ディスク 1: D:\Virtual\Shared Virtual Machines\xxx\xxx.vhd
  接続されたバーチャル ネットワーク: D:\Virtual\Shared Virtual Networks\外部ネットワーク.vnc

  と確認できる。

仮想サーバーのインストールされる場所

Virtual Server 2005をインストールするときに、たくさん容量のあるDドライブを選んだつもりなのに、DドライブにはVirtual Serverのプログラムや管理Webコンテンツしか入ってない。

それじゃ、どこに仮想マシンの定義や仮想DISKがインストールされるかというと。。。

C:\Documents and Settings\All Users\Documents\Shared Virtual Machines\

ここだった。もうびっくりですよ。
Cドライブがパンパンになりました。

とりあえずCentOS4.3はLVMボリュームの上でちゃんと動いてますよ。

※容量可変の拡張バーチャルハード ディスクのため、今のところは2.5GBくらいしか使っていません。
 が、引越しをするしかないでしょう。