Linux.com

Home Linux Community Community Blogs

Community Blogs



Installing VMware Tools on Debian Squeeze GuestOS

Hi all,
thought I would put down the steps I had to go through to get the VM Tools for ESXi to work on my latest Debian Squeeze deployments, as by default ESXi doesnt recognise the OS as a Debian distro, I initially posted this in the forums.itrc.hp.com site and my own blog, but figured I would put it here too.


Ok, here goes, on your Debian Squeeze guest:
apt-get install make
apt-get install gcc
apt-get install libc-dev
uname -a and find out what your kernel version is then apt-get install the relevant kernel headers as follows…
apt-get install linux-headers-2.6.32-5-686

(All of the above apt-gets are needed as they will allow you to compile the VMTools programs contained in the .tar.gz file, as some of the programs replace some system defaults like network adapter drivers and replaces the NIC driver with the vmxnet3 driver (for example)).

mount /dev/sr0 /mnt
cp VMwareTools-4.0.0-xxxxx.tar.gz /usr/local/src
cd /usr/local/src
tar zxvf VMwareTools-4.0.0-xxxxx.tar.gz
cd vmware-tools-distrib
./vmware-install.pl

Follow all of the usual on-screen prompts for the rest of the VMTools install.
Once the install has completed, you’ll be able to log into your ESXi console using VI client and observer that there is now more granular information available for your guestOS.
Enjoy!

Matt Palmer

 

 

Install stock VMWare Player on Gentoo without portage

Introduction

If you've followed my previous virtualization articles you've already seen a lot of material related to VMWare and Gentoo as well.

I use Gentoo as my primary desktop distribution and I often use it on servers as well, one of the biggest problems on Gentoo portage is VMWare support for the player, if you're using an AMD64 release (Gentoo on x86 with 64bit support) you're stick with v2.x but recent 3.x version has introduced a lot of cool things (VM machine creation and better HW support), if you want to install it you're on your own.

It's not a complex installation but on Gentoo there're few tips to remember for a clean installation/uninstallation. Here's what I've did on my own:

 

Download and Install

First of all just download the package you're looking for from VMWare download area, you need to be registered to get something from them but it's not a problem, at the time of this writing version 3.1.4 it's the latest one but I don't think this procedure would not change later on

 

