RSS

Category Archives: VMware

How To Create A Virtual Floppy For VMware vSphere

Last week I needed to create a virtual floppy disk to load drivers for a Windows XP Virtual Machine (VM) during the boot process. This is not a scenario that crops up too often – but in this case I wanted to restore a physical Windows Home Server backup into a VM.

I downloaded the 30 day trail version of WinImage and created a virtual floppy with the drivers that I needed as follows.

Click New and then accept the defaults for a virtual floppy:

If you want to create folders in your virtual floppy click Image then Create folder:

To add files click the Inject icon:

Browse to the location of the files you want added to the virtual floppy and select them to add them:

Here you can see that I have multiple folders created each with a different set of drivers:

To save your virtual floppy click File and then Save As:

Type a file name for the virtual floppy and add the .flp file extension to the file name.

This allowed me to take the vSphere Windows XP drivers from a VM that was backed up on WHS and put them in a virtual floppy. With the virtual floppy I was able to boot the WHS restore CD in VMware vSphere are restore a physical Windows XP WHS backup to a VM.

It’s a handy way of moving WHS backups to a VM so that you can “retire” a backup from WHS to vSphere and make room for other machines to back up.

 

Tags: , , , , , , , ,

Installing Nexenta Core Platform 3.0.1 With Nappit on VMware vSphere 4.x

I have been mulling over what exactly the eventual replacement for my Windows Home Server might be one day – and Nexenta is something that I have been pondering for a while.

The Nexenta Core Platform (NCP) is what the commercial (and community) versions of Nexenta (NexentaStor) are built upon.

NCP is based on Ubuntu, with an OpenSolaris kernel. NexentaStor (Community) has a Web Management User Interface (WMUI) and an 18TB limit for storage. NCP has a community developed WMUI called Nappit.

I decided to look at installed NCP and Nappit to get a feel for NCP over NexentaStor Community edition as I have not decided yet on what amount of storage I might want to use Nexenta for. This is because my plan is to use mirroring to provide basic redundancy rather than other forms of RAID. For some storage pools I might use three mirrored drives together rather than two and so I can see this strategy eating into the 18TB limit of NexentaStor Community (although hopefully not too quickly). I guess I don’t want to feel limited with my next storage server.

I am still pondering the pros and cons of virtualizing NCP on VMware vSphere versus running two physical boxes but for now lets look at installing NCP in a vSphere virtual machine.

Note the following keys used during installation:

  • Up and Down arrow keys move the cursor up and down between input fields and check-boxes,
  • Spacebar marks your selection,
  • Tab cycles through the options,
  • Enter confirms your choice and proceeds to the next step.

First download the Nexenta .iso and copy it to your vSphere datastore.

Create a new virtual machine and specify the following Guest Operating System properties – Linux and Ubuntu (64-bit).

I configured 4Gb of RAM with the default LSI Logic Parallel SCSI controller with a 12GB vitrual hard disk.

Finally point the virtual CD-ROM of the virtual machine to the uploaded Nexenta .iso and boot the virtual machine.

Enter a password for root, then press the down arrow key and re-enter your password. Press tab to highlight the OK button and then press Enter.

Login as root (or login as other user, enter su to get root permission).

At this point I tried to install napp-it but discovered that I did not have an IP address. The fix was as follows:

svcadm disable svc:/network/physical:default
svcadm enable svc:/network/physical:nwam

I entered the following command to check that I had an IP address:

ifconfig -a

Now we can install the nappit web interface for Nexenta:

wget -O - www.napp-it.org/nappit | perl
reboot

Open your preferred browser and enter: http://<server-ip>:81 to manage your Nexenta installation.

Sources:

http://www.nexenta.org/boards/1/topics/1118, http://www.nexenta.org/projects/site/wiki/Difference

http://www.nexenta.org/projects/site/wiki/GettingStarted

http://www.nexenta.org/projects/site/wiki/WhyNexenta

http://193.196.158.121/napp-it.pdf

 
 

Tags: , , , , , , , ,

Ubuntu Server 10.4 Lucid – Installing Feng Office 1.7.4 Community Edition

