Chitika

Thursday, November 11, 2010

How do I add a second drive to a Windows XP virtual machine running in VirtualBox?

Virtual machines are set up to expand to a set size, and once you reach that size you are out of luck – unless you know how to add virtual drives to that machine. In VirtualBox this is quite possible, albeit a bit circuitous. The end results, however, will give you plenty of room to expand the capabilities of a virtual machine.

I will be illustrating this task using VirtualBox on a Linux (Ubuntu 10.10) host and a Windows XP guest. The task with other combinations will vary, but the fundamental idea remains the same.

Step 1: Shut down the virtual machine

Make sure you don’t suspend the machine, because you won’t be able to access the settings.

Step 2: Create a new virtual drive

A couple of steps are required to make this work. The first is to actually walk through the process of creating a new virtual machine. During this process you will define a new drive for that machine. Make sure you make the new drive the size you want for the additional drive. By default you will create a 10GB drive — if that will serve as enough additional space for your second virtual drive, leave it as is. If you need more space, adjust it during the creation of the virtual machine.
Once the new virtual machine is created, you can then go back and delete the new virtual machine. This process will leave behind the newly created drive that you can then use for your original virtual machine.
The next phase of this step is that you need to open the settings of your virtual machine (the one you are adding the drive to) and then go to the Storage section (Figure A). Here you are going to add a new drive to this virtual machine. This new drive will be uninitialized and will have to be initialized later (from within the running Windows virtual machine — more on that in a bit).

Figure A

As you can see, I have already added a new drive for this virtual machine and labeled it D.
To create a new drive, you need to select the main controller for the virtual machine and then click the Add Hard Disk button. When you do, a new disk will appear under the controller. If you select that new disk, you can then change the hard disk from the drop-down menu (Figure B) to the hard disk you just created earlier.

Figure B

When you click the Hard Drive drop-down menu, all the available drives will show up.
Once you have the hard drive chosen, you will need to select it as the Primary Slave (from the Slot dropdown) and then click OK.

Step 3: Initialize the hard drive

Now you need to go ahead and boot your virtual machine. Once that machine is booted and you have logged in, click Start | Run and then enter compmgmt.msc. When this tool starts, click on the Disk Management section under Storage (you may have to expand the tree to view) and then click the disk you want to initialize. When you click the disk to initialize it, the Initialize and Convert Disk Wizard will appear (Figure C). Check the disk to initialize and click Next.

Figure C

You might have more than one drive listed. Make certain you select the correct drive.
The next step is to select the disk you want to convert. Select that disk and click Next. Finally the wizard will give you a report on what it is about to do (Figure D).

Figure D

If all looks well, click Finish and your drive will be initialized.

Step 4: Create the partition

You now have an initialized, unformatted drive. This drive has to be partitioned in order for it to be of use. You should right-click the unallocated space (Figure E) and then select New Partition. This will walk you through the Partition Wizard.

Figure E

The unallocated space will be indicated by the diagonal stripes.
In the next screen (Figure F), you need to add the disk to the selected area.

Figure F

By default, your drive should already be selected. If not, select it and click the Add button.
When your drive has been selected, click the Next button to move on to the next phase of the partitioning. In this phase you will assign the drive a letter and then click Next. On the next window (Figure G), you select if you want to format the drive and, if so, what format you want the drive to be.

Figure G


You can give the drive a label if need be. You can also enable compression and do a quick format instead of a standard format.
After you have this configured, click Next and the formatting will complete. You are almost done with this task.

Step 5: Reboot

In order for this drive to be available to Windows, you have to reboot the virtual machine. Once you have done so, the drive will be available to the system.

Monday, November 8, 2010

What is Windows 2008 Hyper-V?

Windows Server 2008 Hyper-V is a new role in Windows 2008 that allows you to create and manage a virtualized server environment.  You can run multiple servers inside of one server. This feature will allow you to consolidate many servers onto fewer servers. Like other virtualization products, Hyper-V can provide more efficient use of hardware and administrative resources.
Keep in mind that Windows 2008 Hyper-V is much different than running Microsoft Virtual Server 2005. Virtual Server is an application that is installed and run – providing virtualization services. As Hyper-V is a feature built into the operating system, it is more efficient and offers more features than Virtual Server.