Now follow few HTML pages (vmware player link, registration area and then you'll be redirected to the download area) and you'll see something like this:

 

 

You need to download proper binary file according to your architecture (32bit or 64bit), I've downloaded for example “Vmware-Player-3.1.4-385536.x86_64.bundle” in my /tmp directory

 

now add executable bit to it:

chmod +x VMware-Player-3.1.4-385536.x86_64.bundle

So you'll get something like this:

# ls -la Vmware-Player-3.1.4-385536.x86_64.bundle
-rwxr-xr-x 1 andrea software 103561067 May 18 19:51 Vmware-Player-3.1.4-385536.x86_64.bundle

now just execute the bundle file (as ROOT)

./Vmware-Player-3.1.4-385536.x86_64.bundle

 

Select NO if you don't want to check for products updates (like me)

 

and select NO if you don't want to send anonymous data to them (like me)



These choices are up to you, but they're not important for this installation.

 

Then click INSTALL to install this program, this is a fairly clean installation as in a Windows environment, wait for a while until the installer program will stop with a pop-up like this one:

 

Don't worry about that, installer is complaining about a missing vmware service file, maybe because it thinks to be running in a mainstream distribution like Fedora Core or Ubuntu, simply ignore the warning and continue with your own installation. At the end of the process you'll see a screenshot like this one

 

 

Now Some tweaking

Installer ended its job, now it's time to tweak few things in your system to get everything working

First of all: we need to create a service file and put it under /etc/init.d, I've grabbed a good skeleton from /usr/portage/app-emulation/vmware-player/files/vmware-3.0.rc but I've adapted it to be fully compliant with the VMWare .bundle file, particularly I've payed attention to the uninstallation process. Don't copy vmware-3.0.rc, take mine because it works:

#!/sbin/runscript
# Author: Andrea Benini (2011-05-18)
# Distributed under the terms of the GNU General Public License v2
#
# Original script taken from /usr/portage/app-emulation/vmware-player/files/vmware-3.0.rc
# Slightly modified so I can use it with stock VMWare Player Bundle file from their download area
# This scripts fixes troubles for services installed from scratch as well as vmware manual uninstallation
# script.
# Report me problems if they occours (andrea benini GMAIL com. No dots, between name and surname, add @ where needed)
opts="stoppable"

depend() {
need localmount
use net }

start() {
ebegin Starting VMware USB Arbitrator
#start-stop-daemon --start --exec /usr/bin/vmware-usbarbitrator
/usr/bin/vmware-usbarbitrator eend $?
ebegin Starting VMware services
modprobe -a vmmon vmci vsock vmblock vmnet eend $?
/usr/bin/vmware-networks --start
eend $?
}

stop() {
ebegin Stopping VMware USB Arbitrator
start-stop-daemon --stop --exec /usr/bin/vmware-usbarbitrator
eend $?
/usr/bin/vmware-networks --stop eend $?
ebegin Stopping VMware services
modprobe -r vsock vmci vmmon vmblock vmnet
eend $?
}

stoppable() {
stop
}

 

Tweaking considerations

I've just added few things if you compare mine with the original one: usbarbitrator is needed from version v3.x and above (according to vmware docs) and it needs to be run as a service. I've also added the stoppable status because if you'd like to have a clean uninstallation you'll run into troubles without it, I've fixed it to avoid troubles and have a nicely installed package (with a nice uninstallation as well...)

Now copy my own vmware service file reported above and name it /etc/init.d/vmware, and place executable bit on it

# chmod +x /etc/init.d/vmware

 

Now if you run it you'll see something like this:

# /etc/init.d/vmware
Usage: vmware [ flags ] < options >

Normal Options:
start stop restart pause zap
Default init.d options.

Additional Options:
stoppable
Extra options supported by this init.d script.

Flags:
--quiet
Suppress output to stdout, except if:
1) It is a warning, then output to stdout
2) It is an error, then output to stderr
--verbose Output extra information
--debug Output debug information
--nocolor Suppress the use of colors

Configuration files:
/etc/conf.d/vmware /etc/rc.conf

For more info, please run '/etc/init.d/vmware help'.

 

 

 

Did you noticed the “Additional Options: stoppable” area above ? It needs to be there if you'd like to have a clean uninstall, if you don't have it (like original Gentoo script file) or if you don't understand what I'm writing just drop me a note for it

 

Final steps

We've done a lot of the job, now it's time to link vmware modules to your own running kernel, you need to have linux kernel source code and headers (emerge sys-kernel/linux-headers sys-kernel/gentoo-sources) installed in your system. Well if you're an average Gentoo user you'll probably have them already installed (if you follow the installation handbook and you compile the kernel by yourself you already have them where needed). By the way just check if you've them in your system:

emerge --search sys-kernel/linux-headers
emerge --search sys-kernel/gentoo-sources

Now it's time to link vmware modules to the kernel, always as root user just run:

# vmplayer

You need to wait for a while until modules and sources won't finish their compilation process, at the end you'll see this nice window:

 

 

And that's it, you're set and you don't need anything else, just add vmplayer command to your favorite menu in your Window Manager (Gnome, KDE, Fluxbox, ...)

if you can see this VMWare main window you've successfully installed everything fine, if you cannot see it you're stuck somewhere else, just drop me a note if you need some help

 

 

