How To Install Windows 8 on Virtual machine


Microsoft  has launched  beta version or consumer preview of  windows 8 . Everyone is eager to get their hand on Windows 8 which is evident from the fact that it has been downloaded one billion times since its launch(February 29, 2012). Microsoft has integrated various new features like Metro UI, apps store, alarm etc in it. Along with windows 8 Microsoft has also launched new file system ReFS(Resilient File System) also known as Photogon which is currently available on windows 8 server.

Features of Windows 8

  1. Instead of Start Menu orb there is a charm bar on the Desktop screen.
  2. Along with text password there is also option for picture password.
  3. New applications have been added to enhance Social Networking and Email experience.
  4. One of the main aspects of Windows 8 is its performance and speed.

What is a Virtual Machine?

Installing two or more than two operating systems and to run them parallel on a single machine was impossible, but with the launch of virtual machines like VirtualBox and Vmware it became possible.It is an open source freeware tool that can run a full copy of an operating system along with application softwares.You can run multiple operating system including Windows, Linux, Unix,Mac on a single machine parallel but with distributed memory system. It contains its own virtual Ram, Hard disk and network interface card(NIC).

It is better to install Windows 8 on virtual machine instead of creating a dual boot if you don’t intend to use it as your main Operating System.

Advantages of Using Virtual Machine

  1. Compatibility: Virtual machines are compatible with all standard x86 computers
  2. Isolation: Virtual machines are isolated from each other as if physically separated
  3. Encapsulation: Virtual machines encapsulate a complete computing environment
  4. Hardware independence: Virtual machines run independently of underlying hardware

System Requirements to Install Windows 8 on Virtual machine

  • Processor: 1 gigahertz (GHz) or faster
  • RAM: 2 gigabyte (GB) (32-bit) or 2 GB (64-bit)
  • Hard disk space: 16 GB (32-bit) or 20 GB (64-bit)
  • Graphics card: Microsoft DirectX 9 graphics device or higher

How To Install Windows 8 on Virtual Machine

Download the ISO image of Windows 8 From Here (Product Key : DNJXJ-7XBW8-2378T-X22TX-BKG7J)

First things first. VMware Workstation is not free. However, you can get VMware Workstation on a 30-day trial. To do this, you need to get a product key from VMware. This is a little bit annoying, but worth it (and definitely better than paying $199.99 for a license just to check out software).

Latest VMware player is the also option here which is totally free  but I will install on VMware Workstation. There is no big difference creating or maintaining virtual machines both of these products of VMware.

You can also install Windows 8 on Oracle’s Virtualbox, which is completely free.

Create New Virtual Machine

Run VMware Workstation 8. Click “Create a New Virtual Machine”, and a new window will pop up (below).

What type of configuration for your VM? – Choose “Typical” here.

Click Next.

Guest Operating System Installation. – Here you are expected to provide a source for your Operating System installation, so this would be either a CD/DVD or ISO image. If you had a Windows 7 DVD, for example, VMWare would recognize the version and would make the process even easier than it already is to complete.

VMware does not recognize the consumer preview of Windows 8 yet, however. To avoid possible problems with Setup, here we are going to choose the third option; “I will install the Operating System later.”

Click Next.

Select a Guest Operating System. – To automate certain things, VMware asks you to select which Guest Operating System you want to Install. Select Microsoft Windows, and for the Version, select “Windows 7” if installing the x86 / 32-bit version of the Windows 8 Consumer Preview, or “Windows 7 x64” if installing the x64 / 64-bit version of the Windows 8 Consumer Preview.

Click Next.

Name the Virtual Machine / Provide Location. – You can name your Virtual Machine anything you want, since the name only matters to VMware anyway (it’s not the same as naming your OS installation later on). As for the Location, this can be any folder on any disk where you can provide at least 20GB space, if needed (see next step for more info).

If you have more than one physical drive connected to your computer (directly, not USB), it might be a good idea to store your Virtual Machine files in a directory on a different physical disk than your Host operating system is installed. In our case, we can’t, so we just opt for “C:Win8”. You can use any blank Directory (folder) you choose.

Click Next.

Specify Disk Capacity. – VMware will suggest 60GB for Windows 7. You do not need that much just to test out the Consumer copy of Windows 8.    I will choose 30GB, but 20GB will be just fine.

NOTE: This does not mean 20GB hard disk space will be used up immediately. (This will increase dynamically if you want to allocate the whole space what you type then check the option given here “Allocate All Space Now”).  This is the maximum amount of storage space the Guest OS is allowed to use on your hard drive. Even though you might set it to 20GB, only around 6-7GB will actually be used up upon installation. What you specify here is just the maximum space it can utilize.

