<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Virtualisation on Artur Meski</title>
    <link>https://meski.io/tags/virtualisation/</link>
    <description>Recent content in Virtualisation on Artur Meski</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <lastBuildDate>Wed, 28 Jul 2021 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://meski.io/tags/virtualisation/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Public VMs on OpenBSD</title>
      <link>https://meski.io/posts/public-vms-openbsd/</link>
      <pubDate>Wed, 28 Jul 2021 00:00:00 +0000</pubDate>
      <guid>https://meski.io/posts/public-vms-openbsd/</guid>
      <description>&lt;p&gt;This is a note on how to make a VM running on OpenBSD connect to the host&amp;rsquo;s network.&lt;/p&gt;&#xA;&lt;p&gt;Firstly, we need to create a bridge with our external network interface.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# echo &amp;#34;em0&amp;#34; &amp;gt; /etc/hostname.bridge0&#xA;# /etc/netstart bridge0&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;In &lt;code&gt;/etc/vm.conf&lt;/code&gt; we need to add a switch on &lt;code&gt;bridge0&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;switch &amp;#34;sw&amp;#34; {&#xA;    interface bridge0&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then, our VM needs to be attached to that switch:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;vm &amp;#34;openbsd&amp;#34; {&#xA;    memory 8G&#xA;    enable&#xA;    disk /data/vm/openbsd/main.qcow2&#xA;    interface tap {&#xA;&#x9;switch &amp;#34;sw&amp;#34;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;My network setup also requires to specify the MAC address of the network interface:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Quick start: virtual machines on OpenBSD</title>
      <link>https://meski.io/posts/vms-on-openbsd/</link>
      <pubDate>Sat, 19 Jun 2021 00:00:00 +0000</pubDate>
      <guid>https://meski.io/posts/vms-on-openbsd/</guid>
      <description>&lt;p&gt;Since &lt;a href=&#34;http://www.openbsd.org/&#34; target=&#34;_blank&#34;&gt;OpenBSD&lt;/a&gt; 5.9 it is possible to run virtual machines using a native virtualisation solution.&lt;/p&gt;&#xA;&lt;p&gt;This is a short note/guide on how to set up a VM on &lt;a href=&#34;http://www.openbsd.org/&#34; target=&#34;_blank&#34;&gt;OpenBSD&lt;/a&gt; in the simplest way that lets you have a quick play with vmm/vmd.&lt;/p&gt;&#xA;&lt;h1 id=&#34;preliminaries&#34;&gt;Preliminaries&lt;/h1&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;First of all, we need to enable &lt;em&gt;vmd&lt;/em&gt; on our host and get it running:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# rcctl enable vmd&#xA;# rcctl start vmd&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;You may also want to make sure you firewall can initially let everything through:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
