BUG in VMWare Toolkit 1.5 tijdens het maken van een Geplande Taak met een Service Account.

image

Ik had een probleempje met een scriptje van Collega Ivo Beerens. Hij heeft een mooi script
geschreven genaamd Healthscript. Dit wou script wou ik implementeren aangezien ik een nieuwe virtual center center server had ingericht.

Ik liep tegen het probleem dat ik het script niet werkend kreeg met een service account user die deze taak moest uitvoeren. Onder ingelogde account werkte het wel.

Oplossing:

Boven aan het powershell script de volgende code toegevoegd en daarna werkte het als een trein.:
#FIX FOR TOOLKIT 1.5
$USER = $env:username
$APPPATH = "C:Documents and Settings" + $USER + "Application Data"
#SET THE APPDATA ENVIRONMENT WHEN NEEDED
if ($env:appdata -eq $null -or $env:appdata -eq 0)
{
$env:appdata = $APPPATH
}

VMware Server 2.0 Tips and Tricks

 

Hierbij sommige  Tips & Tricks van VMWare Server 2.0

1. Use a web browser (Firefox and Internet Explorer are the two officially supported ones) to
connect to http://yourserver:8222 or https://yourserver:8333 if you selected the default
ports during installation/configuration.

2. If you manage from a Windows client then the VI (Virtual Infrastructure) client is also
available which is what is used to manage ESX/ESXi and Virtual Center too. It is available at
https://yourserver:8333/client/VMware-viclient.exe.

3. The VI Client cannot add USB devices to VMs running at hardware versions greater than 4 –
version 7 is required for USB 2.0 support.

4. Specify yourserver:8333 for the connection in the VI Client.

5. The credentials you specify to logon are admin credentials that you would use on the host
even without VMware installed – VMware does not introduce any credentials/accounts
itself.

6. The admin account you use must have a password defined for it or you will not be able to
login.

7. The remote console is a locally installed application which will be installed when the console
tab is first clicked onto.

8. For remote management through firewalls, VPNs or over SSH tunnels, port 902 is also used as well as 8222/8333. Note that during Linux configuration; you may have selected a
different port from 902 as sometimes it can be statically detected as being in use.

9 .Backing up VMs can be achieved in a number of ways:
a. If the VM is not powered up then simply copy all of its files to another location.
b. If the VM is running, take a snapshot and then copy the base disk file(s) to another
location (*.vmdk except *-00001*.vmdk). A new VM can then be constructed using
this disk. Note that you can only have a single snapshot.
c. In a Windows VM, use a VSS (Volume Shadow copy Service) aware backup tool to
create a backup that can then be restored using the same tool to a bare VM.
d. On a Windows host, use a VSS aware backup tool to backup the files that constitute
the VM.

10. If a VM fails to power on and was not shut down properly, check for .lck files/folders and
remove them if they exist as long as the VM definitely is not running.

11. Server 2.0 stores VMs in datastores – a default datastore is created which is calle
“[standard]” and will map to the root of the folder you select during installation.

12. VMs can be run from external USB drives by defining a datastore for the mount point.

13. Remote datastores can also be added – NFS for Linux hosts and CIFS/SMB for Windows.

Bekijk HIER de volledige PDF met Tips & Tricks van VMWare Server 2.0

VMware vCenter Converter vrij gegeven

clip_image001

VMware vCenter Converter kan op heel verschillende hardware en de meest gebruikte versie van Microsoft Windows and Linux* operating systems. Met dit robuste , enterprise class migratie tool kun je het volgende :

· Quickly and reliably convert local and remote physical machines into virtual machines without any disruption or downtime.

· Complete multiple conversions simultaneously with a centralized management console and an intuitive conversion wizard.

· Convert other virtual machine formats such as Microsoft Virtual PC and Microsoft Virtual Server or backup images of physical machines such as Symantec Backup Exec System Recovery or Norton Ghost to VMware virtual machines.

· Restore VMware Consolidated Backup (VCB) images of virtual machines to running virtual machines.

· Clone and backup physical machines to virtual machines as part of your disaster recovery plan.

clip_image003

Downloaden doe je hier: https://www.vmware.com/download/converter/

*Linux P2V ondersteuning is alleen voor de stand alleen versie alleen

VMWare Toolkit 1.5

PCLI_BlogVMWare heeft VMWare toolkit 1.5 vrij gegeven.
Bekijk HIER de release notes.
Er zijn 32 nieuwe powershell commando’s bij gekomen. Een heleboel zijn uitgebreid en gefikst.
Downloaden doe je HIER

Bekijk ook de volgende Video’s:
HA and DRS in VI Toolkit 1.5
Managing Storage with VI Toolkit 1.5
Some important fixes in VI Toolkit 1.5
Get-Stat Improvements in VI Toolkit 1.5
Resizing Guest Disks with Invoke-VMScript

image

VMReference Card 1.3

VMware reference VI3 kaart is uit gekomen.

