[Libguestfs] [PATCH] p2v: Calculate offset of the Real Time Clock from UTC.

Richard W.M. Jones rjones at redhat.com
Tue Mar 21 16:48:49 UTC 2017


Unlike the <cpu> node (see the other thread on the libguestfs ML),
reading the Real Time Clock doesn't require libvirt and does work :-)

For reference, read:

  https://libvirt.org/formatdomain.html#elementsTime
  https://en.wikipedia.org/wiki/Time_zone

To test this you can run virt-p2v under qemu with a RTC offset:

  make -C p2v \
        run-virt-p2v-in-a-vm \
        QEMU_OPTIONS="-rtc base=`date +%Y-%m-%dT12:%M:%S`"
                                                ^^

Adjust the hour (marked with ^^) to simulate selecting a different
offset.

Rich.




More information about the Libguestfs mailing list