Final considerations

  • This procedure is tailored on Gentoo but it could be easily ported to other distros as well: Slackware, Arch, LFS and so on

  • Use my /etc/init.d/vmware service file, this works and it's fully compatible with Gentoo and VMWare as well, I've payed a special attention to the installation/uninstallation process. A lot of people are complaining about troubles when uninstallation process is run, it seems VMWare player uninstaller is looking for a particular feature to stop running services, that's why I've added “stoppable” status

  • To manually uninstall the VMWare Player just issue this command: vmware-installer --uninstall-product=vmware-player, always inside an XWindow command shell, a graphical installer starts and their procedure is really easy

  • You may start/stop virtual ethernet cards with the /etc/init.d/vmware file (/etc/init.d/vmware start|stop|restart|status|...), you don't need to fire up this service when your machine boots, when you run vmplayer networks interfaces are automatically started for you

  • If you're using a different distribution please pay attention to the lack of support when you're using a distro that is not RPM or DEB based, you just need to place a service file for starting up virtual network services (in /etc/rc.d or /etc/init.d or something like that), also add the status “stoppable” to your service file so you may have a nice clean uninstall if needed

I guess I've covered everything, please let me know if you need further information

 

Andrea (Ben) Benini

 

 

Low Power/Low Cost Embedded Desktop Linux PC

 

Wow,

I thought this was amazing, cheap and innovative..

The people at the Raspberry Pi Foundation have designed a tiny embedded desktop linux device slightly larger than a 20 pence piece, and it will be available for approximately $25.

It includes a HDMI and composite port and is designed to be plugged into a TV.

 

Take a look at its proposed key features:

 

  • 700MHz ARM11
  • 128MB of SDRAM
  • OpenGL ES 2.0
  • 1080p30 H.264 high-profile decode
  • Composite and HDMI video output
  • USB 2.0
  • SD/MMC/SDIO memory card slot
  • General-purpose I/O
  • Open software (Ubuntu, Iceweasel, KOffice, Python)

 

The thought behind this is that its a really cheap way of introducing computer science into educational institutes. Its great because it gives schools an alternative platform environment to teach the students apart from the candidates that are usually on offer.

Take a look at their site for details on how to purchase/get involved

http://www.raspberrypi.org/

I think the amazing thing about this (apart from its size and feature set) is the possibilities it opens up for poorer communities/developing world and establishments on a budgets to learn computing skills.

Cant wait to get my one!

 

 

 

 

 

 

What people think of ChromeOS and chromebooks

There have been many different takes on the Google's chromebooks since it was announced that products will soon be on the market. The review of the potential of the product is based upon each user's needs which makes it difficult to guage how it will effect the PC and laptop markets. Many of the writers and bloggers that are commenting are doing so with second hand knowledge and little or no market testing, this article will share how the chromebooks are being viewed by a beta user and multiple user groups that have been allowed to play on one of the Cr-48 chromebooks that Google sent out to beta testers.

Read more... Comment (0)
 

openSUSE Weekly News 175 is out!

We are pleased to announce the new openSUSE Weekly News Issue 175!

In this Issue:

  • openSUSE 11.2 has reached end of SUSE support - 11.2 Evergreen goes on!
  • Sebastian Kügler: What’s new in Plasma Active?
  • Thanasis Rous: Medical Report
  • ZDNet/Steven J. Vaughan-Nichols: Novell will continue to support LibreOffice
  • and many more ...

You can download it there:

We hope you enjoy the reading :-)

If you want to help us collecting interesting articles for the openSUSE Weekly News, so you can all your stuff into our new ietherpad: http://os-news.ietherpad.com/2.

Found Bugs? Please place it in our Bugtracker: http://developer.berlios.de/bugs/?group_id=12095

Features, Ideas and Improvements can placed in our Featuretracker: http://developer.berlios.de/feature/?group_id=12095

Older content can be found there.

Flattr this

 

For the sake of users

There's been a lot of talk lately about GNOME 3 and Unity - when I take a look at my news feeds, it looks like there is a storm in the Linux world. It got me thinking about desktop environments and user interfaces in general.

Read more... Comment (0)
 

My first blog about Gentoo

Gentoo is not easy to use, but once you get familiar with it, you will fall in love with it.

 

building celestia QT4

building Celestia is normally very easy .

 

The recommended way has been to go grab a copy from SVN and build the standard GTK or Gnome or older kde3 (QT3) .Now seeing as kde3 is , for the most part, no more and qt4 is becoming the DEFAULT across all 3 major platforms . A qt 4 build is now needed .

