Time for Action??”Migrate Domains on your
Xen Server
We will create a Debian domain and save its state to a file that will be used to restore
the domain.
1. Create the Debian guest domain:
# xm create debian_etch_domU.cfg ??“c
2. Check to see that the domain is up and running correctly. Since we provided
the ??“c parameter to the xm command above, the guest domain will start up
in the current console. To check whether the domain has started up, you will
have to use a different console session.
???
??? ??? ???
Chapter 8
[ 115 ]
3. We will save the current state of the domain to the /xen-saved-images
directory; you can save to a directory of your choice:
# xm save 1 /xen-saved-images/etch.save
4. Saving a domain will remove it from the list of domains that are currently
running. You can check this by using the xm command to print the
current domains.
5. Restore the saved domain from the file:
# xm restore /xen-saved-images/etch.save
6. Run the xm command again; we should see the restored domain back in the
list of current domains.
What Just Happened?
We took an active running Xen domain and saved its running state to a disk file.
Please keep in mind that this file is not encrypted in anyway, so a malicious user
who gets access to the directory with the saved image files can tamper with the
images. It very important to secure all access to the folder that contains these
saved images.
The running state of a domain is a snapshot or image of the domain at the time of
saving.
Pages:
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108