Wat is er in bijgewerkt.

  • Updated the details to the latest Confuguration Maximiums PDF.
  • Updated it to include 3.5 update 3 release notes.
  • Changed the versioning to include the latest VMware release, so its more obvious how up to date (or not) your card is.
  • Some minor additions (NAS maximums) and corrections.
  • image

    Deploying Exchange Server 2007 on VMware Infrastructure: A VMware Internal Case Study

    VMWare heeft een nieuw document uitgegeven waar de volgende dingen in beschreven wordt:

    – Exchange 2007 bij VMWare zelf.
    – Exchange 2003 en haar limiten
    – Virtualisatie Exchange en haar voordelen
    – Planning & Eisen
    – Ontwerp & Implementatie
    – Conclusie van VMWare

    image

    Set Hardware Acceleration Level

    Ik vond een mooi script op het Edugeek. Het zet automatisch Hardware Acceleration Level op full.

    Const HKEY_LOCAL_MACHINE = &H80000002
    sComputer = "."
    sMethod = "GetStringValue"
    hTree = HKEY_LOCAL_MACHINE
    sKey = "HARDWAREDEVICEMAPVIDEO"
    sValue = "DeviceVideo0"
    Set oRegistry = GetObject("winmgmts:{impersonationLevel=impersonate}//" & sComputer & "/root/default:StdRegProv")
    Set oMethod = oRegistry.Methods_(sMethod)
    Set oInParam = oMethod.inParameters.SpawnInstance_()
    oInParam.hDefKey = hTree
    oInParam.sSubKeyName = sKey
    oInParam.sValueName = sValue
    Set oOutParam = oRegistry.ExecMethod_(sMethod, oInParam)
    strParse = oOutParam.Properties_("sValue")
    sMethod = "SetDWordValue"
    hTree = HKEY_LOCAL_MACHINE
    sKey = Replace(strParse, "RegistryMachine", "")
    sValueName = "Acceleration.Level"
    ‘* In Windows XP Change the uValue value for Accelleration.Level from 0 (FULL) to 5 (none)
    uValue = 1
    Set oRegistry = GetObject("winmgmts:{impersonationLevel=impersonate}//" & sComputer & "/root/default:StdRegProv")
    Set oMethod = oRegistry.Methods_(sMethod)
    Set oInParam = oMethod.inParameters.SpawnInstance_()
    oInParam.hDefKey = hTree
    oInParam.sSubKeyName = sKey
    oInParam.sValueName = sValueName
    oInParam.uValue = uValue
    Set oOutParam = oRegistry.ExecMethod_(sMethod, oInParam)
    sComputer = Empty
    sMethod = Empty
    hTree = Empty
    sKey = Empty
    sValue = Empty
    sValueName = Empty
    uValue = Empty
    Set oRegistry = Nothing
    Set oMethod = Nothing
    Set oInParam = Nothing
    Set oOutParam = Nothing
    WScript.Quit

    Sla het bovengenoemde script op als een vbs.
    Je kunt dit ideaal gebruiken tijdens het deployen van virtuele machines via MDT in combinatie met automatische uitrol van VMware Tools. Nu hoef je zelf niet meer de Hardware Acceleration level aan te passen. Ik heb het getest onder XP & Windows 2003.

    VMware Time Sync & Virtual Windows Domain Controller & VMware Tools

    Bij veel mensen is het onbekend hoe het zit met de tijd synchronisatie op virtuele machines.
    Microsoft & VMWare hebben hier paar interessante documenten overgeschreven.

    http://www.vmware.com/pdf/vmware_timekeeping.pdf
    http://support.microsoft.com/kb/888794
    http://kb.vmware.com/kb/1318

    VMware houdt aan de regel dat je het beste de VMware tools de tijd synchronisatie kunt laten synchroniseren.
    En in de Windows de Windows Time services uitgeschakeld dit geldt alleen niet voor domein controllers.
    Voor de domein controllers moet je in VMware Tools de tijd synchronisatie aanzetten. Tevens moet je zorgen dat de Windows Time Services op Server-Only
    komt te draaien. Dit geldt voor elke domain controllers.
    Dit doe je als volgt door in het register de  volgende waarde wijzigen: HKEY LOCAL MACHINESYSTEMCurrentControlSetServicesW32TimeParameters
    Type=NoSync te zetten.

    Handige Links:
    http://www.windowsnetworking.com/articles_tutorials/Configuring-Windows-Time-Service.html

    Defragmenteer VMware Workstation Images

    Ik vond een handig scriptje op de site ICT-Freak.
    Ik een momenteel aardig wat vm’s draaien in VMworkstation.
    Alleen de vm’s beginnen aardig groot te worden. Met dit scriptje worden ze wat kleiner.

    Scriptje:

    function Defrag-allVMDKs{
    param([string]$path)
    $vdiskmanager = “C:\Program Files\VMware\VMware Workstation\vmware-vdiskmanager.exe”
    $parameter = “-d”
    $List = get-childitem $path -recurse | where {$_.extension -eq “.vmx”} |
    foreach-object -process { $_.FullName } | ForEach-Object {$_ -replace “.vmx”, “.vmdk”}
    ForEach($vmdk in $List)
    {
    echo $vmdk
    & $vdiskmanager $parameter $vmdk
    }
    }

    Defrag-allVMDKs <drive>\<path>

    Translate »