<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    I regularly install 12.04 and 14.04 Ubuntu vanilla isos in KVM using
    virt-manager as a regular user.  The only subtlety is when bridging
    to an external physical adapter which I solve using a manually
    defined bridge (as root) like you described earlier.  It appears
    Network Manager in 14.04 supports bridges so this may not be
    necessary.<br>
    <br>
    What type of disk do you use for your VM in KVM?<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 08/01/2014 06:02 PM, Khalid
      Baheyeldin wrote:<br>
    </div>
    <blockquote
cite="mid:CA+TuoW1XsgYFyagFpyWVo_zVV+YbYRC7sNTpfCXLZD-chY66xA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>I was able to get a working VM up finally on KVM.<br>
            <br>
            Using more or less the tricks here<br>
            <br>
            <a moz-do-not-send="true"
              href="http://mojodna.net/2014/05/14/kvm-libvirt-and-ubuntu-14-04.html">http://mojodna.net/2014/05/14/kvm-libvirt-and-ubuntu-14-04.html</a><br>
            <br>
          </div>
          In a nutshell, start with the Ubuntu Amazon EC2 images (not
          the regular server ISO image), then create and use an
          additional init ISO image so it would allow password login,
          then once you login you can add your ssh key.<br>
          <br>
        </div>
        <div>By adding a MAC address, you get your DHCP server to assign
          it a known IP address, and then you can ssh to that. No VNC
          required, no console!<br>
          <br>
        </div>
        But, yet again, all this was not needed with VirtualBox ... sigh
        ...<br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Fri, Aug 1, 2014 at 5:05 PM, Khalid
          Baheyeldin <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:kb@2bits.com" target="_blank">kb@2bits.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>Another difference between libvirt and VirtualBox.<br>
                <br>
              </div>
              I was able to take the Ubuntu Server stock .iso file, and
              install it inside of VirtualBox normally. That includes
              installing grub in the virtual disk's MBR.<br>
              <br>
              With libvirt, grub installation does not complete, with no
              errors. The step proceeds, then returns to the tasks.<br>
              <br>
              So, I am unable to have a working VM with KVM and libvirt
              so far because of grub aborting.<br>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <br>
                  <div class="gmail_quote">On Fri, Aug 1, 2014 at 4:03
                    PM, Khalid Baheyeldin <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:kb@2bits.com" target="_blank">kb@2bits.com</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">
                        <div>After defining br0 in the host's network,
                          if I specify bridge=br0, it works fine, but
                          only with sudo, which is annoying.<br>
                          <br>
                        </div>
                        <div>VirtualBox did not need any host changes,
                          and did not require sudo.<br>
                          <br>
                        </div>
                        <div>Is there a way to do this on kvm/libvirt?<br>
                        </div>
                      </div>
                      <div class="gmail_extra">
                        <div>
                          <div><br>
                            <br>
                            <div class="gmail_quote">On Fri, Aug 1, 2014
                              at 3:03 PM, William Park <span dir="ltr"><<a
                                  moz-do-not-send="true"
                                  href="mailto:opengeometry@yahoo.ca"
                                  target="_blank">opengeometry@yahoo.ca</a>></span>
                              wrote:<br>
                              <blockquote class="gmail_quote"
                                style="margin:0 0 0 .8ex;border-left:1px
                                #ccc solid;padding-left:1ex">
                                <div>
                                  <div>On Fri, Aug 01, 2014 at
                                    12:27:21PM -0400, Khalid Baheyeldin
                                    wrote:<br>
                                    > On VirtualBox, I was able as
                                    non-root to get bridged networking
                                    by doing:<br>
                                    ><br>
                                    > vboxmanage createvm --name p1
                                    --ostype Ubuntu_64 --register<br>
                                    > vboxmanage modifyvm p1  ...
                                    --nic1 bridged --bridgeadapter1 eth0
                                    --nictype1<br>
                                    > 82543GC<br>
                                    ><br>
                                    > And that provided me functional
                                    two-way networking, assigning a new
                                    IP<br>
                                    > address from the router, and
                                    allows incoming and outgoing
                                    networking<br>
                                    > transparently.<br>
                                    ><br>
                                    > On KVM, I did:<br>
                                    ><br>
                                    > virt-install --name p1 --ram
                                    512 --disk path=~/p.img,size=2
                                    --cdrom<br>
                                    >
                                    ./media/precise64/ubuntu-12.04.4-server-amd64.iso
                                    --boot cdrom --network<br>
                                    > bridge=eth0<br>
                                    ><br>
                                    > That would not work because it
                                    requires root (VirtualBox worked
                                    without<br>
                                    > sudo).<br>
                                    ><br>
                                    > So, I need to use sudo before
                                    that command. But when I do this, I
                                    get the<br>
                                    > error:<br>
                                    ><br>
                                    > ERROR    Unable to add bridge
                                    eth0 port vnet0: Operation not
                                    supported<br>
                                    ><br>
                                    > Googling for that error
                                    suggests that this command should
                                    fix it:<br>
                                    ><br>
                                    > virsh iface-bridge eth0 br0<br>
                                    ><br>
                                    > But it does not work, with or
                                    without sudo, with the following
                                    error:<br>
                                    ><br>
                                    > error: failed to get interface
                                    'eth0'<br>
                                    > error: this function is not
                                    supported by the connection driver:<br>
                                    > virInterfaceLookupByName<br>
                                    ><br>
                                    > So, the question is, using
                                    libvirt and kvm, how does one get
                                    bridged<br>
                                    > networking to work?<br>
                                    <br>
                                  </div>
                                </div>
                                From memory, QEMU simply adds its tap
                                interface to existing bridge.  I<br>
                                had to setup bridge and add wlan0 (my
                                wireless connection) to it.  Then,<br>
                                the virtual machine got its IP from the
                                wireless router.<br>
                                <span><font color="#888888">--<br>
                                    William<br>
                                    <br>
                                    <br>
