v2v: -o qemu: Add virtio-rng, balloon and pvpanic to output (RHBZ#1438794).

This commit is contained in:
Richard W.M. Jones
2017-04-05 14:19:31 +01:00
parent 0a0586936a
commit d6e59ddfcd

View File

@@ -211,6 +211,18 @@ object
)
);
(* Add the miscellaneous KVM devices. *)
if guestcaps.gcaps_virtio_rng then (
arg "-object" "rng-random,filename=/dev/urandom,id=rng0";
arg "-device" "virtio-rng-pci,rng=rng0"
);
if guestcaps.gcaps_virtio_balloon then
arg "-balloon" "virtio"
else
arg "-balloon" "none";
if guestcaps.gcaps_isa_pvpanic then
arg "-device" "pvpanic,ioport=0x505";
(* Add a serial console to Linux guests. *)
if inspect.i_type = "linux" then
arg "-serial" "stdio";