<div dir="ltr">hello,<div><br></div><div>i am new to lxc, i have created a lxc container on fedora 19</div><div>i created a container rootfs of fedora 19 by using </div><div>yum --installroot=/containers/test1 --releasever=19 install openssh</div>
<div><br></div><div>test1.xml file for container test1</div><div><div><domain type="lxc"></div><div>  <name>test1</name></div><div>  <vcpu placement="static">1</vcpu></div>
<div>  <cputune></div><div>    <shares>1024</shares></div><div>    <period>1000000</period></div><div>  </cputune></div><div>  <memtune></div><div>    <hard_limit unit="M">1024</hard_limit></div>
<div>    <soft_limit unit="M">128</soft_limit></div><div>    <min_guarantee unit="M">64</min_guarantee></div><div>  </memtune></div><div>  <blkiotune></div><div>    <weight>800</weight></div>
<div>  </blkiotune></div><div>  <memory unit="KiB">102400</memory></div><div>  <os></div><div>    <type>exe</type></div><div>    <init>/bin/bash</init></div><div>  </os></div>
<div>  <clock offset="utc"/></div><div>  <on_poweroff>destroy</on_poweroff></div><div>  <on_reboot>restart</on_reboot></div><div>  <on_crash>destroy</on_crash></div><div>
  <devices></div><div>    <emulator>/usr/libexec/libvirt_lxc</emulator></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/"/></div>
<div>      <target dir="/"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/var"/></div>
<div>      <target dir="/var"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/dev"/></div>
<div>      <target dir="/dev"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/root"/></div>
<div>      <target dir="/root"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/home"/></div>
<div>      <target dir="/home"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/opt"/></div>
<div>      <target dir="/opt"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/media"/></div>
<div>      <target dir="/media"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/bin"/></div>
<div>      <target dir="/bin"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/lib64"/></div>
<div>      <target dir="/lib64"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/etc"/></div>
<div>      <target dir="/etc"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/lib"/></div>
<div>      <target dir="/lib"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/run"/></div>
<div>      <target dir="/run"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/srv"/></div>
<div>      <target dir="/srv"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/sys"/></div>
<div>      <target dir="/sys"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/tmp"/></div>
<div>      <target dir="/tmp"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/boot"/></div>
<div>      <target dir="/boot"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/usr"/></div>
<div>      <target dir="/usr"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/mnt"/></div>
<div>      <target dir="/mnt"/></div><div>    </filesystem></div><div>    <filesystem accessmode="passthrough" type="mount"></div><div>      <source dir="/containers/test1/sbin"/></div>
<div>      <target dir="/sbin"/></div><div>    </filesystem></div><div>    <interface type="bridge"></div><div>      <source bridge="br0"/></div><div>    </interface></div>
<div>    <console port="0" type="pty"/></div><div>  </devices></div><div></domain></div></div><div><br></div><div>the host network files:</div><div>/etc/sysconfig/network-script/ifcfg-br0</div>
<div><br></div><div><div>DEVICE="br0"</div><div>TYPE="Bridge"</div><div>USERCTL="no"</div><div>BOOTPROTO="dhcp"</div><div>ONBOOT="yes"</div><div>NM_CONTROLLED="no"</div>
</div><div><br></div><div>/etc/sysconfig/network-script/ifcfg-p2p1<br></div><div><div>DEVICE="p2p1"</div><div>BOOTPROTO="dhcp"</div><div>BRIDGE="br0"</div><div>NM_CONTROLLED="no"</div>
<div>ONBOOT="yes"</div><div>TYPE="Ethernet"</div></div><div><br></div><div>the fstab of host </div><div><div>#</div><div># /etc/fstab</div><div># Created by anaconda on Fri Jul 26 05:26:08 2013</div><div>
#</div><div># Accessible filesystems, by reference, are maintained under '/dev/disk'</div><div># See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info</div><div>#</div><div>UUID=b49ce5dc-afb7-4c8e-9487-c1ed101d9166 /                       ext4    defaults        1 1</div>
<div>UUID=3dfa07fd-a06b-4a1a-a3fd-4e2f5e0d0e6a /boot                   ext4    defaults        1 2</div><div>UUID=3d1cb255-721a-48d2-b2e9-86f52b5fbec6 swap                    swap    defaults        0 0</div><div>none<span class="" style="white-space:pre">        </span>/sys/fs/cgroup<span class="" style="white-space:pre">    </span>cgroup<span class="" style="white-space:pre">    </span>defaults<span class="" style="white-space:pre">  </span>0<span class="" style="white-space:pre"> </span>0</div>
</div><div><br></div><div>when i try to start the container using virsh i get error</div><div>virsh --connect lxc://</div><div><br></div><div>virsh # define /containers/test1/test1.xml<br></div><div>Domain test1 defined from /containers/test1/test1.xml</div>
<div><br></div><div><div>virsh # start test1</div><div>error: Failed to start domain test1</div><div>error: internal error guest failed to start: PATH=/bin:/sbin TERM=linux container=lxc-libvirt container_uuid=05a7239d-f610-4ae9-ad47-4bf47f2f9b54 LIBVIRT_LXC_UUID=05a7239d-f610-4ae9-ad47-4bf47f2f9b54 LIBVIRT_LXC_NAME=test1 /bin/lxc_defaultinit.sh</div>
<div>Unable to send container continue message: Broken pipe</div></div><div><br></div><div>has anyone face the same problem with fedora 19.</div><div>can anyone guide me..</div><div><br></div><div>Thanks,</div><div>Aarti Sawant</div>
</div>