CA-101777: Relax the checking of mac seed confliction

The confliction between VM mac seeds has been overly restricted, in particular on VM <-> snapshot confliction.  E.g. importing a VM onto a host with its own snapshot leftover is forbidden for no good reason. This changeset trys to relax the checking a little bit.

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
CA-101777: Enable dry-run feature for vm-import

which should at least work for metadata only import.

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
CA-101777: Let xe-restore-metadata make use of vm-import's dry-run facility

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
CA-101777: Add a force flag to xe-restore-metadata (default to false)

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
CA-101777: add some comments on the compatability checking logic

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
CA-108913: Initialise parameters on the stack.

These four values are passed by pointer into libxc, and are only filled in if
relevent.  The bindings then convert the uninitialised variable into an
integer and pass it to xenops, which writes it to xenstore.

xenconsoled sees the write and, if the junk value looks like a valid guest
gfn, maps it and starts the console connect protocol by writing into it.

This causes HVM domain corruption if the junk value happens to be in the range
1 to max_pages.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Do not install devel packages

xapi-rrd-devel is only required to compile some performance tools which
once compiled does not require this package to be installed so avoid to
install development packages in a production machine.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
CA-109295: Allow other_config:hvm_serial to set values other than "pty"

Signed-off-by: John Else <john.else@citrix.com>
Add tests for xapi -> xenopsd HVM metadata conversion

Signed-off-by: John Else <john.else@citrix.com>
Do not try deleting the old xenguest log file.

The only time where this will succeed is when performing localhost
migrations.  This action is a deliberate choice on behalf of the user,
suggesting that they are also likely to want the log files.

Specifically, in the case of a localhost migrate, the logs for the transmit
half of the migrate are deleted.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Merge pull request #1312 from zli/xenserver/CA-101777

CA-101777: some improvements on metadata backup/restore
Merge pull request #1358 from andyhhp/xenguest-logfiles

Do not try deleting the old xenguest log file.
Merge pull request #1354 from freddy77/master

Avoid installing devel stuff
Merge pull request #1335 from andyhhp/ca-108913

CA-108913: Initialise parameters on the stack.
Merge pull request #1357 from johnelse/ca-109295

CA-109295: Allow other_config:hvm_serial to set values other than "pty"