Monday, May 14, 2012

V2V Ubutu vm issues

Recently I was migrating 2 linux servers using v2v and ran into 2 issues.

  1. ERROR - happened at first step where converter logs into VM to do what it has to do using admin credentials. Error was as follows ( Authentication error. Incorrect user name or password. This operation also requires that the source machine's SSH daemon configuration allows remote root login.) Ubuntu is one of the linux instances that does not enable root account as default so every time you need to do admin task you have to type "sudo -s" into command line. Therefore account I was using would not be able to login. Very fast RESOLUTION to this problem is to type in "sudo passwd root". This command enales root account and makes you set the password for the same. Ubuntu does not recommend this so be carefull if you decide to go this route. I personally am the only one administering these two boxes so not much concern for me.
  2. ERROR - happened at 99% of conversion. Error was as follows ( An error occurred during the conversion: 'GrubInstaller::InstallGrub: /usr/lib/vmware-converter/ failed with return code: 127, and message: Installing GRUB1 on (hd0)... / 59: grub:
    not found Error installing GRUB Error running through chroot into /mnt/p2v-src-root ')
      • Added following code into beginning of /usr/sbin/grub-install file:
      • if [ $# -eq 1 -a "$1" = "-v" ] ; then
          echo "grub-install (GNU GRUB 1.99-12ubuntu5)"
          exit 0
      • More about this you can read in this thread: 

Friday, April 27, 2012

What to look for when installing DHCP on windows server 2008 that is also DC

Make sure DHCP is not running as a system account. This change is not necessary if DHCP is running on member server of domain.

By Using the DHCP Server Snap-In

  1. In the DHCP Server snap-in, which is located in the Administrative Tools folder, right-click the DHCP server that you want to configure, and then click Properties.
  2. On the Advanced tab, click Credentials.
  3. Type the username, domain and password of the account under which you want the DHCP Server service to run. You can use any valid existing user account for this, such as a Domain User account. The account should not be set to expire or have any other restrictions.
  4. Click OK, and then OK again to exit the Properties dialog box.

By Using the Netsh.exe Command Line

  1. From a command prompt, type netsh, and then press ENTER.
  2. From the netsh prompt, type dhcp server ipaddress (where ipaddress is the IP address of the DHCP server that you want to configure), and then press ENTER.
  3. Type set dnscredentials username domain password (where username domain password is the user account information for the account under which you want the DHCP Server to run), and then press ENTER. You can use any valid existing user account for this, such as a Domain User account. The account should not be set to expire or have any other restrictions.
  4. Type quit, and then press ENTER to exit.
Original KB article can be found at:

Also very usefull article about DNS and DHCP correlation:

Whitelist in Exchange 2010

Pwershell commands for whitelisting in exchange 2010:
Check what is currently whitelisted -
Whitelist a single email address -
$list = (Get-ContentFilterConfig).BypassedSenders
Set-ContentFilterConfig -BypassedSenders $list
Whitelist entire domain -
$list = (Get-ContentFilterConfig).BypassedSenderDomains
Set-ContentFilterConfig -BypassedSenderDomains $list

Windows 7 winsxs folder is huge!!!

So I have my desktop set up with "whooping" 50GB c:drive space and 600GB on my data drive and I'm thinking that I will have plenty of space for OS. Well 2 years later I end up with this folder called winsxs in c:\windows. And I'm like whaaaaaat!!! This folder was 13GB on my c: drive and this needed to be fixed asap!. So here I go Gooooogling again to figure out what is this folder all about. It happens to be you do not want to manually delete stuff from this folder as you could seriously mess up your system and various applications might decide not to run properly any more.

So what did I do to fix it?
Open cmd line as administrator and run following from c:\windows\system32 directory: "dism /online /cleanup-image /spsuperseded"

By running this I was able to free up 4GB of space. If you have a better solution please share I would love to hear it.

NOTE: If you tun this you might not be able to uninstall some win updates or service packs any more...