Archive for February, 2013

start and stop vcenter service from the console

service vmware-vpxd start
service vmware-vpxd stop

No Comments »

admin on February 27th 2013 in VMWare

Migrate to a new vCenter Appliance

They changed the database from vCenter 5.0 to 5.2 and I tried the migration steps from the VMWare Support Website and still it failed. I even called up the support of VMWare and at the end we had to face a new installation of vCenter.

This are the steps:

  1. Download the newest vCenter appliance and import it
  2. Run the applicance and check from the screen console the IP if you haven’t already setup a fix one
  3. Open it with your Browser: https://192.168.x.x:5480/
    Username: root
    Password: vmware
  4. Accept license Agreement
  5. Configure with default Settings
  6. Click on all next buttons until it starts to build the database and start the services
  7. Check if all services are up and running
  8. Change the hostname and IP Settings (Network/Adress) and click on Save Settings. After that you need to reboot the machine.
  9. Set the AD Settings
    I tried set it over the Web-Interface but somehow it never worked. Finally I just connected to the appliance via putty and run following commands:
    /opt/likewise/bin/domainjoin-cli join $YOURDOMAIN $USERNAME $PASSWORD
    shutdown –r now
  10. Wait until the Appliance is up again.
  11. Login to the Web Appliance and go to the section Admin and Click on “Toggle certificate settings”. After that I had to restart the appliance again.
  12. This time connect via Web-Browser to a different port: https://192.168.x.x:9443
    Username: root
    Password: vmware
  13. Go there to Manage/Configuration and add there AD identitysource:
    Replace the fields with your domain settings.
  14. Move System-Domain above localos.
  15. After you can vSphere Client and login with root to the vCenter. If there should be a message poping up about the certificate, you can just ignore it.
  16. Click on “localhost” and from there go to the tab “Permissions” and add the domain users in which you want to be able to login and set their permissions. I usually add the Domain Admin as well.
  17. Right click on “localhost” and rename it to the appliance hostname to better identifiy it and add a Datacenter and Cluster to it. The cluster settings you  can get from the old appliance.
    NOTICE: If you should use EVC then deactivate it first and activate it again after you have added all ESX, otherwise you aren’t able to add them.
  18. Go to the vCenter Settings and setup Email, SNMP etc.
    NOTICE: Set a limit to how many days it should keep the protocols, because it could grow quickly and fill up all free space. The license key you can also lookup on your old instance.
  19. Connect to the old vSphere Server and disconnect all ESX Server from there
  20. On the new vSphere Server add them all to the cluster:
    Notice: Use the Full Qualified Domain Name of the ESX Server and use the root login to add them. It will even add the licenses of the ESX.
  21. Set all other settings and switch off the old instance of vSphere
  22. Don’t forget to change the password of vSphere.

No Comments »

admin on February 27th 2013 in IT, VMWare

SYNchronise vSphere Time Manually

#sntp –r

No Comments »

admin on February 25th 2013 in IT, Linux, VMWare

AntiVirus on Server

It can be a good a idea to have a different AntiVirus on the servers than on the desktops. So you have a layered scan.

No Comments »

admin on February 12th 2013 in IT, Linux, Windows

WSUS Deactivate Browser Choice Update


No Comments »

admin on February 12th 2013 in Windows Server

PowerShell View LogFiles from a Server

You can use the Get-EventLog. Example:
Get-EventLog -LogName Application -Source "*Update*" | Format-List
Get-EventLog -LogName Application –Newest 10

No Comments »

admin on February 11th 2013 in IT, PowerShell

Windows 2012 WSUS No client computers have ever contacted the server Error 461

Create a WSUS GPO policy for the workstations and keep in mind that the WSUS port has changed from 80 to 8530. I wrote a tutorial how to setup a WSUS GPO.

No Comments »

admin on February 11th 2013 in IT, Windows Server

Manage Storage with PowerShell on Windows Server 2012

Initialize-Disk [NUMBER] –PartitionStyle MBR
New-Partition –DiskNumber [NUMBER] –UseMaximumSize –AssignDriveLetter
Format-Volume –DriveLetter [DRIVELETTER]

Clear-Disk [NUMBER] –RemoveData

No Comments »

admin on February 11th 2013 in IT, Windows Server

Important Network Commands you should know

Computer Name

#ping [Computername/IP]
Checks if computer can be reached 4 times

#ping -t [Computername/IP]
Checks if computer can be reached unlimited times

#ping –a [IP]
Name resolution of the IP

Get IP-Adress

#ipconfig /all
Here you can get the MAC-Adress

#ipconfig /release
Removes the IP-Adress

#ipconfig /renew
Gets a new IP-Adress from the DHCP

#ipconfig /registerdns
Renews the registration on the DNS-Server

#ipconfig /displaydns
Shows local DNS-Cache

#ipconfig /flushdns
Deletes local DNS-Cache

#arp –a
Table IP-Adresses / MAC-Adresses

#nslookup [IP/Domainname]
DNS – Name Resolution

No Comments »

admin on February 8th 2013 in IT, Network, Windows, Windows Server

Remote Session Powershell

Like ssh you can run a remote session in powershell.

Test if remote session is enabled
#Test-WsMan [Computername]

If you get a result, it should be up and running. Otherwise you need to activate it on the remote server like this.

Enable PowerShell Remoting on a Server
1. Run Powershell as an administrator
2. #Enable-PSRemoting –Force
This command starts the WinRM server service and sets it automatically to start with the system. It also creates a firewall rule that allows incoming connections.

If your computers aren’t in a domain you need to do a couple of more steps to make a trust between them. You need to edit the TrustedHosts on both sides. You could put the IP Adresses comma-seperated instead of * to further restrict it. With the * it will allow any host.

1. #Set-Item wsman:\localhost\client\trustedhosts *
2. #Restart-Service WinRM

Execute a Remote Command
#Invoke-Command -ComputerName COMPUTER -ScriptBlock { COMMAND } -credential USERNAME

Start a Remote Session
#Enter-PSSession -ComputerName COMPUTER -Credential USERNAME

No Comments »

admin on February 8th 2013 in PowerShell

Check out new movies online website. Download and buy movies now.