dsfsfs 发表于 2015-4-5 18:21:06

配置 archlinux 之安装 vmware tools (sysinit)

  如果在虚拟机安装archlinux,最好安装上vmware tools。

一、安装open-vm-tools



pacman -S open-vm-tools
  运行结果:


View Code


$ sudo pacman -S open-vm-tools
password for congbo:
resolving dependencies...
looking for inter-conflicts...
Targets (7): icu-49.1.2-2libdnet-1.12-6libsigc++-2.2.10-2libxss-1.2.2-1
scrnsaverproto-1.2.2-1uriparser-0.7.5-2
open-vm-tools-2012.05.21-6
Total Download Size:    6.18 MiB
Total Installed Size:   32.00 MiB
Proceed with installation? y
:: Retrieving packages from extra...
icu-49.1.2-2-i686          5.3 MiB25.6K/s 03:31 [######################] 100%
libsigc++-2.2.10-2-i686   59.2 KiB28.0K/s 00:02 [######################] 100%
scrnsaverproto-1.2....   9.8 KiB   245K/s 00:00 [######################] 100%
libxss-1.2.2-1-i686       13.3 KiB   240K/s 00:00 [######################] 100%
:: Retrieving packages from community...
libdnet-1.12-6-i686       99.4 KiB27.7K/s 00:04 [######################] 100%
uriparser-0.7.5-2-i686    91.0 KiB12.1K/s 00:08 [######################] 100%
open-vm-tools-2012....   655.4 KiB21.9K/s 00:30 [######################] 100%
(7/7) checking package integrity                   [######################] 100%
(7/7) loading package files                        [######################] 100%
(7/7) checking for file conflicts                  [######################] 100%
(7/7) checking available disk space                [######################] 100%
(1/7) installing libdnet                           [######################] 100%
Optional dependencies for libdnet
python2
(2/7) installing icu                               [######################] 100%
(3/7) installing uriparser                         [######################] 100%
(4/7) installing libsigc++                         [######################] 100%
(5/7) installing scrnsaverproto                  [######################] 100%
(6/7) installing libxss                            [######################] 100%
(7/7) installing open-vm-tools                     [######################] 100%
>>>
>>> You can mount VMware Shared Folders via:
>>>    mount -t vmhgfs .host:/ /mnt/hgfs
>>>
>>> or by adding this line to /etc/fstab:
>>>    .host:/   /mnt/hgfs   vmhgfsdefaults0 0
>>>
Optional dependencies for open-vm-tools
gtkmm
libnotify
libxtst
fuse
libsm
open-vm-tools-modules: for linux kernel
open-vm-tools-dkms: for linux-lts and other kernels
$
  

二、启动VMware tools



/etc/rc.d/open-vm-tools start
  或者在启动时候自动加载,加入到/etc/rc.conf里面daemon一行:

DAEMONS=(.... ... .... open-vm-tools ...)

  注意:x86_64没有open-vm-tools包
  
  运行结果:


View Code


$ /etc/rc.d/open-vm-tools start
:: Starting Open Virtual Machine Tools                                  FATAL: Module vmblock not found.

$
  

三、安装open-vm-tools-modules



sudo pacman -S open-vm-tools-modules
  运行结果:


View Code


$ sudo pacman -S open-vm-tools-modules
password for congbo:
resolving dependencies...
looking for inter-conflicts...
Targets (1): open-vm-tools-modules-2012.05.21-7
Total Download Size:    0.12 MiB
Total Installed Size:   0.12 MiB
Proceed with installation? y
:: Retrieving packages from community...
open-vm-tools-modul...   119.3 KiB23.1K/s 00:05 [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
(1/1) installing open-vm-tools-modules             [######################] 100%
>>> Enabling vmxnet driver in /usr/lib/modprobe.d/open-vm-tools-modules.conf
>>> (this will disable pcnet32 driver)
>>>
>>> If vmxnet driver doesn't handle your NIC, you have to manually
>>> disable loading of pcnet32 driver
>>>
$
  再开启vmware tools就没上面的错误了。
  

四、配置vmware tools



pacman -S gtkmm
  运行结果:


View Code


$ sudo pacman -S gtkmm
password for congbo:
resolving dependencies...
looking for inter-conflicts...
Targets (5): atkmm-2.22.6-1cairomm-1.10.0-2glibmm-2.32.1-1
pangomm-2.28.4-1gtkmm-2.24.2-2
Total Download Size:    2.23 MiB
Total Installed Size:   17.13 MiB
Proceed with installation? y
:: Retrieving packages from extra...
glibmm-2.32.1-1-i686   635.7 KiB23.5K/s 00:27 [######################] 100%
cairomm-1.10.0-2-i686    426.9 KiB7.59K/s 00:56 [######################] 100%
pangomm-2.28.4-1-i686   78.7 KiB9.75K/s 00:08 [######################] 100%
atkmm-2.22.6-1-i686       80.2 KiB27.6K/s 00:03 [######################] 100%
gtkmm-2.24.2-2-i686   1064.8 KiB24.8K/s 00:43 [######################] 100%
(5/5) checking package integrity                   [######################] 100%
(5/5) loading package files                        [######################] 100%
(5/5) checking for file conflicts                  [######################] 100%
(5/5) checking available disk space                [######################] 100%
(1/5) installing glibmm                            [######################] 100%
(2/5) installing cairomm                           [######################] 100%
(3/5) installing pangomm                           [######################] 100%
(4/5) installing atkmm                           [######################] 100%
(5/5) installing gtkmm                           [######################] 100%
$
  
  COPY AND PASTE



vmware-user-suid-wrapper
  
  Time synchronization



vmware-toolbox-cmd timesync enable
  
  参考:
  https://wiki.archlinux.org/index.php/Installing_Arch_Linux_in_VMware
页: [1]
查看完整版本: 配置 archlinux 之安装 vmware tools (sysinit)