Task

CheckpointFile [ConfigFile]

posted in Hypervisor
Monday, April 14 2014, 11:41 PM
thanos
thanos
Offline
0
Dear all,

Thank you for your time and effort reviewing my question.
I am completely new to the hypervisor of Linux so please excuse me if my question is not well written or I might be asking something extremely simple. I have spend 2 days trying to find a solution to my problem but so far I can not find information about it.

I have set up a server with xl configuration (hypervisor). I was looking for a process to save my current hvm running process to a (CheckpointFile [ConfigFile]) so I could restore it in case that the system will shutdown, reboot or restart. I found on the official man web page of ubuntu (provided as url) that by applying "save [OPTIONS] domain-id CheckpointFile [ConfigFile]" you can save your current session and restore it later on "restore [OPTIONS] [ConfigFile] CheckpointFile".

I have tried to apply this solution with the following command:
save -c ubuntu-hvm CheckpointFile /etc/xen/ubuntu-hvm.cfg

The process was completed by:

How about describing the purpose of this document ? [yes] yes
starting up vi ...
ubuntu-hvm.cfg[1.0] saved.
ubuntu-hvm.cfg removed.
done.

Afterwards I tried to recover the file by:
sudo restore -e ubuntu-hvm /etc/xen/ubuntu-hvm.cfg CheckpointFile
sudo: restore: command not found

But I got this error.

My question is:

1) Am I doing something wrong?
2) The extension of the CheckPoint file is .cfg correct?
3) Is there alternatives ways (more correct) of saving the current session with running processes and restoring them after (shutdown, reboot or crash).

Again thank you all for your time and effort.
Responses (3)
  • Accepted Answer

    Edelweiss
    Edelweiss
    Offline
    Tuesday, April 15 2014, 10:18 AM - #permalink
    0
    Thanos,

    have you tried "xl save [OPTIONS] domain-id CheckpointFile [ConfigFile]" and "xl restore [OPTIONS] [ConfigFile] CheckpointFile"? The xl manual pages say that save and restore are subcommands of xl.

    If you tried just save / restore you would have actually executed different commands: http://manpages.ubuntu.com/manpages/raring/man1/save.1.html & http://manpages.ubuntu.com/manpages/raring/man8/restore.8.html

    The error message implies that you have

    ---
    The reply is currently minimized Show
  • Accepted Answer

    thanos
    thanos
    Offline
    Tuesday, April 15 2014, 11:43 AM - #permalink
    0
    Hey Edelweiss,

    I actually tried the command save:

    I have tried to apply this solution with the following command:
    save -c ubuntu-hvm CheckpointFile /etc/xen/ubuntu-hvm.cfg

    The process was completed by:

    How about describing the purpose of this document ? [yes] yes
    starting up vi ...
    ubuntu-hvm.cfg[1.0] saved.
    ubuntu-hvm.cfg removed.
    done.

    But I do not know if I used the correct format of CheckPointFile:

    ubuntu-hvm.cfg

    Which is also my .cfg file when creating the HVM.

    On the second step, I tried to do restore with the command:

    sudo restore -e ubuntu-hvm /etc/xen/ubuntu-hvm.cfg CheckpointFile

    But I got this error:

    sudo: restore: command not found

    So I guess I am doing something wrong. Either the CheckPointFile is wrong, or the restore command it is not specified correctly.

    Have you tried this process before successfully?

    Thanks in advance for your time and effort.
    The reply is currently minimized Show
  • Accepted Answer

    Edelweiss
    Edelweiss
    Offline
    Tuesday, April 15 2014, 12:09 PM - #permalink
    0
    You need to do this with

    xl save -c ubuntu-hvm CheckpointFile /etc/xen/ubuntu-hvm.cfg

    and

    xl restore -e ubuntu-hvm /etc/xen/ubuntu-hvm.cfg CheckpointFile

    as http://manpages.ubuntu.com/manpages/raring/en/man1/xl.1.html states. The save command you used has nothing to do with Xen.
    The reply is currently minimized Show
Your Reply