vmware workstation中centos mini版安装vmware-tools出现initctl: Job failed to start 错误

最近一个项目需要在linux上跑,没办法,只能装个虚拟机,安装完centos时,由于需要主机共享文件夾到centos中,必须要安装vmware-tools

用到的工具: Vmware-workstation12、Centos6.5

不多说,直接上代码

mkdir /mnt/cdrom                            新建个空文件夹
mount -t iso9660 /dev/cdrom /mnt/cdrom      挂载到/mnt/cdrom目录下
cp /mnt/cdrom/VMwareTools.****.tar.gz /root/vm.tar.gz  移动vm安装包到/root目录下并改名字为vm.tar.gz
umount /dev/cdrom                           解除之前的安装vm-tools的挂载

cd /root
tar xvf vm.tar.gz                           解压安装包
cd vmware-tools-distrib
./vmware-install.pl                         运行安装程序

但是我在这一步安装到最后报错了,信息如下:

Do you want to enable Guest Authentication (vgauth)? [yes] 

No X install found.

Creating a new initrd boot image for the kernel.
vmware-tools-thinprint start/running
initctl: Job failed to start 
Unable to start services for VMware Tools

Execution aborted.

于是到处百度,最后发现了问题所在,上图

vmware workstation中centos mini版安装vmware-tools出现initctl: Job failed to start 错误_第1张图片

所以我们只需要把这个conf文件删掉并重启vmware-tools的服务即可

rm /etc/init/vmware-tools-thinprint.conf

然后:

/etc/vmware-tools/services.sh start 

出现

Starting VMware Tools services in the virtual machine:
Switching to guest configuration: [ OK ]
VM communication interface: [ OK ]
VM communication interface socket family: [ OK ]
Guest filesystem driver: [ OK ]
Mounting HGFS shares: [ OK ]
Blocking file system: [ OK ]
Guest operating system daemon: [ OK ]

到此,大功告成

你可能感兴趣的:(vbox,centos)