export configuration from old venter 5.5 to new venter 6.5

dedri
dedri used Ask the Experts™
on
I have windows venter server 5.5 and drs rules configured on it. I installed a new VCSA 6.5. I plan to migrate hosts from old vcenter to the new one.
One of the things that I want to move is a DRS rules. Could you tell me is there any way to export this drs rule and import them in new venter server.
Except the drs rule could you tell me what else I need to consider to export and import in new venter server, also how to do it.
I don't want to use the migration assistant, so do not propose this as a solution.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
There is now real easy method to Export the rules, and Import the rules into VCSA 6.5.

If you have both servers online, why not connect to both vCenter Servers and two different screens, and just quickly re-create the rules ?

Because with a new vCenter Server 6.5, you will need to re-create

1. Datacentre
2. Cluster
3. Enable HA
4. Enable DRS
5. Maybe enable EVC

Do you use Distributed Switches?

Author

Commented:
no, I don't use distributed switch.
The problem is that the vitrual machines are in the old venter server. It's not possible to create a rule in new vcetner server without them. If I move vms  to the new venter. virtual machines disappear in the old venter drs rules.
Also we have really a lot of drs rules, a lot of vm-tohost, a lot of anti-affinity group , etc. If it was easy to recreate them, I wouldn't ask for any solution how to automate it.
Do you know any working scripts that I can use for this task
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
sorry for my late reply. I tested the powercli command mentioned in this article and it does not work.
Get-Cluster -Name "MyCluster" | Get-DrsRule | Export-CliXml 'C:\scripts\drs.xml'
Only empty xml file is created with this information "<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04" />"
I am using powercli version 10.1
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
It's working for me, here.

I'm using VMware PowerCLI 6.5 Release 1 build 4624819

Author

Commented:
I'll try with your version and give you feedback

Author

Commented:
ok, I found the problem with this script. Powercli version doesn't matter. It exports only keeptogether drs rules. Any vm should run to host rules are not exported in xml file.
Andrew, do you know any other working script that I can used to export all drs rules.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
If the PowerCLI Get-DrsRule function does not work, and get all the rules, there are no other methods to obtain rules.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial