Tomáš Golembiovský
2017-Apr-11 11:18 UTC
[Libguestfs] [PATCH v2] v2v: ovf: Add virtio-rng and memory balloon device
This affects -o rhv and -o vdsm.
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
---
v2v/create_ovf.ml | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/v2v/create_ovf.ml b/v2v/create_ovf.ml
index cfca63452..f5dc64753 100644
--- a/v2v/create_ovf.ml
+++ b/v2v/create_ovf.ml
@@ -390,6 +390,29 @@ let rec create_ovf source targets guestcaps inspect
]
];
+ (* Add the miscellaneous KVM devices. *)
+ if guestcaps.gcaps_virtio_rng then
+ append virtual_hardware_section_items [
+ e "Item" [] [
+ e "rasd:Caption" [] [PCData "RNG Device"];
+ e "rasd:InstanceId" [] [PCData (uuidgen ())];
+ e "rasd:ResourceType" [] [PCData "0"];
+ e "Type" [] [PCData "rng"];
+ e "Device" [] [PCData "virtio"];
+ ]
+ ];
+ if guestcaps.gcaps_virtio_balloon then
+ append virtual_hardware_section_items [
+ e "Item" [] [
+ e "rasd:Caption" [] [PCData "Memory Ballooning
Device"];
+ e "rasd:InstanceId" [] [PCData (uuidgen ())];
+ e "rasd:ResourceType" [] [PCData "0"];
+ e "Type" [] [PCData "balloon"];
+ e "Device" [] [PCData "memballoon"];
+ ]
+ ];
+
+
push_back content_subnodes (
e "Section" ["xsi:type",
"ovf:VirtualHardwareSection_Type"]
!virtual_hardware_section_items
--
2.12.1
Richard W.M. Jones
2017-Apr-11 20:54 UTC
Re: [Libguestfs] [PATCH v2] v2v: ovf: Add virtio-rng and memory balloon device
On Tue, Apr 11, 2017 at 01:18:01PM +0200, Tomáš Golembiovský wrote:> This affects -o rhv and -o vdsm. > > Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com> > --- > v2v/create_ovf.ml | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/v2v/create_ovf.ml b/v2v/create_ovf.ml > index cfca63452..f5dc64753 100644 > --- a/v2v/create_ovf.ml > +++ b/v2v/create_ovf.ml > @@ -390,6 +390,29 @@ let rec create_ovf source targets guestcaps inspect > ] > ]; > > + (* Add the miscellaneous KVM devices. *) > + if guestcaps.gcaps_virtio_rng then > + append virtual_hardware_section_items [ > + e "Item" [] [ > + e "rasd:Caption" [] [PCData "RNG Device"]; > + e "rasd:InstanceId" [] [PCData (uuidgen ())]; > + e "rasd:ResourceType" [] [PCData "0"]; > + e "Type" [] [PCData "rng"]; > + e "Device" [] [PCData "virtio"]; > + ] > + ]; > + if guestcaps.gcaps_virtio_balloon then > + append virtual_hardware_section_items [ > + e "Item" [] [ > + e "rasd:Caption" [] [PCData "Memory Ballooning Device"]; > + e "rasd:InstanceId" [] [PCData (uuidgen ())]; > + e "rasd:ResourceType" [] [PCData "0"]; > + e "Type" [] [PCData "balloon"]; > + e "Device" [] [PCData "memballoon"]; > + ] > + ]; > + > +Thanks, pushed. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
Seemingly Similar Threads
- [PATCH] v2v: ovf: Add virtio-rng and memory balloon device
- Re: [PATCH] v2v: ovf: Add virtio-rng and memory balloon device
- [PATCH 1/2] Revert "v2v: oVirt changed the ResourceType for QXL video devices (RHBZ#1598715)."
- Re: [PATCH v3 1/6] v2v: rhv: Fix virtio-rng and memballoon OVF fragment for RHV.
- [PATCH] v2v: ovf: store CPU model for oVirt