<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Kvm on iMil.net</title>
    <link>http://imil.net/blog/tags/kvm/</link>
    <description>Recent content in Kvm on iMil.net</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 27 Nov 2020 11:02:19 +0100</lastBuildDate>
    <atom:link href="http://imil.net/blog/tags/kvm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Ledger Nano On KVM</title>
      <link>http://imil.net/blog/posts/2020/ledger_on_kvm/</link>
      <pubDate>Fri, 27 Nov 2020 11:02:19 +0100</pubDate>
      <guid>http://imil.net/blog/posts/2020/ledger_on_kvm/</guid>
      <description>&lt;p&gt;In order to keep my cryptocurrencies as secure as possible, I only interact with those within a virtual machine located on an encrypted USB stick. I own both a &lt;a href=&#34;https://shop.ledger.com/products/ledger-nano-s&#34;&gt;Ledger Nano S&lt;/a&gt; and a &lt;a href=&#34;https://shop.ledger.com/products/ledger-nano-x&#34;&gt;Ledger Nano X&lt;/a&gt;, which connect using &lt;em&gt;USB&lt;/em&gt;. Also I don&amp;rsquo;t use &lt;code&gt;libvirt&lt;/code&gt; for this as I want it to be as easily and quickly usable as possible. So here&amp;rsquo;s the secret formula in order to access those hardware wallets from a &lt;em&gt;GNU/Linux KVM&lt;/em&gt; VM via &lt;em&gt;USB&lt;/em&gt; pass through:&lt;/p&gt;</description>
    </item>
    <item>
      <title>QEMU/KVM Shorter Command Line</title>
      <link>http://imil.net/blog/posts/2020/qemu-kvm-command-line/</link>
      <pubDate>Fri, 10 Jul 2020 10:56:29 +0200</pubDate>
      <guid>http://imil.net/blog/posts/2020/qemu-kvm-command-line/</guid>
      <description>&lt;p&gt;I keep reading overcomplicated &lt;a href=&#34;https://www.qemu.org/&#34;&gt;QEMU&lt;/a&gt;/&lt;a href=&#34;https://www.linux-kvm.org/page/Main_Page&#34;&gt;KVM&lt;/a&gt; command lines, when really, to start a &lt;a href=&#34;https://www.linux-kvm.org/page/Virtio&#34;&gt;VirtIO&lt;/a&gt; disk and bridged &lt;em&gt;VirtIO&lt;/em&gt; &lt;em&gt;NIC&lt;/em&gt; virtual machine, only this command is needed:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ sudo qemu-system-x86_64 -enable-kvm -m &lt;span style=&#34;color:#ae81ff&#34;&gt;1024&lt;/span&gt; -cpu host -daemonize &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  -drive file&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;mydisk.img,if&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;virtio &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  -net nic,model&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;virtio -net tap,ifname&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;tap0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#xA;&lt;li&gt;drive type is &lt;code&gt;virtio&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;nic&lt;/em&gt; model is &lt;code&gt;virtio&lt;/code&gt; and the interface is of &lt;code&gt;tap&lt;/code&gt; type, this will summon &lt;code&gt;/etc/qemu-ifup&lt;/code&gt; to attach the interface to your bridge.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Depending on your &lt;a href=&#34;https://www.qemu.org/&#34;&gt;QEMU&lt;/a&gt; installation, either this will fire up a window showing your virtual machine booting, or start a &lt;a href=&#34;https://www.tightvnc.com/&#34;&gt;VNC&lt;/a&gt; server on port &lt;code&gt;5900&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Kubernetes under my desk</title>
      <link>http://imil.net/blog/posts/2018/kubernetes-under-my-desk/</link>
      <pubDate>Tue, 16 Oct 2018 14:52:05 +0000</pubDate>
      <guid>http://imil.net/blog/posts/2018/kubernetes-under-my-desk/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m diving into &lt;a href=&#34;https://kubernetes.io&#34;&gt;Kubernetes&lt;/a&gt; for a couple of months now. Discovering the possibilities and philosophy behind the hype definitely changed my mind. Yes, it is huge (in every sense ;) ) and it does change the way we, ex-sysops / ops / syasdmins do our work. Not tomorrow, not soon, now.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve had my hands on various managed &lt;a href=&#34;https://kubernetes.io/docs/setup/scratch/&#34;&gt;kubernetes clusters&lt;/a&gt; like &lt;em&gt;GKE (Google Container Engine)&lt;/em&gt;, &lt;em&gt;EKS (AWS Elastic Container Service)&lt;/em&gt; or the more humble &lt;a href=&#34;https://kubernetes.io/docs/setup/minikube/&#34;&gt;minikube&lt;/a&gt; but I&amp;rsquo;m not happy when I don&amp;rsquo;t understand what a technology is made of. So I &lt;em&gt;googled&lt;/em&gt; and &lt;em&gt;googled&lt;/em&gt; (yeah sorry &lt;em&gt;Qwant&lt;/em&gt; and &lt;em&gt;duckduckgo&lt;/em&gt; I needed actual answers), until I found &amp;gt;&lt;a href=&#34;https://github.com/salmanb/Kubernetes-HA-on-baremetal&#34;&gt;many&lt;/a&gt; &amp;gt;&lt;a href=&#34;https://github.com/kelseyhightower/kubernetes-the-hard-way&#34;&gt;incredibly&lt;/a&gt; &amp;gt;&lt;a href=&#34;http://nerdcoding.org/blog/2018/2018-05-08-Kubernetes-with-KVM-debian-host.html&#34;&gt;useful&lt;/a&gt; resources.&lt;/p&gt;</description>
    </item>
    <item>
      <title>NetBSD/amd64 7.0 on kvm</title>
      <link>http://imil.net/blog/posts/2016/netbsdamd64-7-0-kvm/</link>
      <pubDate>Fri, 29 Jan 2016 11:04:30 +0000</pubDate>
      <guid>http://imil.net/blog/posts/2016/netbsdamd64-7-0-kvm/</guid>
      <description>&lt;p&gt;If you recently tried to install &lt;a href=&#34;https://www.netbsd.org/releases/formal-7/NetBSD-7.0.html&#34;&gt;NetBSD 7.0&lt;/a&gt; using &lt;a href=&#34;http://www.linux-kvm.org/page/Main_Page&#34;&gt;Linux KVM&lt;/a&gt; you might have encountered the following failure:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;http://imil.net/blog/stuff/NetBSD-7.0-kvm.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;This bug have been recently fixed on the 7-branch but the official ISO images are not yet updated, so you&amp;rsquo;ll have to use &lt;a href=&#34;http://nyftp.netbsd.org/pub/NetBSD-daily/netbsd-7/&#34;&gt;NetBSD daily builds&lt;/a&gt; mini-ISO which includes &lt;a href=&#34;https://releng.netbsd.org/cgi-bin/req-7.cgi?show=1011&#34;&gt;Christos fix to bus_dma.c&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;For the record, here&amp;rsquo;s the &lt;code&gt;virt-install&lt;/code&gt; command I use:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo virt-install&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --virt-type kvm&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --name korriban&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --ram &lt;span style=&#34;color:#ae81ff&#34;&gt;4096&lt;/span&gt; --disk path&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;/dev/vms/korriban,bus&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;virtio&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --vcpus &lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --network bridge:br0,model&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;virtio&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --graphics vnc&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --accelerate&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --noautoconsole&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --cdrom /home/imil/iso/boot.iso&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --cpu host&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Performances are really good, the host is a &lt;em&gt;Debian GNU/Linux 8.0 amd64&lt;/em&gt; running on &lt;a href=&#34;https://www.online.net/fr/serveur-dedie/dedibox-classic&#34;&gt;Online&amp;rsquo;s Dedibox Classic 2015&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>virt-manager: &amp;quot;nc: unix connect failed&amp;quot;</title>
      <link>http://imil.net/blog/posts/2014/virt-manager-nc-unix-connect-failed/</link>
      <pubDate>Mon, 11 Aug 2014 13:08:40 +0000</pubDate>
      <guid>http://imil.net/blog/posts/2014/virt-manager-nc-unix-connect-failed/</guid>
      <description>&lt;p&gt;I came across an annoying behaviour while trying to connect to a remote &lt;em&gt;KVM&lt;/em&gt; hypervisor from a &lt;em&gt;FreeBSD GUI&lt;/em&gt;. &lt;code&gt;virt-manager&lt;/code&gt; failed to connect to the server and showed the following error message:&lt;/p&gt;&#xA;&lt;!-- raw HTML omitted --&gt;&#xA;&lt;!-- raw HTML omitted --&gt;&#xA;&lt;p&gt;In short, &lt;code&gt;virt-manager&lt;/code&gt; tries to access to &lt;code&gt;/usr/local/var/run/libvirt/libvirt-sock&lt;/code&gt; because it is compiled with a &lt;code&gt;/usr/local&lt;/code&gt; &lt;code&gt;PREFIX&lt;/code&gt; on &lt;em&gt;FreeBSD&lt;/em&gt;. Of course they didn&amp;rsquo;t plan anything on a plain text configuration file. I figured out this has to be configured in &lt;code&gt;GConf&lt;/code&gt;, for example using &lt;code&gt;gconf-editor&lt;/code&gt;, simply replace:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Y&#39;a moyen d&#39;s&#39;amuser</title>
      <link>http://imil.net/blog/posts/2010/ya-moyen-dsamuser/</link>
      <pubDate>Sun, 10 Oct 2010 12:58:48 +0000</pubDate>
      <guid>http://imil.net/blog/posts/2010/ya-moyen-dsamuser/</guid>
      <description>&lt;p&gt;Rien dans les manches, rien dans les poches :&lt;/p&gt;&#xA;&lt;!-- raw HTML omitted --&gt;&#xA;&lt;!-- raw HTML omitted --&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Hm, oui, et alors ?&lt;/li&gt;&#xA;&lt;li&gt;Attends, attends.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;!-- raw HTML omitted --&gt;&#xA;&lt;!-- raw HTML omitted --&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Mouais, super, et ?&lt;/li&gt;&#xA;&lt;li&gt;atteeeeends&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;!-- raw HTML omitted --&gt;&#xA;&lt;!-- raw HTML omitted --&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;em&gt;fxp0&lt;/em&gt; ?? comment ça &lt;em&gt;fxp0&lt;/em&gt; ?!&lt;/li&gt;&#xA;&lt;li&gt;Bah parce que :&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;!-- raw HTML omitted --&gt;&#xA;&lt;!-- raw HTML omitted --&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;hAOOOOOOOOOOOoooooooooooooooooon&lt;/li&gt;&#xA;&lt;li&gt;et ouais.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;La doc est &lt;a href=&#34;http://www.internetworkpro.org/wiki/Using_QEMU_with_Olive_to_emulate_Juniper_Routers&#34;&gt;ici&lt;/a&gt;, et contrairement à ce qu&amp;rsquo;on peut y lire, je fais tourner un JUNOS 9.3R3.8 (le fameux) sur une base de FreeBSD 6.4. Suivez scrupuleusement la documentation, en particulier les sections &lt;em&gt;Modify jinstall file&lt;/em&gt; et &lt;em&gt;Watchdog panic immediately after boot&lt;/em&gt;, cette dernière étant indispensable si vous souhaitez, comme moi, faire votre test sous des versions récentes de &lt;a href=&#34;http://www.linux-kvm.org/page/Main_Page&#34;&gt;KVM&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>KVM/QEMU, rtl8139 et Segmentation Fault</title>
      <link>http://imil.net/blog/posts/2008/kvmqemu-rtl8139-et-segmentation-fault/</link>
      <pubDate>Fri, 26 Sep 2008 00:09:41 +0000</pubDate>
      <guid>http://imil.net/blog/posts/2008/kvmqemu-rtl8139-et-segmentation-fault/</guid>
      <description>&lt;p&gt;Depuis un petit moment, je constate que les derniers builds du QEMU contenus dans KVM explosent en vol au démarrage de la VM. Flemmard, je continuais donc à utiliser le QEMU de la version 68 qui, lui, fonctionnait. Et puis ça a fini par vraiment me démanger. Je comprend à grands renforts de &lt;code&gt;gdb&lt;/code&gt; que lorsque l&amp;rsquo;output &lt;code&gt;SDL&lt;/code&gt; est activé &lt;strong&gt;en même temps&lt;/strong&gt; que le support d&amp;rsquo;une carte réseau virtuelle, QEMU &lt;em&gt;coredumpe&lt;/em&gt;.&#xA;À tout hasard, j&amp;rsquo;essaye de passer à un modele de carte virtuelle different de la &lt;code&gt;rtl8139&lt;/code&gt; émulée par defaut, puisque les dernieres versions de QEMU/KVM en supportent desormais bien plus qu&amp;rsquo;auparavant, et là, bingo, plus de &lt;em&gt;Segmentation Fault&lt;/em&gt;. Ainsi, le démarrage de mes VMs NetBSD ressemble désormais à ceci :&lt;/p&gt;</description>
    </item>
    <item>
      <title>sous les pavés, NetBSD</title>
      <link>http://imil.net/blog/posts/2007/sous-les-paves-netbsd/</link>
      <pubDate>Fri, 28 Sep 2007 15:12:50 +0000</pubDate>
      <guid>http://imil.net/blog/posts/2007/sous-les-paves-netbsd/</guid>
      <description>&lt;p&gt;En echo à &lt;a href=&#34;http://blog.cynapses.org/2007/07/12/qemu-kvm-internal-network-setup/&#34;&gt;ce très bon post&lt;/a&gt; montrant une configuration réseau qui fonctionne pour qemu / kvm, je vous propose ma petite sauce. La finalité étant :&lt;/p&gt;&#xA;&lt;p&gt;. Une VM NetBSD 3.1 sur le même LAN que le host&#xA;. Son fonctionnement en background&#xA;. Son administration potentielle via VNC en cas de crash&lt;/p&gt;&#xA;&lt;p&gt;à la Xen quoi.&lt;/p&gt;&#xA;&lt;p&gt;Le host est une debian x86, et evidemment le hardware supporte les instructions VT :&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
