Virtualization in windows 7


Convert a part of NTFS drive into FAT virtually for testing purposes

Well,I have tried not to make my blog into a tips and tricks one….But this post is essential because it firstly demonstrates the potential of Virtualization.The latest virtualization feature of Win 7 and also a method to convert NTFS to FAT32 without making a separate drive and the overheads associated with it.The last point is included because I have seen many blogs misguiding people about the process of changing particular folder to FAT..which is very risky.

Firstly let me make it clear conversion to FAT 32 is not recommended unless you want for testing purposes which can be done using VHD without disturbing other files.

Start windows 7—>Control Panel—>Administrative tools—> Computer Management

com managemnet

Click on Storage Management on the left pane and you should get a similar interface. The interface shows the drives,the physical and logical partitions.

Look at the RIGHT pane and select more actions

More actions—>Create VHD(Virtual Hard Disk)—>Interface comes up

select the location—> The size and save it

The virtual Hard disk will be created.

vhd

A raw unallocated space of 200 MB is shown..(My VHD is of 200 MB)

Right Click on Disk 1—> Initialize Disk—>Partition Style (MBR)

The disk will be initialized and ONLINE

init

Right click on the VHD and click on simple volume—>Specify Volume Size—>Assign a drive letter to treat it as a drive—>Assign the proper values ..

fat

If you want to create a FAT partition simply make it FAT 32.That’s easy….. No need to make a new drive or convert an entire drive to FAT…. its basically a file which is being treated as a virtual hard drive….So its risk free and if you ever want to delete it juts right click on the VHD and click on DETACH VHD.

Totally risk free and also less ted

ious….This system works irrespective of whether you have your real hard drive in NTFS or FAT…

Desktop Virtualization using Microsoft Virtual PC 2007


running windows 3.1.1 on Windows 7 RC

In my previous post I had promised to show how you can implement Desktop Virtualization….In this post I will also show you how to  perform virtualization in Windows 7…..This method can be implemented in any OS .

One of the most common is to deal with incompatibility between applications and desktop operating systems. For example, suppose a user running Windows Vista needs to use an application that runs only on Windows XP with Service Pack 2. By creating a VM that runs this older operating system, then installing the application in that VM, this problem can be solved.

Before proceeding ..I would like to tell you this is one of the safest methods of running or testing malicious programs as well as different Os s as whatever is installed in the Virtual OS will not cause any loss of data or pose a threat to the original system….So your original OS has no risk.

Hardware virtualization can be accomplished in various ways, and so Microsoft offers several different technologies that address this area. They include the following:

§ Hyper-V: Part of Windows Server 2008, Hyper-V provides hardware virtualization for servers.

§ Virtual Desktop Infrastructure (VDI): Based on Hyper-V and Windows Vista, VDI defines a way to create virtual desktops.

§ Virtual PC 2007: A free download for Windows Vista and Windows XP, Virtual PC provides hardware virtualization for desktop systems.

§ Microsoft Enterprise Desktop Virtualization (MED-V): Using MED-V, an administrator can create Virtual PC-based VMs that include one or more applications, then distribute them to client machines.

All of these technologies are useful in different situations, and all are described in more detail later in this overview.

STEP 1:

We will be using Virtual PC 2007..It is available for free download from this link.

http://www.microsoft.com/windows/virtual-pc/

This is the software that is going to perform the virtualization by creating multiple VMs(Virtual Machines).

STEP 2:

Download the free version of Win3.1.1 (Mini Windows with EMM 386…it is free and is similar to original windows 3.1.1) Mini windows with emm 386 can be found in my Sky drive folder.download it from the link below

http://cid-649079837795b05d.skydrive.live.com/self.aspx/.Public/MWIN3.IMG?ccr=595

Windows 3.1.1 comes in 3 floppies and is a premium product,I seriously do not recommend downloading it through Pirated channels so I am going to demonstrate this with a free product.

STEP 3

: Create a Virtual Machine.

Start Microsoft Virtual Pc 2007

Select New—>Create Virtual Machine—>

Select Operating System—>Other

