mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
v2v: ovf: store CPU model for oVirt
If CPU model is available store it in OVF for oVirt. This affects -o rhev and -o vdsm. Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
This commit is contained in:
committed by
Richard W.M. Jones
parent
684aa26115
commit
31f1fe7bd2
@@ -306,6 +306,12 @@ let rec create_ovf source targets guestcaps inspect
|
||||
e "DefaultDisplayType" [] [PCData "1"];
|
||||
] in
|
||||
|
||||
(match source.s_cpu_model with
|
||||
| None -> ()
|
||||
| Some model ->
|
||||
push_back content_subnodes (e "CustomCpuName" [] [PCData model])
|
||||
);
|
||||
|
||||
(* Add the <Origin/> element if we can. *)
|
||||
(match origin_of_source_hypervisor source.s_hypervisor with
|
||||
| None -> ()
|
||||
|
||||
Reference in New Issue
Block a user