Feng Office is a web based suite of collaborative applications (groupware) that includes notes, email, contacts, calendar, documents, tasks and weblinks. As an administrator you can setup users and collaborative workspaces and users can work in their own workspace as well as the collaborative workspace(s) that they have access to. I will be installing the current stable version of Feng Office which is 1.7.4 (although you can download and install 1.7.5 if you want to).

Note: I had to look around for a solution for enabling innoDB on Ubuntu 10.4 Lucid and fortunately did find a work-around that enabled me to install Feng Office. Having said that InnoDB should be enabled by default – it appears that MySQL seems to disable it if your InnoDB log files get corrupted. When you remove the log files they are recreated, allowing InnoDB to start again. This will be covered during the tutorial below if you also encounter this issue.

I installed Feng Office in a VMware vSphere virtual machine on an existing Ubuntu 10.4 Lucid LAMP server.

If you do not have Ubuntu Server 10.4 already installed you just need to choose the LAMP and SSH roles during installation. On an existing server without these roles installed enter the following command at the terminal (and then select the LAMP and SSH roles and make a note of your MySQL password for later):

sudo tasksel

Assuming that we now have the LAMP and SSH roles installed we can now connect remotely to the server using Putty (Windows) or SSH (Linux).

First install php5-gd:

sudo apt-get install php5-gd

Next check the memory_limit setting in php.ini.

sudo nano /etc/php/apache2/php.ini

Make sure that the memory_limit setting is set to at least 32 MB.

Install Unzip (so that we can unzip Feng Office after we download it):

sudo apt-get install unzip

Now change directory to /var/www and download Feng Office:

cd /var/www/
sudo wget http://downloads.sourceforge.net/project/opengoo/
fengoffice/fengoffice_1.7.4/fengoffice_1.7.4.zip

Unzip Feng Office:

sudo unzip fengoffice_1.7.4.zip -d /var/www/

Feng Office will now be extracted to the folder feng_community in the /var/www directory.

Give ownership of the feng_community directory to Apache:

sudo chown -R www-data:www-data /var/www/feng_community

The next step is to create a MySQL database for Feng Office:

mysql -u root -p

Enter your MySQL password when prompted.

At the mysql> prompt type the following commands – make sure you change ‘fengsqlpassword‘ to a password of your own:

create database fengdb;
create user 'fenguser'@'localhost' identified by 'fengsqlpassword';
grant all on fengdb.* to 'fenguser'@'localhost';
quit;

Now restart Apache:

sudo /etc/init.d/apache2 restart

If you want to quickly check that InnoDB is running at this point you can do this as follows:

mysql -u root -p
mysql> show engines;

If InnoDB is not running then issue the following commands:

sudo /etc/init.d/mysql stop
sudo mv /var/lib/mysql/ib_logfile0 /var/lib/mysql/ib_logfile0.bak
sudo mv /var/lib/mysql/ib_logfile1 /var/lib/mysql/ib_logfile1.bak
sudo /etc/init.d/mysql start

For good measure I rebooted – and then found that InnoDB was running:

sudo reboot

To complete the installation open browser and goto http://<server-ip>/feng_community/ where <server-ip> is the IP address of your server.

Click Next:

You should pass the Environment checks – click Next:

Confirm the following details as per the screen-shot below.

Hostname: localhost
Username: fenguser
Password: The fengsqlpassword you defined earlier
Database name: fengdb

Click Next:

Click Finish to complete the installation:

Browse to http://<server-ip>/feng_community/

Define an Admin username, email address, password and Company name and then click Submit:

Welcome to your new Feng Office installation:

Sources: howtoforge, turnkeylinux forum, Feng Office Wiki and innodb forum.

 
2 Comments

Posted by on June 19, 2011 in Linux, Ubuntu, Ubuntu Server, Virtual Machine, VMware, vSphere

 

Tags: , , , , ,

Ubuntu Server – Upgrading VIMP (Community Edition) From 2.0.6 to 2.1.1

ViMP (a video & social media Content Management System) recently released version 2.1.1 (which includes support for mobile devices).

I had previously installed version 2.0.6 (as a virtual machine in VMware vSphere) and thought I would take a look at keeping my ViMP installation up-to-date.

The first step is of course to make a backup in-case the upgrade fails – I simply took a snapshot of my virtual machine as this was the quickest and simplest solution.

