From owner-freebsd-xen@freebsd.org Mon Feb 29 11:23:25 2016 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 4E79BAB8448 for ; Mon, 29 Feb 2016 11:23:25 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (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 D2BF7E9C for ; Mon, 29 Feb 2016 11:23:24 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id l68so53917693wml.1 for ; Mon, 29 Feb 2016 03:23:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:cc:message-id:date:user-agent :mime-version:in-reply-to; bh=v8XfBrhwcqvDSK5/emvnnFXWkT7QXYOI+gpkueMUsSI=; b=cCSswsLJBWDzUKYGazud1UuuYCkUTsF3BMGwDcZFI5XQAGrvRGHX5totzFjhf+Cd2l BYIDRVETO9c2Yk9drfAbZuqgzYW32LfSm6lgudo2yNb+jPTgui0RbFEFbQettix8qMAa QCDBt1caW3NcclQJP5jUKynv9srd6Fzwj5B8WJX6ttpuQD7jOuEfyJHAOeuTegxNGUxM aMbrIhSNbJxeT73lh7exugYpXO/ZblIEHzXdVRQga1FZcXnPe30zA8JBO8769TRE9liV j8FOvHfefj7pt74perEl2mZn+szUCPm5WdyyHUJYwwDunwvzxeszFZn+Q0JxVclcKPv2 e0YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:cc:message-id:date :user-agent:mime-version:in-reply-to; bh=v8XfBrhwcqvDSK5/emvnnFXWkT7QXYOI+gpkueMUsSI=; b=Py9xBenZ6M8u977bzOJk20KI7pstVumL7jdl+nm4aopsNZTu36ArUR94+ErwVajhYF LR1x2xeka/yelZFTd2j2XkYMjjUdI218h0Xml4CsujpiH6qpwA6fxFrfXfAkfLZA1xNu ejppS/9oDebk5wXS9n61wGm78vu9EuTVd7SzDX0zViIWapZe36Z2ErULV2kg+zavMC6g hN2zOAZTrZpTb4JZU29FPgusqGrWuJ7qXoZQtIocjeiGL8BdDFYaieoRTtTiUFY/1gQQ pls7DorjbyIs7E2clZoWkaTILl554fPazpjjAD5myJuFlT/Rf89CBP7sr+q+2u9gSJid oecA== X-Gm-Message-State: AD7BkJJLCdsIDTg1iJOjBDk/an7ZmBLFe8pbQYvajrK/ReNJUH88Lr8hbpfMDzuyJwcjmQ== X-Received: by 10.28.127.150 with SMTP id a144mr10291083wmd.25.1456745002086; Mon, 29 Feb 2016 03:23:22 -0800 (PST) Received: from [10.0.2.151] ([147.83.40.10]) by smtp.googlemail.com with ESMTPSA id l7sm25498349wjx.14.2016.02.29.03.23.20 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Feb 2016 03:23:21 -0800 (PST) Subject: Re: Porting the block-iscsi hotplug script To: FreeBSD XEN References: <553DEB97.5000300@entel.upc.edu> <5540A053.4080409@entel.upc.edu> <5540F3FC.80606@citrix.com> <5541FC8A.8080009@citrix.com> <5542365D.10403@entel.upc.edu> <55423ECD.6000404@citrix.com> <5556F21D.2050005@entel.upc.edu> <555EEFBA.5080902@citrix.com> <555EF542.3090002@citrix.com> <555F9B3F.1000600@entel.upc.edu> <55602512.1090702@citrix.com> <56C6FA2F.8040900@gmail.com> <56CAC8CB.8030107@gmail.com> <56CADEDA.4050007@citrix.com> <56CB0057.1060509@gmail.com> <56CB041E.1020009@citrix.com> <56CB2D90.5080809@gmail.com> <56CB34BA.6060809@citrix.com> <56CC24BD.6050609@gmail.com> <56CC32E5.5010101@citrix.com> <56CC7637.3080408@gmail.com> <56CF5668.6090605@citrix.com> <56D0091F.80408@gmail.com> <56D02863.7040100@citrix.com> <56D03D95.9090509@gmail.com> <56D04E5F.8070901@citrix.com> From: =?UTF-8?Q?Gustau_P=c3=a9rez?= X-Enigmail-Draft-Status: N1110 Message-ID: <56D42A28.8050701@gmail.com> Date: Mon, 29 Feb 2016 12:23:20 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56D04E5F.8070901@citrix.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Mon, 29 Feb 2016 11:23:25 -0000 El 26/02/16 a les 14:08, Roger Pau Monné ha escrit: > It shouldn't be too hard, as I said the code is already there. The > only issue I foresee is that you will have to find somewhere to store > the information about the disk you have locally-attached, so you can > remove it when the guest is destroyed. Hi Roger, I applied the hotplug patches to xen-[kernel|tools] and the machine is stable. However, when I try to create a HVM domU domain with a simple block script it fails (. I have some questions: * The arguments of the block script are path and action, am I right? * Do the block scripts for Linux and NetBSD receive the same arguments as the FreeBSD script? * I see the device has a type (phy, file, iscsi) in the definition of the domain, but I'm not sure how to check its type in the block script (I can check if the file is a block device or a regular file, but what about iscsi?, check if the target param is set?) * Also. I have a domain defined with two disks. In the block script I try to execute xenstore-ls and I'd expect to see two disks there, but there's only the first one. I assume this is because the block script is called for each disk in the domain definition Finally, I ended having a disk defined in the xenstore (/var/db/xenstore) which I can't remove. I removed xen-tools and removed /var/db/xen{store} but it keeps complaining. I'd have expected that the store was under /var/db/ but perhaps I'm missing something. Thank you, Gustau