<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vm on Margrop Blog</title>
    <link>https://blog.margrop.net/en/tag/vm/</link>
    <description>Recent content in Vm on Margrop Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <lastBuildDate>Sun, 12 Mar 2023 20:59:38 +0800</lastBuildDate>
    <atom:link href="https://blog.margrop.net/en/tag/vm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Scheduled Reboot for a Specific VM on PVE</title>
      <link>https://blog.margrop.net/en/post/pve-corntab-restart-vm/</link>
      <pubDate>Sun, 12 Mar 2023 20:59:38 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/pve-corntab-restart-vm/</guid>
      <description>&lt;h1 id=&#34;background&#34;&gt;Background&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It was observed that the &lt;code&gt;HomeAssistant&lt;/code&gt; VM&amp;rsquo;s memory usage kept increasing over time and eventually hit &lt;code&gt;OOM&lt;/code&gt;. This happened no matter how many versions were upgraded, so it is suspected that &lt;code&gt;HomeAssistant&lt;/code&gt; has a memory leak.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;solution&#34;&gt;Solution&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;At the VM layer, reboot the VM periodically (once a day)&lt;/li&gt;&#xA;&lt;li&gt;Log in to the server where &lt;code&gt;PVE&lt;/code&gt; is running&lt;/li&gt;&#xA;&lt;li&gt;Run &lt;code&gt;crontab -e&lt;/code&gt; and enter the following:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin&#xA;&#xA;0 12 * * * qm stop 2007 ; sleep 10 ; qm start 2007&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;Note: &lt;code&gt;2007&lt;/code&gt; in the command is the &lt;code&gt;vmid&lt;/code&gt;, the globally unique ID of the VM&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>How to Configure a Freshly Installed Ubuntu 20.04 Server VM on PVE</title>
      <link>https://blog.margrop.net/en/post/pve-how-to-config-brand-new-ubuntu-20.04-vm/</link>
      <pubDate>Sat, 30 Jan 2021 15:33:44 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/pve-how-to-config-brand-new-ubuntu-20.04-vm/</guid>
      <description>&lt;h1 id=&#34;download-the-installation-iso&#34;&gt;Download the Installation ISO&lt;/h1&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://mirrors.aliyun.com/ubuntu-releases/focal/ubuntu-20.04.2-live-server-amd64.iso&#34;&gt;Aliyun Ubuntu 20.04 live server download&lt;/a&gt;&#xA;&lt;a href=&#34;https://mirrors.aliyun.com/ubuntu-releases/bionic/ubuntu-18.04.5-live-server-amd64.iso&#34;&gt;Aliyun Ubuntu 18.04 live server download&lt;/a&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
