<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Just making it run is as simple as I wrote before, just 3
      commands:</p>
    <blockquote type="cite">
      <p># apt install wget qemu-kvm<br>
      </p>
      <p># wget
<a class="moz-txt-link-freetext" href="https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img">https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img</a></p>
      <p># kvm -curses ubuntu-16.04-server-cloudimg-amd64-disk1.img</p>
    </blockquote>
    You should see it booting. I used a script to create fresh
    privileged LXC container, but there's nothing kvm-specific in that
    script, just some network configuration and user preferences. You
    said you use LXD, but I don't think there's big difference.<br>
    <br>
    You'll have to solve more problems to actually make it useful:<br>
    * give it more space with qemu-img resize;<br>
    * access virtual system: define password or ssh key with
    cloud-localds;<br>
    * share network with VM: -netdev bridge,id=br0 -device
    virtio-net,netdev=br0,mac="$MAC_ADDRESS";<br>
    * configure static IP address: using cloud-localds rewrite file in
    /etc/network/interfaced.d and reboot the system;<br>
    * share local storage with VM: -virtfs and mount with 9p.<br>
    * control VM with scripts: -monitor unix:... and socat;<br>
    * monitor boot with scripts: -serial unix... and socat;<br>
    * start and stop VM with container: systemd;<br>
    * ...<br>
    (br0 above is a bridge inside the container; you'll need to create
    it and to forward /dev/net/tun for this to work.)<br>
    <br>
    There's a lot of info about all this scattered throughout the
    internet, but no single page; I'll think about writing details up
    somewhere.<br>
    <br>
    <div class="moz-signature"><!-- signature start -->
      --<br>
      <br>
      With Best Regards,<br>
      Marat Khalili<br>
      <br>
      <!-- signature end --></div>
    <div class="moz-cite-prefix">On 04/04/17 20:22, Spike wrote:<br>
    </div>
    <blockquote
cite="mid:CAPE6YbT-Bi0sNqaDva3o_rrTnkYjFhucA1VoK5HxrSgJKS+6iA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Marat,
        <div><br>
        </div>
        <div>any chance you could share a little more about the steps
          you took to start kvm manually? that'd be most useful to get
          things started. If you wrote up that experience somewhere a
          link would be most welcomed too.</div>
        <div><br>
        </div>
        <div>thank you,</div>
        <div><br>
        </div>
        <div>Spike</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Mon, Apr 3, 2017 at 11:36 PM Marat Khalili
          <<a moz-do-not-send="true" href="mailto:mkh@rqc.ru">mkh@rqc.ru</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br
            class="gmail_msg">
          <br class="gmail_msg">
          I was able to run kvm in a privileged lxc container without
          any<br class="gmail_msg">
          modifications of lxc stock config (well, with some related to
          network<br class="gmail_msg">
          bridge). I gave up on libvirt and start containers with<br
            class="gmail_msg">
          qemu-system-x86_64 and systemd. You may want to try
          downloading ubuntu<br class="gmail_msg">
          cloud image from <a moz-do-not-send="true"
            href="https://cloud-images.ubuntu.com/releases/16.04/release/"
            rel="noreferrer" class="gmail_msg" target="_blank">https://cloud-images.ubuntu.com/releases/16.04/release/</a><br
            class="gmail_msg">
          and starting it with kvm -curses to see if it works.<br
            class="gmail_msg">
          <br class="gmail_msg">
          --<br class="gmail_msg">
          <br class="gmail_msg">
          With Best Regards,<br class="gmail_msg">
          Marat Khalili<br class="gmail_msg">
          <br class="gmail_msg">
          _______________________________________________<br
            class="gmail_msg">
          lxc-users mailing list<br class="gmail_msg">
          <a moz-do-not-send="true"
            href="mailto:lxc-users@lists.linuxcontainers.org"
            class="gmail_msg" target="_blank">lxc-users@lists.linuxcontainers.org</a><br
            class="gmail_msg">
          <a moz-do-not-send="true"
            href="http://lists.linuxcontainers.org/listinfo/lxc-users"
            rel="noreferrer" class="gmail_msg" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>