Showing posts with label home server. Show all posts
Showing posts with label home server. Show all posts

Sunday, August 02, 2009

Home Server Project - Installing and testing Windows Home Server inside VMware on Windows

Linux is going on good and the server has stabilized on it much.

There are still few little little things like bluetooth streaming, web based media player and remote video monitoring etc are pending...little things? well could be not so little :)

I decided to give WHS (Windows Home Server) a try and only way to do it without worrying about connecting DVD drive was to go back to Windows XP. VMware can run on Linux but remember that its a headless machine :)

So changed boot preference in grub.conf and rebooted. Windows was quickly up.

Follow these tips for installing WHS inside VMware

- Create ISO image of the installation DVD. And assign this image as DVD image in VMware
- Choose Windows 2003 Server as VM type
- WHS failed to recognize default SCSI virtual hard disk so create a virtual IDE drive of 70GB or more. (See addendum below)
- My system has 2GB RAM and dual core-dual cpu Atom processor. I allocated 1GB RAM and two processors to the VM
- Do not choose to allocate all the space at once. WHS expects a drive more than 70GB in capacity to be there and preallocates 20GB partition for itself. And does not 20GB at once during setup so its better to do thin-provisioning for the drive.
- When the virtual machine first boots, enter BIOS setup make sure that the boot order is set to Hard disk first and then DVD drive. Else you will end up entering setup every time you reboot.

Remaining installation is straightforward. WHS is built on Windows 2003 engine so you will see that branding during setup and bootups. This may have changed in final revisions.

I was quiet skeptical about running Linux and WHS inside VMware on Windows XP. However Intel Atom330 was quiet tolerant to the load. CPU utilisation was under 20 when both guest OSes were up and running. During installation the utilisation went up and stayed between 60-70 for most of the time, but never peaked to 100%.

All was well till I installed bluetooth dongle driver and logitech webcam driver. After rebooting XP is into rolling reboots, even if safe mode is chosen.

Finally gave up and back to good old Linux now :)

Addendum:

VMware has provided a SCSI driver if you want to use its SCSI drives for Windows 2003 or XP virtual machines. This is a floppy image so download it and edit VM properties to connect the image to VM (3.5" 1.44MB drive). This should detect virtual VMware SCSI drives during installation.

You can download the image from here - http://download3.vmware.com/software/vmscsi-1.2.0.4.flp

Friday, June 19, 2009

Home Server Project - Remote management and configuring alets about system/hdd temperature

The box is back in its final place - my personal-data centre. As observed before, closed cabinet adds warmth to the cabinet and adds almost 10 degree Celsius in the temperature reading. For now, it would remain uncovered and temperature lies between 50-60C

This rack is 8 feet above the ground hence turning the machine on is a challenge. WOL came to rescue. The onboard NIC supports wake on lan so I got one wol utility from internet. There are plenty available. I tried with two and both worked well.

Sendmail for google apps has been already configured for this box. The box is able to mail whenever apache has been started or stopped. To extend this further, I am trying to schedule cron jobs to mail me temperature status of various components. A quick tutorial and hddtemp package is now able to send me HDD temperature over mail, every 15 mins. Following command has been scheduled for it

mail -s `hddtemp /dev/sda | awk '{print $2$3}'` test@example.com < /dev/null

I am still trying to get sensor temperature but not able to get HTML mail out. It looks like a permission issue. The script works fine when ran as root, but not when through crontab.

Monday, June 15, 2009

Home Server Project - Configuring PHPMyAdmin

The steps are getting tougher :) I had to spend a complete day trying to setup phpMyAdmin on the server. It was crazy.

I was able to install php and php-mysql correctly. phpMyAdmin is needed to manage databases using browser. I could otherwise login to CLI and manage things well. Decided to configure phpMyAdmin and it ate up whole day.

First I was stopped by SELinux...

Jun 14 12:16:16 atom setroubleshoot: SELinux is preventing the /usr/sbin/httpd from using potentially mislabeled files (/var/www/phpMyAdmin-3.1.5-english). For complete SELinux messages. run sealert -l b25683a9-e1ea-429d-aa13-4130012ee64d

Tried renaming folders but no luck. One option was to disable SELinux but it was not straightforward either. after a lot of searches and reads, found the simple solution. The error itself asks to run sealert command. Ran it and it tells what to do to stop this from happening!

Next was the Apache authentication prompt. It turned out to be lack of configuration for authusers and authgroups, well not easily again, took another hour I think :)

Now page would just indicate on top corner - PHP 5.2+ required. This was a bummer. I thought it was there, but it wasn't. The DVD ISO was on the client laptop, so thought of copying it over to server and see if php 5.2 was there. The copy software indicated 40 mins ETA for copying over 54Mbps WIFI connection. "Why not copy it by 1Gbps crosscable network?", I asked myself.

The copy broke after connecting using crossover link. Apparently the server lost DNS servers by this and sshd broke. grrrrrrrrr....

Another hour worth of fiddling finally got this done. Just to tell me that the default php that came with installation was 5.1.

Next step was to download PHP 5.2 manually and compile. It was done and next problem - PHP would work fine on cli, just wont enable itself with httpd :|

I decided to go back completely on 5.1. I had avoided pointing to CentOS repo since begining. I tried doing it now. I had to manually edit repo files to replace $releaseserver by "5". And it was faily quick.

Finally at night the brain worked. I installed older version of phpMyAdmin and that was all that I needed to do in morning :) :) :)

Hopefully I can start writing php-mysql toy-code tomorrow!