First download ViMP version 2.1.1 from here.

Upload ViMP 2.1.1 to your server using WinSCP (Windows) or SSH (Linux).

Now use Putty (Windows) or SSH (Linux) to access the command line interface on your ViMP server.

Copy vimp.framework-2.1.1-r19091-community.tar.gz to your installation folder, in my case this was /var/www/showvid/data:

sudo cp vimp.framework-2.1.1-r19091-community.tar.gz
/var/www/showvid/data

Change directory and extract ViMP 2.1.1 with the following commands:

cd /var/www/showvid/data
sudo tar xzf vimp.framework-2.1.1-r19091-community.tar.gz

Issue the following commands to upgrade*:

sudo ./symfony rebuild
sudo ./symfony cc

* Note that If you use languages other than English and update from a version < 2.0.7 to a version >= 2.0.7, the following symfony task must also be executed (in between the two commands above):

./symfony i18n:import --clear

You should now be able to log in as admin and see that your ViMP installation is running the new version (under the configuration link).

After the upgrade I found that then when I try to upload video I see an Error in the Admin portal:

+ Problem executing command FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enabl

I logged in as admin and clicked on Administration then Configuration and then Player and set Enable HTML5-player to False.

Then under the Media tab I clicked Restart Transcoding on the affected uploads and they converted successfully. After this I clicked on Transcode new formats and this appeared to work.

I checked /var/www/showvid/data/logs/framework.convert.log and did not see any errors.

So for now I have just left the HTML5 player disabled and my uploads are working without issue (even if they are not being transcoded to the new formats).

Additional support is available from the ViMP Forum if required.

Souces: ViMP Forum, ViMP Documentation, ViMP Forum

 
1 Comment

Posted by on June 8, 2011 in Linux, Ubuntu Server, Virtual Machine, VMware, vSphere

 

Tags: , , , , , ,

Installing Amahi 6.1 Express on VMware vSphere 4.x

Today an email announcing the release of the Express CD v1.0 for Amahi 6.1 landed in my mailbox.

The Express CD is billed as the the shortest, fastest, easiest way to install Amahi – and turn your PC into a headless Amahi 6.1 HDA (Home Digital Assistant) in a flash.

So I downloaded the 64 bit version of the Express CD to take it for a  quick spin in VMware vSphere.

I uploaded the Express CD .iso to my vSphere server and then created a new virtual machine. I set the Guest Operating System to Linux and then selected Red Hat Enterprise Linux 6 (64 bit).

I created a small 25GB thin provisioned hard disk and otherwise accepted the defaults through the rest of the wizard.

Installation is as follows – press the Enter key to install Amahi 6.1:

Select your preferred language and click Next:

Confirm your keyboard layout and click Next:

Select your time-zone and click Next:

Enter a password for the root user and then click Next:

Enter your Amahi install code (you will need to register on the Amahi site to obtain one).

Click Next to reboot.

Amahi will configure itself and require another reboot – press the Enter key to reboot.

Amahi is now installed and can be accessed with a browser at http://hda.

Log on with a browser with the user-name admin and the password admin.

Enter a new admin password to continue.

You should now see the Amahi dashboard from which you can manage your HDA:

I installed open-vm-tools as follows.

First log into Amahi with a browser and then click the Setup link at the top right of the page and then click the Apps tab.

Scroll down to RPM Fusion (Free) and click Install.

Now log in to Amahi as root on VMware vSphere by opening the console window or by using putty or a similar tool. Issue the following commands:

yum update
yum install open-vm-tools

Once installation is complete reboot the virtual machine:

reboot -h now

Open-vm-tools should now be running.

I have to say that I found installing Amahi with the Express CD to be a great improvement – well done Amahi!

 
5 Comments

Posted by on June 6, 2011 in Linux, Virtual Machine, VMware, vSphere

 

Tags: , , , ,

Ubuntu 10.4 Lucid x86 – Segmentation Fault After Update On VMware ESXi 4.1

