Link to home
Start Free TrialLog in
Avatar of dedri
dedriFlag for United States of America

asked on

export configuration from old venter 5.5 to new venter 6.5

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.
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dedri

ASKER

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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dedri

ASKER

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
It's working for me, here.

I'm using VMware PowerCLI 6.5 Release 1 build 4624819
Avatar of dedri

ASKER

I'll try with your version and give you feedback
Avatar of dedri

ASKER

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.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial