Skip to content

Commit 0f459bd

Browse files
authored
Merge pull request #306 from xcp-ng/dnt/agent-workaround
lib/vm: Work around Windows XS guest agents not updating version after resume
2 parents 82c0a8b + ff89229 commit 0f459bd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/vm.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,11 @@ def is_ssh_up(self):
148148
return False
149149

150150
def is_management_agent_up(self):
151-
return self.param_get('PV-drivers-version', 'major', accept_unknown_key=True) is not None
151+
return (
152+
self.param_get("PV-drivers-version", "major", accept_unknown_key=True) is not None
153+
# HACK: workaround for Windows XS guest agents not updating major version after resume
154+
or self.param_get("PV-drivers-version", "xenbus", accept_unknown_key=True) is not None
155+
)
152156

153157
def wait_for_os_booted(self):
154158
wait_for(self.is_running, "Wait for VM running")

0 commit comments

Comments
 (0)