From owner-freebsd-xen@freebsd.org Fri Oct 9 14:27:37 2015 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 591409D1210; Fri, 9 Oct 2015 14:27:37 +0000 (UTC) (envelope-from royger@gmail.com) Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com [IPv6:2a00:1450:400c:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 013EFFB; Fri, 9 Oct 2015 14:27:37 +0000 (UTC) (envelope-from royger@gmail.com) Received: by wicfx3 with SMTP id fx3so72941930wic.1; Fri, 09 Oct 2015 07:27:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=A3Re5txNV9OzStoLnnJxXihJihTE4YyrQcyEvX50bic=; b=bzeIwx2Xqdqy51waBc65jWxLXaeyqqqEmybFzJUlRYXSaOqluRO+3O7tfrbMWWYNJS HipRZZgpXQ0y+kr4Ln3qd4MbMmAIlMqsjD+X2Z5uztHkjYj/447jjBA4qLAM4LJTxVsB Gp/c96o7YwVi5i//Dvn5E5u2DYJS/Hf46/6cKZaUgGCS/TBKqNru/v08QpzYNLWCA6yw pzYnH5wkbzypQKCnnjDf/eiVN6/G9dZqO011HSzVtF27Loi/rd1xMO7Nt11Kni5iC0F7 feRwdWihgXND7zYrB7SjnsthbIzykzzpINXGci5OUE8zmI3IF6VOHjS7/DbcHq9QA+9p w74A== X-Received: by 10.180.91.225 with SMTP id ch1mr11509085wib.39.1444400855262; Fri, 09 Oct 2015 07:27:35 -0700 (PDT) Received: from [172.16.1.30] (184.Red-88-8-140.dynamicIP.rima-tde.net. [88.8.140.184]) by smtp.gmail.com with ESMTPSA id hs5sm11714859wib.6.2015.10.09.07.27.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Oct 2015 07:27:34 -0700 (PDT) Sender: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= To: FreeBSD XEN , freebsd-virtualization@freebsd.org From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Subject: HEADS UP: live migration added to Xen 4.5 packages in ports X-Enigmail-Draft-Status: N1110 Message-ID: <5617CECF.4030406@FreeBSD.org> Date: Fri, 9 Oct 2015 16:27:27 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2015 14:27:37 -0000 Hello, I've just added patches that enable live migration, save and restore support to the Xen packages in ports: https://svnweb.freebsd.org/ports?view=revision&revision=398918 This enables live migration and save/restore of HVM and PV guests from a FreeBSD/Xen PVH Dom0. Remember that in order to use live migration between hosts the hard drive of the guest must be shared (eg: NFS). A couple of notes below on it's usage: I'm not a sysadmin, but save and restore can be used in conjunction with ZFS snapshots in order to perform checkpoints of guests: # xl save -p domain.checkpoint1 # zfs snapshot @checkpoint1 # xl unpause This will result in a save file and a ZFS snapshot that can easily be used to restore the VM to a previous known state. It should also be possible to migrate guests between a Linux and a FreeBSD Dom0 (provided there's a common shared disk storage), but I have not tested it. NB: if you don't have two hosts but still want to test it, you can do it locally: # xl migrate localhost Roger.