Good luck with Hyper-V

MS Exchange server 2003 error 0x8004010F

When you try to synchronize the offline address list on a Microsoft Exchange Server 2003 server in Microsoft Office Outlook 2003, you may receive the following error message in the Sync Issues folder:
0x8004010F An object could not be found
If you try to send an e-mail message after you receive this error message, you may receive the following error message in Outlook 2003:
Task 'Microsoft Exchange Server' reported error (0x8004010F): 'The operation failed. An object could not be found.'
CAUSE:
This problem may occur if one of the following conditions is true:
When you view Properties in the Address lists setting in Exchange System Manager, one of the following conditions is true:
  • The offline address book list object has a missing address list.
  • The offline address book list object has an incorrect address list.
When you view Properties in the Offline address list setting in Exchange System Manager, one of the following conditions is true:
  • The offline address book list object has a missing address list.
  • The offline address book list object has an incorrect address list.
RESOLUTION
To resolve this problem, use one of the following methods.
Method 1:
  1. In Exchange System Manager, expand the Recipients container.
  2. Click the Offline Address Lists container.
  3. In the right pane, right-click the offline address list object, and then click Properties.
  4. On the General tab, verify that a valid address list is populated under Address lists. If a valid address list is not populated under Address lists, you must add one.Note The default address is the global address list.
  5. Click OK.
  6. Right-click the offline address list object again, and then click Set as New Default if the offline address list object is not set.
  7. If you made any changes, right-click the offline address list object again, and then click Rebuild.
Method 2:
  1. In Exchange System Manager, click Properties for the mailbox store, and then verify that the offline address list is populated with a valid offline address list object in Offline address list on the General tab.Note If the offline address list is not populated with a valid offline address list object, click Browse to select a valid offline address list object.
  2. Send an e-mail message from Outlook 2003.Note In Outlook 2003, you may have to log off and log on again for a valid test.
Good Luck.

MS Office 2010 You can close any Applicaiotn before its launch

Microsoft Office 2010 has a lovely new feature.
You can close any Office application before its launch if you clicked it by mistake.

Just press Cancel or click close button before fully launched.

Cheers,

How to configure Time and Date in windows 2008 Server Core?

Since there are virtually no graphical tools to use in Server Core, one must be able to configure its settings via Command Prompt, PowerShell or other means. See my site for a growing list of additional articles on these subjects.
As you may all know, setting the right time, date and time zone on a windows machine is crucial for it to properly function, especially in an Active Directory environment. Since our Server Core machine will most likely be a part of an AD domain, we need to properly configure it as well.
In order to configure time, date, and time zone settings on a machine running Windows 2008 Server Core, please follow these steps:
  1. On the server running a Server Core installation, type the following command at a command prompt: This will fire up the Time and Date Control Panel applet (one of two .CPL survivors on Server Core…)
  2. In order to change the clock and date, press the Change Date and Time button.       
  3. In order to change the time zone, press the Change Time Zone button.
  4. When done, press Ok to close the applet.

Note about working in an Active Directory environment

Note that as with any domain member, the Server Core machine will automatically synchronize its clock with the Domain Controller it was authenticated against, or with the Domain Controller holding the PDC Emulator FSMO Role.
To configure the Server Core machine to synchronize its clock with the PDC Emulator, type the following command:

Then, in order to force a time synchronization, type the following command:

Summary

Windows Server Core, like any other server or workstation, requires configuration of its time, date and time zone settings. These can be controlled locally on the server. This article showed you how to do that.

Good Luck.

How to install Active directory on windows 2008 Server Core?