BUT That is easier said than done qt4 is still a bit "experimental " and still has a few bugs to work out . not everything 100% working and the auto tools ?? well it basically is a 'makefile' project using QT-Creator ( celesita.pro) some things need to be done by hand .
 The *.pro file needs to have a minor edit , or you install some software where it is listed in the pro file .

The config.h is NOT made and is needed --an oops & bug , being worked on  -- some system values need setting using the config.h

So to begin make sure software is installed Nvidia.run warning  ( some are VERY familiar with this - most do not know about this ) the .run REPLACES mesa system files and headers that celestia DOSE need to match mesa that is installed .
so if you use the .run driver you need reinstall the correct GL.h ( -dev or -devel )
for fedora that is " yum reinstall mesa-devel " after you install the .run after the kernel update ---- consult your own distro . on this issue ----

read the README and INSTALL install all the source packages needed for png,lua, ogg ,...

Install SPICE http://naif.jpl.nasa.gov/naif/index.html
so you can use the spacecraft pointing and location kernels -- this is optional BUT NICE to use a link to using spice for Cassini at Saturn http://www.shatters.net/forum/viewtopic.php?f=6&t=12275&hilit=cassini&start=0
and my update to it on the second page . spice is used by the cassini imaging team http://www.ciclops.org/news/looking_ahead.php?js=1



the current SVN pull "5162" builds using gcc 4.5 and png14 ( will also build using png12)  "  svn co https://celestia.svn.sourceforge.net/svnroot/celestia/trunk celestia  "

copy celestia/celestia to your WORKING directory !!!!!!!!!! I build code on a labeled DATA partition to keep things separate from the OS /DATA/src/QTcelestia -- or your install folder ( there is NO install script !) Now run "  autoreconf -v -i   "
as normal for svn the missing "config.h" and system variables for the basic file i DO use the qt3 configure option to make it BUT this will sill have to be edited " ./configure --with-kde " there will be errors but seeing as all you need is ONE file . Add to the "config.h"  the install folder YOU ARE GOING TO USE this is VERY important so celestia can find it's config file !!!!
if you do not there WILL be a start error !!!
-- copy/paste #######################

#define CELESTIA_DATA_DIR "/Your/install/folder"
#define CONFIG_DATA_DIR "/Your/install/folder"

#######################

i use -- CELESTIA_DATA_DIR "/usr/opt/Qtcelestia"

Now almost there edit the pro file in the src folder celestia/src/celestia.pro near the end is ###########

unix {
    INCLUDEPATH += /usr/local/cspice/include
    LIBS += -ljpeg -llua  /usr/local/cspice/lib/cspice.a
}
#############

edit that to reflect YOUR system ready to build fire up QT Creator use "open an existing project" navigate to celestia/src/celestia.pro and click on " build all " ( debug is the DEFAULT ) if there are no errors then build the release -- there will be some warnings  about 8 -- copy the contents of the build folder to your install folder ( unless you built in place ) --these are the required / needed files celestia-qt4

data
extras
extras-standard
fonts
locale
models
scripts
shaders
textures


win32-installer-image.bmp
splash.png

celestia.cfg
demo.cel
guide.cel
start.cel


now make a "celestia.desktop " file - Gnome or a desktop launcher file ( if you did NOT add the #define's to "config.h" - the launcher WILL NOT WORK !!! )


 

openSUSE Weekly News 174 is out!

We are pleased to announce our new openSUSE Weekly News Issue 174.

In this Issue:

  • Alex Eftimie: GSoC 2011: PackageKit and AppStream integration for Software Center
  • Sebastian Kügler: Plasma Active at Tokamak 5
  • openSUSE Ambassadors are rocking all over the world
  • h-online/Thorsten Leemhuis: Kernel Log: Coming in 2.6.39 (Part 3) - Architecture and infrastructure
  • and many more ...

You can download it there:

We hope you enjoy the reading :-)

If you want to help us collecting interesting articles for the openSUSE Weekly News, so you can all your stuff into our new ietherpad: http://os-news.ietherpad.com/2.

