歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> VMWare Linux 版的安裝手冊

VMWare Linux 版的安裝手冊

日期:2017/2/28 16:02:56   编辑:Linux教程
一般虛擬機的常見場景是在WINDOWS下安裝Linux虛擬機,但是有一些情況需要倒過來,比如在Linux下安裝VMware虛擬機來反過來安裝WINDOWS.
一.RHEL版本的VMWare的安裝
可以從官網下載安裝程序,VMWare Server是免費的,你可以從看到相關說明 http://info.vmware.com/content/GLP_VMwareServer
我使用提 VMware-server-1.0.10-203137.i386.rpm這個安裝包. 在命令行下執行如下命令安裝 rpm -ivh VMware-server-1.0.10-203137.i386.rpm Preparing... ########################################### [100%] 1:VMware-server ########################################### [100%] 成功後,直接執行vmware,第一次運行提醒需要運行vmware-config.pl 進行配置.
  1. [root@hxy tools]# vmware
  2. vmware is installed, but it has not been (correctly) configured
  3. for this system. To (re-)configure it, invoke the following command:
  4. /usr/bin/vmware-config.pl.
配置過程,主要都采用缺省值
  1. [root@hxy tools]# /usr/bin/vmware-config.pl
  2. Making sure services for VMware Server are stopped.
  3. Stopping VMware services:
  4. Virtual machine monitor [ OK ]
  5. You must read and accept the End User License Agreement to continue.
  6. Press enter to display it.
  7. Do you accept? (yes/no) yes
  8. Thank you.
  9. Configuring fallback GTK+ 2.4 libraries.
  10. In which directory do you want to install the mime type icons?
  11. [/usr/share/icons]
  12. What directory contains your desktop menu entry files? These files have a
  13. .desktop file extension. [/usr/share/applications]
  14. In which directory do you want to install the application's icon?
  15. [/usr/share/pixmaps]
