Wednesday, October 12, 2011

Add a Hard Disk to a Virtual Machine..............

When you add a hard disk to a virtual machine, you can create a new virtual disk, add an existing virtual disk, or add a mapped SAN LUN.

Procedure
  1.  In the vSphere Client inventory, right-click the virtual machine and select Edit Settings
  2.  Click the Hardware tab and click Add..
  3.  Select Hard Disk, and click Next.
  4.  Select the type of storage for the virtual machine’s disk, and click Next
You can store virtual machine data in a new virtual disk, an existing virtual disk, or a Mapped SAN LUN. A virtual disk, which appears as a single hard disk to the guest operating system, is composed of one or more files on the host file system. Virtual disks can easily be copied or moved on the same host or between hosts.
Options
Create a new virtual disk
  •   Enter the disk capacity.
  •  Select a thin disk format or a thick disk format to allow the disks to support clustering features.
  •  Select a location to store the disk. Store with the virtual machine or Specify a datastore.
  •  If you selected Specify a datastore, browse for the datastore location, and click Next.
Use an Existing Virtual Disk
  •  Browse for the disk file path and click Next.
Raw Device Mappings Gives your virtual machine direct access to SAN.
  •  Select the LUN that you want to use for the raw disk, and click Next.
  •  Select to store the LUN mapping files on the same datastore as the virtual machine files, or select a different a datastore, and click Next.
5. Select the compatibility mode.
  • Physical allows the guest operating system to access the hardware directly.
  • Virtual allows the virtual machine to use VMware snapshots and other advanced functions.
6. Click Next.
7. Accept the default or select a different virtual device node.

8. (Optional) Select the virtual disk Independent mode and select an option.

Persistent: The disk operates normally except that changes to the disk are permanent even if the virtual machine is reverted to a snapshot.

Nonpersistent: The disk appears to operate normally, but whenever the virtual machine is powered off or reverted to a snapshot, the contents of the disk return to their original state. All later changes are discarded.
Independent disks are not affected by snapshots.

9. Click Next.

10. Review the information, and click Finish.

That’s it... :)


Tuesday, October 11, 2011

Increasing the size of a virtual disk(VMware)

The procedure for increasing the size of a virtual disk slightly differs between VMware products. Here we are considering VMware workstation and player.
Before doing this, Make sure all snapshots have been removed and virtual machine is powered off.
To increase the virtual disk from command line, go to theVMware product installation dir and run this command,
C:\Program Files\VMware\VMware Workstation\vmware-vdiskmanager -x 100Gb "d:\VM Folder\vmdiskfile.vmdk", Replace 100Gb with the actual size of virtual disk that you want
This will take some time, and once complete the application will give you some sizing messages.
Now you need to expand the capacity of the disk to take advantage of its new size. If the disk is the system volume you will need to mount the disk in a second VM and expand it from there. If its not a system volume do it within the virtual machine it belongs to.
Once you've mounted the disk in a different VM or booted up the VM it belongs to if its not the system volume, do the following.
Go to the command line and start the diskpart utility. By issuing the following command.
diskpartOnce you've started diskpart, list the drives using the following command:
list diskThis will show you the disks assigned to your machine. Now the important command

list volumeThis will show you the drives, their volume number, capacity etc. You now need to select the volume you are about to expand, using the following command. Where n is equal to the number of the volume.select volume=nOnce selected, you can now expand it using the extend command. You can optionally specify the amount extend it by.extendThat's it.For Workstation 7 and later and Player 3.x and later, you can increase the virtual disk from the GUI:
Select the virtual machine from the Inventory.Click Edit Virtual Machine Settings.Click Hard Disk.Click Utilities > Expand, enter the new size, then click Expand.
Once you've extended the disk, it's wise to defrag the drive. If you use the defragment tool in VMWare workstation you will find it much quicker than deframenting the drive from within the machine.
Now use a third party utility to resize disk partitions.
Note: Windows Server 2008, Windows Vista, and Windows 7 can expand the volumes from the Disk Manager in Computer Management. Right-click on the volume and click Extend Volume................