_______________________________________________<br>
                                    kwlug-disc mailing list<br>
                                    <a moz-do-not-send="true"
                                      href="mailto:kwlug-disc@kwlug.org"
                                      target="_blank">kwlug-disc@kwlug.org</a><br>
                                    <a moz-do-not-send="true"
                                      href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org"
                                      target="_blank">http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
                                  </font></span></blockquote>
                            </div>
                            <br>
                            <br clear="all">
                            <br>
                          </div>
                        </div>
                        <div>-- <br>
                          Khalid M. Baheyeldin<br>
                          <a moz-do-not-send="true"
                            href="http://2bits.com" target="_blank">2bits.com</a>,
                          Inc.<br>
                          Fast Reliable Drupal<br>
                          Drupal optimization, development,
                          customization and consulting.<br>
                          Simplicity is prerequisite for reliability.
                          --  Edsger W.Dijkstra<br>
                          Simplicity is the ultimate sophistication.
                          --   Leonardo da Vinci<br>
                          For every complex problem, there is an answer
                          that is clear, simple, and wrong." -- H.L.
                          Mencken<br>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                  <br clear="all">
                  <br>
                  -- <br>
                  Khalid M. Baheyeldin<br>
                  <a moz-do-not-send="true" href="http://2bits.com"
                    target="_blank">2bits.com</a>, Inc.<br>
                  Fast Reliable Drupal<br>
                  Drupal optimization, development, customization and
                  consulting.<br>
                  Simplicity is prerequisite for reliability. --  Edsger
                  W.Dijkstra<br>
                  Simplicity is the ultimate sophistication. --  
                  Leonardo da Vinci<br>
                  For every complex problem, there is an answer that is
                  clear, simple, and wrong." -- H.L. Mencken<br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        Khalid M. Baheyeldin<br>
        <a moz-do-not-send="true" href="http://2bits.com"
          target="_blank">2bits.com</a>, Inc.<br>
        Fast Reliable Drupal<br>
        Drupal optimization, development, customization and consulting.<br>
        Simplicity is prerequisite for reliability. --  Edsger
        W.Dijkstra<br>
        Simplicity is the ultimate sophistication. --   Leonardo da
        Vinci<br>
        For every complex problem, there is an answer that is clear,
        simple, and wrong." -- H.L. Mencken<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
kwlug-disc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a>
<a class="moz-txt-link-freetext" href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org">http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>