<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=LXC</id>
	<title>LXC - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=LXC"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=LXC&amp;action=history"/>
	<updated>2026-05-09T05:57:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=LXC&amp;diff=1814&amp;oldid=prev</id>
		<title>Kenneth: /* Create LXC Container */</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=LXC&amp;diff=1814&amp;oldid=prev"/>
		<updated>2015-02-15T17:28:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Create LXC Container&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Create LXC Container ==&lt;br /&gt;
&lt;br /&gt;
Tested on Ubuntu 14.04&lt;br /&gt;
&lt;br /&gt;
Install LXC container:&lt;br /&gt;
 # sudo apt-get install lxc qemu-user-static&lt;br /&gt;
 sudo apt-get install lxc qemu-user-static debootstrap rsync binfmt-support&lt;br /&gt;
&lt;br /&gt;
Create ARM container:&lt;br /&gt;
 sudo lxc-create -t ubuntu -n my_arm -- --release trusty --arch armhf&lt;br /&gt;
 #   -r trusty -a armhf&lt;br /&gt;
&lt;br /&gt;
Templates are found here: (-t)&lt;br /&gt;
 /usr/share/lxc/templates/&lt;br /&gt;
&lt;br /&gt;
Start container: (login: ubuntu/ubuntu)&lt;br /&gt;
 sudo lxc-start -d -n my_arm&lt;br /&gt;
&lt;br /&gt;
Connect to container:&lt;br /&gt;
 lxc-console -n my_arm&lt;br /&gt;
&lt;br /&gt;
Login:&lt;br /&gt;
 user: ubuntu&lt;br /&gt;
 pass: ubuntu&lt;br /&gt;
&lt;br /&gt;
See arm kernel type:&lt;br /&gt;
 $ uname -a&lt;br /&gt;
 Linux my_arm 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 armv7l armv7l armv7l GNU/Linux&lt;br /&gt;
&lt;br /&gt;
Install build environment within container: (optional)&lt;br /&gt;
 sudo apt-get install build-essential git&lt;br /&gt;
&lt;br /&gt;
Escape console:&lt;br /&gt;
 ctrl+a q&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* Ever wanted an armhf container on your x86 machine? It’s now possible with LXC in Ubuntu Precise | Stéphane Graber&amp;#039;s website - https://www.stgraber.org/2012/02/03/ever-wanted-an-armel-or-armhf-container-on-an-x86-machine-its-now-possible-with-lxc-in-ubuntu-precise/&lt;br /&gt;
* Cross-architecture Linux containers in Debian | Kranz Korner - https://dktrkranz.wordpress.com/2013/11/19/cross-architecture-linux-containers-in-debian/&lt;br /&gt;
&lt;br /&gt;
== Rename Container ==&lt;br /&gt;
&lt;br /&gt;
Shutdown container:&lt;br /&gt;
 lxc-shutdown -n my_arm&lt;br /&gt;
&lt;br /&gt;
Rename folder:&lt;br /&gt;
 sudo mv /var/lib/lxc/my_arm /var/lib/lxc/new_arm&lt;br /&gt;
&lt;br /&gt;
Change in config file:&lt;br /&gt;
 sudo vim /var/lib/lxc/new_arm/config&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
lxc.utsname = new_arm&lt;br /&gt;
lxc.rootfs = /var/lib/lxc/new_arm/rootfs&lt;br /&gt;
lxc.mount = /var/lib/lxc/new_arm/fstab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* Rename LXC Container - Bonus Bits Wiki - http://www.bonusbits.com/main/HowTo:Rename_LXC_Container&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>