I tried Bionic and Focal.
Setting autostart as well as seeing the effect on reboot worked just the same 
there:

oot@b:~# virsh autostart h-test
Domain h-test marked as autostarted

root@b:~# ll /etc/libvirt/qemu/autostart/
total 2
drwxr-xr-x 2 root root  3 Mar 26 08:56 ./
drwxr-xr-x 4 root root  5 Mar 26 08:56 ../
lrwxrwxrwx 1 root root 28 Mar 26 08:56 h-test.xml -> 
/etc/libvirt/qemu/h-test.xml
root@b:~# virsh shutdown h-test
Domain h-test is being shutdown

root@b:~# reboot
root@b:~# [✗=129]─[paelzer@Keschdeichel ~]──[203538]──[09:57 Fr Mär 26]──
$ lxc exec b bash
root@b:~# virsh list
 Id    Name                           State
----------------------------------------------------
 1     h-test                         running


root@f:~# virsh autostart h-test
Domain h-test marked as autostarted

root@f:~# ll /etc/libvirt/qemu/autostart/
total 2
drwxr-xr-x 2 root root  3 Mar 26 08:56 ./
drwxr-xr-x 4 root root  5 Mar 26 08:56 ../
lrwxrwxrwx 1 root root 28 Mar 26 08:56 h-test.xml -> 
/etc/libvirt/qemu/h-test.xml
root@f:~# virsh shutdown h-test
Domain h-test is being shutdown

root@f:~# reboot
root@f:~# [✗=129]─[paelzer@Keschdeichel ~]──[203673]──[09:57 Fr Mär 26]──
$ lxc exec f bash
root@f:~# virsh list
 Id   Name     State
------------------------
 1    h-test   running



Now trying the rename ...

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

Title:
  VM will not auto-start automatically when server is rebooted after
  virsh domrename

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to