接下來編譯了VMMon模塊
  1. Trying to find a suitable vmmon module for your running kernel.
  2. None of the pre-built vmmon modules for VMware Server is suitable for your
  3. running kernel. Do you want this program to try to build the vmmon module for
  4. your system (you need to have a C compiler installed on your system)? [yes]
  5. Trying to find a suitable vmmon module for your running kernel.
  6. None of the pre-built vmmon modules for VMware Server is suitable for your
  7. running kernel. Do you want this program to try to build the vmmon module for
  8. your system (you need to have a C compiler installed on your system)? [yes] yes
  9. Using compiler "/usr/bin/gcc". Use environment variable CC to override.
  10. What is the location of the directory of C header files that match your running
  11. kernel? [/lib/modules/2.6.18-194.el5/build/include]
  12. Extracting the sources of the vmmon module.
  13. tar: vmmon-only/linux/driver.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  14. tar: vmmon-only/linux/driver.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  15. tar: vmmon-only/linux/hostif.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  16. tar: vmmon-only/linux/vmmonInt.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  17. tar: vmmon-only/linux/vmhost.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  18. tar: vmmon-only/linux: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  19. tar: vmmon-only/common/memtrack.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  20. tar: vmmon-only/common/memtrack.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  21. tar: vmmon-only/common/task.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  22. tar: vmmon-only/common/task.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  23. tar: vmmon-only/common/vmx86.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  24. tar: vmmon-only/common/vmx86.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  25. tar: vmmon-only/common/hostif.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  26. tar: vmmon-only/common/hostKernel.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  27. tar: vmmon-only/common/phystrack.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  28. tar: vmmon-only/common/phystrack.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  29. tar: vmmon-only/common/cpuid.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  30. tar: vmmon-only/common/cpuid.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  31. tar: vmmon-only/common/hash.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  32. tar: vmmon-only/common: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  33. tar: vmmon-only/vmcore/driver_vmcore.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  34. tar: vmmon-only/vmcore/moduleloop.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  35. tar: vmmon-only/vmcore: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  36. tar: vmmon-only/include/initblock.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  37. tar: vmmon-only/include/machine.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  38. tar: vmmon-only/include/modulecall.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  39. tar: vmmon-only/include/vm_asm.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  40. tar: vmmon-only/include/vm_asm_x86.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  41. tar: vmmon-only/include/vm_asm_x86_64.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  42. tar: vmmon-only/include/vm_time.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  43. tar: vmmon-only/include/vcpuset.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  44. tar: vmmon-only/include/x86.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  45. tar: vmmon-only/include/x86types.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  46. tar: vmmon-only/include/x86desc.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  47. tar: vmmon-only/include/x86apic.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  48. tar: vmmon-only/include/x86vt.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  49. tar: vmmon-only/include/vmm_constants.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  50. tar: vmmon-only/include/contextinfo.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  51. tar: vmmon-only/include/uccostTable.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  52. tar: vmmon-only/include/x86cpuid.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  53. tar: vmmon-only/include/speaker_reg.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  54. tar: vmmon-only/include/vmware.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  55. tar: vmmon-only/include/vm_assert.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  56. tar: vmmon-only/include/vm_atomic.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  57. tar: vmmon-only/include/vm_basic_asm.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  58. tar: vmmon-only/include/vm_basic_asm_x86.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  59. tar: vmmon-only/include/vm_basic_asm_x86_64.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  60. tar: vmmon-only/include/vm_basic_defs.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  61. tar: vmmon-only/include/vm_basic_types.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  62. tar: vmmon-only/include/vcpuid.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  63. tar: vmmon-only/include/iocontrols.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  64. tar: vmmon-only/include/pshare_ext.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  65. tar: vmmon-only/include/cpuid_info.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  66. tar: vmmon-only/include/vmware_pack_init.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  67. tar: vmmon-only/include/vmware_pack_begin.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  68. tar: vmmon-only/include/vmware_pack_end.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  69. tar: vmmon-only/include/driver-config.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  70. tar: vmmon-only/include/compat_highmem.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  71. tar: vmmon-only/include/compat_pgtable.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  72. tar: vmmon-only/include/compat_spinlock.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  73. tar: vmmon-only/include/compat_uaccess.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  74. tar: vmmon-only/include/compat_mm.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  75. tar: vmmon-only/include/compat_file.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  76. tar: vmmon-only/include/compat_wait.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  77. tar: vmmon-only/include/compat_page.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  78. tar: vmmon-only/include/compat_version.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  79. tar: vmmon-only/include/compat_timer.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  80. tar: vmmon-only/include/compat_semaphore.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  81. tar: vmmon-only/include/compat_sched.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  82. tar: vmmon-only/include/compat_kernel.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  83. tar: vmmon-only/include/compat_completion.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  84. tar: vmmon-only/include/pgtbl.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  85. tar: vmmon-only/include/hash.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  86. tar: vmmon-only/include/includeCheck.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  87. tar: vmmon-only/include: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  88. tar: vmmon-only/autoconf/geninclude.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  89. tar: vmmon-only/autoconf/nopage1.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  90. tar: vmmon-only/autoconf/skas1.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  91. tar: vmmon-only/autoconf/epoll.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  92. tar: vmmon-only/autoconf/setnice.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  93. tar: vmmon-only/autoconf: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  94. tar: vmmon-only/Makefile.normal: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  95. tar: vmmon-only/Makefile.kernel: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  96. tar: vmmon-only/README: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  97. tar: vmmon-only/Makefile: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  98. tar: vmmon-only: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  99. Building the vmmon module.
  100. Using 2.6.x kernel build system.
  101. make: Entering directory `/tmp/vmware-config0/vmmon-only'
  102. make: Warning: File `Makefile.kernel' has modification time 1.8e+08 s in the future
  103. make -C /lib/modules/2.6.18-194.el5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
  104. make[1]: Entering directory `/usr/src/kernels/2.6.18-194.el5-i686'
  105. make[1]: Warning: File `/usr/src/kernels/2.6.18-194.el5-i686/arch/i386/Makefile.cpu' has modification time 2e+08 s in the future
  106. make[2]: Warning: File `scripts/Makefile.lib' has modification time 8.6e+07 s in the future
  107. CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
  108. CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o
  109. CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o
  110. CC [M] /tmp/vmware-config0/vmmon-only/common/hash.o
  111. CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o
  112. CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o
  113. CC [M] /tmp/vmware-config0/vmmon-only/common/task.o
  114. CC [M] /tmp/vmware-config0/vmmon-only/common/vmx86.o
  115. CC [M] /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o
  116. LD [M] /tmp/vmware-config0/vmmon-only/vmmon.o
  117. make[2]: warning: Clock skew detected. Your build may be incomplete.
  118. Building modules, stage 2.
  119. make[2]: Warning: File `scripts/Makefile.lib' has modification time 8.6e+07 s in the future
  120. MODPOST
  121. CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o
  122. LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko
  123. make[2]: warning: Clock skew detected. Your build may be incomplete.
  124. make[1]: warning: Clock skew detected. Your build may be incomplete.
  125. make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.el5-i686'
  126. cp -f vmmon.ko ./../vmmon.o
  127. make: warning: Clock skew detected. Your build may be incomplete.
  128. make: Leaving directory `/tmp/vmware-config0/vmmon-only'
  129. The module loads perfectly in the running kernel.

配置網絡,這裡強烈建議選擇一個橋接,一個HOST Only,這是做嵌入式開發必須的配置雙網卡配置.
  1. Do you want networking for your virtual machines? (yes/no/help) [yes]
  2. Configuring a bridged network for vmnet0.
  3. Your computer has multiple ethernet network interfaces available: eth0, eth1.
  4. Which one do you want to bridge to vmnet0? [eth0] eth0
  5. The following bridged networks have been defined:
  6. . vmnet0 is bridged to eth0
  7. Do you wish to configure another bridged network? (yes/no) [no]
  8. Do you want to be able to use NAT networking in your virtual machines? (yes/no)
  9. [yes] no
  10. Do you want to be able to use host-only networking in your virtual machines?
  11. [no] yes
  12. Configuring a host-only network for vmnet1.
  13. Do you want this program to probe for an unused private subnet? (yes/no/help)
  14. [yes]
  15. Probing for an unused private subnet (this can take some time)...
Copyright © Linux教程網 All Rights Reserved