Server Core can host a few roles. One of these roles can be the Active Directory Directory Services (AD DS) role, where the server will act as a Domain Controller for an Active Directory domain. This Domain Controller (or DC for short) can be used as one of the following DC scenarios:
  • The first DC in a new Active Directory Domain, inside a new Active Directory Forest
  • An additional (replica) DC in an existing Active Directory Domain
  • A Read Only DC (RODC) in an existing Active Directory Domain, in case you already have at least one regular DC running Windows Server 2008 in that domain
  • The first DC in a new Active Directory Domain (child domain), under an existing Active Directory Tree, inside an existing Active Directory Forest
  • The first DC in a new Active Directory Domain, as a new Active Directory Tree, inside an existing Active Directory Forest
So, now let's go to the business of actually installing the role. In order to install Active Directory DS on your server core machine you will need to perform the following tasks:
  1. Configure an unattend text file, containing the instructions for the DCPROMO process
  2. Configure the right server core settings + meet the DCPROMO requirements
  3. Copy that file to the server core machine
  4. Run the DCPROMO process with the unattend file
  5. Reboot the computer

Configure an unattend text file

First, let's create the unattend, or answer, file. The unattend file is an ASCII text file that provides automated user input for each page of the Active Directory Domain Services Installation Wizard.
One method of creating the unattend file is by editing a sample file you've created before or obtained from other sources (like this website). This is an example of such an Unattend file. In this example you will create an additional DC for a domain called petrilab.local:

Configure the right server core settings

After that you need to make sure the core machine is properly configured.
  1. Perform any configuration setting that you require (tasks such as changing computer name, changing and configure IP address, subnet mask, default gateway, DNS address, firewall settings, configuring remote desktop and so on).
  2. After changing the required server configuration, make sure that for the task of creating it as a DC – you have the following requirements in place
  • A partition formatted with NTFS (you should, it's a server…)
  • A network interface card, configure properly with the right driver
  • A network cable plugged in
  • The right IP address, subnet mask, default gateway
And most importantly, do not forget:
  • The right DNS setting, in most cases, pointing to an existing internal DNS in your corporate network

Copy the unattend file to the server core machine

Now you need to copy the unattend file from wherever you've stored it. You can run it from a network location but I prefer to have it locally on the core machine. You can use the NET USE command on server core to map to a network path and copy the file to the local drive. You can also use a regular server/workstation to graphically access the core's C$ drive (for example) and copy the file to that location.

Run the DCPROMO process

Next you need to manually run DCPROMO. To run the Active Directory Domain Services Installation Wizard in unattended mode, use the following command at a command prompt:

Reboot the machine

In order to reboot the server core machine type the following text in the command prompt and press Enter.

After the server comes back online you'll have yourself a new and shining DC running on a server core machine.

Good Luck

MSN key port error solution

Solution 1
In my case I reinstalled the network card and strangely that seemed to do the trick!
If it doesn’t work for you, give the below solutions a try.
Solution 2
Try removing any proxy settings, you can do this by following these steps.
1) Open up Internet explorer
2) Click the tools menu, then Internet options
3) Select the connections tab
4) Click the “LAN Settings” button
5) Ensure “Automatically Detect Settings” checkbox is ticked
6) Untick “Use a proxy server for your LAN …” if checked
7) Click ok, then ok
Start up MSN and give it a whirl!
Solution 3
Check your windows System clock and ensure it’s set to the correct time and date.
Solution 4
Has your Norton subscription run out? Some people have reported this will stop
MSN from working. (Not sure why … so don’t ask)
Solution 5
You can try resetting your Internet Security properties to defaults.
1) Open up Internet explorer
2) Click the tools menu, then Internet options
3) Select the security tab
4) Click the Restricted sites icon
5) Ensure MSN.com or hotmail.com isn’t on that list. If so, remove it. Click ok.
6) Select the Internet Icon and click the “Default Level” button. This will return your
Security settings to the default level.
7) Click ok, close down IE and MSN and then try launching MSN.
Solution 6
Try and isolate the problem, find out whats causing the the error. If you have norton,
turn it off. Does the problem still appear? If not, it looks like Norton is blocking it.
Read the Norton manual and find out how to allow programs to access the Internet.
This applies to Zonealarm, and other firewall programs.
Solution 7
Try to register softpub.dll using regsvr32.exe.
1. Press the Start menu then select Run
2. Type: regsvr32 softpub.dll
3. Press Enter & Restart Messenger.
Solution 8
1. If you have Norton installed, run LiveUpdate, make sure you have most current version.
2. Delete your Quaruntine and Backup files in Norton.
3. Reboot computer
This works!
all you need to do is so simple,i have been having problems signing in for ages and it just wouldnt work.the answer is below.........
go into the start menu...
click 'run'
type in the following...
regsvr32 softpub.dll
then press ok
then go back into 'run' and type the following...
regsvr32 mssip32.dll
then press ok
then go back into 'run' and type the following...
regsvr32 initpki.dll
then press ok
after its finished msn will work for deffo .its brilliant
this only works for window users...

