From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cendrin Sa Subject: Re: Save/Restore is not working properly Date: Sun, 7 Aug 2016 21:53:51 +0430 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7303239405895245198==" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWRnm-0007VA-Ur for xen-devel@lists.xenproject.org; Sun, 07 Aug 2016 17:23:55 +0000 Received: by mail-vk0-f51.google.com with SMTP id w127so224984481vkh.2 for ; Sun, 07 Aug 2016 10:23:53 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org --===============7303239405895245198== Content-Type: multipart/alternative; boundary=001a1142f0e038798d05397e90c1 --001a1142f0e038798d05397e90c1 Content-Type: text/plain; charset=UTF-8 Hi, I was searching a way to clone a machine using both memory and disk approach. I checked xen save/restore but after restoring, I can only work some seconds with my machine and it will crash with the_kernel_task_hang_up. using an script* to clone a machine is not working either. so is it a bug or something or I'm cloning the wrong way? * #!/bin/bash : ${2? "Usage: $0 "} echo "$1 is source domain id"; echo "$2 is the destination file to store the image"; xl save -p $1 $2 ; lvremove -f /dev/vg0/vm-clone-lv; lvcreate -L10G -s -n vm-clone-lv /dev/vg0/orig-vm ; xl restore -e -p /etc/xen/vm-clone.cfg $2; xl unpause $1; -- Regards --001a1142f0e038798d05397e90c1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
3D""
Hi,
I was searching a way to clone a machine using bot= h memory and disk approach.
I checked xen save/restore but after restoring, I can only work some=20 seconds with my machine and it will crash with the_kernel_task_hang_up.
using an script* to clone a machine is not working either.
so is it a bug or something or I'm cloning the wrong way?


=
*
#!/bin/bash

: ${2? "Usage: $0 <domain> <dest= ination>"}
echo "$1 is source domain id";
echo &quo= t;$2 is the destination file to store the image";
xl save -p $1 $2 = ;
lvremove -f /dev/vg0/vm-clone-lv;
lvcreate -L10G -s -n vm-clone-lv = /dev/vg0/orig-vm ;
xl restore -e -p /etc/xen/vm-clone.cfg $2;
xl unpa= use $1;

--
Regards
--001a1142f0e038798d05397e90c1-- --===============7303239405895245198== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============7303239405895245198==--