From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: Suggestion for merging xl save/restore/migrate/migrate-receive Date: Mon, 16 Sep 2013 17:40:10 +0100 Message-ID: <5237346A.3020106@eu.citrix.com> References: <523337AA.5080103@oracle.com> <5237291C.9090100@oracle.com> <21047.12251.625579.745154@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21047.12251.625579.745154@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Zhigang Wang , xen-devel List-Id: xen-devel@lists.xenproject.org On 16/09/13 17:20, 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] >> >> Save a domain state to restore later. >> >> Options: >> >> -h Print this help. >> -C Send instead of config file from creation. >> -s Use instead of ssh. String will be passed >> to sh. If empty, run instead of ssh xl >> migrate-receive [-d -e] >> -e Do not wait in the background (on ) 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' Actually, that's a pretty bizarre interface -- I don't think I would have gotten that from the help. If we had a new "transport" option that could take format strings, we could even set the default transport in xl.conf, like so: migrate.default.transport="myssh %h %r" migrate.default.transport="nc %h 1234" migrate.default.transport="socat - OPENSSL:%h:8005,verify=0" (Where %h would be the remote host, and %r the remote command to execute -- i.e., xl recieve.) Or of course: xl migrate -t "nc %h 1234" 42 remotehost Zhigang, would that work better for you guys? -George