[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] seperate xen checkpoint file as three parts(for xen-4.1.2)



Hi,
    We can seperate the xen checkpoint file as three parts: xl config file, memory dump file of the virtual machine and qemu state file.
    So I add two xl sub-commands: `xl save2` and `xl restore2`, the final effect is as follows:

[malei@xentest-4-1 Fri Dec 28 ~/honeypot/xen/xen-4.1.2]$ sudo xl save2
Usage: xl [-v] save2 [options] <Domain> <CheckpointFile1> <CheckpointFile2> <CheckpointFile3> [<ConfigFile>]

Save a domain state as three seperated files to restore later.

Options:

-h  Print this help.
-c  Leave domain running after creating the snapshot.

[malei@xentest-4-1 Fri Dec 28 ~/honeypot/xen/xen-4.1.2]$ sudo xl restore2
Usage: xl [-v] restore2 [options] [<ConfigFile>] <CheckpointFile1> <CheckpointFile2> <CheckpointFile3>

Restore a domain from a saved state.

Options:

-h  Print this help.
-p  Do not unpause domain after restoring it.
-e  Do not wait in the background for the death of the domain.
-d  Enable debug messages.

Besides, the `vncdisplay` option in xl config file will determine the ID of the domainU shown in `xl list`, so it's convenient to judge th vm-id according the xl config file. 

For more details, please check the attachment.

Attachment: xl-save2-restore2.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.