Beruflich Dokumente
Kultur Dokumente
SUMMARY
Chapter 1: Installing VMware Workstation Chapter 2: Creating a guest Chapter 3: Installing the VMware Tools Chapter 4: Specific instructions for ArchLinux and derivate distributions such as Bridge or Manjaro Chapter 5: Few tips Chapter 6: The vmtools-4-arch-and-co bash script Personal Note page 3 page 9 page 55 page 61 page 71 page 82 page 84
You must know that Fnux never ever was able to install VMware Workstation 9.0.2 on any host using an ArchLinux derivate distribution!
Unfortunately, thats damned right! And Im still expecting some support from VMware! And if someone succeeds, Ill be happy to Update this document with credits!
BTW, its obvious that the VMware Tools development team didnt make a huge effort to support these distributions yet! Lets hope with the fast growing adoption of Manjaro that this situation will change soon!
On Debian and derivate distributions such as Mint and all the Ubuntu familly:
sudo apt-get update; apt-get dist-upgrade
Once this is done and depending of your Linux distribution, it may be wise to reboot before to continue. Enter the command:
sudo shutdown -r 1
or more violent:
sudo reboot
Now, please start the installation of VMware Workstation with the following command:
sudo ./VMware-Workstation-Full-9.0.2-1031769.x86_64.bundle --console
Next, type the letter [Q] then yes to accept the License Agreement.
Next, press the [Enter] key to accept checking for updates when you start VMware Workstation.
Next, press the [Enter] key to accept to help VMware with anonymous data (BTW, they dont spam you).
Next, press the [Enter] key to validate the default VMware Workstation user (below is my name).
Next, enter the path of the directory (folder) where you want to place your shared VMs. By default, this is in /var/lib/vmware/Shared VMs.
However, if you setup this directory to be on another disk (like me above), dont forget to mount the appropriate drive before to launch VMware Workstation. Next, press the [Enter] key to accept the value of the HTTPS port used to access to your Shared VMs.
Next
Once the installation is terminated, youll find the 3 VMware products (VMware Workstation, VMware Player and Virtual Network Editor) in the System Tools sub-menu.
Cool Nux
Yep!
If youre the rightful owner of a VMware Workstation license, you can enter its key with the command:
sudo /usr/lib/vmware/bin/vmware-vmx-debug new-sn XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Then, if you didnt enter your License key within the terminal mode yet, youll get the following dialog.
Then, if you select [Enter the License Key], youll get the next dialog:
Hey Fnux, dont fool me please! Its not a Mint screenshot above!
Yep! Youre right. Its an Ubuntu one! The reason is that this dialog never ever shows up with Mint! BTW, how do you spell BUG?
However, you still can enter you license key in a console as shown on page 9 with the command:
sudo /usr/lib/vmware/bin/vmware-vmx-debug new-sn XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
If you already have entered your License key, youll get the next dialog.
Exited Nux
Angel Nux
Yes, prior to create any VM, youve to setup few parameters (Preferences).
By default on Linux, the VMs are located in the /home/username/vmware directory (folder).
However, you can change this place to another directory or even on another drive. But if you put your VMs on another drive (like me), dont forget to mount this drive when youll use VMware Workstation.
Copyright 2012-2013 fnux.fl@gmail.com Last update: 2013-08-03 License : CC By Sa Page 13 on 84
Then, I highly suggest to enable the two options [Combine toolbar with menubar in windowed mode] and [Combine tabs with toolbar in full screen] of the tab [Display].
So, can we go now? Can I click on the [Create a New Virtual Machine] button?
Yep, follow me
On the dialog panel [Welcome to the New Virtual Machine Wizard], select the option [Custom] and click on the [ Next ] button.
On the next dialog panel, select the option [I will install the operating system later] and click on the [ Next ] button.
On the following dialog panel, select the Guest OS and click on the [ Next ] button. OK, for the fun lets try the last Fedora 19 (SchrdingerCat) in its 64 bit flavor.
On the following dialog panel, select the number of processors and core per processor and click on the [ Next ] button. Of course, these values depend of the capabilities of your CPUs!
.
Copyright 2012-2013 fnux.fl@gmail.com Last update: 2013-08-03 License : CC By Sa Page 17 on 84
On the following dialog panel, select the amount of RAM for this VM and click on the [ Next ] button. Of course, this value depends of the RAM of your machine! Never allow more than half of your physical RAM.
On the following dialog panel, select the option [Use bridged networing] and click on the [ Next ] button.
On the following dialog panel, select the options [Independent] and [Persistent] and click on the [ Next ] button.
On the following dialog panel, setup the size of the vitual drive, trust me, select the options [Allocate all disk space now] and [Store virtual disk as a single file] and click on the [ Next ] button. (Ill explain to you later why I recommend choosing these options).
On the following dialog panel, add -system to the name of the file name and click on the [ Next ] button.
On the following dialog panel, click on the [ Finish ] button. Dont worry. This will create the first virtual hard drive and well really customize our guest right after that.
Then, the time to create your virtual hard drive depends both of its size and of the speed of your real host hard drive.
Once the virtual hard drive is created, click on the [ x Close ] button of the last dialog panel.
Some explanations about virtual hard drives: If youre using VMware Workstation only for test purposes, I recommend you to create at least 3 different virtual disks. One for the system, a second one for your home and the last one for the swap. Not only this will be the best on a performance view point, but also this will allow you to easily create backups of your system virtual drive (a single file to copy) before experiencing strange and weird stuffs (if you see what I mean). Thats why its best to use the options [Allocate all disk space now] and [Store virtual disk as a single file] as shown before on page 20. So, once the first virtual disk is created, youll have to customize your guest a little bit.
Copyright 2012-2013 fnux.fl@gmail.com Last update: 2013-08-03 License : CC By Sa Page 22 on 84
To customize your guest, click on the [Edit Virtual machine settings] button.
Note: You can come back to this dialog panel at any time to modify the guest settings when its not powered.
Copyright 2012-2013 fnux.fl@gmail.com Last update: 2013-08-03 License : CC By Sa Page 23 on 84
On the following dialog panel, select the [Hard Disk] option and click on the [ Next ] button.
On the following dialog panel, select the options [Independent] and [Persistent] and click on the [ Next ] button.
On the following dialog panel, setup the size of the vitual drive to 10 Gb., select the options [Allocate all disk space now] and [Store virtual disk as a single file] and click on the [ Next ] button.
On the following dialog panel, add -home to the name of the file name and click on the [ Next ] button.
Once the second virtual hard drive is created, click again on the [ Add] button to create the third hard drive for the swap.
Next
Next
Next
Once the third virtual hard drive is created, select the option [ CD/DVD (IDE) ]
To install your guest, youll need a CD/DVD, an ISO file or even a LiveUSB stick. If youve a Live USBstick, check the option [ Use a physical drive: ] and select Auto detect or the name of your USBstick from the Device pull down menu.
If youve an ISO file, select the option [ Use ISO image: ] and click on the [Browse] button to search your file. Note: Its a good idea to copy your ISO file into the same directory (folder) that contains your VM, but it can be placed on any other location of any of your directories (folders), partition(s) or drive(s). However, if the ISO file is located within another place than the guest directory (folder), dont forget to mount its place before running the guest!
And next, dont forget to click on the [ Save ] button of the following dialog panel!
Once youre done, youll see all the changes in the [Devices] panel.
Why ? Because a VM is a machine with a BIOS! And depending of your host OS, it may or may not boot on the ISO or the CD/DVD or the LiveUSB drive on the first try!
So, select the option [Power On to BIOS] from the sub menu [Power] of the [VM] pull down menu.
Click inside the guest window to give the focus of your mouse to the guest.
Then move the CD-ROM drive above the Hard Drive section (press the [ + ] key), then press the [ F10 ] key and [Enter].
Be smart!
But surprise youll reboot on the Live installation device and not on the virtual hard drive!
If you click in the guest window to stop the timer by using an arrow key, then your mouse will be locked into that window.
Kind of!
As explicitly said in the bottom of the VMware Workstation window, press [Ctrl][Alt] to liberate the mouse from the guest window, and select the red square icon of the main menu.
Once youre back on the guest dialog panel, select (double click) on the [ CD/DVD (IDE) ] option from the [ Devices ] panel.
and
Then, youll get the next dialog panel. Just click on the [ OK ] button. Well see this in the next chapter.
Ignore these messages. Well see how to fix that in the next chapter.
This is the subject of the next chapter! Installing the VMware Tools.
To close this message, just click on it. But before installing these tools, PLEASE update your guest OS. Note: On ArchLinux and derivate distros such as Bridge and Manjaro:
sudo -Syyuu --force python
On Debian and derivate distros such as Mint and all the Ubuntu familly:
sudo apt-get update; apt-get dist-upgrade
Or use the GUI tool to do so if you dont feel comfortable with the command lines.
With Fedora, note that funny thing: the result of the yum command isnt the same than the result of its GUI!
Anyhow, proceed to the update and once its done, PLEASE reboot the guest prior to install the VMware Tools.
Copyright 2012-2013 fnux.fl@gmail.com Last update: 2013-08-03 License : CC By Sa Page 55 on 84
Then, to install the VMware Tools, select the option [Install VMware Tools] from the VM pull down menu.
This will automatically mount the VMware Tools CD and open it.
Then, copy (or drag & drop) the tar file into a convenient directory (folder) and unpack it. BTW, your home place is OK. To unpack the file, use the command : tar -zxf VMwareTools*.tar.gz
Then, go to the vmware-tools-distrib directory (folder) and start the install using the root priviledges (sudo).
cd vmware-tools-distrib && sudo chmod +x vmware-install.pl && sudo ./vmware-install.pl
Then, youll have to answer to a small set of questions by which youll always answer simply when pressing the [Enter] key to accept the default values.
When the VMware Tools install process is done, its wise to reboot the guest (even if its not required)!
Here is why!
Even if youve successfully installed the VMware Tools, some features may not work as expected on newer OS releases or with certain distributions. This is the case with a Fedora 19 guest where the 3D acceleration will not be enabled (youll still run the guest in rendering mode) and with Fedora 17, 18 and 19 where the drag & drop will not work. However, the cut-copy-past works! Same problem with ArchLinux, Bridge and Manjaro where nor the 3D acceleration nor the drag & drop will work. However, installing the VMware Tools on an ArchLinux derivate distribution is a lot tricky. This is the subject of the next chapter. For now, the sole guest distributions Ive been able to make all the VMware Tools to work are: CentOS 6.4, Debian 6 & 7, Red Hat 6.4, Ubuntu (from 10.04 up to 13.10) and of course also Windows 7, 8 and 8.1 pre-release.
Chapter 4: Specific instructions for ArchLinux and derivate distributions such as Bridge or Manjaro
Reminder: You must know that Fnux never ever was able to install VMware Workstation 9.0.2 on any host using an ArchLinux derivate distribution!
Unfortunately, thats damned right! And Im still expecting some support from VMware!
Now, the good point is that Ive been able to follow the ArchWiki page thats explaining how to install the VMware Tools in an ArchLinux derivate guest! Note: Meanwhile, I dont know who the folks are writing such pages (if you never ever can understand their mind path). BTW, its obvious that the VMware Tools development team didnt make a huge effort to support these distributions yet! Lets hope with the fast growing adoption of Manjaro that this situation will change soon!
Me too!
Second point: So, I assume that, whatever your host OS, youve already installed your guest using, lets say: Manjaro 64 bit ! I wont bother you with the process to install it since its the same thing than what you saw with Fedora as well as for any other distribution even for a guest using any old DOS, an IBM OS/2 and even a MSFT Windows flavor - :) So, you should have something like this:
Yep, and this works with both the kernel 3.9 and the last 3.10!
Whatever your distribution is, I DO REPEAT that its a wise idea to UPGRADE your OS prior to install the VMware tools! So, PLEASE do so, especially when there is a situation like this:
. Then, as said earlier, installing the VMware Tools on a guest using any ArchLinux derivate distribution is a little bit tricky since its obvious that the VMware development team didnt take really care of this subject, yet! So, I wrote a small bash script that will do the job for you. Just follow the instructions on the console and youll be done. You can get this script with the command:
wget http://www.as2.com/linux/tools/vmtools-4-arch-and-co.tar.bz2
Please read carefully the instructions on the console (terminal) before to give an answer.
At a certain point, the script may ask to choose the provider for the linux-headers. Please, select carefully this option to enable the linux-headers that correspond to the kernel youre running. If youre not sure of the version of your kernel, open a new terminal and use the following command:
uname -r
Here, after the OS upgrade, Im now using the kernel 3.10.2-1 So, Ill select the option 1
At another point, the script will ask to press the [Ctrl][Alt] key combination to give to the mouse the focus back to the host.
Please do so and select the option [Install VMware Tools] of the VM pull down menu.
Then, VMware Workstation will mount its own virtual VMware Tools CD.
Next, click back into the guest window, give the focus to the console (terminal) and press the [Enter] key to continue the execution of the script. Then, press the [Enter] key to accept the default values of the next 20 questions. Once this will be done, as per the proposal of the script, REBOOT your guest to enable the VMware Tools. When youll reboot, there is a chance that your screen resolution was changed back to 800 x 600. This means that your guest is now using the VMware video driver.
So, change your screen resolution accordingly to both your needs and the capabilities of your physical GPU.
and
youre set.
The cut - copy - past operations can be done from the host to the guest and vice versa (the clipboard is shared). This works also for files. Editing within the guest When youre editing something in the guest window (block-note, editor, console, etc.), just verify to let the mouse pointer inside the area of the guest window. If not, youll lose the focus! If so, just move the mouse pointer inside the guest window (you dont even need to click back into the guest window). Drag and drop operations Lets say you want to change the background of the guest desktop with a picture located on a drive or directory (folder) of your host.
Unfortunately, these operations dont work with all the guest OSes yet, and sometimes even not in the two ways (host to guest and vice versa). Switching between different guests Depending of both the power of your host and the settings of your guests (memory and number of cores), you can run several guests at the same time. Click on the [Show the thumbnail bar] of the VMware Workstation main menu will open a new panel below the current running guest that will show all the other running guests (if any).
This is an easy way to select another guest. Note: At that time, Im concurrently running 7 different guests: 5 Linux boxes plus Windows 7 and Windows 8.1 preview.
But to do so, youll better have quite a powerful CPU, a bunch of RAM and fast hard drives.
However, this is what a developer needs to make his job easier and comfortable!
Using the Unity mode. The Unity mode allows you to use an application of your guest directly on the desktop of your host without having the main VMware Workstation window open. This is specifically interesting when using applications that arent available on the OS of your host, such as Windows software (e.g. MS Office). For this example, Ill use the old but still very useful bi-lingual dictionary: Harraps Shorter Lets start it in the Windows 7 Ultimate 64 bit guest and look for the French translation of the word moron (why not).
Now, Im using LibreOffice Writer on the desktop of my host, and Id like to have the Harraps Shorter window on my host desktop without the embarrassing VMware Workstation eating a bunch of my host desktop space!
So, click on the [Enter Unity mode] button of the main VMware Workstation menu.
Here were!
Move the mouse pointer to the high left side of the host desktop to show the [Unity menu] panel that allows to start any other application that is in the guest menu as well as to quit the Unity mode.
Note: You can move the [Unity menu] panel when dragging it to another place of the host desktop and let it to be permanently shown.
A trick: When installing the Fedora guest, I suggested to create 3 different virtual drives with fixed size: One for the system, named Fedora 64-bit-system The second for your /home, named Fedora 64-bit-home The last for the swap, named Fedora 64-bit-swap
Here is why: One by many of the uses of VMware Workstation is to test new distributions, or new releases or upgrades. And even to test bad or unstable or unsupported stuffs. However, if you break your virtual guest, its often like breaking a real OS, and reinstalling an OS with all its update may make you kind of upset. So, before to mess you nicely working guest, if you followed me by creating fixed sized virtual HD, you can easily make a backup of your system simply by making a copy of the system virtual disk.
So, Copy (the right file is easy to find) Then Past ! Like shown below:
Get it? Now, you can mess your guest as much as you need.
Copyright 2012-2013 fnux.fl@gmail.com Last update: 2013-08-03 License : CC By Sa Page 80 on 84
Now, Ill let you play with VMware Workstation and discover other aspect of its use such as surfing the net from an isolated environment, or running a web server within another machine.
*-*-*-*-*-*
read -p "Please press [Enter] when you're ready. " READY echo -e "\033[0m" pacman -S linux-headers # if asked, select the option #4 for the linux39-headers version to install cd /lib/modules/$(uname -r)/build/include/linux ln -sv ../generated/uapi/linux/version.h for x in {0..6}; do mkdir -pv /etc/init.d/rc$x.d; done echo "" echo -e "\033[01;34mNow, please press \033[01;31m[Ctrl][Alt]\033[01;34m to return to the host." echo "" echo -e "Then select the option \033[01;31m\"Install VMware Tools\"\033[01;34m of the \033[01;31mVM menu\033[01;34m, and once the" echo -e "VMware Tools CD is mounted into your guest, click back inside your guest.\033[01;33m" echo "" read -p "Please press [Enter] when the VMware Tools CD is mounted. " READY echo -e "\033[0m" mount /dev/cdrom /mnt cd /root tar zxf /mnt/VMwareTools*.tar.gz cd vmware-tools-distrib echo "" echo -e "\033[01;34mNow just press \033[01;31m[Enter]\033[01;34m to respond to all the questions." echo "" echo "But if the install can't find the kernel-header path and ask you if you want " echo -e "to change its path, just say \033[01;31mNo\033[01;34m to that specific question and continue to" echo -e "press \033[01;31m[Enter]\033[01;34m to respond to all the other questions up to the end.\033[0m" echo "" ./vmware-install.pl echo "Section \"Device\"" > /etc/X11/xorg.conf.d/20-gpudriver.conf echo " Identifier \"Card0\"" >> /etc/X11/xorg.conf.d/20-gpudriver.conf echo " Driver \"vmware\"" >> /etc/X11/xorg.conf.d/20-gpudriver.conf echo "EndSection" >> /etc/X11/xorg.conf.d/20-gpudriver.conf echo "VM_DRAG_AND_DROP=\"yes\"" > /etc/conf.d/open-vm-tools /usr/bin/vmware-user echo "" echo -e "\033[01;34mNow you're done." echo "" echo "You should reboot your OS to enjoy using the new capabilities of your guest." echo "" echo "However, after rebooting, you'll have to change your display resolution." echo -e "\033[01;33m" read -p "Do you want to reboot your system: y/N [Default = No] ?" RESTARTOS if [ "$RESTARTOS" = "y" ] || [ "$RESTARTOS" = "Y" ] then echo -e "\033[01;34m" echo "Goodbye." echo -e "\033[0m" shutdown -r 1 else echo -e "\033[01;34m" echo "Please reboot your OS to enable the vmware tools." echo "Goodbye." echo -e "\033[0m" exit 0 fi
*-*-*-*-*
Personal Note
I hope youll enjoy reading this small contribution to install and use easily VMware Workstation. BTW, Im not affiliated by any manner to VMware, nor to ArchLinux, Bridge, CentOS, Debian, Fedora, LinuxMint, Manjaro, Red Hat, Ubuntu and of course MSFT! I do this kind of tuto just for the fun. In return, I do appreciate help on topics that I dont understand or Im not familiar with yet, and trust me, I can ask very stupid or obvious questions. Dont hesitate to contact me by e-mail if youve any question with regard to this document of with the script.