We also suggest that you opt to “Store Virtual Disk as a Single File,” for performance reasons.

Click Next.

Hardware – Memory. – The next thing you need to do is specify some hardware settings for your Virtual Machine. For memory, you will need to set at least 1GB (1024MB) for the x86 installation, or 2GB (2048MB) for the x64 installation.

Now click Processors.

Hardware – Processors. – If you have a single-core processor, you can leave the number of processors at 1, and number of cores at 1. If you have a dual-core processor, as we do on the test system, then set “Number of cores per processor,” to 2.

Now click CD/DVD.

Hardware – CD/DVD/ISO. – If we were to boot your Virtual Machine now, it would have nothing to do, it would just stop at “Operating System Not Found,” so we need to specify some media to boot from.

Under Connection, select “Use ISO image file”. Click Browse, and navigate to the directory where you saved the ISO image containing the Windows 8 Consumer Preview installation. Double click the ISO file when you find it to select it.

Now when you power on your Virtual Machine, that ISO image will be mounted to a virtual CD/DVD drive, and once the VM finds nothing on the virtual hard drive, it will proceed to boot from the virtual CD/DVD drive instead.

Click Close.

Power on your Virtual Machine. – You will now see your Virtual Machine, powered Off, in VMware Workstation. Click “Power on this Virtual Machine” and wait for the installation to commence.

Some things to remember…

  • Double click inside Virtual Machine, tap CTRL + ALT + ENTER to go Full Screen mode.
  • CTRL + G allows you to input data directly to VM.
  • CTRL + ALT + ENTER also exits full screen.
  • To unlock your Keyboard / Mouse from VM, hold CTRL + ALT outside of Full Screen.

Install Windows. – Select your Language, Time and Currency Format and Keyboard or input method.

Click Next

Put The License Key Provide In This Article

Click Next

After you make your selection, click Next, then click “Install Now”, when the option appears. You will get a License information screen, accept the License Agreement and click Next.

What type of installation do you want?. – Since your VMware is acting like a fresh OS-less PC, click the Custom option, which will install a new copy of Windows.

Where do you want to Install Windows?. – Well obviously there is only one option, so select that.

Click Next.

Windows Installation Process. – The Windows Installation Process does not ask you for anything else before proceeding to setup an account and change some settings. This is actually a pretty fast installation, taking just over 10 minutes for us to complete.

Still, the amount of time you will be waiting depends on your own hardware and the resources available to VMware. The Virtual Machine will reboot several times, and will appear to be doing nothing at least once. Just wait.

Name Your PC. – The first thing you need to do is name your PC. You cannot use special characters or spacing. Also, remember that your PC cannot have the same name as your user account.

When done, click Next.

Use Express Settings?. – Express Settings are typical security settings, network settings etc. You can take the extra step of clicking Customize to turn any off that you want. Some users, for example, won’t want to send information to make “Windows and location services better.”

Either click Express Settings now, or Customize.

Use Windows Live Address?. – There are two ways to use an account in Windows 8, one is through using your Windows Live Account (much like Xbox Live), or if you would prefer not to, then you can create a local account. Either enter an email address here for Windows Live services or click, “Don’t want to login on Windows Live ID?”.

Create a Local Account. – You will be given the chance again here to create a Windows Live account (which you can always do later) or opt to Create a Local Account.

Click “Local Account”.

Local Account Details. – Here you will have the chance to pick a User Name, set a Password and a Password Reminder.

When you have done that click Next.

Now Windows will go into a cycle of Finalizing settings for you (might reboot). After this is done, it will automatically log you in.

First Metro UI Appearance. – If you are now at the Metro UI, congratulations, everything has gone fine so far. You can now click the button below the Window indicating that you have finished the Installation (yellow bar below the Virtual Machine window in VMware).

You will notice however that your sound is (probably) not working, your screen resolution is (probably) very low and your (probably) aspect ratio is probably wrong. So to make this look “good” and work properly, it is vital to install the VMware Tools.

To do this, we need to get out of Metro UI and back to the traditional Desktop. Click the “Desktop” tile in the Metro UI and it will load a Windows 7-like Desktop.

VMware Tools Installation. – Now that you are on the Windows 8 Consumer Preview Desktop, we need to install the VMware tools. To do this, move your cursor to the top of the screen and to the VM menu.