Monday, April 11, 2011

How to Install windows applications on Linux

CrossOver Linux- A tool with the help of that you can run many popular windows programs on Linux.
CrossOver allows you to install many popular Windows applications on your Linux computer. You can think of it as an emulator, but it's different, because there's no Windows OS license required. Your applications integrate seamlessly in Linux; just click and run. No rebooting, no switching to a virtual machine, and no Windows Operating System license required! Adding new Windows software is easy. Just place your install CD in your machine, and CrossOver will recognize it and offer to install it or if you have an exe then rt click on it and choose run with crossOver, now installation will begin just like windows.You can also install an exe by double click on it, its as easy as on windows. Once installed, CrossOver will configure your application to run on your computer. That's all there is to it.
You can also use wine to install windows applications on linux but its does not provide a lot of choice.


Friday, March 18, 2011

How to write protect your USB drive

There are reasons that you want to write protect your USB drive. The main cause of viruses is USB flash drive. These viruses tend to copy themselves to the flash drive whenever system detected new device plug in. You can protect your USB flash drive if you enable the write protects through your PC.
To enable usb write protect on your PC follow these steps:-

1. From Start menu, point to Run, type in: regedit
If you are using Vista or Windows 7, just type in regedit in the search box when you click on the Start menu.

2. Navigate to the key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
3. Find a sub key inside that is named "StorageDevicePolicies". If it does not exist there then we need to make it. Right click on "Control" key -> New -> Key. Name it "StorageDevicePolicies" without quotes.

4. Now right click on this newly created key and then click New -> DWORD value and name it as "WriteProtect".

5. Double click this key to modify and give it a value 1. The value 1 in here means to enable it, while the value 0 is the opposite to disable it.
6. Click Ok button to save and exit Registry Editor.

Now usb is write protected is on your PC.
---------------------------------------------------------
Alternatively you can do this by creating a reg file for this just open a notepad and copy and paste this line for enable usb write protect,


Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]
"WriteProtect"=dword:00000001

Save this file with .reg ext like (usb write protect enable.reg)

And for usb write protect disable use this line,


Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]
"WriteProtect"=dword:00000000


save this file with .reg ext like(disableusb write protect.reg)…………

Now whenever you want to enable or disable usb write protect you can do that by using these files......................
Task completed...................


Wednesday, March 9, 2011

Microsoft Outlook : Recall or Undo Email Message

This function works only in corporate environment means with exchange server Most home and personal account don't use Microsoft Exchange.
The recipient of the e-mail massege that you want to recall must also be using an exchange account. You can't recall a massege sent, for example to someones personal ISP POP3 e-mail account.......

For Outlook 2003:
1. Go to the Sent Items folder.
2. Find the message you want recalled and double-click it.
3. Go to the Actions menu and select Recall This Message.
4. To recall the message: Under this you will get these options
Delete unread copies of this message.
(the recipient needs to have Outlook opened for the message to be deleted)
To replace the message:
Select Delete unread copies and replace with a new message, click OK, and type your new message.
To be notified about the success of the recall or replacement:
Check the Tell me if recall succeeds or fails for each recipient check box.
5. Click OK.
For Outlook 2007:
1. Click on Sent Items.
2. Find the message you want recalled and double-click it to open.
3. Go to the Ribbon.
4. In the Actions section, click Other Actions and select Recall This Message.
5. Select Delete unread copies of this message.
6. To be notified about the success of the recall, check the Tell me if recall succeeds or fails for each recipient checkbox.
7. Click OK.

For Outlook 2010
1. Go to the Sent folder.
2. Open the message.
3. Click the More Actions option in the Actions tab.
4. Select Recall This Message
5. Choose whether to Delete undread copies of this message or Delete undread copies and replace with a new message.
6. Click OK.
THATs ALL..............




Thursday, March 3, 2011

RIS configuration

For Step-by Step guide of RIS Setup See on this link:-

http://www.alanphipps.com/WindowsAdmin-Server-RIS.html