<?xml version='1.0' encoding='utf-8' ?>
<!--  If you are running a bot please visit this policy page outlining rules you must respect. https://www.livejournal.com/bots/  -->
<rss version='2.0'  xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:media='http://search.yahoo.com/mrss/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>OpenVZ</title>
  <link>https://openvz.livejournal.com/</link>
  <description>OpenVZ - LiveJournal.com</description>
  <lastBuildDate>Thu, 23 Oct 2008 16:08:07 GMT</lastBuildDate>
  <generator>LiveJournal / LiveJournal.com</generator>
  <lj:journal>openvz</lj:journal>
  <lj:journalid>9392309</lj:journalid>
  <lj:journaltype>community</lj:journaltype>
  <image>
    <url>https://l-userpic.livejournal.com/128680075/9392309</url>
    <title>OpenVZ</title>
    <link>https://openvz.livejournal.com/</link>
    <width>100</width>
    <height>100</height>
  </image>

  <item>
  <guid isPermaLink='true'>https://openvz.livejournal.com/24651.html</guid>
  <pubDate>Thu, 23 Oct 2008 16:08:07 GMT</pubDate>
  <title>OpenVZ is running on an ARM (Gumstix Overo)!</title>
  <author>k001</author>
  <link>https://openvz.livejournal.com/24651.html</link>
  <description>&lt;img src=&quot;https://imgprx.livejournal.net/53f46ced5037614126c8e1cd660e75f492b565aa/k-miqrU2lqmkJ71VwEuEt8H-J3OMuhpsWCPmGw4mHw0BRcVMlUPAcxBOdn6Y4MhQ5XAadnbQ9j9QVQt4SMbAr5Wf5xN6Rw4eZMSYplPYSCE&quot; align=&quot;right&quot; fetchpriority=&quot;high&quot;&gt;When my colleague Pavel Emelyanov returned from the 2008 Linux kernel summit back in September he brought a small present for me -- a &lt;a href=&quot;http://www.gumstix.net/Overo/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Gumstix Overo&lt;/a&gt; (every LKS participant got one for free; yet another reason to become a high-profile kernel developer!). Overo is a computer (well, actually a set of boards and cables) with a CPU board the size of a gum stick, featuring TI OMAP3 CPU, 128 megs of RAM and a microSD slot. It also has 802.11g Wi-Fi and Bluetooth but those happens to be completely dead as this the first beta release of hardware.&lt;br /&gt;&lt;br /&gt;For the last few days I was digging into a project to make OpenVZ running on this Overo thing. That involved patching OpenVZ kernel to support ARM architecture, building vzctl package (.ipk) for ARM using bitbake, and creating a template.&lt;br /&gt;&lt;br /&gt;It was amazingly easy to port the OpenVZ kernel to ARM; you can see &lt;a href=&quot;http://download.openvz.org/.kir/overo/kernel/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; that besides a big-all-in-one-openvz-for-2.6.27 patch I only had to add 4 tiny ARM-specific patches (&lt;a href=&quot;http://download.openvz.org/.kir/overo/kernel/0001-arm-introduce-MAP_EXECPRIO-define.patch&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;1&lt;/a&gt;, &lt;a href=&quot;http://download.openvz.org/.kir/overo/kernel/0002-arm-export-arm-version-of-show_mem.patch&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;2&lt;/a&gt;, &lt;a href=&quot;http://download.openvz.org/.kir/overo/kernel/0003-arm-wire-OpenVZ-syscalls.patch&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;3&lt;/a&gt;, &lt;a href=&quot;http://download.openvz.org/.kir/overo/kernel/0004-arm-add-openvz-and-bc-Kconfigs.patch&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;4&lt;/a&gt;). For vzctl, it was even easier -- all I had to do is to &lt;a href=&quot;http://download.openvz.org/.kir/overo/vzctl/vzctl-add-arm-syscalls.patch&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;add openvz syscall numbers&lt;/a&gt; for ARM which were added, and create a &lt;a href=&quot;http://download.openvz.org/.kir/overo/vzctl/vzctl_3.0.23.bb&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;bitbake recipe file&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Creating a template for ARM architecture was tougher but I managed to win that fight, too -- you can find a Debian Lenny template &lt;a href=&quot;http://download.openvz.org/.kir/overo/template/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Here is an except from a terminal session showing OpenVZ on Overo:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;root@overo:~# uname -a&lt;br /&gt;Linux overo 2.6.27-omap1 #1 Tue Oct 21 21:19:40 MSD 2008 armv7l unknown unknown GNU/Linux&lt;br /&gt;&lt;br /&gt;root@overo:~# cat /proc/vz/version&lt;br /&gt;037test001&lt;br /&gt;&lt;br /&gt;root@overo:~# vzlist&lt;br /&gt;      CTID      NPROC STATUS  IP_ADDR         HOSTNAME&lt;br /&gt;       777          5 running -               -&lt;br /&gt;&lt;br /&gt;root@overo:~# vzctl enter 777&lt;br /&gt;entered into CT 777&lt;br /&gt;-bash-3.2# ps axf&lt;br /&gt;Unknown HZ value! (0) Assume 100.&lt;br /&gt;  PID TTY      STAT   TIME COMMAND&lt;br /&gt;  310 ?        Ss     0:00 vzctl: pts/0   &lt;br /&gt;  311 pts/0    Ss     0:00  \_ -bash&lt;br /&gt;  313 pts/0    R+     0:00      \_ ps axf&lt;br /&gt;    1 ?        Ss     0:00 init [2]      &lt;br /&gt;  208 ?        Sl     0:00 /usr/sbin/rsyslogd -c3&lt;br /&gt;  227 ?        Ss     0:00 /usr/sbin/cron&lt;br /&gt;&lt;/code&gt;&lt;a name=&apos;cutid1-end&apos;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Please note that all this is still in very alpha stage -- there are errors, bugs, ugly warnings, you have to modify some things in place etc. But it&apos;s working. If someone is interested in running OpenVZ on ARM hardware, please let me know -- leave a comment here or email kir (A) openvz (.) org.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Update:&lt;/b&gt; comments disabled due to spam</description>
  <category>overo</category>
  <category>kernel</category>
  <category>openvz</category>
  <category>arm</category>
  <category>gumstix</category>
  <lj:security>public</lj:security>
  <lj:poster>k001</lj:poster>
  <lj:posterid>990679</lj:posterid>
  <lj:reply-count>4</lj:reply-count>
  </item>
</channel>
</rss>