Use recommended RAM (If you are running low on RAM ..then I suggest you to change the default RAM to 32 MB ,since windows 3.1.1. is a very old Windows and hardly dents your system)

Select new Virtual Hard disk

Change the size to 100 MB or 200 MB as you wouldn’t need more than that for win 3.1.1.

Click on finish.

vpc initial

Your Virtual PC Console should look like this.Note that I have named my Virtual Machine to be “win3machine”,you can name it something else.Select your virtual machine and click on start.The virtual machine initializes itself.Now you have successfully started the virtual machine.

STEP 4

Windows 3.1.1 comes in floppies…. so select Floppy—>Capture Floppy Disk Image

next you should reset the machine so as to make it boot from the virtual floppy.

Click on Action—> Reset

Then the boot menu comes –> Start windows with EMM 386

The floppy boots….Enable Longs File names support—>Yes

Start Mini windows Now—>Yes

Rest it boots up and you are presented with the win 3.1.1 start up screen.Now you are good to go and you can experiment with one of the OLDEST OS by Microsoft.

vpc

Windows 3.1.1 running on Microsoft Virtual PC 2007 @ windows 7

clock Multipad

The clock                                                                                              No WordPad…..its called Multipad in win 3.1.1

main desktop

Programs in win 3.1.1

So guys this way you can run any OS on another OS without thinking about harming your system,since any change you do to the Virtual system does not get reflected to your original system.

VIRTUALIZATION……. A BASIC IDEA..


Virtualization is one of the hottest trends in information technology today. So first let us understand what is virtualization and then I will demonstrate the implementation of virtualization.

First of all, what is virtualization? I guess that it can be explained from a very techy point of view or from a more basic aspect. I’m gonna go with the latter; Virtualization allows you to run several different virtual machines on one single physical system. This means that you for example can have your file server, DNS and print server all operating at the same time.

 

Lets first come to the existing model

image

The application is installed and runs directly on the operating system, which in turn runs directly on the computer’s hardware. The application’s user interface is presented via a display that’s directly attached to this machine. This simple scenario is familiar to anybody who’s ever used Windows.Notice  1 thing that the various parts are locked.That is the Operating System is heavily dependent on the hardware,the  Application is dependent on the operating system and so on.

This is not the best way,the best way is portability which can only happen if we can find a way to decouple the “locked” aspects of the system.E.g. Operating system from the hardware,the application from the OS..and so on..

so lets come to the types of virtualization

Hardware Virtualization

Its basically about running multiple operating systems on a single physical machine.It is the most common type of virtualization.

The concept behind it is to create a VIRTUAL MACHINE that will emulate the hardware of a physical computer,i.e the hardware will be virtually implemented through the software.This can be viewed as a single piece of hardware running multiple operating systems ,and each operating system is unaware of the existence of another operating system on the same hardware since each OS has its unique VM which implements Hardware virtualization.

When used on client machines, this approach is often called desktop virtualization, while using it on server systems is known as server virtualization

I will show Desktop virtualization on my next post and discuss it in depth.

Application Virtualization

We now already have a brief idea about desktop virtualization which separates conflicting OSs and makes it feel as if it is running on two different machines.Consider this in case of Applications.Incompatibilities between two applications installed on the same instance of an operating system can occur.Application depend on the Os for a variety of needs from memory allocation to task scheduling.Thus conflicting application may result from same DLL file being modified by two applications or one of the applications may require a different version of the DLL which leads to DLL Hell.

So,to solve this problem application virtualization steps in.first it differentiates the shared resources between the conflicting applications.Other resources need not be changed since they do not conflict.The problem is solved by creating APPLICATION SPECIFIC copies of the shared resources .

image

 

Presentation Virtualization

This is used so that the user interface can be decoupled from the hardware and OS.In this the processing is done on the server and the user connected to that server is presented with a desktop UI irrespective of the hardware he is working on.

The advantages with Virtualization are plenty but the main advantage, at least according to me, is that it cut downs power and hardware costs. Another benefit with Virtualization is that it will simplify operations as well as ensure data protection and availability for people or businesses that are involved in a project on the web.