From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem? broken with filenames with spaces Date: Sat, 19 Jun 2010 16:21:21 +0300 Message-ID: <20100619132121.GG17817@reaktio.net> References: <707452.66702.qm@web56101.mail.re3.yahoo.com> <20100408212041.GQ1878@reaktio.net> <20100409081022.GZ1878@reaktio.net> <20100409103330.GE1878@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20100409103330.GE1878@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andrew Lyon Cc: Boris Derzhavets , xen-devel@lists.xensource.com, xen-users List List-Id: xen-devel@lists.xenproject.org On Fri, Apr 09, 2010 at 01:33:30PM +0300, Pasi K=E4rkk=E4inen wrote: > On Fri, Apr 09, 2010 at 11:28:51AM +0100, Andrew Lyon wrote: > > On Fri, Apr 9, 2010 at 9:21 AM, Andrew Lyon w= rote: > > > On Fri, Apr 9, 2010 at 9:15 AM, Andrew Lyon = wrote: > > >> On Fri, Apr 9, 2010 at 9:10 AM, Pasi K=E4rkk=E4inen = wrote: > > >>> On Fri, Apr 09, 2010 at 08:45:44AM +0100, Andrew Lyon wrote: > > >>>> On Thu, Apr 8, 2010 at 10:20 PM, Pasi K=E4rkk=E4inen wrote: > > >>>> > On Thu, Apr 08, 2010 at 02:14:17PM -0700, Boris Derzhavets wro= te: > > >>>> >> =A0 =A0I believe profile should look like > > >>>> >> > > >>>> >> =A0 =A0memory=3D512 > > >>>> >> =A0 =A0name=3D'Gentoo-32-test' > > >>>> >> =A0 =A0vif=3D['bridge=3Deth(x)'] > > >>>> >> =A0 =A0bootloader=3D'/usr/bin/pygrub' > > >>>> >> =A0 =A0disk=3D['file:/mnt/tb1_store/Xen > > >>>> >> =A0 =A0VMs/Gentoo-32/Gentoo-32.sda1,xvda,w','phy:/dev/test/te= st,xvdb ,w'] > > >>>> >> =A0 =A0extra=3D'gentoo=3Dnodevfs console=3Dxvc0' > > >>>> >> > > >>>> >> =A0 =A0It's PV domU , so xvda,xvda,..... > > >>>> >> > > >>>> >> =A0 =A0Blktap driver is not important, no "tap:aio" > > >>>> >> > > >>>> > > > >>>> > Also I think Xen 4.0.0 needs to have "disk =3D [ "tap:tapdisk:= aio:/path/images/disk.img,xvda,w" ]" to use blktap2. > > >>>> > > >>>> I tried that syntax but it does not work: > > >>>> > > >>>> name=3D'Gentoo-32-test' > > >>>> vif=3D['bridge=3Deth0'] > > >>>> bootloader=3D'/usr/bin/pygrub' > > >>>> disk=3D[ "tap:tapdisk:aio:/mnt/tb1_store/Xen VMs/Gentoo-32/Gento= o-32.sda1,xvda,w"] > > >>>> extra=3D'gentoo=3Dnodevfs console=3Dxvc0' > > >>>> > > >>>> Using config file "./Gentoo-32-test.cfg". > > >>>> Error: [Errno 2] No such file or directory: 'aio:/mnt/tb1_store/= Xen > > >>>> VMs/Gentoo-32/Gentoo-32.sda1' > > >>>> > > >>> > > >>> Hmm.. that's weird. The blktap2 syntax is correct based on the la= test blktap2 README here: > > >>> http://lxr.xensource.com/lxr/source/tools/blktap2/README > > >>> > > >>>> I changed the config back to file:/ and tried again, the xm crea= te > > >>>> process seemed to hang and the block script was stuck: > > >>>> > > >>> > > >>> Ok, so you have some general problem, not really blktap2 related.= . > > >>> > > >>>> > > >>>> root =A0 =A0 14152 =A00.0 =A00.0 =A017596 =A01572 ? =A0 =A0 =A0 = =A0S< =A0 08:43 =A0 0:00 > > >>>> /bin/bash /etc/xen/scripts/block add > > >>>> > > >>>> eventually it errors =A0Error: Device 51712 (vbd) could not be > > >>>> connected. /etc/xen/scripts/block failed; error detected. > > >>>> > > >>>> And the remove script is also stuck: > > >>>> > > >>>> /bin/bash /etc/xen/scripts/block remove > > >>>> > > >>> > > >>> Did you install Xen 4.0.0 over some old version? > > >>> > > >>> Did you remove the old version first? Maybe your 4.0.0 is not com= pletely/properly installed.. > > >> > > >> I will try removing Xen first, including all of /etc/xen/ > > >> > > >> Andy > > >> > > >>> > > >>> Pasi > > >>> > > >>> > > >> > > > > > > I think you are onto something, after completely removing Xen I can= not > > > compile 4.0: > > > > > > Wl,-O1 =A0 =A0 =A0 =A0 =A0-L../../tools/libxc -lxenctrl =A0 =A0-L..= /../tools/libxc > > > -lxenctrl =A0 =A0 =A0 =A0 =A0-o libvhd.so.1.0.0 -luuid libvhd.o lib= vhd-journal.o > > > vhd-util-coalesce.o vhd-util-create.o vhd-util-fill.o > > > vhd-util-modify.o vhd-util-query.o vhd-util-read.o vhd-util-repair.= o > > > vhd-util-resize.o vhd-util-revert.o vhd-util-set-field.o > > > vhd-util-snapshot.o vhd-util-scan.o vhd-util-check.o relative-path.= o > > > atomicio.o ../../lvm/lvm-util.o > > > /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-= gnu/bin/ld: > > > cannot find -lxenctrl > > > collect2: ld returned 1 exit status > > > make[6]: *** [libvhd.a] Error 1 > > > make[6]: Leaving directory > > > `/var/tmp/portage/app-emulation/xen-tools-4.0.0/work/xen-4.0.0/tool= s/blktap2/vhd/lib' > > > make[5]: *** [subdir-all-lib] Error 2 > > > > > > Which makes me think that some part of 4.0 was compiled against 3.4= .2... > > > > > > Andy > > > > >=20 > > I've found at least one problem with 4.0, if the path to the disk > > backing file contains any spaces then the hotplug scripts stall and > > domain creation fails, I had made a symlink without spaces but > > apparently the scripts attempt to resolve symlinks so I had to > > physically rename the dir so that no spaces are used. > >=20 > > I struggled to find any errors relating to domain creation, but the > > hotplug cleanup scripts do log some errors: > >=20 > > /etc/xen/scripts/xen-hotplug-cleanup: line 25: [: !=3D: unary operato= r expected > > stat: cannot stat `/mnt/tb1_store/Xen': No such file or directory > > stat: cannot stat `VMs/WinXP/WinXP.hda': No such file or directory > > xenstore-read: couldn't read path backend/vbd/7/768/node > >=20 > > The path was "/mnt/tb1_store/Xen VMs/WinXP/WinXP.hda" and worked fine= with 3.4.2 > >=20 >=20 > Thanks for looking into that. > I added xen-devel to CC.. maybe this rings some bells for someone. >=20 Hello, This has been fixed by: http://xenbits.xen.org/xen-4.0-testing.hg?rev/72b9c78aef6b So upcoming Xen 4.0.1 should work OK with spaces in vbd filanames. -- Pasi