How to dynamically allocate RAM to a VM on Proxmox

Поделиться
HTML-код
  • Опубликовано: 19 авг 2024
  • The ballooning option allows Proxmox VE (www.proxmox.com) to manage the RAM of a Virtual Machine dynamically
    RUclips: / onemarcfifty
    Twitter: / onemarcfifty
    Discord: / discord
    Github: github.com/one...
    Patreon: / onemarcfifty
    Blog: www.onemarcfif...
  • НаукаНаука

Комментарии • 22

  • @daysiewaysie
    @daysiewaysie Год назад +5

    another great tip, many thanks Marc and as soon as this short video had ended, i immediately switched to my proxmox tab and logged in to check this option. for my VMs, it's already been enabled by default but now i know what it is for, i can tweak both the lower and upper limits in the knowledge that memory use is being actively scaled, and freed when not required. And as you stated, it allows more VMs to be run concurrently.
    interestingly ballooning is not an option for containers, which i would guess is an indicator of containers' resource usage being more closely aligned with that of the proxmox host that manages them and as such, they're not as "wasteful" of system resources as VMs.

    • @OneMarcFifty
      @OneMarcFifty  Год назад

      Hi Damien, well yes - as you quite rightly state - a container would never require that much memory as all the "base stuff" like Kernel, devices etc. are already covered by the host.

  • @SpelliZNX
    @SpelliZNX Год назад +10

    "Dynamically allocating" is a misleading term in this scenario probably borrowed from Hyper-V's similarly named "Dynamic Memory" dialog.
    Hyper-V uses memory hotplug to increase memory allocation and ballooning to de-allocate memory at VM runtime.
    Memory hotplug is possible with Proxmox, but not like this.
    What you have shown here is only ballooning:
    At VM boot time, the max value is what gets allocated. The balloon driver inside the VM, once loaded, can then be asked to inflate (hence the name) by the host, giving back RAM regions. It will only do this under host memory pressure. This also means that if you wish to start a VM with max RAM set to a value exceeding current free RAM on your host and other VMs can't deallocate enough RAM to temporarily accommodate this max RAM value, your VM will fail to start.
    Size your VMs sensibly.
    Edit for accuracy: It seems Linux VMs with modern kernels at least do not exhibit this behavior, but all Windows versions known to me do. Doesn't matter if guest tools are used or not. Confusing.

  • @examen1996
    @examen1996 2 года назад +2

    Great initiative with the shorts, 💪

  • @jrrtolkin
    @jrrtolkin 2 года назад +2

    Thanks, this is new to me.

    • @OneMarcFifty
      @OneMarcFifty  2 года назад

      Many thanks for your Feedback ;-)

  • @pascaldufour9275
    @pascaldufour9275 2 года назад +2

    Really like your content. Keep it up thnx

  • @Elrevisor2k
    @Elrevisor2k 11 месяцев назад

    Thanks great video

  • @yasirrakhurrafat1142
    @yasirrakhurrafat1142 3 месяца назад

    That's awesome!

  • @yeltsinandrew343
    @yeltsinandrew343 Год назад

    The option was in front I wasn’t used it perfectly Tq ❤

  • @stephendetomasi1701
    @stephendetomasi1701 2 года назад +2

    For windows you need to install drivers before that starts working properly.

    • @OneMarcFifty
      @OneMarcFifty  2 года назад +2

      Hi Stephen, you are right - it might be that more configuration is required. This is probably true for everything I do in the Short quick tip format. A minute is quite short to cover everything ;-)

    • @Lara-tk2wg
      @Lara-tk2wg 10 месяцев назад

      The mistake here is not the video, it's the 2nd word of your post "windows" :P

  • @vladislavkaras491
    @vladislavkaras491 Год назад

    What does "Shares" do?
    Is like freeing RAM by 1000MB or what is it?

  • @johnwashifi
    @johnwashifi Год назад +2

    this does not work on windows 10 as it uses all ram, even with no usage at all.

    • @OneMarcFifty
      @OneMarcFifty  Год назад

      Might have to do with Virtualization settings - do you have hyper-v enabled in the Win10 machine?

    • @johnwashifi
      @johnwashifi Год назад +2

      @@OneMarcFifty Yes, it makes no difference at all. It is a well known bug.

  • @joeblow2456
    @joeblow2456 2 года назад +1

    Sorry - Don't like the shorts format

    • @OneMarcFifty
      @OneMarcFifty  2 года назад

      Hi Joe. Many thanks for the feedback! I know that the short format is polarizing, i.e. some like it, some don't. To me it's more of an experiment at the moment. The main thought behind this format was the following: I can't make a full video every week, I just don't have the time for that. But I can make a video every two weeks. So I thought in order to keep a weekly cadence of videos, I'd do a short every two weeks. Also, the shorts do increase the views on my _other_ videos by up to 20% - which is a lot. I might make a poll on the Community tab to gather feedback from everyone. Again, many thanks for your feedback - much appreciated !!!

    • @joeblow2456
      @joeblow2456 2 года назад +1

      @@OneMarcFifty
      No big deal. Interesting though that I am using Safari to access RUclips and the Shorts interface is minimal and I prefer to see outlines, comments etc. In Safari it looks like it is phone oriented but if I use Firefox I get a pretty normal Interface.
      I really enjoy your videos. Keep up the good work