Click VM and then click Install VMware Tools. You will get a pop-up window, so just confirm you want to install the tools and continue.

Run the VMware tools Setup. – To insall the VMware Tools, VMware will emulate an installation CD within your Guest operating system. Windows 8 will NOT load the setup automatically, and chances are you will miss the notification that a disc has been inserted completely.

Therefore, you need to manually run the Setup program. To do that, open Windows Explorer in the traditional Desktop (click the Folder on the Taskbar).

In the Address Bar, type Computer and hit Enter. You will now see the information on the drives connected to your Virtual Computer. The CD/DVD drive will be shown as VMware disc.

Right click it, and click “Play Autorun”. and then from the options that appear, click Run Setup.

You will get a UAC prompt that you need to accept, and after that the Setup should load (you might need to minimize Explorer to see it.)

Typical Installation. – Choose to Install the VMware tools in the installer that appears. You will be asked to sepcify a Typical, Complete or Custom installation. All you will need to select here is Typical (you can always re-install / remove tools later if need be).

Select “Typical” and click Next.

The VMware Tools installation will take a few minutes. Your screen will probably go black several times as the Video driver is being installed. Once it has completed, you will need to restart your system as prompted.

Success? – The boot right after the VMware installation might take some extra time to complete, but just hang in there. If all went well, you should now see the Metro UI appear in a higher resolution.

That’s it. You now have the Windows 8 Consumer Preview installed in VMware Workstation, so have fun.

Please keep comments below for questions / tips on the information provided here. If you want to comment on whether or not you like Windows 8.

SETUP LAMP SERVER (Apache, MySQL, and PHP)


