From owner-freebsd-xen@FreeBSD.ORG Wed Apr 29 09:12:14 2015 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D49E24AE for ; Wed, 29 Apr 2015 09:12:14 +0000 (UTC) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "relay.upc.es", Issuer "TERENA SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 51B40128E for ; Wed, 29 Apr 2015 09:12:13 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id t3T9BlQu031316 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Wed, 29 Apr 2015 11:11:47 +0200 Received: from [10.0.2.151] ([147.83.40.10]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id t3T9BlTo025190 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 29 Apr 2015 11:11:47 +0200 Message-ID: <5540A053.4080409@entel.upc.edu> Date: Wed, 29 Apr 2015 11:11:47 +0200 From: =?windows-1252?Q?Gustau_P=E9rez?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: =?windows-1252?Q?Roger_Pau_Monn=E9?= , FreeBSD XEN Subject: Re: Porting the block-iscsi hotplug script References: <553DEB97.5000300@entel.upc.edu> In-Reply-To: <553DEB97.5000300@entel.upc.edu> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.4.3 (violet.upc.es [147.83.2.51]); Wed, 29 Apr 2015 11:11:48 +0200 (CEST) X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.4.3 (ackerman2.upc.es [147.83.2.244]); Wed, 29 Apr 2015 11:11:47 +0200 (CEST) X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd 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: Wed, 29 Apr 2015 09:12:14 -0000 El 27/04/2015 a les 09:56, Gustau Pérez ha escrit: > > Hello, > > I'm trying to port the linux block-iscsi hotplug script and I > discovered there is a chain of sourcing that ends up to including 5 or 6 > scripts in the tools/hotplug/Linux directory. Can I strip those and > rewrite them to include only the necessary code in the Freebsd hotplug > directory? I presume there's no assumption about the scripts' names > other than the hotplug script itself, but I'd like to first ask. This morning I got some time to work the block-iscsi script. With some tweaking I was able to call directly the script with something like: scripts/block-iscsi add iqn=bla,portal=bla,username=bla,password=bla and I was also able to simulate the remove. To do so I had to comment out some variables (XENBUS_PATH for example). Now I'm trying to test it at domain creation time, and to do so I had to uncomment XENBUS_PATH and the other changes. Creating the domain with the disk using the iscsi syntax [1] fails. In the xen log file I get an error complaining about XENBUS_PATH not being set [2]. I was hoping that XENBUS_PATH would be set by the xl toolstack. Am I doing anything wrong? Best, Gustau [1] disk = ['script=block-iscsi,vdev=xvda,target=iqn=iqn.2015.local.labs-entel.test_xen:target1,portal=10.0.2.20,username=bla,password=bla'] [2] XENBUS_PATH: parameter null or not set > Thanks, > > Gustau > _______________________________________________ > freebsd-xen@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-xen > To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org"