wiki:TipAndDoc/VM/VMware/Server

Version 35 (modified by mitty, 14 years ago) (diff)

--

VMware Server client

注意点

install VMware Server 2.0.2 on Ubuntu Lucid (x64)

  • インストール前にソースを編集する必要がある

install VMware Server 2.0.1 on Ubuntu Hardy (x64)

  • sudo aptitude install -R linux-headers-`uname -r` build-essential
  • sudo mkdir /home/vmware
  • sudo chown USERNAME.GROUPNAME /home/vmware/
  • tar xzf VMware-server-2.0.1-156745.x86_64.tar.gz
  • ~/vmware-server-distrib$ sudo ./vmware-install.pl
    Creating a new VMware Server installer database using the tar4 format.
    
    Installing VMware Server.
    
    (snip)
    
    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] yes
    
    Please specify the user whom you wish to be the VMware Server administrator
     <<USERNAME>>
    
    Using <<USERNAME>> as the VMware Server administrator.
    
    In which directory do you want to keep your virtual machine files?
    [/var/lib/vmware/Virtual Machines] /home/vmware/
    
    Please enter your 20-character serial number.
    
    (snip)
    
    Starting VMware services:
       Virtual machine monitor                                             done
       Virtual machine communication interface                             done
       VM communication interface socket family:                           done
       Virtual ethernet                                                    done
       Bridged networking on /dev/vmnet0                                   done
       Host-only networking on /dev/vmnet1 (background)                    done
       DHCP server on /dev/vmnet1                                          done
       Host-only networking on /dev/vmnet8 (background)                    done
       DHCP server on /dev/vmnet8                                          done
       NAT service on /dev/vmnet8                                          done
       VMware Server Authentication Daemon (background)                    done
       Shared Memory Available                                             done
    Starting VMware management services:
       VMware Server Host Agent (background)                               done
       VMware Virtual Infrastructure Web Access
    Starting VMware autostart virtual machines:
       Virtual machines                                                    done
    
    The configuration of VMware Server 2.0.1 build-156745 for Linux for this
    running kernel completed successfully.
    
  • UI with IE8 => attachment:VMServer.png
    • 注: VMware on VMwareの場合、入れ子の中のVMは起動不可なので実用にはならない (ESXiはOKだったかもしれず)

install VMware Server 2.0.1 on CentOS 5 (x86)

  • SELinuxが有効だと、ポリシーに抵触してまともに動作しないので注意
    • /etc/sysconfig/selinux で SELINUX=disabled とすればとりあえず動くが、根本的にはポリシーを設定するのが正しい
  • sudo yum install perl
  • sudo rpm -Uhv VMware-server-2.0.1-156745.i386.rpm
    Before running VMware Server for the first time, you need to
    configure it for your running kernel by invoking the
    following command: "/usr/bin/vmware-config.pl".
    
  • sudo yum install kernel-headers make gcc
  • sudo vmware-config.pl
    The current administrative user for VMware Server  is ''.  Would you like to
    specify a different administrator? [no] yes
    
    Please specify the user whom you wish to be the VMware Server administrator
     root
    
    Using root as the VMware Server administrator.
    
    (snip)
    
    In which directory do you want to keep your virtual machine files?
    [/var/lib/vmware/Virtual Machines] /home/vmware/
    
    The path "/home/vmware" does not exist currently. This program is going to
    create it, including needed parent directories. Is this what you want?
    [yes]
    

Windows XP guest with SCSI HDD

Autostart with host boot

  • attachment:autoboot.png
    • VMware Serverではゲストの自動起動が可能
    • ホストの起動に合わせた自動起動は可能だが、自動shutdownのやり方は不明(ここでただ設定するだけでは不足?)

vmrun

install VMware Tools to ubuntu on VMware

  • sudo aptitude install -R linux-headers-`uname -r` make gcc
  • sudo mount /dev/cdrom /media/cdrom0/
  • tar -xzf /media/cdrom/VMwareTools-7.8.5-156735.tar.gz
  • ~/vmware-tools-distrib$ sudo ./vmware-install.pl --default

install VMware Tools to CentOS on VMware

  • sudo mount /dev/cdrom /media/
  • sudo rpm -Uhv /media/VMwareTools-7.7.5-156745.i386.rpm
    Before running VMware Tools for the first time, you need to
    configure it for your running kernel by invoking the
    following command: "/usr/bin/vmware-config-tools.pl".
    
  • sudo yum install perl
  • sudo vmware-config-tools.pl --default