`

I have been experiencing this problem for a while with Ubuntu 10.4 Lucid 32-bit (running open-vm-tools) in VMware ESXi 4.1 (but hadn’t got round to looking into it). During the installation of updates I get the following prompt for grub-pc prompting me to Continue without installing Grub? The only way to proceed at this point is to tick the check-box and click the Forward button.

The problem is that after rebooting I get a Segmentation fault message:

If you know that this is going to happen then you can take a snapshot of the virtual machine state before running Update Manager and de-select the following updates before updating your system (see also screen-shots below):

  • grub-common
  • grub-pc
  • linux kernel 2.6.32-xx (New Install)
  • linux generic kernel

If it is too late for that then you can try some of the following steps.

Some people have reported that changing the Guest Operating System to Other, Other (32-bit) fixed the issue and enabled them to boot.

Click VM, Edit Settings and then the Options tab in the vSphere Client virtual machine console to change this setting.

I shutdown my virtual machine and tried this but got the following error:

So I clicked Edit Settings again and set my Guest Operating system back to Linux, Ubuntu Linux (32-bit). I also checked the Disable acceleration check-box in the virtual machine General settings:

While this enabled me to boot the virtual machine successfully it is hardly a great solution as the virtual machine does not perform well.

I also read that editing grub and setting rootdelay=90 might fix the issue. I tried this by editing /etc/default/grub and adding the following line:

GRUB_CMDLINE_LINUX_DEFAULT="rootdelay=90"

Then I ran this command to update grub:

sudo update-grub

I shutdown the virtual machine and turned acceleration back on but the machine still did not boot.

Fortunately none of my x86 Lucid virtual machines are critical in any way and I could always install Lucid x64 or Maverick which I have read do not have this issue. Still it would be nice if a decent solution was found for Lucid x86 which is a LTS release after all.

Sources: Ubuntu forum, Launchpad Bug, Ubuntu Forum

 
5 Comments

Posted by on March 20, 2011 in Linux, Ubuntu, VMware, vSphere

 

Tags: , , , , , , ,

Windows Home Server 2011 RC – Installing StableBit DrivePool Beta Build 569

In my previous post I installed Windows Home Server (WHS) 2011 RC in a VMware virtual machine on ESXi (4.1).

The StableBit DrivePool Add-In is a Drive Extender (DE) replacement for WHS 2011 with the following features:

  • Combine hard drives into a storage pool (with the exception of the system (OS) drive).
  • Add and remove drives from the pool.
  • Create duplicated folders on the storage drive pool that are protected against single drive failure. If a drive fails on which a duplicated file was stored, the contents of that file will remain readable even without the drive.
  • All your data is stored in standard NTFS files. You can always access your files even if the Windows Home Server completely crashes or this add-in can’t be used.

StableBit DrivePool is in early Beta and has the potential for bugs. Because of the nature of this add-in there is potential for data loss. Only serious testers should consider downloading and installing the current Beta builds.

Installation of the DrivePool Add-In is straight-forward. First download the Add-In from the StableBit site. Next create a User on WHS 2011 (or use your WHS Administrator credentials) and copy the Add-In to the server. It does not matter which WHS share you copy the Add-In to.

On WHS browse to the location that you copied the Add-In to and double-click on it to install. Once installed you will see it under Add-Ins on the WHS 2011 Dashboard:

Once installed I added a new virtual hard drive and formatted it – the logged off and logged on again. Here you can see the DrivePool button in the dashboard now:

In the Hard Dive Pooling tab you can see that I now have two drives that can be used to create a storage pool:

It just took a couple of clicks each to add these drives to the storage pool (none of my default WHS 2011 shares were part of the storage pool though):

Clicking on the Add a folder button gives us the option to use pooled or-non-pooled storage (this only works under the StableBit DrivePool section of the dashboard. Adding a folder under Server Folders and Hard Drives will not give you the option to use pooled storage):

Here you can see my first pooled share:

It may seem that DrivePool is not quite as intuitive as the original DE implementation. WHS 2011 can set aside storage to backup the whole server onto another set of disks and so DrivePool needs to be able to designate pooled and non-pooled storage (and not just add all drives to the pool as per the original DE).

I hope that the default share will be able to be added to the pool in a future release (unless there is something obvious that I am missing).

I’ll play around with adding data and removing pooled drives at a later date.

 

Tags: , , , , , , ,

Installing Windows Home Server 2011 RC in VMware ESXi

After the Drive Extender (DE) fiasco with Windows Home Server “Vail” (now Windows Home Server 2011) I was not overly interested in installing the WHS 2011 Release Candidate (RC). However I decided to install it in a virtual machine today to begin looking at DE replacements.

Installing WHS 2001 (RC) in VMware ESXi is straight-forward. First download the .iso image and obtain a product key from Microsoft.

In ESXi when you create the virtual machine you will need to specify Windows Server 2008 R2 (64 bit) as the operating system. You will also need to create a hard drive that is at least 160Gb. Otherwise I selected the defaults (except for the RAM).

As you can see in the screen-shot gallery below there was not a whole lot of user interaction required during installation and there were a few reboots:

 

Tags: , , , ,

Ubuntu 10.4 Lucid – Running the vSphere Client in Ubuntu

The setup is explained in my previous post – I just wanted to post a screen-shot of the vSphere Client running in Ubuntu!

Sure, the vSphere Client is running in an XP virtual machine but it is running in a window in Ubuntu rather than a full-screen remote desktop session.

Pretty awesome, even if I do say so myself …

 
 

Tags: , , , , , , , , ,

Ubuntu Server 10.4 Lucid – Installing VIMP (Community Edition)

Some time ago I was looking for an open source YouTube clone when I came across something called osTube. When I recently vistited the osTube site again I found that osTube development had been discontinued. Its successor is ViMP which bills itself as the solution for Social Media, Web TV and Video Communities. It has a host of features and the good news (for me) is that it handles H.264/MP4.

Just to be clear though the ViMP Community edition is not open source – the code is encrypted by a PHP encoder called Source Guardian (which must be installed to use ViMP). Hopefully you are OK with that?

You will need to register at the ViMP site to download it (the current version is 2.0.6). Extract the ViMP tar-ball and you will find an Installation Guide for Debian in the doc folder. Most of this guide is good for an Ubuntu installation but we will make some changes for our Ubuntu install.

My starting point is a virtual machine with a minimal Ubuntu Server installation with the SSH role. So, let’s install ViMP:

Fisrt update repositories:

sudo apt-get update

Install nano (terminal based text editor) and wget (file downloader):

sudo apt-get install nano wget

Install Apache2 web server:

sudo apt-get install apache2

Enable mod_rewrite and then restart Apache2:

sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart

Install PHP5:

sudo apt-get install libapache2-mod-php5

Install additional PHP packages:

sudo apt-get install php5-cli php5-mysql php5-gd php5-xsl php5-curl

Install the MySQL database server:

sudo apt-get install mysql-server

You will be prompted to provide a root password for MySQL. Make a note of this password for later!

Add the Medibuntu repository to your server:

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list
http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list
&& sudo apt-get --quiet update && sudo apt-get --yes --quiet
--allow-unauthenticated install medibuntu-keyring && sudo apt-get
--quiet update

Install the transcoding software:

sudo apt-get install mplayer mencoder ffmpeg flvtool2

Install video codecs for popular proprietary formats:

For 32 bit,

sudo apt-get install w32codecs

or for 64 bit,

sudo apt-get install w64codecs

Create directories for ViMP installation:

sudo mkdir -p /var/www/showvid/data
sudo mkdir -p /var/www/showvid/logs
sudo chown -R www-data:www-data /var/www/showvid

Create a configuration file for the Apache virtual host:

cd /etc/apache2/sites-available
sudo nano showvid

Copy and paste the following into the /etc/apache2/sites-available/showvid file you just created:

<VirtualHost *:80>
DocumentRoot "/var/www/showvid/data/web"ServerName showvid.com
ServerAlias www.showvid.com
<Directory "/var/www/showvid/data/web">
AllowOverride All
RewriteEngine On
Options -Indexes FollowSymLinks
</Directory>
ErrorLog /var/www/showvid/logs/error.log
CustomLog /var/www/showvid/logs/access.log combined
LogLevel error
</VirtualHost>

Save the file  and exit nano.

Enable the showvid virtual host and restart Apache:

sudo a2ensite showvid
sudo /etc/init.d/apache2 reload

Disable the default virtual host and restart Apache:

sudo a2dissite default
sudo /etc/init.d/apache2 reload

Next we need to configure some PHP values. Edit both of the files listed below and change the upload_max_filesize, post_max_size and memory_limit values as per the bullet points:

sudo nano /etc/php5/apache2/php.ini
sudo nano /etc/php5/cli/php.ini

• upload_max_filesize = 1024M
• post_max_size = 1024M
• memory_limit = 512M

Restart Apache:

sudo /etc/init.d/apache2 restart

Create a MySQL database called showvid:

sudo mysqladmin -p create showvid

Enter your MySQL password.

Enter the MySQL console as the root user:

mysql -u root -p

Enter your MySQL password again. You should now be at the MySQL prompt:

mysql>

Create a user called showvid. Change <password> in the first command below to a strong password for the showvid user. Make a note of this password.

CREATE USER showvid@localhost IDENTIFIED BY '<password>';
GRANT ALL PRIVILEGES ON showvid.* TO showvid;
FLUSH PRIVILEGES;
exit

Change directories to your user directory:

cd /home/<username>/

Upload ViMP to your server – I used WinSCP to do this.

Copy the ViMP tar-ball to /var/www/showvid/data/ and then extract it:

sudo cp vimp.framework-<version>.tar.gz  /var/www/showvid/data/
cd /var/www/showvid/data/
sudo tar xvzf vimp.framework-<version>.tar.gz
sudo rm vimp.framework-<version>.tar.gz

Make the symfony file in /var/www/showvid/data/ executable:

sudo chmod +x symfony

At this point we would normally be able to execute the symfony file but because we are using the Community edition of ViMP we must install SourceGuardian. To do this we will need to know the version of PHP that we have installed:

php -v

Now that we know what version of PHP we are using we can copy and extract the Source Guardian loaders that are supplied with ViMP.

First create a temporary directory to work in:

cd /home/<username>/
mkdir temp
cd temp/

Now extract the file /var/www/showvid/data/data/loader.tar.gz to the current directory:

tar xfz /var/www/showvid/data/data/loader.tar.gz

For the next step you will need to look in either the Linux_x86-32 folder (if your installation is 32 bit) or the Linux_x86-64 folder (for 64 bit). Assuming that you are running PHP 5.3.2 like me you will want the Source Guardian ixed.5.3.lin loader file .

Now that we have matched a loader to our version of PHP we need to make a folder in /usr/lib/php5/ that we can copy the Source Guardian loader to.  The format of the folder is year, month, date +lfs. I don’t think that it really matters what date we choose, so I used the one provided in the Debian installation guide:

sudo mkdir /usr/lib/php5/20060613+lfs

Copy the loader file ixed.5.3.lin to the /usr/lib/php5/20060613+lfs/ folder:

sudo cp Linux_x86-32/ixed.5.3.lin /usr/lib/php5/20060613+lfs/

Create a Source Guardian configuration file:

sudo nano /etc/php5/conf.d/sourceguardian.ini

Add the following two lines to sourceguardian.ini:

[sourceguardian]
zend_extension=/usr/lib/php5/20060613+lfs/ixed.5.3.lin
Restart Apache:

sudo /etc/init.d/apache2 restart

Source Guardian installation is now complete.

Change directory back to /www/showvid/data and run symfony – just make sure that you change <password> to the password you defined for the showvid user earlier on:

cd /var/www/showvid/data
sudo ./symfony framework:init mysql://showvid:<password>@localhost
/showvid

Finally we need to set up a cronjob that runs every minute to convert uploaded videos to the right format. Edit the crontab:

sudo crontab -e

Copy and paste the following line at the bottom:

*/1 * * * * /var/www/showvid/data/scripts/sync_new_uploads.sh > 
/dev/null 2>&1

You can now access ViMP with a web browser. The password for the admin account is ‘admin’ – so you might want to change that after you log in.

That’s it, now sit back and enjoy your own video community!

solution for Social Media, Web TV and Video Communities

 
16 Comments

Posted by on December 10, 2010 in Linux, Ubuntu Server, Virtual Machine, VMware, vSphere

 

Tags: , , , , , , , ,

 
Follow

Get every new post delivered to your Inbox.

Join 29 other followers