From: Zhigang Wang <zhigang.x.wang@oracle.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
xen-devel <xen-devel@lists.xen.org>
Subject: Re: Suggestion for merging xl save/restore/migrate/migrate-receive
Date: Mon, 16 Sep 2013 13:41:07 -0400 [thread overview]
Message-ID: <523742B3.5040204@oracle.com> (raw)
In-Reply-To: <21047.12251.625579.745154@mariner.uk.xensource.com>
On 09/16/2013 12:20 PM, Ian Jackson wrote:
> Zhigang Wang writes ("Re: [Xen-devel] Suggestion for merging xl save/restore/migrate/migrate-receive"):
>> ---- xl-migrate.rst ----
> ...
>> * Current xl migrate command is not intuitive, especially the `-s` option::
>>
>> # xl migrate
>> Usage: xl [-v] migrate [options] <Domain> <host>
>>
>> Save a domain state to restore later.
>>
>> Options:
>>
>> -h Print this help.
>> -C <config> Send <config> instead of config file from creation.
>> -s <sshcommand> Use <sshcommand> instead of ssh. String will be passed
>> to sh. If empty, run <host> instead of ssh <host> xl
>> migrate-receive [-d -e]
>> -e Do not wait in the background (on <host>) for the death
>> of the domain.
>>
>> It's a little hard to adapt other tools as transport.
>
> Perhaps the documentation needs to be improved. But you can just say
> xl migrate -s '' 42 'nc remotehost 1234'
> and in the receiving host's inetd.conf:
> 1234 stream tcp nowait root /usr/bin/xl xl migrate-receive
> (NB I haven't tested this). If you want better logging then use a
> better superserver than inetd.
>
>> * We have differnt implementation for `xl save/restore` and
>> `xl migrate/migrate-receive`. Can we merge them?
>
> I'm afraid not. The migration protocol includes a confirmation that
> the receiver is ready, to try to reduce the chance that a failed
> migration ends up killing the domain.
>
>> Proposal
>> ========
>>
>> * Implement dedicated daemons for ssl and non-ssl migration receive
>> (`socat <http://www.dest-unreach.org/socat/>`_ can be used).
>>
>> Example patch for dedicated migrate receive daemon:
>> xen-xl-migrate-socat.patch
>
> I think a one-line change to inetd.conf is probably better. Your
> script is very complicated (and still throws away the error messages
> from xl migrate-receive rather than logging them).
>
> As for the encrypted version: ssl has pretty awful security
> properties, at least by default, which you need to work around. For
> example, the default usually involves the X.509 root certificate
> oligopoly, and doesn't provide forward secrecy. If you need
> encryption, ssh has a much better security model.
>
> If you don't need encryption and authentication then default mode of
> use for xl is rather heavyweight and you might want to use a simple
> unencrypted unauthenticated TCP session as I describe above.
>
>> * In order to migrate a VM without user interactive, we have to configure ssh
>> keys for all Servers in a pool. Key management brings complexity.
>
> Surely your automated server deployment system can manage this ?
Yes, we can.
keys are states; we need to make sure they are always sync. Also after this,
all Servers in a pool can login to each other. I don't know whether it's
a security issue for our product.
This is something we try to avoid at this time.
Thanks,
Zhigang
next prev parent reply other threads:[~2013-09-16 17:41 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-13 16:04 Suggestion for merging xl save/restore/migrate/migrate-receive Zhigang Wang
2013-09-16 10:04 ` George Dunlap
2013-09-16 15:51 ` Zhigang Wang
2013-09-16 16:05 ` George Dunlap
2013-09-16 16:07 ` George Dunlap
2013-09-16 16:20 ` Ian Jackson
2013-09-16 16:40 ` George Dunlap
2013-09-16 17:06 ` Ian Jackson
2013-09-16 17:21 ` Zhigang Wang
2013-09-16 17:41 ` Zhigang Wang [this message]
2013-09-16 20:42 ` Ian Campbell
2013-09-16 20:51 ` Zhigang Wang
2013-09-17 8:25 ` George Dunlap
2013-09-17 9:26 ` Ian Jackson
2013-09-17 10:07 ` George Dunlap
2013-09-17 13:44 ` Zhigang Wang
2013-09-24 16:46 ` Konrad Rzeszutek Wilk
2013-09-25 10:06 ` George Dunlap
2013-10-03 2:19 ` Matt Wilson
2013-10-03 13:34 ` Zhigang Wang
2013-09-17 10:28 ` George Dunlap
2013-09-17 10:45 ` Processed: " xen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=523742B3.5040204@oracle.com \
--to=zhigang.x.wang@oracle.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).