mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
v2v: -o qemu: Add virtio-rng, balloon and pvpanic to output (RHBZ#1438794).
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user