[PVE7.3] resolver + vm shutdown + wake on lan + hibernation related problems?

wireless

New Member
Jan 9, 2023
11
0
1
Dear everybody,
I have a couple of problems that maybe are related in some ways.
Please note I've installed last proxmox 7.3 over a debian 11.6 vanilla, with just wake-on-lan and hibernation configurated. For wake-on-lan I execute ethtool -s enp2s0 wol g and add to /etc/network/interfaces the post-up, pre-down lines:
Code:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback

auto enp2s0
iface enp2s0 inet dhcp
        post-up /sbin/ethtool -s enp2s0 wol g
        pre-down /sbin/ethtool -s enp2s0 wol g

auto vmbr0
iface vmbr0 inet static
        address 172.16.1.107/24
        gateway 172.16.1.1
        bridge-ports enp2s0
        bridge-stp off
        bridge-fd 0

The maybe-related problems are the following:
  1. host resolver does not resolve; if I ping google it say there is a "temporary" problem in the resolution (sorry for to not report here the exact sentence but it is not in english, however the meaning should be that). Infact, the dns form in the node menu is empy. Please note that I have connection (ip ping works) and if I use a VM, the vm resolver works. I have to execute dhclient to update the resolver - or add the ip of the DNS into the form - and than it works: sometimes it gives the following warning: /etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf
  2. vm shutdown: it works only if I do not execute dhclient as said previously. If I do that, It goes in timeout and I have to stop the shutdown task and the stop the vm. I read lot of similar threads but they seem different, no one named/found a relationship with the host resolver;
  3. wake-on-lan works only if I leave the config described. If I remove it and config wake-on-lan via pvenode config set -wakeonlan MAC_ADDRESS, it does not work
  4. (host) hibernation does not work every time: now, after several tests and config changes usually works... but sometimes I have to hibernate it... twice, because the first time I do it the system reboot. I have a very big swap partition and I added this line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash,resume=UUID=XXXXXX" in the file /etc/default/grub.d/proxmox-ve.cfg and the execute update-grub
Maybe the problems are 1+2 and 3+4 but I'm not so sure that (hibernation + wake-on-lan) do not impact to the (resolver+vm shutdown) problems and viceversa.
Let me know of course if you need more info or output. I think I can test all of you suggestions, except those too distruptive :), it is a test machine but has a dual boot and I would like to have to reinstall everything :).
Thanks to everyone could give me an advice/input.
 
Last edited:
After a lot of tests and changings I solve problems 1 and 3 of the previous post and I found there is a relationship between the hibernation and the vm shutdown: the service qmeventd.
If the service is down (or better: it is in failed status), hibernation "works"... only after an automatic and unwanted reboot. I mean, I give the systemctl hibernate command but the server does something and restart. If i redo the systemctl hibernate command, this (second) time it works. With qmeventd down the VM shutdown usually does not work and I have to stop them.
On the other end, if the service is active (I have to start it via systemctl start qmeventd) the VM shutdown works, but there is no way to hibernate the server. Infact systemctl hibernate restart and if I re-active the service before trying to hibernate (that is what I want, so I can shutdown the VMs) it restart again and so on.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!