<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Debian on csegura</title><link>https://blog.romheat.net/tags/debian/</link><description>Recent content in Debian on csegura</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 07 Nov 2023 04:12:07 +0100</lastBuildDate><atom:link href="https://blog.romheat.net/tags/debian/index.xml" rel="self" type="application/rss+xml"/><item><title>KVM notes</title><link>https://blog.romheat.net/posts/2023/23_11_07_kvm/</link><pubDate>Tue, 07 Nov 2023 04:12:07 +0100</pubDate><guid>https://blog.romheat.net/posts/2023/23_11_07_kvm/</guid><description>&lt;h1 id="kvm-notes">KVM notes&lt;/h1>
&lt;p>Check if the CPU supports virtualization:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>egrep -c &lt;span style="color:#e6db74">&amp;#39;(vmx|svm)&amp;#39;&lt;/span> /proc/cpuinfo
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>lscpu | grep Virtualization
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Install KVM&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>sudo apt install qemu-kvm qemu-utils libvirt-daemon-system libvirt-clients virtinst virt-manager
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Check Virtualization&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>systemctl status libvirtd
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>systemctl --now enable libvirtd
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Check qemu and virsh:&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>kvm --version
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>virsh --version
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Components that can be used&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>sudo virt-host-validate
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Check IOMMU&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>dmesg | grep -e DMAR -e IOMMU
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Edit /etc/default/grub if WARN (IOMMU not enabled)&lt;/li>
&lt;/ul>
&lt;p>&lt;code>GRUB_CMDLINE_LINUX=&amp;quot;intel_iommu=on&amp;quot;&lt;/code> add this line to /etc/default/grub and &lt;code>sudo update-grub&lt;/code>&lt;/p></description></item><item><title>LVM Add Disk (work notes)</title><link>https://blog.romheat.net/posts/2022/22_09_23_lvm_add_disk/</link><pubDate>Fri, 23 Sep 2022 00:00:00 +0100</pubDate><guid>https://blog.romheat.net/posts/2022/22_09_23_lvm_add_disk/</guid><description>&lt;h1 id="introduction--explanation-pasted">Introduction &amp;amp; Explanation (pasted)&lt;/h1>
&lt;p>Why LVM?&lt;/p>
&lt;p>The reason why we love LVM is because when you need to increase the space it’s really easy. If you have vanilla EXT4 and you want to enlarge it, then you need to work out extents and at this point we feel it’s too complicated and technical. See here if you simply want to add a new EXT4 disk without LVM.&lt;/p>
&lt;p>Below are the commands used to get the whole operation going.&lt;/p></description></item></channel></rss>