We want to automate our image update process, we are running Ivanti Automation, and we are running Xenserver 8 latest version. So I started using PowerShell.
What I would like to accomplish is the following.
We have a template machine, called Template-2019 I'm trying to build a script which connects to Xenserver pool master, then selects this VM and then revert to the latest snapshot then boot the machine
I'm terribly stuck at the process of selecting the latest snapshot.
With powershell I cannot get a commandline to get the latest snapshot of a vm, and revert to that snapshot
With Xe i can get all snapshots but then I need to get the latest snapshot put into a variable so I can use this in another command, to revert to the latest snapshot.
So in short what my ultimate goal is:
- connect xenserver pool master (works)
- get latest snapshot on my reference vm (help needed)
- revert to latest snapshot on the reference vm (help needed)
- start reverence vm (works)
- Ivanti automations does the updates required (works)
- stop reference vm (works)
- take snapshot of reverence vm (not created yet)
- publish snapshot to citrix cloud machine catalog (not created yet).
Is there anybody out there who has already done such steps?
If this is not possible, I will go and build in a step into my automation to check if the person has manually reverted to the latest snapshot.
Hope someone knows the answer, I tried ChatGPT ? but no luck, also all kinds of reverence materials do not help me.
Question
Herwin Duinkerken1709163487
Hi All,
We want to automate our image update process, we are running Ivanti Automation, and we are running Xenserver 8 latest version. So I started using PowerShell.
What I would like to accomplish is the following.
We have a template machine, called Template-2019 I'm trying to build a script which connects to Xenserver pool master, then selects this VM and then revert to the latest snapshot then boot the machine
I'm terribly stuck at the process of selecting the latest snapshot.
With powershell I cannot get a commandline to get the latest snapshot of a vm, and revert to that snapshot
With Xe i can get all snapshots but then I need to get the latest snapshot put into a variable so I can use this in another command, to revert to the latest snapshot.
So in short what my ultimate goal is:
- connect xenserver pool master (works)
- get latest snapshot on my reference vm (help needed)
- revert to latest snapshot on the reference vm (help needed)
- start reverence vm (works)
- Ivanti automations does the updates required (works)
- stop reference vm (works)
- take snapshot of reverence vm (not created yet)
- publish snapshot to citrix cloud machine catalog (not created yet).
Is there anybody out there who has already done such steps?
If this is not possible, I will go and build in a step into my automation to check if the person has manually reverted to the latest snapshot.
Hope someone knows the answer, I tried ChatGPT ? but no luck, also all kinds of reverence materials do not help me.
Best regards,
Herwin Duinkerken
Link to comment
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now