Fedora 安裝 virtualbox Vmware 的問題

virtualbox
#dnf update kernel*
#sudo dnf install kernel-devel dkms kernel-headers
#/usr/lib/virtualbox/vboxdrv.sh setup

Vmware Workstation
# dnf install kernel-headers kernel-devel gcc glibc-headers
安裝序號
VY1DU-2VXDH-08DVQ-PXZQZ-P2KV8
VF58R-28D9P-0882Z-5GX7G-NPUTF
YG7XR-4GYEJ-4894Y-VFMNZ-YA296
CZ3H8-4EY15-H81XZ-KPMZE-XGAFF
YF590-4WX8M-H81QZ-2YX59-XVAF6

如何安裝 VMware Tools on Debian, Ubuntu and CentOS with Command Line

Today we use virtualization for both development, testing and also production. One of the most popular virtualization solution is VMware. There are many products that we can use for free such as VMware Playeror VMware vSphere Hypervisor (ESXi).

If you want Guest OS to be fully working in VMware products, you must install VMware Tools that will give better virtualization support such as you can move mouse better without have to press Ctrl + Alt to get out from Guest OS. Or in Linux Server that don't have GUI, Host OS can read or change some value from Guest OS such as IP Address.

Install VMware Tools on Windows OS will be very easy as install normal software. But this article will help you to install VMware Tools on Linux Server that have only CLI for you. In principle you must have compiler and linux headers so you can go smooth with installing VMware Tools.

置放 VMware Tools 光碟

This step will be the same for Debian, Ubuntu and CentOS

If you use VMware Workstation go to VM > Install VMware Tools...

/system/files/vmware-tools/vmware-tools-01.png

如果你使用 VMware vSphere Hypervisor (ESXi) go to VM > Guest > Install/Upgrade VMware Tools

/system/files/vmware-tools/vmware-tools-02.png

安裝 VMware Tools on Debian

We must log in with root user. It is better if we start with update all the software in system first then reboot one time.

apt-get update && apt-get dist-upgrade
shutdown -r now

Install compiler and Linux Header with command

apt-get update && apt-get install build-essential linux-headers-$(uname -r) libglib2.0-0

Mount VMware Tools disc and extract file

mount /dev/cdrom /mnt
tar xvfz /mnt/VMwareTools-*.tar.gz -C /tmp/

Start installing VMware Tools with command

perl /tmp/vmware-tools-distrib/vmware-install.pl

Then press Enter to all the questions to use all default answer. Then reboot again and it will be done.

shutdown -r now

安裝 VMware Tools on Ubuntu

We must log in with user that has sudo privilege. It is better if we start with update all the software in system first then reboot one time.

sudo apt-get update && sudo apt-get dist-upgrade
sudo shutdown -r now

Install compiler and Linux Header with command

sudo apt-get update && sudo apt-get install build-essential linux-headers-$(uname -r)

Mount VMware Tools disc and extract file

sudo mount /dev/cdrom /mnt
sudo tar xvfz /mnt/VMwareTools-*.tar.gz -C /tmp/

Start installing VMware Tools with command

sudo perl /tmp/vmware-tools-distrib/vmware-install.pl

Then press Enter to all the questions to use all default answer. Then reboot again and it will be done.

sudo shutdown -r now

安裝 VMware Tools on CentOS

We must log in with root user. It is better if we start with update all the software in system first then reboot one time.

yum update
shutdown -r now

Install compiler and Linux Header with command

yum install gcc perl

Mount VMware Tools disc and extract file

mount /dev/cdrom /mnt
tar xvfz /mnt/VMwareTools-*.tar.gz -C /tmp/

Start installing VMware Tools with command

perl /tmp/vmware-tools-distrib/vmware-install.pl

Then press Enter to all the questions to use all default answer. Then reboot again and it will be done.

shutdown -r now