<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
-----BEGIN PGP SIGNED MESSAGE----- <br>
Hash: SHA512 <br>
<br>
Le 06/02/2013 12:34, Cristian Falcas a écrit :<br>
<span style="white-space: pre;">> I'm using the staging lxc on
fedora 18 with fedora 18 guests, so it's working.<br>
><br>
> What i did (it's root all the waydown):<br>
> 1. Compile lxc<br>
> cd ~<br>
> git clone <a class="moz-txt-link-freetext" href="https://github.com/lxc/lxc">https://github.com/lxc/lxc</a><br>
> cd lxc<br>
> ./autogen.sh && ./configure && make
&& make install<br>
><br>
> 2. i didn't use the fedora template from lxc, but the openvz
one (I<br>
> use x86 because of pentium4):<br>
> wget
<a class="moz-txt-link-freetext" href="http://download.openvz.org/template/precreated/fedora-17-x86.tar.gz">http://download.openvz.org/template/precreated/fedora-17-x86.tar.gz</a><br>
><br>
> 3. uncompress in /mnt/files/lxc/fedora-x86/<br>
><br>
> 4. Use this as the template:<br>
><br>
> cat /mnt/files/lxc/lxc_template.conf<br>
> lxc.utsname = localhost.localdomain<br>
> lxc.rootfs = /mnt/files/lxc/fedora-x86/<br>
> #lxc.tty = 10<br>
><br>
> lxc.network.type = veth<br>
> lxc.network.flags = up<br>
> lxc.network.link = bridge_lxc<br>
> lxc.network.name = eth0<br>
> lxc.network.hwaddr = a2:cd:48:ff:ff:ff<br>
><br>
> lxc.autodev = 1<br>
> lxc.pts = 1024<br>
> lxc.arch = i386<br>
><br>
> #lxc.cgroup.devices.deny = a<br>
> lxc.cgroup.memory.limit_in_bytes = 128M<br>
> # /dev/null and zero<br>
> lxc.cgroup.devices.allow = c 1:3 rwm<br>
> lxc.cgroup.devices.allow = c 1:5 rwm<br>
> # consoles<br>
> lxc.cgroup.devices.allow = c 5:1 rwm<br>
> lxc.cgroup.devices.allow = c 5:0 rwm<br>
> lxc.cgroup.devices.allow = c 4:0 rwm<br>
> lxc.cgroup.devices.allow = c 4:1 rwm<br>
> # /dev/{,u}random<br>
> lxc.cgroup.devices.allow = c 1:9 rwm<br>
> lxc.cgroup.devices.allow = c 1:8 rwm<br>
> lxc.cgroup.devices.allow = c 136:* rwm<br>
> lxc.cgroup.devices.allow = c 5:2 rwm<br>
> # rtc<br>
> lxc.cgroup.devices.allow = c 254:0 rwm<br>
> # tun<br>
> lxc.cgroup.devices.allow = c 10:200 rwm<br>
><br>
> 5. Create the bridge:<br>
><br>
> [root@wikitiki q]# cat
/etc/sysconfig/network-scripts/ifcfg-bridge_lxc<br>
> DEVICE=bridge_lxc<br>
> TYPE=Bridge<br>
> NM_CONTROLED=no<br>
> BOOTPROTO=static<br>
> IPADDR=192.168.0.1<br>
> NETMASK=255.255.255.0<br>
> NETWORK=192.168.0.0<br>
> ONBOOT=yes<br>
><br>
> 6. dhcp configuration:<br>
><br>
> [root@wikitiki q]# cat /etc/dnsmasq.d/lxc.conf<br>
> interface=bridge_lxc<br>
> dhcp-range=192.168.0.0,static<br>
> dhcp-option=3,192.168.0.1<br>
> resolv-file=/etc/resolv.conf<br>
> domain-needed<br>
> bogus-priv<br>
> no-hosts<br>
> dns-forward-max=150<br>
> cache-size=1000<br>
> #no-negcache<br>
> neg-ttl=3600<br>
> no-poll<br>
><br>
> dhcp-host=a2:cd:48:02:02:02,192.168.0.2<br>
> dhcp-host=a2:cd:48:ff:ff:ff,192.168.0.222<br>
><br>
> 7, start bridge, dhcp<br>
><br>
> 8. Create the lxc:<br>
><br>
> lxc-create -n testes -f /path/to/template<br>
><br>
> 9. start the container:<br>
><br>
> lxc-start -n testes<br>
><br>
> 10. update fedora guest to 18<br>
><br>
> For me the lxc console is useless, so i use ssh to connect to
the<br>
> container for any work.<br>
><br>
><br>
> On Wed, Feb 6, 2013 at 1:10 PM, Antoine Gaillard<br>
> <a class="moz-txt-link-rfc2396E" href="mailto:antoine.gaillard13@gmail.com"><antoine.gaillard13@gmail.com></a> wrote:<br>
>><br>
> Le 06/02/2013 08:53, Cristian Falcas a ←crit :<br>
> >>> you need the staging git for fedora 18 guests.<br>
> I'm afraid I didn't make myself clear, I was actually talking
about fedora<br>
> host not guest.<br>
><br>
> Regards,<br>
><br>
> Antoine GAILLARD.<br>
>></span><br>
<br>
Ok I'll give it a try. Thanks a lot.<br>
-----BEGIN PGP SIGNATURE-----
<br>
Version: GnuPG v2.0.17 (MingW32)
<br>
<br>
iQIcBAEBCgAGBQJREn7QAAoJEErsvXVG0x582F4QAL8xQIrNxrBFsbToZEas3FLA
<br>
QH0nUQrTzckeGu6eX9mSuQg2HVfD+Xnm85zloo5wNQn6XCSRhfRcenrmR1V2AUzg
<br>
zIIXR5U4cswGgBOfCRreFMCsfxKw4Xa0sHP/0poDoS2S/44T7jCUF12q9tEvJChL
<br>
NffELXgmZPV7vatanmeWocowHnzz2pC89UfBZzy4cPMBtstKRMEdtXnCx3WwhIjH
<br>
UBwdNUinJ5s7F9bim0swO4/qupjoZdmzK4erY2e+onwLqiwbpXz8O1qbxPictm3G
<br>
0sBdFVuCHK1DBwLnPMBLmROY83ghVt5ataoswCrGJoERpvm0on6fdbT5+X0wpdXB
<br>
WMGlsbLrV+cQ5LzesS8919nXuhuvlhITAmJssSGkbhaq1xzI6jJ6YGSB9Nwou4IN
<br>
LHBWkGEDQmWS9PlrZ1jLParikhyPjrIuJrjPoVixmRDT0bhH7NzfpMjIixpFAvaU
<br>
kj3TH7miy9IS/g9b8IgMw8UFK4rvcGcefS5jnUL8w3jyucJdQH+SNEjy4Vmdslnc
<br>
kjhgKoBVGnRIWBvmzwcRysC6ECttxoGjs1ii5wufrFSDhyOh5Q/tiM1zm+ddtICU
<br>
WAeUkuG/1kice+FEfChesrmqa3/MgFHsJnVlm8eP5E9oaxQLYHkm3UsFKNQTMKrN
<br>
ynmvqMEQvogAo2Qc3/Hn
<br>
=tv8f
<br>
-----END PGP SIGNATURE-----
<br>
<br>
</body>
</html>