<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Examples on Lima</title><link>https://deploy-preview-5702--lima-vm.netlify.app/docs/examples/</link><description>Recent content in Examples on Lima</description><generator>Hugo</generator><language>en</language><atom:link href="https://deploy-preview-5702--lima-vm.netlify.app/docs/examples/index.xml" rel="self" type="application/rss+xml"/><item><title>AI agents</title><link>https://deploy-preview-5702--lima-vm.netlify.app/docs/examples/ai/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://deploy-preview-5702--lima-vm.netlify.app/docs/examples/ai/</guid><description>&lt;p&gt;Lima is useful for running AI agents inside a VM, so as to prevent agents
from directly reading, writing, or executing the host files.&lt;/p&gt;
&lt;p&gt;For running AI agents, it is highly recommended to only mount your project directory (current directory)
into the VM:&lt;/p&gt;



&lt;ul class="nav nav-tabs" id="tabs-0" role="tablist"&gt;
 &lt;li class="nav-item"&gt;
 &lt;button class="nav-link active"
 id="tabs-00-00-tab" data-bs-toggle="tab" data-bs-target="#tabs-00-00" role="tab"
 data-td-tp-persist="lima v2.0+" aria-controls="tabs-00-00" aria-selected="true"&gt;
 Lima v2.0+
 &lt;/button&gt;
 &lt;/li&gt;&lt;li class="nav-item"&gt;
 &lt;button class="nav-link"
 id="tabs-00-01-tab" data-bs-toggle="tab" data-bs-target="#tabs-00-01" role="tab"
 data-td-tp-persist="lima v1.x" aria-controls="tabs-00-01" aria-selected="false"&gt;
 Lima v1.x
 &lt;/button&gt;
 &lt;/li&gt;
&lt;/ul&gt;

&lt;div class="tab-content" id="tabs-0-content"&gt;
 &lt;div class="tab-body tab-pane fade show active"
 id="tabs-00-00" role="tabpanel" aria-labelled-by="tabs-00-00-tab" tabindex="0"&gt;
 &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;limactl start --mount-only .:w
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Drop &lt;code&gt;:w&lt;/code&gt; for read-only mode.&lt;/p&gt;</description></item><item><title>Visual Studio Code</title><link>https://deploy-preview-5702--lima-vm.netlify.app/docs/examples/vscode/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://deploy-preview-5702--lima-vm.netlify.app/docs/examples/vscode/</guid><description>&lt;h2 id="securing-visual-studio-code-with-lima"&gt;Securing Visual Studio Code with Lima&lt;/h2&gt;
&lt;p&gt;Lima helps securing the development environment by running it inside a VM.
Notably, this prevents AI agents, such as &lt;a href="https://code.visualstudio.com/docs/copilot/overview"&gt;GitHub Copilot in VS Code&lt;/a&gt;, from directly executing untrusted commands on the host.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Start a Lima instance. If you use GitHub Copilot, consider disabling mounts by passing the &lt;code&gt;--mount-none&lt;/code&gt; flag to prevent Copilot from accessing host files:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;limactl start --mount-none
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol start="2"&gt;
&lt;li&gt;Add the following line to &lt;code&gt;~/.ssh/config&lt;/code&gt;:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;Include ~/.lima/*/ssh.config
&lt;/code&gt;&lt;/pre&gt;&lt;ol start="3"&gt;
&lt;li&gt;Open the Remote Explorer in the Visual Studio Code sidebar and select &lt;code&gt;lima-&amp;lt;INSTANCE&amp;gt;&lt;/code&gt; from the SSH remote list.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src="https://deploy-preview-5702--lima-vm.netlify.app/images/vscode-remote-explorer.png" alt=""&gt;&lt;/p&gt;</description></item><item><title>GitHub Actions</title><link>https://deploy-preview-5702--lima-vm.netlify.app/docs/examples/gha/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://deploy-preview-5702--lima-vm.netlify.app/docs/examples/gha/</guid><description>&lt;h2 id="running-lima-on-github-actions"&gt;Running Lima on GitHub Actions&lt;/h2&gt;
&lt;p&gt;On GitHub Actions, Lima is useful for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Running commands on non-Ubuntu operating systems (e.g., Fedora for testing SELinux)&lt;/li&gt;
&lt;li&gt;Emulating multiple hosts&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;While these tasks can be partially accomplished with containers like Docker, those containers still rely on the Ubuntu host&amp;rsquo;s kernel and cannot utilize features missing in Ubuntu, such as SELinux.&lt;/p&gt;
&lt;p&gt;In contrast, Lima runs virtual machines that do not depend on the Ubuntu host&amp;rsquo;s kernel.&lt;/p&gt;</description></item></channel></rss>