Home » Fedora10 » VMware_Fedira10

fedira10にVMware2.0のServerをインストールし、仮想環境を試用する簡単な説明を以下に行う。
尚、fedora10の環境はCPU:Pen4 3.2G メモリ 2Gでfedora10のx86_64をインストールしてある。尚、仮想OSはubuntu8.10を使用している。


  1. VMware2.0 Server For Linuxのダウンロード
    VMwareのダウンロードサイトへいき、Linux用のVMware2.0 Serverをダウンロードする。
    使用するには、登録が必要。
    登録後には登録IDでダウンロードサイトにいくとKEYが記載してある。設定に必要なのでメモをしておく。

  2. インストール

    # rpm -ivh VMware-server-2.0.0-122956.x86_64.rpm


  3. vmware-config.pl
    実行する前に以下をインストールしておく。

    # yum install gcc
    # yum install kernel-devel


    実行(すべてデフォルトで設定)

    ## /usr/bin/vmware-config.pl 
    Making sure services for VMware Server are stopped.

    Stopping VMware autostart virtual machines:
    Virtual machines [失敗]
    Stopping VMware management services:
    VMware Virtual Infrastructure Web Access
    VMware Server Host Agent [失敗]
    Stopping VMware services:
    VMware Authentication Daemon [ OK ]
    Virtual machine monitor [ OK ]

    You must read and accept the End User License Agreement to continue.
    Press enter to display it.

    ライセンス関係の表示

    None of the pre-built vmmon modules for VMware Server is suitable for your
    running kernel. Do you want this program to try to build the vmmon module for
    your system (you need to have a C compiler installed on your system)? [yes]

    Using compiler "/usr/bin/gcc". Use environment variable CC to override.

    What is the location of the directory of C header files that match your running
    kernel? [/usr/src/linux/include] /usr/src/kernels/2.6.27.5-117.fc10.x86_64/include

    Extracting the sources of the vmmon module.

    Building the vmmon module.

    Using 2.6.x kernel build system.
    make: ディレクトリ `/tmp/vmware-config0/vmmon-only' に入ります
    make -C /usr/src/kernels/2.6.27.5-117.fc10.x86_64/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
    make[1]: ディレクトリ `/usr/src/kernels/2.6.27.5-117.fc10.x86_64' に入ります
    CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o

    [略]

    None of the pre-built vmci modules for VMware Server is suitable for your
    running kernel. Do you want this program to try to build the vmci module for
    your system (you need to have a C compiler installed on your system)? [yes]

    Extracting the sources of the vmci module.

    Building the vmci module.

    Using 2.6.x kernel build system.
    make: ディレクトリ `/tmp/vmware-config0/vmci-only' に入ります
    make -C /usr/src/kernels/2.6.27.5-117.fc10.x86_64/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
    make[1]: ディレクトリ `/usr/src/kernels/2.6.27.5-117.fc10.x86_64' に入ります
    CC [M] /tmp/vmware-config0/vmci-only/linux/driver.o
    [略]

    None of the pre-built vsock modules for VMware Server is suitable for your
    running kernel. Do you want this program to try to build the vsock module for
    your system (you need to have a C compiler installed on your system)? [yes]

    [略]

    The vsock module loads perfectly into the running kernel.

    Do you want networking for your virtual machines? (yes/no/help) [yes]

    Configuring a bridged network for vmnet0.

    Please specify a name for this network.
    [Bridged]

    Your computer has multiple ethernet network interfaces available: eth0, pan0,
    virbr0. Which one do you want to bridge to vmnet0? [eth0]

    The following bridged networks have been defined:

    . vmnet0 is bridged to eth0

    Do you wish to configure another bridged network? (yes/no) [no]

    Do you want to be able to use NAT networking in your virtual machines? (yes/no)
    [yes]

    Configuring a NAT network for vmnet8.

    Please specify a name for this network. [NAT]

    Do you want this program to probe for an unused private subnet? (yes/no/help)
    [yes]

    Probing for an unused private subnet (this can take some time)...

    The subnet 192.168.91.0/255.255.255.0 appears to be unused.

    The following NAT networks have been defined:

    . vmnet8 is a NAT network on private subnet 192.168.91.0.

    Do you wish to configure another NAT network? (yes/no) [no]

    Do you want to be able to use host-only networking in your virtual machines?
    [yes]

    Configuring a host-only network for vmnet1.

    Please specify a name for this network.
    [HostOnly]

    Do you want this program to probe for an unused private subnet? (yes/no/help)
    [yes]

    Probing for an unused private subnet (this can take some time)...

    The subnet 172.16.228.0/255.255.255.0 appears to be unused.

    The following host-only networks have been defined:

    . vmnet1 is a host-only network on private subnet 172.16.228.0.

    Do you wish to configure another host-only network? (yes/no) [no]

    None of the pre-built vmnet modules for VMware Server is suitable for your
    running kernel. Do you want this program to try to build the vmnet module for
    your system (you need to have a C compiler installed on your system)? [yes]

    Extracting the sources of the vmnet module.

    Building the vmnet module.

    Using 2.6.x kernel build system.
    [略]

    The vmnet module loads perfectly into the running kernel.

    Please specify a port for remote connections to use [902]

    Please specify a port for standard http connections to use [8222]

    Please specify a port for secure http (https) connections to use [8333]

    The current administrative user for VMware Server is ''. Would you like to
    specify a different administrator? [no]

    Using root as the VMware Server administrator.

    In which directory do you want to keep your virtual machine files?
    [/var/lib/vmware/Virtual Machines]

    The path "/var/lib/vmware/Virtual Machines" does not exist currently. This
    program is going to create it, including needed parent directories. Is this
    what you want? [yes]

    Please enter your 20-character serial number.

    Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel: シリアル番号をいれます。

    Creating a new VMware VIX API installer database using the tar4 format.

    Installing VMware VIX API.

    In which directory do you want to install the VMware VIX API binary files?
    [/usr/bin]

    In which directory do you want to install the VMware VIX API library files?
    [/usr/lib/vmware-vix/lib]

    The path "/usr/lib/vmware-vix/lib" does not exist currently. This program is
    going to create it, including needed parent directories. Is this what you want?
    [yes]

    In which directory do you want to install the VMware VIX API document pages?
    [/usr/share/doc/vmware-vix]

    The path "/usr/share/doc/vmware-vix" does not exist currently. This program is
    going to create it, including needed parent directories. Is this what you want?
    [yes]

    The installation of VMware VIX API 1.6.0 build-122956 for Linux completed
    successfully. You can decide to remove this software from your system at any
    time by invoking the following command: "/usr/bin/vmware-uninstall-vix.pl".

    Enjoy,

    --the VMware team

    Starting VMware services:
    Virtual machine monitor [ OK ]
    Virtual machine communication interface [ OK ]
    VM communication interface socket family: [ OK ]
    Virtual ethernet [ OK ]
    Bridged networking on /dev/vmnet0 [ OK ]
    Host-only networking on /dev/vmnet1 (background) [ OK ]
    DHCP server on /dev/vmnet1 [ OK ]
    Host-only networking on /dev/vmnet8 (background) [ OK ]
    DHCP server on /dev/vmnet8 [ OK ]
    NAT service on /dev/vmnet8 [ OK ]
    VMware Server Authentication Daemon (background) [ OK ]
    Shared Memory Available [ OK ]
    Starting VMware management services:
    VMware Server Host Agent (background) [ OK ]
    VMware Virtual Infrastructure Web Access
    Starting VMware autostart virtual machines:
    Virtual machines [ OK ]

    The configuration of VMware Server 2.0.0 build-122956 for Linux for this
    running kernel completed successfully.





  4. VMware Infrastructure Web Access
    仮想OSを登録して起動します。
    http://localhost:8222/でVMware Infrastructure Web Accessを行いますが、当環境では/etc/pam.d/vmware-authdを変更しないと動作しませんでした。

    #%PAM-1.0
    #auth required pam_unix.so shadow nullok
    #account required pam_unix.so
    auth required pam_permit.so shadow nullok
    account required pam_permit.so

    pam_unix.soをpam_permit.soに変更します。
    変更するとrootでログインできるようになります。

    summry


    virtual machines


    task


    events


    permission


  5. 仮想OSのインストール

    create Virtual Machinをクリックします。


    仮想OSの名前を入力します。


    OSの選定


    メモリの設定


    ハードディスクの選定


    保管場所


    networkアダプター




    インストールイメージ(CD/DVDドライブ)


    デバイス


    FDドライブ


    USB


    完了


    下記のプラグインをインストールします。


    仮想OS 起動
    ※KVMをいれている時は、以下を実施

    # modprobe -r kvm
    # modprobe -r kvm_intel


    インストール画面


    インストール終了。起動


    ネットワーク
    vmware-config.pl のとおりになっている


△ページトップ

Google
ページ
最近のブログ
アーカイブ
カテゴリー
最近のコメント
最近のトラックバック
    No Responses.