Arch Linuxでopen-vm-toolsエラー

Arch LinuxのKernelを上げると、
open-vm-tools、open-vm-tools-modulesが
エラーで起動しなくなってしまいました。

Kernel・・・3.2.8-1-ARCH
open-vm-tools・・・2011.12.20-2
open-vm-tools-modules・・・2011.12.20-3

#uname -r
3.2.8-1-ARCH
#pacman -Ss open-vm-tools
community/open-vm-tools 2011.12.20-2 [installed]
    The Open Virtual Machine Tools (open-vm-tools) are the open source implementation of VMware
    Tools.
community/open-vm-tools-modules 2011.12.20-3 [installed]
    kernel modules for the open source implementation of VMware Tools

とりあえず、再インストールして起動してみます。

# packman -Syu open-vm-tools open-vm-tools-modules
#
# /etc/rc.d/open-vm-tools restart
:: Stopping Open Virtual Machine Tools [FAIL] 
:: Starting Open Virtual Machine Tools [BUSY] 
ERROR: could not insert 'vmsync': Exec format error
                                       [FAIL] 
#
# dmesg
[  130.338033] vmblock: disagrees about version of symbol module_layout
[ 2141.388555] vmci: disagrees about version of symbol module_layout
[ 2225.845851] vmsync: disagrees about version of symbol module_layout
[ 2526.868850] vmblock: disagrees about version of symbol module_layout

モジュールか起動スクリプトがオカシイみたいですね。

モジュール単体を読み込んでみます。

# insmod /lib/modules/extramodules-3.2-ARCH/vmhgfs.ko.gz 
  Error: could not insert module vmhgfs.ko.gz: Unknown symbol in module
#
# insmod /lib/modules/extramodules-3.2-ARCH/vmci.ko.gz 
  Error: could not insert module vmci.ko.gz: Unknown symbol in module
#
# insmod /lib/modules/extramodules-3.2-ARCH/vmsync.ko.gz 
  Error: could not insert module vmsync.ko.gz: Unknown symbol in module

ダメポですwどうやら、Open-vm-tools-modulesの再コンパイルが必要?
面倒なのでABSで再コンパイルします。

続きを読む

dpkg -lの[rc]について

Debian/Ubuntuでパッケージを削除したものの、
設定ファイルだけ残る場合があります。

# apt-get install w3m
# dpkg -l |grep w3m
ii  w3m 0.5.2-2.1ubuntu1.2 WWW browsable pager with excellent tables/frames support

インストールされているのがわかります。

1)パッケージを削除してみる

dpkg -r

# dpkg -r w3m
# dpkg -l |grep w3m
rc  w3m 0.5.2-2.1ubuntu1.2 WWW browsable pager with excellent tables/frames support

apt-get remove

# apt-get remove w3m
# dpkg -l |grep w3m
rc  w3m 0.5.2-2.1ubuntu1.2 WWW browsable pager with excellent tables/frames support

aptitude remove

# aptitude remove w3m
# dpkg -l |grep w3m
rc  w3m 0.5.2-2.1ubuntu1.2 WWW browsable pager with excellent tables/frames support

どのパッケージ管理ソフトで削除しても「rc」がついています。
「r」・・・パッケージは削除済み
「c」・・・設定ファイルは残っている

設定ファイルが残っていないと
パッケージを再インストール等する場合に
いちいち設定ファイルを一から書き直しになってしまいます。。。

dpk、aptitude、apt-get共に
パッケージ削除の際「remove」の代わりに「purge」オプションを付加すると
設定ファイルも消してくれます。

続きを読む

ESXi用Kernelの再構築

http://www.kernel.org
stable: 3.2.8 2012-02-27

3.2.8出てる。。。

ESXiで使っているUbuntuはgenericで
必要ないデバイスドライバがいっぱいあるので、

# cat /boot/config-2.6.32-38-generic |grep =y|wc -l
1227
# cat /boot/config-2.6.32-38-generic |grep =m|wc -l
2407
# cat /boot/config-2.6.32-38-generic |grep not\ set|wc -l
519

Kernel再構築してみた。

元Kernel・・・2.6.32-38-generic
新Kernel・・・3.2.8

DebianとRedhat系(CentOS、Scientific Linux)でも行けるはず。

変更点

CONFIG_MCORE2 *1
# CONFIG_ATA is not set *2
# CONFIG_IDE *2
# CONFIG_I2C_PIIX4 is not set *3
CONFIG_RTC_DRV_CMOS=y *4
CONFIG_VMWARE_BALLOON=y
CONFIG_VMWARE_PVSCSI=y *5
CONFIG_VMXNET3=y
CONFIG_SYSFS_DEPRECATED=y *6*7
CONFIG_SYSFS_DEPRECATED_V2=y *6*7
# CONFIG_SYSFS_DEPRECATED is not set *6*7
CONFIG_INOTIFY_USER=y *7
CONFIG_SIGNALFD=y *7

他にもいらないドライバも削っていく。

南十字さんありがとう〜
http://blog.thnetworks.info/

続きを読む