1Y0-A26 · Question #124
Which two CLI commands will correctly restart a virtual machine? (Choose two.)
The correct answer is B. xe vm-reboot vm=<vm_name> C. xe vm-reboot uuid=<vm_UUID>. See the full explanation below for the reasoning.
Question
Which two CLI commands will correctly restart a virtual machine? (Choose two.)
Options
- Axe vm-start vm=<vm_name>
- Bxe vm-reboot vm=<vm_name>
- Cxe vm-reboot uuid=<vm_UUID>
- Dxe vm-reset-powerstate vm=<vm_name> -force
How the community answered
(39 responses)- A18% (7)
- B72% (28)
- D10% (4)
Community Discussion
5B and C are your correct picks. xe vm-reboot accepts either the vm= name parameter or the uuid= parameter to identify the target, so both forms issue a clean reboot, while A is a start command not a restart and D is a power state reset that does not perform a proper reboot sequence.
Both B and C restart a running VM, so what is D actually doing differently?
D typically forces the guest OS into a hard power cycle without waiting for tools to flush state, so you are not just restarting, you are losing whatever was in memory buffers, which is exactly the edge case the question is testing.
D is the one that trips people up because it sounds like a reboot, but vm-reset-powerstate with --force is a hard state correction for a VM stuck in a broken power state, not a clean restart. For an actual reboot, xe vm-reboot takes either vm=<name> or uuid=<UUID> as valid selectors, so B and C are both correct.
Solid breakdown, and worth adding that if you hit a VM stuck mid-operation where even vm-reset-powerstate gives you grief, checking xe task-list first to cancel the hung task is the cleaner path before reaching for --force.