VMware ESXi 5 CPU Affinity and DRS

Posted on 2012-08-27
Last Modified: 2012-08-27
I have a 4 host cluster in our VMware environment.  3 of the 4 hosts are identical boxes, and one is newer.  When I do a migration with one of our virtual machines between one of the older hosts and the new host, or vice-versa, it breaks our licensing for Pervasive SQL software.  I called support and Pervasive says this is expected, and if we want to have this in a virtual environment, then we need to setup CPU affinity for the VM hosting the Pervasive SQL server.  We have DRS enabled.  Am I still able to set CPU affinity for this VM?  Would I be better off assigning the VM itself to a physical host?  Or does DRS prevent that too?

Any ideas I'm not thinking of to address this issue?
Question by:jpletcher1
    LVL 116

    Accepted Solution

    Create a DRS Affinity rule to STICK the VM to a HOST, DRS will then NOT move the VM, and will not break your licensing.

    Edit the Cluster, DRS, and Create a Rule.

    We have a VOIP VM, with similar issues, because it uses the Machines CPU Serial Number!

    So we "stick" it to a host, so it does not move!

    Author Comment

    Do I also then need to set the specific VM to Manual under the individual VM listed in the DRS area "Virtual Machine Options"?  Or does setting the rule take care of everything?
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    That rule takes care of everthing.

    Rules override everything when the VM is in the Cluster.

    Just create a Rule.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    One of the new features of a version 7.0 or later virtual machine, supported in VMware vSphere 4.1, 5.0 or the VMware vSphere Hypervisor ESXi 4.1, ESXi 5.0 often overlooked by VMware Administrators is the ability to add and connect USB devices conne…
    This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
    Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
    Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now