cannot copy vmscsi.sys

  • VMへのWindows XPインストールの際、FDDにvmscsi-1.2.0.4.flpをマウントしているのにも関わらず、「vmscsi.sysがコピーできない」旨のエラーメッセージが出ることがある。
  • ServicePackなどを手動で統合したCDで、winnt.sifに特定の記述があるとこのエラーが出る。
  • winnt.sifから「OemPreinstall=Yes」を取り除くことで解決する。

add new Virtual Switch to VMware Server

  • VMware Serverでは、Workstationの「仮想ネットワークの設定」や「チーム LAN セグメント」あるいはESXiのように、GUIのみを使って簡単に仮想ネットワークを追加することができない。
  • => ServerNetworking?

misc

VM on VM

  • 実用的な実行速度で動かすためのハードウェア条件
    • Intel VT-x
    • AMD-v with Barcelona or Phenom or later
      • AMD-V is supported on Rev F and later Family 0FH AMD64 processors, but current VMware products only support AMD-V on Family 10H or later AMD64 processors (Barcelona or Phenom). Thus, you can use AMD-V on Family 0FH Rev F and Rev G processors with Workstation 6.0. However, you need a Family 10H processor to use AMD-V with ESX 3.5 and Workstation 6.5 (or later).
      • 手持ちの「AMD Athlon 64 X2 5000+」では「MONITOR MODE: allowed modes : BT」となり、AMD-v使用不能。
  • vmxファイルに以下の2行を追加すると可能になる(非Intel-VT, 非AMD-V環境では未テスト)
    monitor_control.vt32 = "TRUE"
    monitor_control.restrict_backdoor = "TRUE"
    
  • IntelCPU+x64GuestだとVTが必須なので自動的に有効になる
    Software virtualization is incompatible with long mode on this platform. Virtual execution will begin in software mode, but will automatically switch to hardware mode if the guest enters long mode.
    
    • それ以外の環境では、次の1行もあった方が良いかも知れない(入れ子内のVMguestの起動が非常に遅くなり得る)
      monitor.virtual_exec = "hardware"
      

VMware Workstation

  • Ubuntu 10.04 lucid on VMware Workstation 7.1.3 with Windows 7 x64 Host
    • Linux ubuntu32 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC 2010 i686 GNU/Linux
    • model name : Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz
  • 仮想マシン設定 > ハードウェア > プロセッサ > 優先モード
    • 自動
      • vmware.log
        Dec 12 17:27:11.858: vmx| MONITOR MODE: allowed modes          : BT32 HV
        Dec 12 17:27:11.858: vmx| MONITOR MODE: user requested modes   : BT32 HV HWMMU
        Dec 12 17:27:11.858: vmx| MONITOR MODE: guestOS preferred modes: HWMMU BT32 HV
        Dec 12 17:27:11.858: vmx| MONITOR MODE: filtered list          : BT32 HV
        Dec 12 17:27:11.858: vmx| HV Settings: virtual exec = 'dynamic'; virtual mmu = 'software'
        
      • /proc/cpuinfo
        flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht nx lm constant_tsc arch_perfmon pebs bts tsc_reliable aperfmperf pni ssse3 cx16 hypervisor lahf_lm ida
        
    • Intel VT-xまたはAMD-V
      • diff of Ubuntu32.vmx
        -monitor.virtual_mmu = "automatic"
        -monitor.virtual_exec = "automatic"
        +monitor.virtual_mmu = "software"
        +monitor.virtual_exec = "hardware"
        
      • vmware.log
        Dec 12 17:53:28.574: vmx| MONITOR MODE: allowed modes          : BT32 HV
        Dec 12 17:53:28.574: vmx| MONITOR MODE: user requested modes   : HV
        Dec 12 17:53:28.574: vmx| MONITOR MODE: guestOS preferred modes: HWMMU BT32 HV
        Dec 12 17:53:28.574: vmx| MONITOR MODE: filtered list          : HV
        Dec 12 17:53:28.574: vmx| HV Settings: virtual exec = 'hardware'; virtual mmu = 'software'
        
      • /proc/cpuinfo
        flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht nx lm constant_tsc arch_perfmon pebs bts tsc_reliable aperfmperf pni ssse3 cx16 hypervisor lahf_lm ida
        
  • 元々が「自動」だからなのか、CPU flagsに変化はなかった。

Attachments (4)

Download all attachments as: .zip