This guide provides step-by-step instructions for installing a full-featured LAMP stack on any Linux OS (almost same on all variants:

Steps:

Hostname
Install and Configure the Apache Web Server
Configure Name based Virtual HostsInstalling and Configuring MySQL
Installing and Configuring PHP

Hostname

Before you begin installing and configuring the components mentioned in this guide, make sure you’ve chose your FQDN hostname for your Server. These are the commands to make sure it is set properly:

hostname
hostname -f

Editing Tools:

If you are using Red Hat or Fedora Linux:

Use redhat-config-network GUI tool. Type following command and click on DNS tab > Setup hostname and domain name

# redhat-config-network

On other hand you can edit a text file. Find out and set up the value for HOSTNAME in the file /etc/sysconfig/network:

# vi /etc/sysconfig/network

Setup/replace HOSTNAME

HOSTNAME=blog.shery.net

Users of Debian:

# vi /etc/hostname

Debian, Suse and other Linux distro support GUI tool called network-admin. Type following command and click on DNS tab > Setup hostname and domain name:

$ network-admin

Install and Configure the Apache Web Server

The Apache Web Server is a very popular choice for serving web pages. While many alternatives have appeared in the last few years, Apache remains a powerful option that I recommend for most uses. (My Study @ http://www.netcraft.com)

To install the current version of the Apache web server (in the 2.x series) use the following command:

yum update
yum install httpd

The configuration for Apache is contained in the httpd.conf file, which is located at: /etc/httpd/conf/httpd.conf.  Make Backup for Safety Reason(Optional)

cp /etc/httpd/conf/httpd.conf ~/httpd.conf.backup

By default all files ending in the .conf extension in /etc/httpd/conf.d/ are treated as Apache configuration files, and I recommend placing your non-standard configuration options in files in these directories. Regardless how you choose to organize your configuration files, making regular backups of known working states is highly recommended.

Now configure virtual hosting so that we can host multiple domains (or subdomains) with the server. These websites can be controlled by different users, or by a single user, as you prefer.

I suggest that you combine all configuration on virtual hosting into a single file called vhost.conf located in the /etc/httpd/conf.d/ directory. Open this file in your favorite text editor, and begin by setting up virtual hosting.

Configure Name based Virtual Hosts

There are different ways to set up Virtual Hosts, however we recommend the method below. By default, Apache listens on all IP addresses available to it.

Now create virtual host entries for each site that we need to host with this server. Here are two examples for sites at “shery.com” and “shery.net”.

File excerpt:/etc/httpd/conf.d/vhost.conf

NameVirtualHost *:80

<VirtualHost *:80>
     ServerAdmin webmaster@example.com
     ServerName shery.com
     ServerAlias www.shery.com
     DocumentRoot /srv/www/shery.com/public_html/
     ErrorLog /srv/www/shery.com/logs/error.log
     CustomLog /srv/www/shery.com/logs/access.log combined
</VirtualHost>

<VirtualHost *:80>
     ServerAdmin webmaster@shery.net
     ServerName shery.net
     ServerAlias www.shery.net
     DocumentRoot /srv/www/shery.net/public_html/
     ErrorLog /srv/www/shery.net/logs/error.log
     CustomLog /srv/www/shery.net/logs/access.log combined
</VirtualHost>

Notes:

  • All of the files for the sites that you host will be located in directories that exist underneath /srv/www You can symbolically link these directories into other locations if you need them to exist in other places.
  • ErrorLog and CustomLog entries are suggested for more fine-grained logging, but are not required. If they are defined (as shown above), the logs directories must be created before you restart Apache.

Before you can use the above configuration you’ll need to create the specified directories. For the above configuration, you can do this with the following commands:

mkdir -p /srv/www/shery.com/public_html
mkdir /srv/www/shery.com/logs

mkdir -p /srv/www/shery.net/public_html
mkdir /srv/www/shery.net/logs

After you’ve set up your virtual hosts, issue the following command to run Apache for the first time:

/etc/init.d/httpd start

Assuming that you have configured the DNS for your domain to point to your IP address, Virtual hosting for your domain should now work. Remember that you can create as many virtual hosts with Apache as you need.

If you want to run Apache by default when the system boots, which is a typical setup, execute the following command:

/sbin/chkconfig --levels 235 httpd on

Use the chkconfig command to setup runlevels as needed.

Anytime you change an option in your vhost.conf file, or any other Apache configuration remember to reload the configuration with the following command:

/etc/init.d/httpd reload

Installing and Configuring MySQL

MySQL is a relational database management system (RDBMS) and is a popular component in contemporary web development tool-chains. It is used to store data for many popular applications, including WordPress, Joomla, VBulletin and Drupal.

The first step is to install the mysql-server package, which is accomplished by the following command:

yum install mysql-server

If you want to run MySQL by default when the system boots, which is a typical setup, execute the following command:

/sbin/chkconfig --levels 235 mysqld on

Now you can start the mysql daemon (mysqld) with the following command (as root):

/etc/init.d/mysqld start

At this point MySQL should be ready to configure and run. While you shouldn’t need to change the configuration file, note that it is located at /etc/my.cnf for future reference.

After installing MySQL, it’s recommended that you run mysql_secure_installation, a program that helps secure MySQL. While running mysql_secure_installation, you will be presented with the opportunity to change the MySQL root password, remove anonymous user accounts, disable root logins outside of localhost, and remove test databases. It is recommended that you answer yes to these options. If you are prompted to reload the privilege tables, select yes. Run the following command to execute the program:

mysql_secure_installation

Next, create a database and grant your users permissions to use databases. First, log in to MySQL:

mysql -u root -p

Enter MySQL’s root password, and you’ll be presented with a prompt where you can issue SQL statements to interact with the database.

To create a database and grant your users permissions on it, issue the following command. Note, the semi-colons (;) at the end of the lines are crucial for ending the commands. Your command should look like this:

create database wordpress;
grant all on wordpress.* to 'shery' identified by 'test123+';

In the example above, wordpress is the name of the database, shery is the username, and test123+ password. Note that database user names and passwords are only used by scripts connecting to the database, and that database user account names need not (and perhaps should not) represent actual user accounts on the system.

With that completed you’ve successfully configured MySQL and you may now pass these database credentials on to your users. To exit the MySQL database administration utility issue the following command:

quit

With Apache and MySQL installed you are now ready to move on to installing PHP to provide scripting support for your web pages.

Installing and Configuring PHP

PHP makes it possible to produce dynamic and interactive pages using your own scripts and popular web development frameworks. Furthermore, many popular web applications like WordPress are written in PHP. If you want to be able to develop your websites using PHP, you must first install it.

Issue the following command:

yum install php php-pear

Once PHP5 is installed we’ll need to tune the configuration file located in /etc/php.ini to enable more descriptive errors, logging, and better performance. These modifications provide a good starting point if you’re unfamiliar with PHP configuration.

Make sure that the following values are set, and relevant lines are uncommented (comments are lines beginning with a semi-colon (;)):

File excerpt:/etc/php.ini

error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
display_errors = Off
log_errors = On
error_log = /var/log/php.log
max_execution_time = 300
memory_limit = 64M
register_globals = Off

If you need support for MySQL in PHP, then you must install the php5-mysql package with the following command:

yum install php-mysql

References: