For your experiments, here a few examples
1. using a mount unit for ntfs
   https://brunofontes.net/enu/post/mounting-partitions-systemd
2. doing disk setup with a service
   
https://unix.stackexchange.com/questions/608431/systemd-fix-ordering-cycle-when-mounting-an-ntfs-volume-on-a-legacy-raid-array

General help on mount units
  https://www.freedesktop.org/software/systemd/man/systemd.mount.html

And as I said, for this case once you have such unites you can control
them fine grained via:

a) be completely shut down before libvirt can end (not what you want actually 
as that can be running concurrent to libvirt-guest service - this is better for 
other things to do before guests shut down - like swap scrubbing for secrecy or 
such)
  Requires=virt-guest-shutdown.target
  After=virt-guest-shutdown.target

b) Ensure to be started before libvirt and even more important, only end after 
them on shutdown (reverse order)
  Before=libvirtd.service libvirt-guests.service

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1924494

Title:
  Systemd shutdown order unmounts filesystem used by qemu/kvm guest
  before shutting down the guest

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1924494/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to