<div dir="ltr"><div><div><div>Bonjour Guillaume.<br><br></div>There's a particular reason to compile libvirt rather than install the package for Ubuntu Server? And, there's a particular reason to use LXC?<br><br></div>
I'm not an expert, but if you just want to start using KVM and install a VM I can help you through a simpler method.<br><br>Regards.<br><br></div>Javier<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/4/3 Guillaume Thouvenin <span dir="ltr"><<a href="mailto:guillaume.thouvenin@polymtl.ca" target="_blank">guillaume.thouvenin@polymtl.ca</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I'm trying to install and use libvirt 1.0.4 on an Ubuntu 12.04.2. I compiled libvirt by doing:<br>
<br>
$ ./configure --with-selinux=no --with-gnutls<br>
$ make<br>
$ sudo make install<br>
<br>
Everything works fine and are installed under /usr/local<br>
Then I started the libvirtd manually and try to start a linux container that has the following configuration:<br>
<br>
$ virsh -c lxc:/// dumpxml lxcvm1<br>
<domain type='lxc'><br>
 <name>lxcvm1</name><br>
 <uuid>168edaae-e3b5-2d06-7c65-<u></u>9aa444a6f234</uuid><br>
 <memory unit='KiB'>2097152</memory><br>
 <currentMemory unit='KiB'>2097152</<u></u>currentMemory><br>
 <vcpu placement='static'>1</vcpu><br>
 <os><br>
   <type arch='x86_64'>exe</type><br>
   <init>/bin/sh</init><br>
 </os><br>
 <clock offset='utc'/><br>
 <on_poweroff>destroy</on_<u></u>poweroff><br>
 <on_reboot>restart</on_reboot><br>
 <on_crash>destroy</on_crash><br>
 <devices><br>
   <emulator>/usr/local/libexec/<u></u>libvirt_lxc</emulator><br>
   <filesystem type='mount' accessmode='passthrough'><br>
     <source dir='/home/thouveng/lxc_dir/<u></u>lxcvm1/rootfs'/><br>
     <target dir='/'/><br>
   </filesystem><br>
   <console type='pty'><br>
     <target type='lxc' port='0'/><br>
   </console><br>
 </devices><br>
</domain><br>
<br>
When I start the container I have the following error:<br>
<br>
$ virsh -c lxc:/// start lxcvm1<br>
error: Failed to start domain lxcvm1<br>
error: internal error guest failed to start: PATH=/bin:/sbin TERM=linux container=lxc-libvirt container_uuid=168edaae-e3b5-<u></u>2d06-7c65-9aa444a6f234 LIBVIRT_LXC_UUID=168edaae-<u></u>e3b5-2d06-7c65-9aa444a6f234 LIBVIRT_LXC_NAME=lxcvm1 /bin/sh<br>

error receiving signal from container: Input/output error<br>
<br>
The libvirtd is started with info option so I can see:<br>
<br>
2013-04-03 08:49:20.167+0000: 17046: error : virNetSocketReadWire:1362 : Cannot recv data: Connection reset by peer<br>
2013-04-03 08:49:20.267+0000: 17051: error : virLXCProcessStart:1248 : internal error guest failed to start: PATH=/bin:/sbin TERM=linux container=lxc-libvirt container_uuid=168edaae-e3b5-<u></u>2d06-7c65-9aa444a6f234 LIBVIRT_LXC_UUID=168edaae-<u></u>e3b5-2d06-7c65-9aa444a6f234 LIBVIRT_LXC_NAME=lxcvm1 /bin/sh<br>

error receiving signal from container: Input/output error<br>
<br>
<br>
In libvirtd.conf I have:<br>
<br>
auth_unix_ro = "none"<br>
auth_unix_rw = "none"<br>
auth_tcp = "none"<br>
auth_tls = "none"<br>
<br>
And in libvirt.conf everything is commented.<br>
<br>
I have this error as normal user (in libvirtd group) and also as root. Any hints to go further in the debugging are welcome.<br>
<br>
<br>
Regards,<br>
Guillaume<br>
<br>
______________________________<u></u>_________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/libvirt-users</a><br>
</blockquote></div><br></div>