Wow @TECNI.sistemas! Well done.
I like the ping approach. I will give that a try and see how it goes.
A quick question though, when you said to put a script inside /etc/init.d you meant inside the VM, right ?
@TECNI.sistemas , I ran that bash script every second and I failed to notice the status change (if it happened). Do you think it would be reliable to depend on a crontab every minute to capture the reboot ?
That is the case, exactly @dcsapak. Is there a way to detect a VM reboot on the host, if...
That sounded like a great idea. As a proof of concept, I created a shell script loop to run the qm status command every second to check the output while I rebooted the vm. Unfortunately, the status was always "running" and I couldn't find any "stopped" status.
That's weird! I cannot really...
Thank you @TECNI.sistemas. I have to run a script to reset the GPU on the host. If I don't do that, the VM wouldn't boot properly.
Could you give me an example of how the scripts are launched with crontab ? Any pointers would be appreciated.
EDIT#1: Just to clarify, I am looking for a way to...
Good day,
I have been struggling to find the appropriate phase name to perform in a hookscript when a VM is rebooted.
I noticed from my search that two phases named "pre-restart" and "post-restart" exist, but when I included them in Perl hookscript (it is basically the included example plus...
I figured out that running setpci on host can recover the gpu and I am able to start up the Ubuntu vm.
Since Windows AMD drivers can recover the gpu from within the VM (i.e., no host scripts are required), how would I be able to run setpci on the Linux vm prior to the binding of the amdgpu...
Thank you @avw for sharing your experience. I appreciate these points. I will definitely keep them in mind in future projects.
I tried that approach. However, the only option there is to enable/disable the iGPU (Intel). Moreover, the HDMI output is only connected to the AMD gpu.
I totally...
Good day,
I have a weird issue that I cannot seem to understand. I have a Hades Canyon NUC [NUCi7HVK] which has both the Intel (igpu) and the AMD Radeon RX Vega M GH gpu (which is identified as Polaris 22 XT). I have the latest BIOS from Intel (version 67, if I remember correctly)
I installed...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.