Good Luck

How To Change the run level in linux?

Linux utilizes what is called "runlevels". A runlevel is a software configuration of the system that allows only a selected group of processes to exist. Init can run the system in one of eight runlevels. These runlevels are 0-6 and S or s. The system runs in only one of these runlevels at a time. Typically these runlevels are used for different purposes. Runlevels 0, 1, and 6 are reserved. For Redhat Linux version 6, the runlevels are:
0
-
halt
1
-
Single user mode
2
-
Multiuser, without NFS (The same as 3, if you don't have networking)
3
-
Full multiuser mode
4
-
unused
5
-
X11
6
-
Reboot
To Change the run level you need to get into following directory.
[root@test]# cd /etc
[root@test etc]#ls
Here you will find a file inittab. Open that file in a vi editor.
[root@test etc]#vi inittab
Edit following line in inittab file. You can replace 3 with any other run-level you wish from 0 - 6.
id: 3 :initdefault
Save the file and reboot.
Be careful setting the run-level to 6. This will make your system keep rebooting automatically.
Thats All,

How to Increase the size of VMware Virtual drive in an existing VM

To increase the size of Hard disk in an existing VM, You need to run following command.
Like if you want to increase the size of Virtual disc to 40GB

C:\Program Files\VMware\VMware Workstation\vmware-vdiskmanager -x 40Gb "d:\VM Folder\vmdiskfile.vmdk"

That's All,

How to Enable Remote Desktop Remotely on XP?

The following procedures assume that you have administrator rights on the target machine.
  1. Run Regedit
  2. Select File Connect Network Registry
  3. Enter the name of the remote computer and click OK
  4. At the bottom of the registry tree you will see two hives appear for the remote machine: HKEY_LOCAL_MACHINE and HKEY_USERS
  5. Navigate to HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server
  6. Double-click fDenyTSConnections in the right-hand pane and change the value from 1 to 0
I've noticed that these steps do not work on some Windows XP computers. It turns out that you need to set two registry keys:
  • HKLM\Software\Policies\Microsoft\Windows NT\Terminal Services\fDenyTSConnections should be changed from 1 to 0 (zero)
  • HKLM\System\CurrentControlSet\Control\Terminal Server\fDenyTSConnections should be changed from 1 to 0 (zero)
Good Luck,

How To Start VNC server In Linux?

To Start VNC server in linux if Package is already installed, You need to go through following steps:
  1. Open terminal window
  2. type:  [root@test~]# vncserver This will ask you to set the password for VNC
  3. [root@test~]#cd .vnc
  4. [root@test~vnc]#vi xstartup
  5. Uncomment first two lines and then at the end of file replace "twn" with "xstartup" save and exit
  6. [root@test~]#vncserver
  7. From any windows open VNC client and enter IP address of linus machine like, 172.16.2.5:5900  where 5900 is the vnc port. If you run the vncserver command twice or more then port could be 5901,5902....
Good Luck,

How to Install the RPM Package in Linux?

Things You need to do:
  • Download the RPM Package
  • Open the terminal window. You can find termainl under "Applications" and "Accessories (GNOME)" or "Start" and "Utilities" KDE
  • Change the directory where your RPM file is located run following command.                                    sudo rpm -ivh package.rmp                                                                                                                      (Replace the package with your RPM package name)
Good Luck,