Hoe VMware onder openSUSE te gebruiken
Het installeren en configureren van VMware Workst/SUSE Linux (of na een simpele update van de kernel op de stabiele versie) kan een beetje moeite geven. Deze pagina zou u moeten helpen bij het zetten van de stappen om de VMware installatie weer te laten draaien, of bij uw eerste installatie.
Inhoud |
Achtergrond
- VMware gebruikt kernelmodules die speciaal zijn gemaakt voor specifieke kernel versies. Dat betekend dat VMWare standaard alleen bepaalde distributies met bepaalde kernel versies ondersteunt.
- Op niet-ondersteunde distributies en/of kernel versies kunnen de VMWare kernelmodules ook zelf worden gecompileerd. Dit compileren benodigd enkele pakketten die niet standaard worden geinstalleerd op SUSE Linux. Er zijn ook enkele stappen nodig om het systeem klaar te maken voor het bouwen van kernel modules.
- Niets van het bovenstaande is moeilijk om zelf te doen. (Het is alleen moeilijk zonder de juiste instructies, vooral als je nieuw bent in Linux. Gelukkig helpen wij een handje)
Status Updates:
- VMware Workstation 5.5 bevat nu ook SUSE Linux 10.0 ondersteuning. Dit zorgt ervoor dat het niet nodig is om hier zelf modules voor te bouwen of de vmware-any-any update te gebruiken. Het installeerscript /usr/bin/vmware-config.pl zal goed werken.
- 6 December, 2005: Een kernel patch die vandaag is uitgekomen heeft de drivers die met VMware Workstation 5.5 meegeleverd worden onbruikbaar gemaakt. Dit betekend dat je opnieuw het /usr/bin/vmware-config.pl script uit moet voeren en de drivers moet compileren. Dat zou moeten werken zonder het gebruik van vmware-any-any update.
- VMware Workstation 5.5.2 released on Aug. 10, 2006 includes built-in support for SUSE Linux 10.1, 32-bit and 64-bit.
- 21 december, 2006: VMWare 5.5.3 op openSUSE 10.2 heeft een probleem met de juiste bibliotheek die een VFS-fout kan geven en leidt tot problemen met het openen van bestaande VM's. Een workaround voor dit is het wijzigen van de symbolische koppeling /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0 naar /usr/lib/libpng12.so.0 en ook /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1 naar /lib/libgcc_s.so.1. Een discussie hierover is te vinden op http://www.vmware.com/community/thread.jspa?messageID=535418.
- Dit probleem is er ook met de VMware Server console utility. Hierbij gaat het om de bibliotheekpaden /usr/lib/vmware-server-console/lib/ in plaats van /usr/lib/vmware/lib.
- Een gebridgt netwerk met WiFi wordt niet ondersteund in Linux dus moet u dat ook niet selecteren.
- Dit is hetzelfde voor VMware Player.
- 11 september 2007: VMware Workstation 5.5.4 op SLED 10 SP 1 vereist dezelfde workaround met de bibliotheken als 5.5.3 op OpenSUSE 10.2 hierboven.
Instructies voor een nieuwe installatie
Als u VMware voor de eerste keer installeert dat zouden de volgende instructies u daarbij moeten helpen.
Deze procedure concentreert zich op het opzetten en laten draaien van een nieuw VMware-systeem. Als een eerder werkend VMware-systeem niet meer werkt na het installeren van een nieuwere kernel-versie dan vindt u de informatie over het hercompileren van de VMware-kernelmodulen op Herstellen van een VMware-werkstation na een kernel-update.
| Dit artikel is nog maar gedeeltelijk of in het geheel niet vertaald. Als u mee wilt helpen met vertalen lees dan de OpenSUSE stijlgids. Als de pagina nog geheel niet is vertaald, kopiëer daarna de Engelstalige tekst naar deze webpagina en vertaal deze. Nog (verder) te vertalen artikelen kunt u vinden onder de rubriek Te vertalen; dit sjabloon uitgezonderd.
Dit sjabloon Vertalen pas weghalen als alles is vertaald. Positioneer dit sjabloon tussen vertaalde en nog niet vertaalde tekst of direct onder het sjabloon NotTranslated. |
Install the Packages Required for Building Kernel Modules
Install the following packages. The Software Management tool in YaST makes this easy to do.
- binutils
- gcc
- gcc-c++
- kernel-source
- make (this is probably already installed)
Make sure that your Kernel is up to date. Your kernel version must match the version of the kernel-syms and kernel-source packages.
Warning: If you update your kernel you must be sure to update kernel-source to be sure that they all have the same version. If you update your kernel via YOU (YaST Online Update) you can be 99% sure that if you update the kernel all installed kernel-packages (kernel-{source,doc}) will be updated as well, but better check twice and do not let YOU update your kernel without informing you. Updating kernel (e.g. installing version 2.6.13-2) means that kernel-source (e.g. version 2.6.13) will not match and chances are good that VMware will not work (even with the vmware-any-any-patch).
Install VMware Workstation from RPM
YaST is able to install the RPM for VMware Workstation on SUSE Linux without any problem. You can get the RPM-based installer for VMware from www.vmware.com. Also, VMware will provide you with a 30-day evaluation license to try the product before you buy it. After applying the RPM for VMware, DO NOT run the VMware configuration script (/usr/bin/vmware-config.pl). It will not work properly yet.
If you prefer to install the RPM package on the command line, or have problems installing via the graphical interface (as I did on my new 10.2 installation) you can also install from the console (as root) with:
yast -i path-to-your-RPM-file
Download and Apply vmware-any-any-update
Download the latest vmware-any-any-update from http://knihovny.cvut.cz/ftp/pub/vmware/ (or its mirror http://ftp.cvut.cz/vmware). This update is a relatively small, compressed archive with an automated installer script.
(Note: the version at the time of this writing was vmware-any-any-update113.tar.gz, which worked on openSUSE 10.3)
1. Extract the archive, then follow these steps:
2. Open a Terminal window
3. Use su to become root
4. Switch to the directory in which you extracted vmware-any-any-update
5. Run ./runme.pl and follow the prompts.
- Note: After applying the patch, the runme.pl script will call the VMware configuration script /usr/bin/vmware-config.pl. Follow these prompts as well.
Responding to the Configuration Script Prompts
- If you need it, Cool Solutions has an article detailing how to respond to each of the prompts.
Start VMware
There are two common ways to start VMware Workstation.
Note: VMware does not require you to be root. Therefore, it is best practice to run VMware as a regular user. However, you may need to assign appropriate file permissions that allow you to access certain folders.
Starting VMware from Command Line
- In a terminal session, type vmware
Starting from a launcher icon
- In KDE
- Kmenu > System > More Programs > VMware Workstation
- GNOME
- Applications > System > More Programs > VMware Workstation
Activate VMware with a License Key
Once you have VMware Workstation running, click on the Help menu and choose Enter Serial Number. This will unlock VMware so you can start creating and using virtual machines.
Troubleshooting
Bridge Networking setup fails; Running VMware Prompts you to Run vmware-config.pl
If you attempted to enable networking during the vmware-config.pl script, and then received this message when you tried to start VMware.
vmware is installed, but it has not been (correctly) configured for this system. To (re-)configure it, invoke the following command: /usr/bin/vmware-config.pl.
Also, if you run vmware-config.pl and do not enable networking, VMware Workstation starts.
This means that you probably ran the vmware-config.pl script before running runme.pl from the vmware-any-any-update. Configuring the VMware networking support fails unless you have already applied the vmware-any-any-update.
VFS Error when browsing for a file
Run the following command as root (10.2)
cd /usr/lib/vmware/lib/libpng12.so.0 mv libpng12.so.0 libpng12.so.0.old ln -sf /usr/lib/libpng12.so.0 cd /usr/lib/vmware/lib/libgcc_s.so.1 mv libgcc_s.so.1 libgcc_s.so.1.old ln -sf /lib/libgcc_s.so.1
You may have to repeat the above steps in the /usr/lib/vmware-server-console directory as well if you install vmware server console and have similar errors there. One place where you are likely to see this error in the vmware server console is if you take a screen shot of a vm and are prompted to select a location to save the screen shot to.
Attaching USB Devices to Guest OS (10.2)
VMWare Workstation 5.x includes the ability to attach USB devices directly to the guest OS. In the default OpenSUSE 10.2 there are problems making this feature work because VMWare Workstation 5.x looks to /proc/bus/usb for grabbing the USB device. This was disabled for security reasons with the release of 10.2, but with the latest updates it can be enabled.
First, make sure you have the latest 10.2 kernel updates. The usbfs module is disabled in the default 10.2 kernel. (YaST -> Online Update)
Then before starting VMWare, run the following command as root:
mount -t usbfs none /proc/bus/usb
Now start VMWare and boot up your guest OS. Make sure VMWare has focus and attach your USB device. Now instead of seeing your SuSE Hardware dialog, you should instead see your guest OS natively handle the device. This can be useful for devices like MP3 players, USB security keys, hardware dongles, etc.
See Also
-
How to install VMware 5.0 workstation on SUSE Linux 10.0
- Installing VMware Tools in Unsupported Linux Distributions
- Running VMware Workstation 5.5 on SUSE 10.1
- Installing VMWare Workstation 5.5 on SuSE Linux 10.1
- How To Install VMware Server in a Suse 10.x Linux Host
- Installeren van VMWare Workstation 6 op openSUSE 10.3
- Installeren van VMWare Workstation 6.0.4 op openSUSE 11.0
- Install and Configure VMWare Server 1.0.6 virtualisatie in openSUSE


