File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1955,7 +1955,17 @@ module VM = struct
19551955 b_info_hvm_default
19561956 | _ -> failwith " Expected HVM build_info here!"
19571957 in
1958- let console_path = Printf. sprintf " unix:%s/%s" ! Xl_path. vnc_dir vm.Vm. id in
1958+ let vnc_info =
1959+ let listen =
1960+ if ! Xenopsd. use_upstream_qemu then
1961+ let console_path = Printf. sprintf " unix:%s/%s" ! Xl_path. vnc_dir vm.Vm. id in
1962+ Some console_path
1963+ else None
1964+ in
1965+ let open Xenlight.Vnc_info in
1966+ let vnc_info_default = with_ctx (fun ctx -> default ctx () ) in
1967+ { vnc_info_default with enable = Some true ; listen = listen }
1968+ in
19591969 { b_info_default with
19601970 ty = Hvm { b_info_hvm_default with
19611971 pae = Some true ;
@@ -1964,7 +1974,7 @@ module VM = struct
19641974 nx = Some true ;
19651975 timeoffset = Some hvm_info.Xenops_interface.Vm. timeoffset;
19661976 nested_hvm = Some true ;
1967- vnc = Xenlight.Vnc_info. ({enable = Some true ; listen = Some console_path; passwd = None ; display = 0 ; findunused = None }) ;
1977+ vnc = vnc_info ;
19681978 keymap = hvm_info.Xenops_interface.Vm. keymap;
19691979 serial = hvm_info.Xenops_interface.Vm. serial;
19701980 boot = Some hvm_info.Xenops_interface.Vm. boot_order;
You can’t perform that action at this time.
0 commit comments