10 tips to get the most out of your Proxmox server

Ғылым және технология

Here are some of the little tips and tweaks I have learned while using Proxmox VE.
0:00 Intro
00:05 Turning off atime in ZFS
00:26 Turning Proxmox into a network switch
01:05 Using VM templates
01:27 Creating a ISO to copy files to a VM
02:24 Changing default storage device
02:44 Some of my preferred VM settings
03:25 Scripting and setting KVM parameters
04:20 Finding space used by VMs and snapshots with ZFS
04:46 Using Hibernation to keep VM state during a host reboot
05:15 Outro

Пікірлер: 97

  • @snppls
    @snppls Жыл бұрын

    Thanks man. Your videos are both incredibly informative and interesting. I've learnt heaps about Proxmox because of you!

  • @heckyes
    @heckyes Жыл бұрын

    Totally enjoying this channel. Super glad KZread recommended it to me.

  • @Oliver-Arnold
    @Oliver-Arnold Жыл бұрын

    Thanks for these tips! I've not long found your channel and I'm really enjoying your content, well explained and easy to follow. I have quite a few Linux VM's with no GUI for various services and the tip for disabling "Use tablet for pointer" is brilliant. The idle CPU usage of my host has now dropped from 16% to around 5%, just from unticking a box! That's actually quite significant when running 24/7, especially with power being so expensive at the moment.

  • @chromerims
    @chromerims Жыл бұрын

    Helpful ProxMox tips 👍 Thank you Brendan!

  • @mikemorris5944
    @mikemorris5944 Жыл бұрын

    I haven't really started using my newly installed ProxMox. Trying to get acquainted with everything first. After watching you vids I'm going to reinstall using the zFS option. I purchased a new laptop with allot ram 65 meg and 2T drive and installed it easily but that was after a week of pulling out what hair I have left trying to get an old HP windows 7 to boot the same USB iso but just hung at Grub line. I'd like to add it to the network. Thanks again great vid you are one of the best on the subject in my opinion detail is king.

  • @lukastram4990
    @lukastram4990 Жыл бұрын

    amazing trick with the iso :) thanks man. and nice you zoom in the video for commands and settings

  • @ryan8poker
    @ryan8poker9 ай бұрын

    Grateful for all ur vids so well explained and to the point!!

  • @briceperdue7587
    @briceperdue758711 ай бұрын

    The CPU host selection makes so much sense but i've never done it. Cool video

  • @irawhitejr
    @irawhitejr5 ай бұрын

    This was super helpful thank you very much and keep it up man!

  • @Tolknaz
    @Tolknaz3 ай бұрын

    Great tips. In addition to these, one thing i usually do for all guests no matter the OS, is installing Qemu guest agent. Aso, I would add, that for windows guests virtio windows drivers are mandatory, if you use any virtio devices (you should, the performance increase is noticeable). Most Linux distros support them out of the box. Oh and for multi CPU servers, enabling NUMA is also probably a good idea.

  • @IFlipRizla
    @IFlipRizla6 ай бұрын

    I am yet to install proxmox as I'm just researching into it but found your insights very helpful!

  • @davincicode1238
    @davincicode1238 Жыл бұрын

    Your my inspiration in Proxmox, I will keep learning on you.

  • @frankindude
    @frankindude5 ай бұрын

    Thanks for all the great tips. They are very helpful.

  • @ElectronicsWizardry

    @ElectronicsWizardry

    5 ай бұрын

    Glad it was helpful!

  • @GorkemYildirim
    @GorkemYildirim Жыл бұрын

    Great info. Thanks for sharing.

  • @10apentecost
    @10apentecost Жыл бұрын

    Keep up the good work. I really enjoy watching all your video's

  • @10apentecost

    @10apentecost

    Жыл бұрын

    Do you use home assistant on proxmox by any chance?

  • @ElectronicsWizardry

    @ElectronicsWizardry

    Жыл бұрын

    No, I don't use use home assistant . I haven't done much with smart home tech..

  • @yerunski

    @yerunski

    Жыл бұрын

    @@10apentecost I do and it works fine :)

  • @BeamDeam

    @BeamDeam

    Жыл бұрын

    @@10apentecost I also use home assistant on proxmox and don't have any issues.

  • @TonyGonzales
    @TonyGonzales Жыл бұрын

    Great video; thanks.

  • @Cmdrlucky8
    @Cmdrlucky8 Жыл бұрын

    Awesome tips! 👍🏽

  • @rommel8779
    @rommel8779 Жыл бұрын

    Awesome video 👍👍

  • @JohnMayfield-NS
    @JohnMayfield-NS Жыл бұрын

    Good tips in here, thanks :) Maybe it's something people do a lot and I just figured out, but I put the IP of each vm/lxc in the notes section (Summery view) as well as any commands I might use often, but not often enough to remember off the top of my head. For example upgrading a specific program a specific way, or backing up a database for a program that has to be done a specific way.

  • @ElectronicsWizardry

    @ElectronicsWizardry

    Жыл бұрын

    Keeping track of IPs can be a pain for me too. I sometimes use the vmid in the ip, so for exaple 10.1.1.104 would be vm 104. If you have the guest agent installed for a VM it will also fetch the IP of the vm automatically and put it in the summary page for the VM.

  • @JohnMayfield-NS

    @JohnMayfield-NS

    Жыл бұрын

    VM id as IP is a great idea! Wish I'd thought of it before I made all these vms.. 😂

  • @kullal007

    @kullal007

    Жыл бұрын

    @@ElectronicsWizardry What is the VM IP ends in a single digit? Proxmox doesnt allow the VM number below 3 digits.

  • @BeamDeam

    @BeamDeam

    Жыл бұрын

    @@kullal007 change the IP of the VM and match it to the VM ID

  • @dominick253

    @dominick253

    9 ай бұрын

    ​@@kullal007003

  • @AlexanderGarzon
    @AlexanderGarzon5 ай бұрын

    The hibernate before reboot its quite useful. 👍

  • @johnkaldachar
    @johnkaldachar9 ай бұрын

    Dobra robota. Dziękuje.

  • @ChargedPulsar
    @ChargedPulsar14 күн бұрын

    Like the old hdd in the background 😂, them old clicky days.

  • @agglad2230
    @agglad2230 Жыл бұрын

    Thank you for this video! Very interesting! I'd like to request video tutorial on Proxmox with CA SSL, how to make it work with a purchased SSL.

  • @opsecactual6269
    @opsecactual62698 ай бұрын

    Nice tips ❤

  • @GeoffSeeley
    @GeoffSeeley Жыл бұрын

    Modify the rrdcached configuration and start script to increase the WRITE_TIMEOUT and add FLUSH_TIMEOUT so it writes less to your boot volume to prevent wear of SSD/NVme.

  • @chromerims
    @chromerims3 ай бұрын

    Cool video 1:28 -- ISO file to leverage cd-rom input is something I will try. I am guessing that 'dd' command could do the same thing here as 'mkisofs' command in terms of making that ISO file.

  • @merlingt1
    @merlingt1 Жыл бұрын

    Wow nice video!

  • @curtalfrey1636
    @curtalfrey1636 Жыл бұрын

    yeah, more tips, thanks man!

  • @succubiuseisspin3707
    @succubiuseisspin3707 Жыл бұрын

    With my PVE I have limited the ARC cache to a reasonable amount so that ZFS won't eat up all my RAM. (see PVE docs) And I have configured my SMTP server in the postfix conf so that PVE can send me an email if there is a problem with a disk in my ZFS pool...

  • @user-ty3iy8bk2l
    @user-ty3iy8bk2l Жыл бұрын

    Awesome! Thanks!

  • @kullal007
    @kullal007 Жыл бұрын

    Love your videos. Can you expand a bit and demo every tip ?

  • @petergplus6667
    @petergplus66674 ай бұрын

    Give that man a decent microphone. Thanks for the tips.

  • @virtualizeeverything
    @virtualizeeverything7 ай бұрын

    Grate Video

  • @joejoe2452
    @joejoe24525 ай бұрын

    How do you determine the type of hardware spec for running vms? What would be the best spec for running proxmox with more than 10 vms

  • @LubomirGeorgiev
    @LubomirGeorgiev Жыл бұрын

    Thank you! I was wondering why HDD performance was crap

  • @cwzialor
    @cwzialor2 ай бұрын

    please explain audio pass through and ways to vnc or remote proxmox vms

  • @doozie5696
    @doozie5696 Жыл бұрын

    Love it

  • @billhickswasgreat3421
    @billhickswasgreat34212 ай бұрын

    Does the second one, turning Proxmox into a switch, mean that I could sum up the bandwidth by adding NICs to the Proxmox machine i.e. adding 2 cheP 2.5gbe cards and having 5gbits instead of going for the much more expensive 10gbits?

  • @davidtjac
    @davidtjac Жыл бұрын

    Hi just looking for a simple how to resize a VM. I get the easy bit within the GUI but understand there's other command line stuff to do after. Thanks.

  • @ElectronicsWizardry

    @ElectronicsWizardry

    Жыл бұрын

    In proxmox resizing the disk for a vm is as easy as adding space in the gui. You need to then configure the vm to use more space. In windows you can use disk management to expand a partition. You can do the same in most Linux distros. You can also use tools like disks to increase the partition size and then expand the partition using the filesystem tools.

  • @m.m.m.c.a.k.e
    @m.m.m.c.a.k.e Жыл бұрын

    Awesome

  • @HaitiSpaceAgency
    @HaitiSpaceAgency Жыл бұрын

    I found a nice tip just the other day. By default my Proxmox host was running my cpu at full blast (3.4ghz ryzen 2600) and if you do not want that, it was very simple to change. echo "powersave" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor Has it running at 1.5ghz (iirc) now which is more than good enough for my purposes. I’ve only read into it a little bit but I think there are options for the cpu to boost up/down dynamically as they are designed to. If anyone can point me in the right direction there I would appreciate it :)

  • @juanmondragon

    @juanmondragon

    9 ай бұрын

    I think that is the default now for dynamic CPU usage. I checked throughout the day and sometimes it's at peak CPU usage and other times it's at idle

  • @bjorndanziger8036

    @bjorndanziger8036

    9 ай бұрын

    "ondemand" would increase the clockspeed if required. "powersave" keeps it at minimum.

  • @cezaryjuszczyk7269
    @cezaryjuszczyk72694 ай бұрын

    Hello, I've a problem with performance in proxmox 8.1. I Have 1vm with win2002 srv as rdp and 1vm with mssql 2019. When i run app on rdp to connect sql the speed is terrible, about 7 second for open new window with simple select, and another 7 second for preview one document with 1 row in database. On server (hetzner) i've enterprise disks ssd with zfs raid1. Any idea how to speed up ?

  • @ElectronicsWizardry

    @ElectronicsWizardry

    4 ай бұрын

    I haven't seen this bad of a VM latency issue when using the UI. Do you mean Server 2012? I'd probably check task manager and Proxmox server utilization first to see if anything is over utilized.

  • @Tofflus
    @Tofflus Жыл бұрын

    @ElectronicsWizardry can you please make a video showing how to turn off stuff that does read and writes to the boot drive. my SSD was new in October and end December it has 25% wearout. the SSDs in mirror have only 40TBW. thanks for all the videos!

  • @ElectronicsWizardry

    @ElectronicsWizardry

    Жыл бұрын

    Sure. I’ll take a look at what I can do to lower the amount of writes on the boot drive.

  • @TazzSmk
    @TazzSmk11 ай бұрын

    I'm still trying to figure out best setting for a single SSD ZFS pool with VMs, no matter what I try, in a VM I still get major slowdowns after roughly 3GB data to be written, resulting in severe IO wait spike on the host cpu, any ideas what's wrong?

  • @ElectronicsWizardry

    @ElectronicsWizardry

    11 ай бұрын

    I'd take a look at a program like iostat to see usage on the ssds. Many ssds have a write cache and I wouldn't be surprised if you have filled that write cache and speeds will slow significantly when that happens.

  • @TazzSmk

    @TazzSmk

    11 ай бұрын

    @@ElectronicsWizardry it's 500GB 860 EVO which should have 22GB cache, and once it fills it should drop to around 380MB/s, but I'm getting literally 1/10 of those at best..

  • @pxsx187
    @pxsx1872 ай бұрын

    Hello i tried the discard feature for the storage but i doesnt work for me Could my raid controller be the problem? I am on Proxmox Version 8.2

  • @ElectronicsWizardry

    @ElectronicsWizardry

    2 ай бұрын

    What do you mean by it doesn't work? Discard for a VM I think doesn't work in IDE drives, so check for that. How are you trying to run the trim command in the vm? I'd typically use fstrim on linux and optimize-volume -retrim in powershell in windows.

  • @suntoryjim
    @suntoryjim Жыл бұрын

    Great tips. Which virtual disk format do you recommend: Qemu image or Raw disk?

  • @ElectronicsWizardry

    @ElectronicsWizardry

    Жыл бұрын

    The qemu image or qcow2 supports snapshots while raw is faster. I think it’s nice to have snapshots and the performance hit is fairly small normally so I use qcow2 normally.

  • @neail5466
    @neail5466 Жыл бұрын

    You are really a source of dependable information, some of us are not advanced users but need to do something that sometimes require advance knowledge. If I search a topic and find one of your videos, thats really a relief. Thanks for the work and efforts you are putting in. Could you please help about the 2 cases below? First, I just installed a second VM under vertIO 0 block which was already in use by a previous VM. Since the previous VM failed to start, and I had to reinstall it. I just want to be sure if the virtIO blocks 0,1... act as individual system harddrive and multiple VMs can't be installed in one block?? Second, Could you please also tell me what is the way to pass through hdds without any emulation, I am using a QM SCSI pass through with script to OMV VM, but I don't have access to the smart data inside OMV. Thanks in advance.

  • @ElectronicsWizardry

    @ElectronicsWizardry

    Жыл бұрын

    By block do you man the virto0 and virtio1 names that are used for drives on a vm? Those are specific to a vm and multiple systems can use a virtio0 device. Multiple VMs should share one storage on disk as they will overwrite each others data and cause issues. For the hdd passthrough there isn’t a full passthrough option I know of. I’d rather monitor smart data in proxmox or let proxmox handle the raid and present a virtual disk to the vm. Otherwise you can pass through the disk controller via pcie passthrough but this requires a compatible hardware configuration.

  • @neail5466

    @neail5466

    Жыл бұрын

    @@ElectronicsWizardry Hi, thanks for the reply. About the virtIO blocks I have learnt that the hard way, in you writing I believe you wanted to say that those can be read from multiple devices and written by one one... Yes I didn't had a idea and neither proxmox warned about that. I thought there would be further segmentation depending on OS installs.. which is wrong. And about pass through I am using my disks by the PCIe RAID controller in IT/JBOD mode..and after many hours of research understood there is probably no way to directly mount the raw drive to the VM, whatever I do it would be an emulated instance. Thanks for having time to responding to my query.

  • @JAVIERLLAMAS10
    @JAVIERLLAMAS10 Жыл бұрын

    Does the command "atime" only applies for ZFS pools? is the ext4 pool less stressed or is this "atime=off" command even necessary??

  • @ElectronicsWizardry

    @ElectronicsWizardry

    Жыл бұрын

    I haven't tested setting atime off in ext4, but I believe the performance hit is small for ext4, so its likely to help less turing it off. To configure atime for ext4 add noatime to the mount options in fstab.

  • @KcinicKGX

    @KcinicKGX

    Ай бұрын

    @@ElectronicsWizardry also it's good to put a noatime to nfs mounts

  • @mentalplayground
    @mentalplayground Жыл бұрын

    Thank You for chapters.

  • @prudhvireddy8765
    @prudhvireddy87655 күн бұрын

    for file transfers between the vm and my other machine, I have created a debian container and configured sftp in it. In my other machine I added a route to the container. This way, I can easily transfer files in and out of VM's. Hope this helps someone !!!

  • @2u263
    @2u26310 ай бұрын

    Could you please, do a detailed video for Stand Alone PC PVE with an ICEwm so you don't need to have 2 devices to access PVE? Just add ICEwm to the PC PVE 7.1 video you did?

  • @ElectronicsWizardry

    @ElectronicsWizardry

    10 ай бұрын

    Yea I think that’s an interesting video. I’ll plan on making that in the future

  • @2u263

    @2u263

    10 ай бұрын

    @@ElectronicsWizardry Update I managed to install the Debian Xfce chromium light WM & it was working well till I started customizing the WM trying to make xterm functional and I installed sudo then did an update from the WM. Borked the whole damn thing. I don't know why on earth Debian 12 xfce chromium light build with xterm? Will reinstall again. This time I'm not messing with WM. Instead I'll build a Debian12 VM

  • @Tntdruid
    @Tntdruid Жыл бұрын

    Any way to limit the ram zfs use?

  • @ElectronicsWizardry

    @ElectronicsWizardry

    Жыл бұрын

    To limit the size of the ZFS arc you can edit /etc/modprobe.d/zfs.conf and add a options zfs zfs_arc_max=$MaxInBytes Here is the Proxmox guide for more info pve.proxmox.com/wiki/ZFS_on_Linux

  • @Jay2k1

    @Jay2k1

    Жыл бұрын

    It might be annoying to not see how much RAM you have available for VMs when checking the "Datacenter" summary tab, but letting ZFS use a lot of RAM for the ARC cache is beneficial for performance, so I would not decrease the amount of memory it can use.

  • @kingneutron1

    @kingneutron1

    5 ай бұрын

    @@Jay2k1 On a 16GB-or-less host, you pretty much have to decrease ZFS RAM use if you plan to run a number of VMs. 1-2GB limit is usually enough for homelab. You can make it up somewhat with an L2ARC cache device; even a partitioned usb3 thumbdrive to share between (small) pools can help there. They have the advantage of being inexpensive - if one dies you can just replace it -- and L2ARC survives a reboot these days. Informal testing ' ls -lR /zpoolname >/dev/null ' and ' find /zpoolname >/dev/null ' with a cheap thumbdrive L2ARC partitioned and shared between 2x single-disk pools resulted in subsequent runs taking much less time than the 1st. Host still had plenty of RAM for VMs

  • @mishasawangwan6652
    @mishasawangwan6652 Жыл бұрын

    are you taking requests? how about a tutorial on ceph or object stores in general? great channel!

  • @ElectronicsWizardry

    @ElectronicsWizardry

    Жыл бұрын

    Thanks for the suggestion. I'll start researching and testing ceph.

  • @MHM4V3R1CK

    @MHM4V3R1CK

    Жыл бұрын

    @@ElectronicsWizardry I'd love this too. No idea what ceph is but it keeps showing up in documentation 🙂

  • @riffdex
    @riffdex6 ай бұрын

    What’s the benefit of having a proxmox cluster in a home network?

  • @kingneutron1

    @kingneutron1

    5 ай бұрын

    I was a big vmware workstation user for years, then switched to Virtualbox when they fired the entire desktop devel team. Virtualbox /cannot/ do 10gbit networking speeds in VMs, period. Proxmox can - tested with iperf3 :). I thought I didn't have a use-case for it at first, but it's very powerful. And being based on Debian, I can still use my usual root sysadmin scripts. I bridged 3/4 of my Qotom "firewall appliance" 10-Gbit SFP+ ports together on Proxmox easily with MTU 9000, and briefly had the 4th port separate on MTU 1500 (I got rid of that 10gbit adapter for not supporting 9000 tho.) I have it running 3x VMs to provide DHCP addresses for 2.5Gbit LAN, 10-Gbit LAN and a Host-Only network (pfsense, opnsense and ipfire. Makes it easy to test different distros. IPFire runs in less than 512MB RAM! for my limited needs.) Plus several Win10 VMs, one of which was fresh-installed from ISO and is now running BOINC. Also have a couple of livecd / internet-boot VMs and am learning about LXC containers (and newly-discovered bind mounts.) Also tested P2V Win10 restore with Veeam over Samba using 2.5 and 10-gbit network. Worked fine. Lots of cool things to learn, MIGHT go with a separate 2-node cluster and see about live migration between hosts...

  • @zadekeys2194

    @zadekeys2194

    4 ай бұрын

    Learning? Or free tools? Fun? All the above ? Part of what I run is Zabbix, Pi alert and Uptime Kuma, this allows me to monitor my home, CCTV, IoT vLan, and public infrastructure like DNS servers so I can see when a certain DNS server is under performing.

  • @UrgentSnooker

    @UrgentSnooker

    2 ай бұрын

    It's not about benefits but about achieving a required goal

  • @homehome4822
    @homehome4822 Жыл бұрын

    Have you tried zfs draid?

  • @ElectronicsWizardry

    @ElectronicsWizardry

    Жыл бұрын

    Nope I haven’t tried it yet. I plan on trying it soon and making a video about it.

  • @fstoplive1991
    @fstoplive19918 ай бұрын

    Excellent tips, Thank you I'm new to virtualization & your videos are really helpful. Do you use Proxmox to just try out different linux OSs? I'm unable to get sound in vm guests. Is the forum for proxmox a paid only access community?

  • @jwo7777777
    @jwo7777777 Жыл бұрын

    Yes, but does it cut hair?

  • @flarelu3157

    @flarelu3157

    8 ай бұрын

    it's mean and rude, dude

  • @jeromealtariba7339
    @jeromealtariba7339 Жыл бұрын

    Dear, I went through several of your videos;. Topics are very interesting, most of the time you are tthe only one to mention them, but I have to say that for non english natives, you are very very hard to understand :-{

  • @ImbaCore

    @ImbaCore

    Жыл бұрын

    I'm not native and understand everything. Maby sometimes it is litle bit to fast but You can always slow down the video or turn on subtitles. I realy like non standard approach to proxmox and other stuff

  • @KeithDavey2014
    @KeithDavey2014Ай бұрын

    Thanks!

Келесі