You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xen-api/importexport.md
+18-10Lines changed: 18 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,24 @@ title: VM import/export
3
3
layout: default
4
4
---
5
5
6
-
VMs can be exported to a file and later imported to any XenServer host. The export protocol is a simple HTTP(S) GET, which should be performed on the master if the VM is on a pool member. Authorization is either standard HTTP basic authentication, or if a session has already been obtained, this can be used. The VM to export is specified either by UUID or by reference. To keep track of the export, a task can be created and passed in using its reference. The request might result in a redirect if the VM's disks are only accessible on a pool member.
7
-
8
-
The following arguments are passed on the command line:
session_id | the reference of the session being used to authenticate; required only when not using HTTP basic authentication
13
-
task_id | the reference of the task object with which to keep track of the operation; optional, required only if you have created a task object to keep track of the export
14
-
ref | the reference of the VM; required only if not using the UUID
15
-
uuid | the UUID of the VM; required only if not using the reference
6
+
VMs can be exported to a file and later imported to any Xapi host. The export
7
+
protocol is a simple HTTP(S) GET, which should be sent to the Pool master.
8
+
Authorization is either via a pre-created `session_id` or by HTTP basic
9
+
authentication (particularly useful on the command-line).
10
+
The VM to export is specified either by UUID or by reference. To keep track of
11
+
the export, a task can be created and passed in using its reference. Note that
12
+
Xapi may send an HTTP redirect if a different host has better access to the
13
+
disk data.
14
+
15
+
The following arguments are passed as URI query parameters or HTTP cookies:
session_id | the reference of the session being used to authenticate; required only when not using HTTP basic authentication
20
+
task_id | the reference of the task object with which to keep track of the operation; optional, required only if you have created a task object to keep track of the export
21
+
ref | the reference of the VM; required only if not using the UUID
22
+
uuid | the UUID of the VM; required only if not using the reference
23
+
use_compression | an optional boolean "true" or "false" (defaulting to "false"). If "true" then the output will be gzip-compressed before transmission.
16
24
17
25
18
26
For example, using the Linux command line tool cURL:
0 commit comments