Results 1 to 4 of 4

Thread: KVM virsh managed save on Host shutdown

  1. #1
    Join Date
    Jun 2009
    Beans
    3

    KVM virsh managed save on Host shutdown

    Hi,
    i got 2 windows guest und virt-manager installed. I managed to get the 2 machines autosatrted when the host (Ubuntu Server 12.04) boots.

    Now i'm searching for a possibility to save the two machines automatically when the server (host) shuts down.

    Isn't there an out of the box solution? I think i'm not the only who has this requirement.

    Thanks in advance.

  2. #2
    Join Date
    Nov 2008
    Location
    Lleida, Spain
    Beans
    1,157
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: KVM virsh managed save on Host shutdown

    Make an init.d script with this contents:

    In the start section:
    virsh restore path_to_save_file
    In the stop section:
    virsh save virtualmachinename path_to_save_file

  3. #3
    Join Date
    Jun 2009
    Beans
    3

    Re: KVM virsh managed save on Host shutdown

    - Don't i run into Problem with upstart when the save machines process takes longer than the shutdown of the host?

  4. #4
    Join Date
    Nov 2008
    Location
    Lleida, Spain
    Beans
    1,157
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: KVM virsh managed save on Host shutdown

    RedHat does something similar by default.
    Download the libvirt-client-0.9.6-3.9.1.i586.rpm from rpmfind and extract it using file-roller.
    Search for a file called libvirt-guests and open it. Probably you have to modify it to make it work under Ubuntu

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •