Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just noticed that my observium vm wasn't shutting down even after 120 seconds so in turn the zfs storage didn't unmount cleanly.
Is there an option to set kvm to force shutdown a vm that didn't go down in time? I would prefer not to have to edit the libvirt-guests init script if at all possible but if it's the only way, that would work too.
In that case I'd need a bit of help since I'm not very familiar with bash scripting.
The acpid service is running on both vms that won't shut down. Both are ubuntu 16.04s.
What does shut down is the untangle vm.
All of these machines shut down in a matter of seconds when issuing virsh shutdown DOMAIN on the shell. As far as I can see, libvirt-guests uses exactly the same command...
What's the "untangle vm"?
I integrated the script in my shutdown sequence (OpenRC) because I basically thought (and tested with my local PC) that libvirt did not care about the running hosts, which I admit being weird (as libvirt aims to be a mgmt engine for the VMs and should therefore take care of such basic things like the host going down), but which was kind-of-confirmed after finding the github post, but which does not make sense seeing the presence of "libvirt-guests.conf"... .
Mmmhhh and I see now that I do not start any "libvirt-guests" on my server when I boot - not sure if I don't because it did not work or else => do you start "libvirt-guests" when your server/PC boots?
Untangle is a debian based virtual firewall appliance.
And yes, my vms would start automatically if it weren't for the fact that the zfs filesystem they're residing doesn't come up cleanly due to not being able to unmount cleanly due to vms still running on it when it shuts down .
That's a checkmark you can set in virt-manager, if you're using that one.
I have created a script that runs after boot to clean zfs, mount everything and start all domains. However, instead of cleaning up what gets broken on every reboot, I'd rather it not break in the first place, you know?
I have incorporated parts of your script into libvirt-guests but I can only test it when the wife is done watching movies off the server
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.