revert pool vm sync to host vm sync in startupcommand in 2.2.10.

then XenServer upgrade is supported in 2.2.10
This commit is contained in:
anthony 2011-08-12 10:59:53 -07:00
parent ba9a127d3e
commit d32ca5ae45
1 changed files with 4 additions and 2 deletions

View File

@ -2578,8 +2578,10 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
}
try {
final HashMap<String, VmState> vmStates = new HashMap<String, VmState>();
Map<VM, VM.Record> vmRs = VM.getAllRecords(conn);
for (VM.Record record : vmRs.values()) {
Host lhost = Host.getByUuid(conn, _host.uuid);
Set<VM> vms = lhost.getResidentVMs(conn);
for (VM vm: vms) {
VM.Record record = vm.getRecord(conn);
if (record.isControlDomain || record.isASnapshot || record.isATemplate) {
continue; // Skip DOM0
}