Found Bugs? Please place it in our Bugtracker: http://developer.berlios.de/bugs/?group_id=12095

Features, Ideas and Improvements can placed in our Featuretracker: http://developer.berlios.de/feature/?group_id=12095

Older content can be found there.

Flattr this

 

Using Ubuntu for Work/Play

Having been a student by day filmmaker by night.Ubuntu has really helped my quite a real bit.

Cinelerra,Kdenlive etc have helped me in many way for my film making process.As for being a student, Open Office Org has helped me create professional looking documents,letters(excuse letters) and even help build a website with HTML.

Being a filmmaker i do eventually need to do sound and video editing of some sort.Which brings me to my next question.

How do i incorporate Linux(Ubuntu) into my hobby?

Ubuntu is open source which enables me to save on licensing fees,extra add-ons,expensive new computers for just the new software.This was how it all started my tech guru had an old laptop from the office and had the Windows XP for his work purposes it had all sorts of programmes on it Windows Server to access his virtual office and his infrastructure.the old laptop had started to fail with Windows in it and all the high robust,complicated applications in it functioning,he had gotten a new laptop form the company to replace the failing one.He had use the old one for his personal purpose like watching his comedy shows and doing some mobile surfing at home or even on our holiday in New Zealand.Running on Ubuntu 8.10 it functioned well enough over my expectation.Back then i was living under a rock doing only with what i have and not sourcing out for better methods to do things like Video Editing.I had then remembered my guru sharing with me Ubuntu.

I had picked up Ubuntu again starting with 10.04 recently late last year,trying numerous times to make a download of Ubuntu from my computer and receiving the . ISO image i gave up! i went to shipit.ubuntu.com and ordered my copy of the Live CD it came just about about 8 weeks ago and i have given it numerous test drives without fail having to please me each time i use it. 

My decision was final i had booted Ubuntu alongside my usual Win7 so each time i booted up my computer i would go to the BIOS menu and choose to boot for my other hard drive which had Ubuntu.gives me a chuckle each time i boot up as it always remind me of my past living under a Rock.now Cinelerra, OpenOffice. Org all in my computer each and user friendly.

As for my homework i'm using Open Office to type out essays,really does serve a purpose in my work both in scripting and in homework.

I took the option of using dual booting in my computers used all ubuntu and win combine

 

Now have you tried your fair share of Ubuntu!?!

 

 

 

 

Create a custom distro: Choice of the right base (P.2)

previous page...

 

Debian

This is one of my favorite distribution for servers, when I don't have enough time for a fine tuned HW optimization (Gentoo) or when I don't have so much time to spend on the installation and configuration process (Arch) I usually adopt Debian. With Debian you can do some sort of “dumb/quick installation” (Debian is not dumb!), the installation process gives you a working machine in half an hour. That's what I'm definitively using it on production servers, rock-stable, optimized and well supported. ….but, I've tried to install it in an USB stick with space constraints, read-only root partition and some customizations, you can do it but someone else gives you a better result (read below). I've tried to apply Linux Live-CD scripts for my personal read-only installation, you can do it but I've had few issues, mostly on:

  • startup scripts optimization, I'd like to install packages and modify startup scripts later. If you'd like to have a “prebuilt-template” to apply to it you've to manually add everything later on

  • Debian is not aimed to a live USB/CD environment, it's made for something else (servers for example)

  • root partition is not compressed (knoppix style), you may do it externally. Disk space for a tipical installation doesn't fit under 100Mb. Now “minimal” Debian installation is not so minimal

  • You may do something on a typical installation and then reduce it later on but it's not an automated system and you need to reproduce each step manually every time you need to change something

Sadly this is one of my favorite choices but this is not the right kind of solution to my own problem

 

OpenSuSe

I've not against SuSe, it even has the best tool for building a tailored distro, everything on the web in the cloud, SuSe studio is an impressive tool but:

  • Like Debian their minimal installation is not so minimal, you cannot go under 200Mb

  • You may do customizations on it after the installation but what I'm trying to do is a read-only image

  • Cloud computing is fine for me but I prefer to have my own virtual machines in my own environment and waste my own disk as often as possible, what happens if I don't renew my account or if I don't log often in their website ? What happens if I'd like to work on my own machine and I don't have an Internet connection ?

  • I want to apply patches or modify init scripts for my installation, after package selection but before installation

