weixin_39770506
weixin_39770506
2020-12-04 19:02

libvirt VMs not persisted across reboot

I followed the nixops manual for libvirtd deployment (https://nixos.org/nixops/manual/#idm140737318336624). Then I rebooted my (host) machine and my nixops deployment disappeared from virt-manager! Looking in the system log it seems libvirt-guests.sh perhps drops the nixops deployment because it is a "transient guest" (whatever that means):


libvirt-guests.sh[5692]: Not suspending transient guests on URI: default: nixops-854089ab-66e8-11e7-8deb-02421296f7a0-example

Other guest VMs I have created manually are saved and restored by libvirt-guests.sh (they are not called "transient guests") in the system log, so this looks like a nixops issue to me.

This issue means that, for me, the libvirt backend is unuseable.

Running nixops 1.5.1 on NixOS 17.03.

该提问来源于开源项目:NixOS/nixops

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39770506 weixin_39770506 5月前

    https://wiki.libvirt.org/page/VM_lifecycle#Transient_guest_domains_vs_Persistent_guest_domains

    点赞 评论 复制链接分享
  • weixin_39770506 weixin_39770506 5月前

    I think it just needs a patch of a few lines. I'm working on it.

    点赞 评论 复制链接分享
  • weixin_39770506 weixin_39770506 5月前

    PR: https://github.com/NixOS/nixops/pull/702

    点赞 评论 复制链接分享
  • weixin_39770506 weixin_39770506 5月前

    Fixed by https://github.com/NixOS/nixops/pull/702.

    点赞 评论 复制链接分享