Running a XubunTOS Virtual Machine Image in VMware Player
Contents
Running the XubunTOS Virtual Machine Image in VMware Player
This tutorial provides instructions for using the pre-configured XubunTOS virtual machine image in VMware Player. Instructions are provided for both Debian-based Linux as well as Windows users. If you run into problems, find that something doesn't work, or want to provide feedback of any kind, feel free to email me (Kevin Klues) at klueska(at)gmail.com and I'll try and update this tutorial as soon as possible.
Note: You will need to make sure you administrative rights on your machine before installing the VMware player. Otherwise, you will have to get your system administrator to follow these instructions instead. If you already have VMWare installed, you can skip down to the instruction for running XubunTOS in VMware Player.
OK, lets get started.....
Contents
- [View?docid=ajjngdf428hf_85gv8436#Debian_Linux_Installation Debian Linux VMWare Player Installation]
- [View?docid=ajjngdf428hf_85gv8436#XubunTOS_Installation Running XubunTOS in Linux VMware Player]
- [View?docid=ajjngdf428hf_85gv8436#Windows_VMware_Installation Windows XP VMWare Player Installation]
- [View?docid=ajjngdf428hf_85gv8436#Running_XubunTOS_in_Windows_XP Running XubunTOS in Windows XP VMWare Player]
Debian Linux VMware Player Installation
First thing you want to do is get the VMware Player installed and running on your system.
- Open a terminal window, change to the /etc/apt directory, open the sources.list file, and add the following lines to it
# Repository for VMWare
deb http://archive.canonical.com/ubuntu feisty-commercial main
- Exit the file and update aptitude (you may need to run this a couple of times before it completes successfully)
sudo apt-get update
Now that aptitude has been updated to include packages from the commercial repository, you can install the VMware Player by issuing the following command:
sudo apt-get install vmware-player
Aptitude will inform you that it needs to install some packages that vmware-player depends on. In my case it was:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
vmware-player-kernel-modules vmware-player-kernel-modules-2.6.20-15
The following NEW packages will be installed:
vmware-player vmware-player-kernel-modules
vmware-player-kernel-modules-2.6.20-15
After some downloading time, the VMWare player installation will eventually start, and you will be asked some configuration questions.
First it will show you the VMware license agreement. Just select OK (by pressing tab) and press enter.
Next it will prompt you for acceptance of the terms in the VMware server license. Select <Yes> and press enter.
This completes the VMware player installation.
To open the VMware player either type the following command into a terminal window (I like to open it as a background process):
vmplayer &
Or open it from the menubar (picture below is for Gnome, probably somewhere similar in KDE or other window manager):
Now you just need to get the XubunTOS virtual machine image running in your newly installed VMware player. The next section tells you how to do so.
Running XubunTOS in Linux VMware Player
To start running the XubunTOS virtual machine, you first need get a copy of the XubunTOS virtual machine image from here.
Now open up a terminal and 'untar' it into the vmware directory created in your home directory during the VMware player installation. In my case this is /home/klueska/vmware. Make sure you specify an absolute path otherwise 'tar' will complain.
tar -zxvf xubuntos-2.0-vm.tar.gz --directory=/home/klueska/vmware/
Now go ahead and start the VMware player. The first time you start it, you will be asked to accept the 'End User License Agreement'.
Browse through it and then click on 'Accept'
Immediately after accepting, a window will pop up asking you which virtual machine you would like to open. Browse to where you 'untarred' the XubunTOS virtual machine image and select 'Xubuntos 2.0.vmx'. After this first time, this window will always pop up asking which virtual machine you would like to run.
To connect to motes, you will have to tell the virtual machine that you would like it to recognize them. You MUST make sure all devices you would like to connect to are physically connected BEFORE powering on your virtual machine. If not, you will have to shut if off and back on again for them to be recognized. To do this, you don't need to actually power down the OS by logging off and shutting it down. You can simply quit VMware Player and start it up again. When you do this, the XubunTOS virtual machine will store its current state and return to exactly how it was before you shut it down. Its as if you asked the OS to go into suspend mode on a normal laptop.
Once you have your motes connected and you have started XubunTOS, you can select which ones you would like to connect to. They should be listed at the top of the screen, with depressed buttons indicating a connection, and undepressed buttons indicating that no connection has been made.
And thats it! You should now be up and running with your virtual machine installation of XubunTOS in VMware Player. Questions or comments can either be sent directly to me (klueska(at)gmail.com) or the tinyos-help mailing list.
Windows VMware Player Installation
To install the Windows VMware Player, go to the web address found here and register for the product.Agree to the end user license agreement and then select to install the binary installer seen below:
Once it is downloaded, go ahead and open it up to start the installation process.
Running XubunTOS in Windows XP VMware Player
To start running the XubunTOS virtual machine, you first need get a copy of the XubunTOS virtual machine image from here.
It is stored as a zip file that you will need to extract with your favorite Archive Utility. In my case, I'm using WinRAR, and the instructions below are based on this.
First, double click on the 'xubuntos-2.0-vm.tar.gz' file you just downloaded.
To connect to motes, you will have to tell the virtual machine that you would like it to recognize them. You MUST make sure all devices you would like to connect to are physically connected BEFORE powering on your virtual machine. If not, you will have to shut if off and back on again for them to be recognized. To do this, you don't need to actually power down the OS by logging off and shutting it down. You can simply quit VMware Player and start it up again. When you do this, the XubunTOS virtual machine will store its current state and return to exactly how it was before you shut it down. Its as if you asked the OS to go into suspend mode on a normal laptop.
Once you have your motes connected and you have started XubunTOS, you can select which ones you would like to connect to. They should be listed at the top of the screen, with depressed buttons indicating a connection, and undepressed buttons indicating that no connection has been made.