I like it but as Debian I think it's not aimed to Live-CD/USB creation

 

if you're still reading this article...

Relax, I don't want to write a review about every possible Linux distribution available in our planet, I've really made these tests before choosing the right one (the one I'm most comfortable with in this particular situation). I'd just like to tell you a simple thing:

“every distribution was made for a specific task, you may do everything you want with it but there're easier approaches to your problem every time you need something different, an easy approach with a specialized distribution is always preferred if it doesn't compromise stability, speed and optimization“

I've really spent a lot of time to find out possible solutions with all these listed distros and I've finally decided to use a distro for their unique characteristics. My final choice for this particular problem is : SLAX. If you're still reading this article and you're still interested in my decision here are topics achieved with it:

  • I was using LiveCD Scripts (they're very popular) with LFS and Gentoo, I think this the best approach and the simple one

  • You don't need to deal with targeted/specialized packages (legacy distro packages: gentoo, ubuntu, fedora, ...) to build a live appliance, you've a live distro aimed built around live CD creation

  • you've a modular approach, this is tipical in a live cd environment, on slax there's just one required package: “The Core” (~50Mb), everything else is an option

  • You've AUFS (http://aufs.sourceforge.net) ready to use and it's already there

  • Every “module” (a package) is compressed and easily pluggable into your own personal system, you just need to copy it into the “modules” directory

  • You may create your own LiveCDs or LiveUSBs in just few minutes

  • Documentation is simple

  • You may add your own scripts or alter final file system structure just by adding files to the final root dir. This is the thing I love more, SLAX is using UnionFS approach to make live customizations. If you don't know UnionFS take a look at http://en.wikipedia.org/wiki/UnionFS, this is one of the biggest benefits when dealing with live distributions

  • It's based on Slackware, that's one of the reasons I've never cited it in the first part of the article. Slackware has a lot benefits for this kind of system but SLAX is really focused on my own system

  • A lot of cool different projects are using it for live cd tools (registry editors, demos, security, auditing, ...)

I was discussing in the forum section of this site about Live CD scripts a month ago with other folks, obviously Slackware addicted guys (:-) Matthew, Eric, … thanks :-) ) were more focused on it, I was already using it but I've always used it as the “Slackware little bro”. I've ran it few times (auditor, …) and used it for a while but I've always left it in a corner.

But after spending weeks with LiveCD scripts (http://www.linux-live.org/) and other distros (mostly LFS, Gentoo and Debian) I've decided to use them in their “original environment”: SLAX.

It was damn easy to use it, customize a current Slax installation, produce my own USB install, create and port new packages to it. In just half an hour (GCC installation time on Gentoo...) I've created my Slax build station and I was ready to create USB sticks. Everything available from the original Slax environment, easy customizations, minimal footprint (my first install: 80Mb!) and no external tools involved in my process creation. Just a file manager to handle/copy files and few minutes for everything ! That's what I need and this is definitively what I need to finish my appliance.

 

Where's the code ? Where's the solution ?

System requirements, hardware selection and distribution choice are mandatory sections (even the boring ones) for a project like that, in the next section I'll start with hands on descriptions and I'll start publishing some code involved in this particular project. I've decided to explain my specs with these chapters so I may start a discussion with you about the overall project, I could start my articles with sentences like: “I use Slax to do that” but maybe building a custom Linux distro it's not so appealing if you don't know the reasons and initial requirements

 

As usual feel free to add your comments or discuss about my choices.

 

Andrea (Ben) Benini

 

 

Previous chapters:
Choosing the hardware
Creating a live distro for target appliance

Next chapters:
Create a custom distro: building the build machine

Create a custom distro: building the first target machine

Building a minimal image

 

 
Page 8 of 122
30 Linux Kernel Developers in 30 Weeks

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board