<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body smarttemplateinserted="true" bgcolor="#FFFFFF" text="#000000">
    <div id="smartTemplate4-template">
      <p>It doesn't seem to be implemented in libvirt's XML.</p>
      <p>You can still try and hack it though:</p>
      <domain type='kvm'
      xmlns:qemu='<a class="moz-txt-link-freetext" href="http://libvirt.org/schemas/domain/qemu/1.0">http://libvirt.org/schemas/domain/qemu/1.0</a>'><br>
      <qemu:commandline><br>
          <qemu:arg value='-rtc base="xxx"'/><br>
        </qemu:commandline><br>
      </domain><br>
      <p>It will mark this domain "tainted" in libvirt's log.<br>
      </p>
    </div>
    <br>
    <div class="moz-signature"><i>--Regards, Aleksei</i>
    </div>
    <br>
    <div id="smartTemplate4-quoteHeader">
      <hr><br>
      <b>From:</b> Matt Xtlm<br>
      <b>Sent:</b> Tuesday, February 21, 2017 2:07PM<br>
      <b>To:</b> Libvirt-users<br>
      <b>Subject:</b> [libvirt-users] How to set manually starting
      date/time for guest kvm</div>
    <blockquote
cite="mid:CANW-rPapbcihDAE2qaVQjSk9B6usXeG7SFPbM7Bdt0igJwOxrQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi there,
        <div><br>
        </div>
        <div>is there a way to set a guest to start with a specific date
          and time. (e.g. when guest boots, starting guest time should
          always be (2017-02-05T12:00:00)).</div>
        <div><br>
        </div>
        <div>I've tried something like this in my kvm domain:</div>
        <div><br>
        </div>
        <div>
          <div>  <clock offset='variable' adjustment='-86400'
            basis='localtime'></div>
          <div>    <timer name='rtc' tickpolicy='delay'
            track='guest'/></div>
          <div>    <timer name='pit' tickpolicy='delay'/></div>
          <div>    <timer name='hpet' present='no'/></div>
          <div>  </clock></div>
        </div>
        <div><br>
        </div>
        <div>However, i can't insert a specific date and time statement
          (like starting kvm with -rtc base="2017-02-05T12:00:00").</div>
        <div><br>
        </div>
        <div>The date/time must be set before starting the vm and must
          always be the same.</div>
        <div><br>
        </div>
        <div>Cheers,</div>
        <div>Matt</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
libvirt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>