File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ let get_backend () =
5656 | None ->
5757 failwith " No backend implementation set"
5858
59+ let dom0_uuid = ref " "
60+
61+ let set_dom0_uuid uuid = dom0_uuid := uuid
62+
5963let ignore_exception msg f x =
6064 try f x
6165 with Xenopsd_error e ->
@@ -353,7 +357,7 @@ module VBD_DB = struct
353357 (Jsonrpc. to_string (rpc_of Vbd. t x)) ;
354358 (* Only if the corresponding VM actually exists *)
355359 let vm = vm_of x.id in
356- if not (VM_DB. exists vm) then (
360+ if not (VM_DB. exists vm || vm = ! dom0_uuid ) then (
357361 debug " VM %s not managed by me" vm ;
358362 raise (Xenopsd_error (Does_not_exist (" VM" , vm)))
359363 ) ;
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ let check_domain0_uuid () =
2222 Inventory. update Inventory. _control_domain_uuid uuid ;
2323 uuid
2424 in
25+ Xenops_server. set_dom0_uuid uuid ;
2526 Xenctrl. domain_sethandle xc 0 uuid ;
2627 (* make the minimum entries for dom0 *)
2728 let kvs =
You can’t perform that action at this time.
0 commit comments