Hi, Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) forward ported dom0 kernel, Xen itself seems to boot up successfully and everything else on the system is working normally, but when I try to start a domain xm create appears to hang and eventually I get a hotplug scripts error: Error: Device 2049 (vbd) could not be connected. /etc/xen/scripts/block failed; error detected. Which logs and other data would be helpful in diagnosing this problem? Andy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Lyon
2010-Apr-08 18:39 UTC
[Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
On Thu, Apr 8, 2010 at 6:54 PM, Andrew Lyon <andrew.lyon@gmail.com> wrote:> Hi, > > Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) > forward ported dom0 kernel, Xen itself seems to boot up successfully > and everything else on the system is working normally, but when I try > to start a domain xm create appears to hang and eventually I get a > hotplug scripts error: > > Error: Device 2049 (vbd) could not be connected. > /etc/xen/scripts/block failed; error detected. > > Which logs and other data would be helpful in diagnosing this problem? > > Andy >Does Xen 4.0 require blktap2? I''ve just checked the kernel config on this system and it is disabled: # CONFIG_XEN_BLKDEV_TAP2 is not set Andy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2010-Apr-08 18:56 UTC
Re: [Xen-users] Xen 4.0 on gentoo hotplug scripts problem?
I just loaded 2.6.31.12 xenified via yours patch set under Xen 4.0 on top of Ubuntu 9.10 Server. Then started F12 and Karmic Koala PV DomUs via virt-manager. The issue seems to be "Gentoo" specific. What is status of udev daemon on your system ? Version shouldn''t be matter. I believe 3.4.3 doesn''t cause problem. Right ? Boris. --- On Thu, 4/8/10, Andrew Lyon <andrew.lyon@gmail.com> wrote: From: Andrew Lyon <andrew.lyon@gmail.com> Subject: [Xen-users] Xen 4.0 on gentoo hotplug scripts problem? To: "xen-users List" <xen-users@lists.xensource.com> Date: Thursday, April 8, 2010, 1:54 PM Hi, Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) forward ported dom0 kernel, Xen itself seems to boot up successfully and everything else on the system is working normally, but when I try to start a domain xm create appears to hang and eventually I get a hotplug scripts error: Error: Device 2049 (vbd) could not be connected. /etc/xen/scripts/block failed; error detected. Which logs and other data would be helpful in diagnosing this problem? Andy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2010-Apr-08 18:59 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
Please, post your DomU''s profile. Boris. --- On Thu, 4/8/10, Andrew Lyon <andrew.lyon@gmail.com> wrote: From: Andrew Lyon <andrew.lyon@gmail.com> Subject: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem? To: "xen-users List" <xen-users@lists.xensource.com> Date: Thursday, April 8, 2010, 2:39 PM On Thu, Apr 8, 2010 at 6:54 PM, Andrew Lyon <andrew.lyon@gmail.com> wrote:> Hi, > > Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) > forward ported dom0 kernel, Xen itself seems to boot up successfully > and everything else on the system is working normally, but when I try > to start a domain xm create appears to hang and eventually I get a > hotplug scripts error: > > Error: Device 2049 (vbd) could not be connected. > /etc/xen/scripts/block failed; error detected. > > Which logs and other data would be helpful in diagnosing this problem? > > Andy >Does Xen 4.0 require blktap2? I''ve just checked the kernel config on this system and it is disabled: # CONFIG_XEN_BLKDEV_TAP2 is not set Andy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Apr-08 19:00 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
On Thu, Apr 08, 2010 at 07:39:14PM +0100, Andrew Lyon wrote:> On Thu, Apr 8, 2010 at 6:54 PM, Andrew Lyon <andrew.lyon@gmail.com> wrote: > > Hi, > > > > Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) > > forward ported dom0 kernel, Xen itself seems to boot up successfully > > and everything else on the system is working normally, but when I try > > to start a domain xm create appears to hang and eventually I get a > > hotplug scripts error: > > > > Error: Device 2049 (vbd) could not be connected. > > /etc/xen/scripts/block failed; error detected. > > > > Which logs and other data would be helpful in diagnosing this problem? > > > > Andy > > > > Does Xen 4.0 require blktap2? > > I''ve just checked the kernel config on this system and it is disabled: > > # CONFIG_XEN_BLKDEV_TAP2 is not set > >It should be only required if you try to use the tap:aio: / tapdisk backend. -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Apr-08 19:08 UTC
Re: [Xen-users] Xen 4.0 on gentoo hotplug scripts problem?
On Thu, Apr 08, 2010 at 06:54:44PM +0100, Andrew Lyon wrote:> Hi, > > Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) > forward ported dom0 kernel, Xen itself seems to boot up successfully > and everything else on the system is working normally, but when I try > to start a domain xm create appears to hang and eventually I get a > hotplug scripts error: > > Error: Device 2049 (vbd) could not be connected. > /etc/xen/scripts/block failed; error detected. > > Which logs and other data would be helpful in diagnosing this problem? >Is there more information in "xm log" ? Or /var/log/xen/qemu* -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Lyon
2010-Apr-08 20:50 UTC
Re: [Xen-users] Xen 4.0 on gentoo hotplug scripts problem?
On Thu, Apr 8, 2010 at 7:56 PM, Boris Derzhavets <bderzhavets@yahoo.com>wrote:> I just loaded 2.6.31.12 xenified via yours patch set under Xen 4.0 on top > of Ubuntu 9.10 Server. Then started F12 and Karmic Koala PV DomUs via > virt-manager. The issue seems to be "Gentoo" specific. What is > status of udev daemon on your system ? Version shouldn''t be matter. >udev is running and seems to be working ok, is there a way to check its status?> I believe 3.4.3 doesn''t cause problem. Right ? >3.4.2 works ok, I''ve not tried 3.4.3 for a while but a -rc a few weeks ago worked perfectly.> > Boris. > > --- On *Thu, 4/8/10, Andrew Lyon <andrew.lyon@gmail.com>* wrote: > > > From: Andrew Lyon <andrew.lyon@gmail.com> > Subject: [Xen-users] Xen 4.0 on gentoo hotplug scripts problem? > To: "xen-users List" <xen-users@lists.xensource.com> > Date: Thursday, April 8, 2010, 1:54 PM > > Hi, > > Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) > forward ported dom0 kernel, Xen itself seems to boot up successfully > and everything else on the system is working normally, but when I try > to start a domain xm create appears to hang and eventually I get a > hotplug scripts error: > > Error: Device 2049 (vbd) could not be connected. > /etc/xen/scripts/block failed; error detected. > > Which logs and other data would be helpful in diagnosing this problem? > > Andy > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com<http://mc/compose?to=Xen-users@lists.xensource.com> > http://lists.xensource.com/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Lyon
2010-Apr-08 20:50 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
memory=512 name=''Gentoo-32-test'' vif=[''''] bootloader=''/usr/bin/pygrub'' disk=[''file:/mnt/tb1_store/Xen VMs/Gentoo-32/Gentoo-32.sda1,sda1,w'',''phy:/dev/test/test,sdb1,w''] extra=''gentoo=nodevfs console=xvc0'' On Thu, Apr 8, 2010 at 7:59 PM, Boris Derzhavets <bderzhavets@yahoo.com>wrote:> Please, post your DomU''s profile. > > Boris. > > --- On *Thu, 4/8/10, Andrew Lyon <andrew.lyon@gmail.com>* wrote: > > > From: Andrew Lyon <andrew.lyon@gmail.com> > Subject: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem? > > To: "xen-users List" <xen-users@lists.xensource.com> > Date: Thursday, April 8, 2010, 2:39 PM > > On Thu, Apr 8, 2010 at 6:54 PM, Andrew Lyon <andrew.lyon@gmail.com<http://mc/compose?to=andrew.lyon@gmail.com>> > wrote: > > Hi, > > > > Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) > > forward ported dom0 kernel, Xen itself seems to boot up successfully > > and everything else on the system is working normally, but when I try > > to start a domain xm create appears to hang and eventually I get a > > hotplug scripts error: > > > > Error: Device 2049 (vbd) could not be connected. > > /etc/xen/scripts/block failed; error detected. > > > > Which logs and other data would be helpful in diagnosing this problem? > > > > Andy > > > > Does Xen 4.0 require blktap2? > > I''ve just checked the kernel config on this system and it is disabled: > > # CONFIG_XEN_BLKDEV_TAP2 is not set > > > Andy > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com<http://mc/compose?to=Xen-users@lists.xensource.com> > http://lists.xensource.com/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Lyon
2010-Apr-08 20:50 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
On Thu, Apr 8, 2010 at 8:00 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Thu, Apr 08, 2010 at 07:39:14PM +0100, Andrew Lyon wrote: >> On Thu, Apr 8, 2010 at 6:54 PM, Andrew Lyon <andrew.lyon@gmail.com> wrote: >> > Hi, >> > >> > Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) >> > forward ported dom0 kernel, Xen itself seems to boot up successfully >> > and everything else on the system is working normally, but when I try >> > to start a domain xm create appears to hang and eventually I get a >> > hotplug scripts error: >> > >> > Error: Device 2049 (vbd) could not be connected. >> > /etc/xen/scripts/block failed; error detected. >> > >> > Which logs and other data would be helpful in diagnosing this problem? >> > >> > Andy >> > >> >> Does Xen 4.0 require blktap2? >> >> I''ve just checked the kernel config on this system and it is disabled: >> >> # CONFIG_XEN_BLKDEV_TAP2 is not set >> >> > > It should be only required if you try to use the tap:aio: / tapdisk backend.tried with blktap2 enabled, no change :(.> > -- Pasi > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Apr-08 20:52 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
On Thu, Apr 08, 2010 at 09:50:45PM +0100, Andrew Lyon wrote:> On Thu, Apr 8, 2010 at 8:00 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > > On Thu, Apr 08, 2010 at 07:39:14PM +0100, Andrew Lyon wrote: > >> On Thu, Apr 8, 2010 at 6:54 PM, Andrew Lyon <andrew.lyon@gmail.com> wrote: > >> > Hi, > >> > > >> > Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) > >> > forward ported dom0 kernel, Xen itself seems to boot up successfully > >> > and everything else on the system is working normally, but when I try > >> > to start a domain xm create appears to hang and eventually I get a > >> > hotplug scripts error: > >> > > >> > Error: Device 2049 (vbd) could not be connected. > >> > /etc/xen/scripts/block failed; error detected. > >> > > >> > Which logs and other data would be helpful in diagnosing this problem? > >> > > >> > Andy > >> > > >> > >> Does Xen 4.0 require blktap2? > >> > >> I''ve just checked the kernel config on this system and it is disabled: > >> > >> # CONFIG_XEN_BLKDEV_TAP2 is not set > >> > >> > > > > It should be only required if you try to use the tap:aio: / tapdisk backend. > > tried with blktap2 enabled, no change :(. >Was there more information about the error in "xm log" or in /var/log/xen/qemu* ? -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Lyon
2010-Apr-08 20:52 UTC
Re: [Xen-users] Xen 4.0 on gentoo hotplug scripts problem?
On Thu, Apr 8, 2010 at 8:08 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Thu, Apr 08, 2010 at 06:54:44PM +0100, Andrew Lyon wrote: >> Hi, >> >> Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) >> forward ported dom0 kernel, Xen itself seems to boot up successfully >> and everything else on the system is working normally, but when I try >> to start a domain xm create appears to hang and eventually I get a >> hotplug scripts error: >> >> Error: Device 2049 (vbd) could not be connected. >> /etc/xen/scripts/block failed; error detected. >> >> Which logs and other data would be helpful in diagnosing this problem? >> > > Is there more information in "xm log" ? > > Or /var/log/xen/qemu* > > -- Pasi > >This is what happens when I start the vm: xm create -c Gentoo-32-test.cfg Using config file "./Gentoo-32-test.cfg". pyGRUB version 0.6 ┌────────────────────────────────────────────────────────────────────────┐ │ Gentoo Linux 2.6.32-xen │ └────────────────────────────────────────────────────────────────────────┘ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS. ''e'' to edit the commands before booting, ''a'' to modify the kernel arguments before booting, or ''c'' for a command line. Will boot selected entry in 28 seconds # Error: Device 2049 (vbd) could not be connected. /etc/xen/scripts/block failed; error detected. xm log: [2010-04-08 21:45:55 4069] INFO (SrvDaemon:220) Xend exited with status 0. [2010-04-08 21:46:55 3763] INFO (SrvDaemon:332) Xend Daemon started [2010-04-08 21:46:55 3763] INFO (SrvDaemon:336) Xend changeset: unavailable. [2010-04-08 21:46:55 3763] DEBUG (XendDomainInfo:149) XendDomainInfo.recreate({\047max_vcpu_id\047: 1, \047cpu_time\047: 10944865631L, \047ssidref\047: 0, \047hvm\047: 0, \047shutdown_reason\047: 0, \047dying\047: 0, \047online_vcpus\047: 2, \047domid\047: 0, \047paused\047: 0, \047crashed\047: 0, \047running\047: 1, \047maxmem_kb\047: 17179869180L, \047shutdown\047: 0, \047mem_kb\047: 7751116L, \047handle\047: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], \047blocked\047: 0, \047name\047: \047Domain-0\047}) [2010-04-08 21:46:55 3763] INFO (XendDomainInfo:167) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000. at /local/domain/0 [2010-04-08 21:46:55 3763] DEBUG (XendDomainInfo:3400) Storing VM details: {\047on_xend_stop\047: \047ignore\047, \047shadow_memory\047: \0470\047, \047uuid\047: \04700000000-0000-0000-0000-000000000000\047, \047on_reboot\047: \047restart\047, \047image\047: \047(linux (kernel ) (superpages 0) (nomigrate 0) (tsc_mode 0))\047, \047on_poweroff\047: \047destroy\047, \047bootloader_args\047: \047\047, \047on_xend_start\047: \047ignore\047, \047on_crash\047: \047restart\047, \047xend/restart_count\047: \0470\047, \047vcpus\047: \0472\047, \047vcpu_avail\047: \0473\047, \047bootloader\047: \047\047, \047name\047: \047Domain-0\047} [2010-04-08 21:46:55 3763] DEBUG (XendDomainInfo:1804) Storing domain details: {\047description\047: \047\047, \047console/limit\047: \0471048576\047, \047memory/target\047: \0477751116\047, \047vm\047: \047/vm/00000000-0000-0000-0000-000000000000\047, \047domid\047: \0470\047, \047cpu/0/availability\047: \047online\047, \047cpu/1/availability\047: \047online\047, \047control/platform-feature-multiprocessor-suspend\047: \0471\047, \047console/type\047: \047xenconsoled\047, \047name\047: \047Domain-0\047} [2010-04-08 21:46:55 3763] DEBUG (XendDomain:464) Adding Domain: 0 [2010-04-08 21:46:55 3763] DEBUG (XendDomain:398) number of vcpus to use is 0 [2010-04-08 21:46:55 3763] DEBUG (XendDomainInfo:1891) XendDomainInfo.handleShutdownWatch [2010-04-08 21:46:55 3763] ERROR (XendDomain:353) Unable to open or parse config.sxp: /var/lib/xend/domains/46f22c82-8a3d-47e3-b9c5-3b5f6eaf7a12/config.sxp Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/xen/xend/XendDomain.py", line 344, in _managed_domains cfg = XendConfig.XendConfig(filename = cfg_file) File "/usr/lib64/python2.6/site-packages/xen/xend/XendConfig.py", line 342, in __init__ self._sxp_to_xapi(sxp_obj) File "/usr/lib64/python2.6/site-packages/xen/xend/XendConfig.py", line 857, in _sxp_to_xapi cfg = self._parse_sxp(sxp_cfg) File "/usr/lib64/python2.6/site-packages/xen/xend/XendConfig.py", line 805, in _parse_sxp self.parse_cpuid(cfg, \047cpuid\047) File "/usr/lib64/python2.6/site-packages/xen/xend/XendConfig.py", line 610, in parse_cpuid cfg[field][input] = dict(regs) ValueError: dictionary update sequence element #0 has length 1; 2 is required [2010-04-08 21:46:55 3763] WARNING (XendAPI:705) API call: VBD.set_device not found [2010-04-08 21:46:55 3763] WARNING (XendAPI:705) API call: VBD.set_type not found [2010-04-08 21:46:55 3763] WARNING (XendAPI:705) API call: session.get_all_records not found [2010-04-08 21:46:55 3763] WARNING (XendAPI:705) API call: event.get_record not found [2010-04-08 21:46:55 3763] WARNING (XendAPI:705) API call: event.get_all not found [2010-04-08 21:46:55 3763] WARNING (XendAPI:705) API call: VIF.set_device not found [2010-04-08 21:46:55 3763] WARNING (XendAPI:705) API call: VIF.set_MAC not found [2010-04-08 21:46:55 3763] WARNING (XendAPI:705) API call: VIF.set_MTU not found [2010-04-08 21:46:55 3763] WARNING (XendAPI:705) API call: debug.get_all not found [2010-04-08 21:46:55 3763] INFO (XMLRPCServer:156) Opening Unix domain socket XML-RPC server on /var/run/xend/xen-api.sock; authentication has been disabled for this server. [2010-04-08 21:46:55 3763] INFO (XMLRPCServer:156) Opening Unix domain socket XML-RPC server on /var/run/xend/xmlrpc.sock. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Apr-08 20:58 UTC
Re: [Xen-users] Xen 4.0 on gentoo hotplug scripts problem?
On Thu, Apr 08, 2010 at 09:52:24PM +0100, Andrew Lyon wrote:> On Thu, Apr 8, 2010 at 8:08 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > > On Thu, Apr 08, 2010 at 06:54:44PM +0100, Andrew Lyon wrote: > >> Hi, > >> > >> Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) > >> forward ported dom0 kernel, Xen itself seems to boot up successfully > >> and everything else on the system is working normally, but when I try > >> to start a domain xm create appears to hang and eventually I get a > >> hotplug scripts error: > >> > >> Error: Device 2049 (vbd) could not be connected. > >> /etc/xen/scripts/block failed; error detected. > >> > >> Which logs and other data would be helpful in diagnosing this problem? > >> > > > > Is there more information in "xm log" ? > > > > Or /var/log/xen/qemu* > > > > -- Pasi > > > > > > This is what happens when I start the vm: > > xm create -c Gentoo-32-test.cfg > Using config file "./Gentoo-32-test.cfg". > > > # Error: Device 2049 (vbd) could not be connected. > /etc/xen/scripts/block failed; error detected. > > xm log: > > [2010-04-08 21:46:55 3763] ERROR (XendDomain:353) Unable to open or > parse config.sxp: > /var/lib/xend/domains/46f22c82-8a3d-47e3-b9c5-3b5f6eaf7a12/config.sxp > Traceback (most recent call last): > File "/usr/lib64/python2.6/site-packages/xen/xend/XendDomain.py", > line 344, in _managed_domains > cfg = XendConfig.XendConfig(filename = cfg_file) > File "/usr/lib64/python2.6/site-packages/xen/xend/XendConfig.py", > line 342, in __init__ > self._sxp_to_xapi(sxp_obj) > File "/usr/lib64/python2.6/site-packages/xen/xend/XendConfig.py", > line 857, in _sxp_to_xapi > cfg = self._parse_sxp(sxp_cfg) > File "/usr/lib64/python2.6/site-packages/xen/xend/XendConfig.py", > line 805, in _parse_sxp > self.parse_cpuid(cfg, \047cpuid\047) > File "/usr/lib64/python2.6/site-packages/xen/xend/XendConfig.py", > line 610, in parse_cpuid > cfg[field][input] = dict(regs) > ValueError: dictionary update sequence element #0 has length 1; 2 is requiredThis sounds like there''s an error in Gentoo-32-test.cfg Can you please paste it? -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Apr-08 21:06 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
On Thu, Apr 08, 2010 at 09:50:29PM +0100, Andrew Lyon wrote:> memory=512 > name=''Gentoo-32-test'' > vif=[''''] > bootloader=''/usr/bin/pygrub'' > disk=[''file:/mnt/tb1_store/Xen > VMs/Gentoo-32/Gentoo-32.sda1,sda1,w'',''phy:/dev/test/test,sdb1,w''] > extra=''gentoo=nodevfs console=xvc0'' >Try having the disk=[] all on one line.. also nowadays PV guests should use xvd* devices instead of sd* (that shouldn''t cause this problem though). -- Pasi> On Thu, Apr 8, 2010 at 7:59 PM, Boris Derzhavets > <[1]bderzhavets@yahoo.com> wrote: > > Please, post your DomU''s profile. > > Boris. > > --- On Thu, 4/8/10, Andrew Lyon <[2]andrew.lyon@gmail.com> wrote: > > From: Andrew Lyon <[3]andrew.lyon@gmail.com> > Subject: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem? > To: "xen-users List" <[4]xen-users@lists.xensource.com> > Date: Thursday, April 8, 2010, 2:39 PM > > On Thu, Apr 8, 2010 at 6:54 PM, Andrew Lyon <[5]andrew.lyon@gmail.com> > wrote: > > Hi, > > > > Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) > > forward ported dom0 kernel, Xen itself seems to boot up successfully > > and everything else on the system is working normally, but when I > try > > to start a domain xm create appears to hang and eventually I get a > > hotplug scripts error: > > > > Error: Device 2049 (vbd) could not be connected. > > /etc/xen/scripts/block failed; error detected. > > > > Which logs and other data would be helpful in diagnosing this > problem? > > > > Andy > > > > Does Xen 4.0 require blktap2? > > I''ve just checked the kernel config on this system and it is disabled: > > # CONFIG_XEN_BLKDEV_TAP2 is not set > > Andy > > _______________________________________________ > Xen-users mailing list > [6]Xen-users@lists.xensource.com > [7]http://lists.xensource.com/xen-users > > References > > Visible links > 1. mailto:bderzhavets@yahoo.com > 2. mailto:andrew.lyon@gmail.com > 3. mailto:andrew.lyon@gmail.com > 4. mailto:xen-users@lists.xensource.com > 5. http://mc/compose?to=andrew.lyon@gmail.com > 6. http://mc/compose?to=Xen-users@lists.xensource.com > 7. http://lists.xensource.com/xen-users> _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2010-Apr-08 21:14 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
I believe profile should look like memory=512 name=''Gentoo-32-test'' vif=[''bridge=eth(x)''] bootloader=''/usr/bin/pygrub'' disk=[''file:/mnt/tb1_store/Xen VMs/Gentoo-32/Gentoo-32.sda1,xvda,w'',''phy:/dev/test/test,xvdb ,w''] extra=''gentoo=nodevfs console=xvc0'' It''s PV domU , so xvda,xvda,..... Blktap driver is not important, no "tap:aio" Boris. Boris. --- On Thu, 4/8/10, Andrew Lyon <andrew.lyon@gmail.com> wrote: From: Andrew Lyon <andrew.lyon@gmail.com> Subject: Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem? To: "Boris Derzhavets" <bderzhavets@yahoo.com> Cc: "xen-users List" <xen-users@lists.xensource.com> Date: Thursday, April 8, 2010, 4:50 PM memory=512 name=''Gentoo-32-test'' vif=[''''] bootloader=''/usr/bin/pygrub'' disk=[''file:/mnt/tb1_store/Xen VMs/Gentoo-32/Gentoo-32.sda1,sda1,w'',''phy:/dev/test/test,sdb1,w''] extra=''gentoo=nodevfs console=xvc0'' On Thu, Apr 8, 2010 at 7:59 PM, Boris Derzhavets <bderzhavets@yahoo.com> wrote: Please, post your DomU''s profile. Boris. --- On Thu, 4/8/10, Andrew Lyon <andrew.lyon@gmail.com> wrote: From: Andrew Lyon <andrew.lyon@gmail.com> Subject: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem? To: "xen-users List" <xen-users@lists.xensource.com> Date: Thursday, April 8, 2010, 2:39 PM On Thu, Apr 8, 2010 at 6:54 PM, Andrew Lyon <andrew.lyon@gmail.com> wrote:> Hi, > > Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) > forward ported dom0 kernel, Xen itself seems to boot up successfully > and everything else on thesystem is working normally, but when I try> to start a domain xm create appears to hang and eventually I get a > hotplug scripts error: > > Error: Device 2049 (vbd) could not be connected. > /etc/xen/scripts/block failed; error detected.> > Which logs and other data would be helpful in diagnosing this problem? > > Andy >Does Xen 4.0 require blktap2? I''ve just checked the kernel config on this system and it is disabled: # CONFIG_XEN_BLKDEV_TAP2 is not set Andy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users -----Inline Attachment Follows----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Apr-08 21:20 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
On Thu, Apr 08, 2010 at 02:14:17PM -0700, Boris Derzhavets wrote:> I believe profile should look like > > memory=512 > name=''Gentoo-32-test'' > vif=[''bridge=eth(x)''] > bootloader=''/usr/bin/pygrub'' > disk=[''file:/mnt/tb1_store/Xen > VMs/Gentoo-32/Gentoo-32.sda1,xvda,w'',''phy:/dev/test/test,xvdb ,w''] > extra=''gentoo=nodevfs console=xvc0'' > > It''s PV domU , so xvda,xvda,..... > > Blktap driver is not important, no "tap:aio" >Also I think Xen 4.0.0 needs to have "disk = [ "tap:tapdisk:aio:/path/images/disk.img,xvda,w" ]" to use blktap2. I just created this: http://wiki.xensource.com/xenwiki/blktap2 -- Pasi> Boris. > > Boris. > > --- On Thu, 4/8/10, Andrew Lyon <andrew.lyon@gmail.com> wrote: > > From: Andrew Lyon <andrew.lyon@gmail.com> > Subject: Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem? > To: "Boris Derzhavets" <bderzhavets@yahoo.com> > Cc: "xen-users List" <xen-users@lists.xensource.com> > Date: Thursday, April 8, 2010, 4:50 PM > > memory=512 > name=''Gentoo-32-test'' > vif=[''''] > bootloader=''/usr/bin/pygrub'' > disk=[''file:/mnt/tb1_store/Xen > VMs/Gentoo-32/Gentoo-32.sda1,sda1,w'',''phy:/dev/test/test,sdb1,w''] > extra=''gentoo=nodevfs console=xvc0'' > > On Thu, Apr 8, 2010 at 7:59 PM, Boris Derzhavets > <[1]bderzhavets@yahoo.com> wrote: > > Please, post your DomU''s profile. > > Boris. > > --- On Thu, 4/8/10, Andrew Lyon <[2]andrew.lyon@gmail.com> wrote: > > From: Andrew Lyon <[3]andrew.lyon@gmail.com> > Subject: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem? > To: "xen-users List" <[4]xen-users@lists.xensource.com> > Date: Thursday, April 8, 2010, 2:39 PM > > On Thu, Apr 8, 2010 at 6:54 PM, Andrew Lyon > <[5]andrew.lyon@gmail.com> wrote: > > Hi, > > > > Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) > > forward ported dom0 kernel, Xen itself seems to boot up > successfully > > and everything else on the system is working normally, but when I > try > > to start a domain xm create appears to hang and eventually I get a > > hotplug scripts error: > > > > Error: Device 2049 (vbd) could not be connected. > > /etc/xen/scripts/block failed; error detected. > > > > Which logs and other data would be helpful in diagnosing this > problem? > > > > Andy > > > > Does Xen 4.0 require blktap2? > > I''ve just checked the kernel config on this system and it is > disabled: > > # CONFIG_XEN_BLKDEV_TAP2 is not set > > Andy > > _______________________________________________ > Xen-users mailing list > [6]Xen-users@lists.xensource.com > [7]http://lists.xensource.com/xen-users > > -----Inline Attachment Follows----- > > _______________________________________________ > Xen-users mailing list > [8]Xen-users@lists.xensource.com > [9]http://lists.xensource.com/xen-users > > References > > Visible links > 1. file:///mc/compose?to=bderzhavets@yahoo.com > 2. file:///mc/compose?to=andrew.lyon@gmail.com > 3. file:///mc/compose?to=andrew.lyon@gmail.com > 4. file:///mc/compose?to=xen-users@lists.xensource.com > 5. http://mc/compose?to=andrew.lyon@gmail.com > 6. http://mc/compose?to=Xen-users@lists.xensource.com > 7. http://lists.xensource.com/xen-users > 8. file:///mc/compose?to=Xen-users@lists.xensource.com > 9. http://lists.xensource.com/xen-users> _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Lyon
2010-Apr-09 07:45 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
On Thu, Apr 8, 2010 at 10:20 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Thu, Apr 08, 2010 at 02:14:17PM -0700, Boris Derzhavets wrote: >> I believe profile should look like >> >> memory=512 >> name=''Gentoo-32-test'' >> vif=[''bridge=eth(x)''] >> bootloader=''/usr/bin/pygrub'' >> disk=[''file:/mnt/tb1_store/Xen >> VMs/Gentoo-32/Gentoo-32.sda1,xvda,w'',''phy:/dev/test/test,xvdb ,w''] >> extra=''gentoo=nodevfs console=xvc0'' >> >> It''s PV domU , so xvda,xvda,..... >> >> Blktap driver is not important, no "tap:aio" >> > > Also I think Xen 4.0.0 needs to have "disk = [ "tap:tapdisk:aio:/path/images/disk.img,xvda,w" ]" to use blktap2.I tried that syntax but it does not work: name=''Gentoo-32-test'' vif=[''bridge=eth0''] bootloader=''/usr/bin/pygrub'' disk=[ "tap:tapdisk:aio:/mnt/tb1_store/Xen VMs/Gentoo-32/Gentoo-32.sda1,xvda,w"] extra=''gentoo=nodevfs console=xvc0'' 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'' I changed the config back to file:/ and tried again, the xm create process seemed to hang and the block script was stuck: root 14152 0.0 0.0 17596 1572 ? S< 08:43 0:00 /bin/bash /etc/xen/scripts/block add eventually it errors Error: 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 Andy> > I just created this: http://wiki.xensource.com/xenwiki/blktap2 > > -- Pasi > >> Boris. >> >> Boris. >> >> --- On Thu, 4/8/10, Andrew Lyon <andrew.lyon@gmail.com> wrote: >> >> From: Andrew Lyon <andrew.lyon@gmail.com> >> Subject: Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem? >> To: "Boris Derzhavets" <bderzhavets@yahoo.com> >> Cc: "xen-users List" <xen-users@lists.xensource.com> >> Date: Thursday, April 8, 2010, 4:50 PM >> >> memory=512 >> name=''Gentoo-32-test'' >> vif=[''''] >> bootloader=''/usr/bin/pygrub'' >> disk=[''file:/mnt/tb1_store/Xen >> VMs/Gentoo-32/Gentoo-32.sda1,sda1,w'',''phy:/dev/test/test,sdb1,w''] >> extra=''gentoo=nodevfs console=xvc0'' >> >> On Thu, Apr 8, 2010 at 7:59 PM, Boris Derzhavets >> <[1]bderzhavets@yahoo.com> wrote: >> >> Please, post your DomU''s profile. >> >> Boris. >> >> --- On Thu, 4/8/10, Andrew Lyon <[2]andrew.lyon@gmail.com> wrote: >> >> From: Andrew Lyon <[3]andrew.lyon@gmail.com> >> Subject: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem? >> To: "xen-users List" <[4]xen-users@lists.xensource.com> >> Date: Thursday, April 8, 2010, 2:39 PM >> >> On Thu, Apr 8, 2010 at 6:54 PM, Andrew Lyon >> <[5]andrew.lyon@gmail.com> wrote: >> > Hi, >> > >> > Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31) >> > forward ported dom0 kernel, Xen itself seems to boot up >> successfully >> > and everything else on the system is working normally, but when I >> try >> > to start a domain xm create appears to hang and eventually I get a >> > hotplug scripts error: >> > >> > Error: Device 2049 (vbd) could not be connected. >> > /etc/xen/scripts/block failed; error detected. >> > >> > Which logs and other data would be helpful in diagnosing this >> problem? >> > >> > Andy >> > >> >> Does Xen 4.0 require blktap2? >> >> I''ve just checked the kernel config on this system and it is >> disabled: >> >> # CONFIG_XEN_BLKDEV_TAP2 is not set >> >> Andy >> >> _______________________________________________ >> Xen-users mailing list >> [6]Xen-users@lists.xensource.com >> [7]http://lists.xensource.com/xen-users >> >> -----Inline Attachment Follows----- >> >> _______________________________________________ >> Xen-users mailing list >> [8]Xen-users@lists.xensource.com >> [9]http://lists.xensource.com/xen-users >> >> References >> >> Visible links >> 1. file:///mc/compose?to=bderzhavets@yahoo.com >> 2. file:///mc/compose?to=andrew.lyon@gmail.com >> 3. file:///mc/compose?to=andrew.lyon@gmail.com >> 4. file:///mc/compose?to=xen-users@lists.xensource.com >> 5. http://mc/compose?to=andrew.lyon@gmail.com >> 6. http://mc/compose?to=Xen-users@lists.xensource.com >> 7. http://lists.xensource.com/xen-users >> 8. file:///mc/compose?to=Xen-users@lists.xensource.com >> 9. http://lists.xensource.com/xen-users > >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Apr-09 08:10 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
On Fri, Apr 09, 2010 at 08:45:44AM +0100, Andrew Lyon wrote:> On Thu, Apr 8, 2010 at 10:20 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > > On Thu, Apr 08, 2010 at 02:14:17PM -0700, Boris Derzhavets wrote: > >> I believe profile should look like > >> > >> memory=512 > >> name=''Gentoo-32-test'' > >> vif=[''bridge=eth(x)''] > >> bootloader=''/usr/bin/pygrub'' > >> disk=[''file:/mnt/tb1_store/Xen > >> VMs/Gentoo-32/Gentoo-32.sda1,xvda,w'',''phy:/dev/test/test,xvdb ,w''] > >> extra=''gentoo=nodevfs console=xvc0'' > >> > >> It''s PV domU , so xvda,xvda,..... > >> > >> Blktap driver is not important, no "tap:aio" > >> > > > > Also I think Xen 4.0.0 needs to have "disk = [ "tap:tapdisk:aio:/path/images/disk.img,xvda,w" ]" to use blktap2. > > I tried that syntax but it does not work: > > name=''Gentoo-32-test'' > vif=[''bridge=eth0''] > bootloader=''/usr/bin/pygrub'' > disk=[ "tap:tapdisk:aio:/mnt/tb1_store/Xen VMs/Gentoo-32/Gentoo-32.sda1,xvda,w"] > extra=''gentoo=nodevfs console=xvc0'' > > 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 latest blktap2 README here: http://lxr.xensource.com/lxr/source/tools/blktap2/README> I changed the config back to file:/ and tried again, the xm create > process seemed to hang and the block script was stuck: >Ok, so you have some general problem, not really blktap2 related..> > root 14152 0.0 0.0 17596 1572 ? S< 08:43 0:00 > /bin/bash /etc/xen/scripts/block add > > eventually it errors Error: 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 completely/properly installed.. Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Lyon
2010-Apr-09 08:15 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
On Fri, Apr 9, 2010 at 9:10 AM, Pasi Kärkkäinen <pasik@iki.fi> 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ärkkäinen <pasik@iki.fi> wrote: >> > On Thu, Apr 08, 2010 at 02:14:17PM -0700, Boris Derzhavets wrote: >> >> I believe profile should look like >> >> >> >> memory=512 >> >> name=''Gentoo-32-test'' >> >> vif=[''bridge=eth(x)''] >> >> bootloader=''/usr/bin/pygrub'' >> >> disk=[''file:/mnt/tb1_store/Xen >> >> VMs/Gentoo-32/Gentoo-32.sda1,xvda,w'',''phy:/dev/test/test,xvdb ,w''] >> >> extra=''gentoo=nodevfs console=xvc0'' >> >> >> >> It''s PV domU , so xvda,xvda,..... >> >> >> >> Blktap driver is not important, no "tap:aio" >> >> >> > >> > Also I think Xen 4.0.0 needs to have "disk = [ "tap:tapdisk:aio:/path/images/disk.img,xvda,w" ]" to use blktap2. >> >> I tried that syntax but it does not work: >> >> name=''Gentoo-32-test'' >> vif=[''bridge=eth0''] >> bootloader=''/usr/bin/pygrub'' >> disk=[ "tap:tapdisk:aio:/mnt/tb1_store/Xen VMs/Gentoo-32/Gentoo-32.sda1,xvda,w"] >> extra=''gentoo=nodevfs console=xvc0'' >> >> 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 latest blktap2 README here: > http://lxr.xensource.com/lxr/source/tools/blktap2/README > >> I changed the config back to file:/ and tried again, the xm create >> process seemed to hang and the block script was stuck: >> > > Ok, so you have some general problem, not really blktap2 related.. > >> >> root 14152 0.0 0.0 17596 1572 ? S< 08:43 0:00 >> /bin/bash /etc/xen/scripts/block add >> >> eventually it errors Error: 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 completely/properly installed..I will try removing Xen first, including all of /etc/xen/ Andy> > Pasi > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Lyon
2010-Apr-09 08:16 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
On Fri, Apr 9, 2010 at 9:15 AM, Andrew Lyon <andrew.lyon@gmail.com> wrote:> On Fri, Apr 9, 2010 at 9:10 AM, Pasi Kärkkäinen <pasik@iki.fi> 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ärkkäinen <pasik@iki.fi> wrote: >>> > On Thu, Apr 08, 2010 at 02:14:17PM -0700, Boris Derzhavets wrote: >>> >> I believe profile should look like >>> >> >>> >> memory=512 >>> >> name=''Gentoo-32-test'' >>> >> vif=[''bridge=eth(x)''] >>> >> bootloader=''/usr/bin/pygrub'' >>> >> disk=[''file:/mnt/tb1_store/Xen >>> >> VMs/Gentoo-32/Gentoo-32.sda1,xvda,w'',''phy:/dev/test/test,xvdb ,w''] >>> >> extra=''gentoo=nodevfs console=xvc0'' >>> >> >>> >> It''s PV domU , so xvda,xvda,..... >>> >> >>> >> Blktap driver is not important, no "tap:aio" >>> >> >>> > >>> > Also I think Xen 4.0.0 needs to have "disk = [ "tap:tapdisk:aio:/path/images/disk.img,xvda,w" ]" to use blktap2. >>> >>> I tried that syntax but it does not work: >>> >>> name=''Gentoo-32-test'' >>> vif=[''bridge=eth0''] >>> bootloader=''/usr/bin/pygrub'' >>> disk=[ "tap:tapdisk:aio:/mnt/tb1_store/Xen VMs/Gentoo-32/Gentoo-32.sda1,xvda,w"] >>> extra=''gentoo=nodevfs console=xvc0'' >>> >>> 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 latest blktap2 README here: >> http://lxr.xensource.com/lxr/source/tools/blktap2/README >> >>> I changed the config back to file:/ and tried again, the xm create >>> process seemed to hang and the block script was stuck: >>> >> >> Ok, so you have some general problem, not really blktap2 related.. >> >>> >>> root 14152 0.0 0.0 17596 1572 ? S< 08:43 0:00 >>> /bin/bash /etc/xen/scripts/block add >>> >>> eventually it errors Error: 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 completely/properly installed.. > > I will try removing Xen first, including all of /etc/xen/Could you give me a listing of all of the files in /etc/xen/ on your 4.0 system?> > Andy > >> >> Pasi >> >> >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Lyon
2010-Apr-09 08:21 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
On Fri, Apr 9, 2010 at 9:15 AM, Andrew Lyon <andrew.lyon@gmail.com> wrote:> On Fri, Apr 9, 2010 at 9:10 AM, Pasi Kärkkäinen <pasik@iki.fi> 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ärkkäinen <pasik@iki.fi> wrote: >>> > On Thu, Apr 08, 2010 at 02:14:17PM -0700, Boris Derzhavets wrote: >>> >> I believe profile should look like >>> >> >>> >> memory=512 >>> >> name=''Gentoo-32-test'' >>> >> vif=[''bridge=eth(x)''] >>> >> bootloader=''/usr/bin/pygrub'' >>> >> disk=[''file:/mnt/tb1_store/Xen >>> >> VMs/Gentoo-32/Gentoo-32.sda1,xvda,w'',''phy:/dev/test/test,xvdb ,w''] >>> >> extra=''gentoo=nodevfs console=xvc0'' >>> >> >>> >> It''s PV domU , so xvda,xvda,..... >>> >> >>> >> Blktap driver is not important, no "tap:aio" >>> >> >>> > >>> > Also I think Xen 4.0.0 needs to have "disk = [ "tap:tapdisk:aio:/path/images/disk.img,xvda,w" ]" to use blktap2. >>> >>> I tried that syntax but it does not work: >>> >>> name=''Gentoo-32-test'' >>> vif=[''bridge=eth0''] >>> bootloader=''/usr/bin/pygrub'' >>> disk=[ "tap:tapdisk:aio:/mnt/tb1_store/Xen VMs/Gentoo-32/Gentoo-32.sda1,xvda,w"] >>> extra=''gentoo=nodevfs console=xvc0'' >>> >>> 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 latest blktap2 README here: >> http://lxr.xensource.com/lxr/source/tools/blktap2/README >> >>> I changed the config back to file:/ and tried again, the xm create >>> process seemed to hang and the block script was stuck: >>> >> >> Ok, so you have some general problem, not really blktap2 related.. >> >>> >>> root 14152 0.0 0.0 17596 1572 ? S< 08:43 0:00 >>> /bin/bash /etc/xen/scripts/block add >>> >>> eventually it errors Error: 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 completely/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 cannot compile 4.0: Wl,-O1 -L../../tools/libxc -lxenctrl -L../../tools/libxc -lxenctrl -o libvhd.so.1.0.0 -luuid libvhd.o libvhd-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/tools/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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Lyon
2010-Apr-09 10:28 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
On Fri, Apr 9, 2010 at 9:21 AM, Andrew Lyon <andrew.lyon@gmail.com> wrote:> On Fri, Apr 9, 2010 at 9:15 AM, Andrew Lyon <andrew.lyon@gmail.com> wrote: >> On Fri, Apr 9, 2010 at 9:10 AM, Pasi Kärkkäinen <pasik@iki.fi> 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ärkkäinen <pasik@iki.fi> wrote: >>>> > On Thu, Apr 08, 2010 at 02:14:17PM -0700, Boris Derzhavets wrote: >>>> >> I believe profile should look like >>>> >> >>>> >> memory=512 >>>> >> name=''Gentoo-32-test'' >>>> >> vif=[''bridge=eth(x)''] >>>> >> bootloader=''/usr/bin/pygrub'' >>>> >> disk=[''file:/mnt/tb1_store/Xen >>>> >> VMs/Gentoo-32/Gentoo-32.sda1,xvda,w'',''phy:/dev/test/test,xvdb ,w''] >>>> >> extra=''gentoo=nodevfs console=xvc0'' >>>> >> >>>> >> It''s PV domU , so xvda,xvda,..... >>>> >> >>>> >> Blktap driver is not important, no "tap:aio" >>>> >> >>>> > >>>> > Also I think Xen 4.0.0 needs to have "disk = [ "tap:tapdisk:aio:/path/images/disk.img,xvda,w" ]" to use blktap2. >>>> >>>> I tried that syntax but it does not work: >>>> >>>> name=''Gentoo-32-test'' >>>> vif=[''bridge=eth0''] >>>> bootloader=''/usr/bin/pygrub'' >>>> disk=[ "tap:tapdisk:aio:/mnt/tb1_store/Xen VMs/Gentoo-32/Gentoo-32.sda1,xvda,w"] >>>> extra=''gentoo=nodevfs console=xvc0'' >>>> >>>> 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 latest blktap2 README here: >>> http://lxr.xensource.com/lxr/source/tools/blktap2/README >>> >>>> I changed the config back to file:/ and tried again, the xm create >>>> process seemed to hang and the block script was stuck: >>>> >>> >>> Ok, so you have some general problem, not really blktap2 related.. >>> >>>> >>>> root 14152 0.0 0.0 17596 1572 ? S< 08:43 0:00 >>>> /bin/bash /etc/xen/scripts/block add >>>> >>>> eventually it errors Error: 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 completely/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 cannot > compile 4.0: > > Wl,-O1 -L../../tools/libxc -lxenctrl -L../../tools/libxc > -lxenctrl -o libvhd.so.1.0.0 -luuid libvhd.o libvhd-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/tools/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 >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. I struggled to find any errors relating to domain creation, but the hotplug cleanup scripts do log some errors: /etc/xen/scripts/xen-hotplug-cleanup: line 25: [: !=: unary operator 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 The path was "/mnt/tb1_store/Xen VMs/WinXP/WinXP.hda" and worked fine with 3.4.2 andy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Apr-09 10:33 UTC
[Xen-devel] Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem? broken with filenames with spaces
On Fri, Apr 09, 2010 at 11:28:51AM +0100, Andrew Lyon wrote:> On Fri, Apr 9, 2010 at 9:21 AM, Andrew Lyon <andrew.lyon@gmail.com> wrote: > > On Fri, Apr 9, 2010 at 9:15 AM, Andrew Lyon <andrew.lyon@gmail.com> wrote: > >> On Fri, Apr 9, 2010 at 9:10 AM, Pasi Kärkkäinen <pasik@iki.fi> 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ärkkäinen <pasik@iki.fi> wrote: > >>>> > On Thu, Apr 08, 2010 at 02:14:17PM -0700, Boris Derzhavets wrote: > >>>> >> I believe profile should look like > >>>> >> > >>>> >> memory=512 > >>>> >> name=''Gentoo-32-test'' > >>>> >> vif=[''bridge=eth(x)''] > >>>> >> bootloader=''/usr/bin/pygrub'' > >>>> >> disk=[''file:/mnt/tb1_store/Xen > >>>> >> VMs/Gentoo-32/Gentoo-32.sda1,xvda,w'',''phy:/dev/test/test,xvdb ,w''] > >>>> >> extra=''gentoo=nodevfs console=xvc0'' > >>>> >> > >>>> >> It''s PV domU , so xvda,xvda,..... > >>>> >> > >>>> >> Blktap driver is not important, no "tap:aio" > >>>> >> > >>>> > > >>>> > Also I think Xen 4.0.0 needs to have "disk = [ "tap:tapdisk:aio:/path/images/disk.img,xvda,w" ]" to use blktap2. > >>>> > >>>> I tried that syntax but it does not work: > >>>> > >>>> name=''Gentoo-32-test'' > >>>> vif=[''bridge=eth0''] > >>>> bootloader=''/usr/bin/pygrub'' > >>>> disk=[ "tap:tapdisk:aio:/mnt/tb1_store/Xen VMs/Gentoo-32/Gentoo-32.sda1,xvda,w"] > >>>> extra=''gentoo=nodevfs console=xvc0'' > >>>> > >>>> 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 latest blktap2 README here: > >>> http://lxr.xensource.com/lxr/source/tools/blktap2/README > >>> > >>>> I changed the config back to file:/ and tried again, the xm create > >>>> process seemed to hang and the block script was stuck: > >>>> > >>> > >>> Ok, so you have some general problem, not really blktap2 related.. > >>> > >>>> > >>>> root 14152 0.0 0.0 17596 1572 ? S< 08:43 0:00 > >>>> /bin/bash /etc/xen/scripts/block add > >>>> > >>>> eventually it errors Error: 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 completely/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 cannot > > compile 4.0: > > > > Wl,-O1 -L../../tools/libxc -lxenctrl -L../../tools/libxc > > -lxenctrl -o libvhd.so.1.0.0 -luuid libvhd.o libvhd-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/tools/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 > > > > 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. > > I struggled to find any errors relating to domain creation, but the > hotplug cleanup scripts do log some errors: > > /etc/xen/scripts/xen-hotplug-cleanup: line 25: [: !=: unary operator 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 > > The path was "/mnt/tb1_store/Xen VMs/WinXP/WinXP.hda" and worked fine with 3.4.2 >Thanks for looking into that. I added xen-devel to CC.. maybe this rings some bells for someone. -- Pasi _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Boris Derzhavets
2010-Apr-09 11:44 UTC
Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
Does this profile work ? memory=512 name=''Gentoo-32-test'' vif=[''bridge=eth(x)''] bootloader=''/usr/bin/pygrub'' disk=[''file:/mnt/tb1_store/Xen VMs/Gentoo-32/Gentoo-32.sda1,xvda,w'',''phy:/dev/test/test,xvdb ,w''] extra=''gentoo=nodevfs console=xvc0'' Boris. --- On Fri, 4/9/10, Andrew Lyon <andrew.lyon@gmail.com> wrote: From: Andrew Lyon <andrew.lyon@gmail.com> Subject: Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem? To: "Pasi Kärkkäinen" <pasik@iki.fi> Cc: "Boris Derzhavets" <bderzhavets@yahoo.com>, "xen-users List" <xen-users@lists.xensource.com> Date: Friday, April 9, 2010, 4:21 AM On Fri, Apr 9, 2010 at 9:15 AM, Andrew Lyon <andrew.lyon@gmail.com> wrote:> On Fri, Apr 9, 2010 at 9:10 AM, Pasi Kärkkäinen <pasik@iki.fi> 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ärkkäinen <pasik@iki.fi> wrote: >>> > On Thu, Apr 08, 2010 at 02:14:17PM -0700, Boris Derzhavets wrote: >>> >> I believe profile should look like >>> >> >>> >> memory=512 >>> >> name=''Gentoo-32-test'' >>> >> vif=[''bridge=eth(x)''] >>> >> bootloader=''/usr/bin/pygrub'' >>> >> disk=[''file:/mnt/tb1_store/Xen >>> >> VMs/Gentoo-32/Gentoo-32.sda1,xvda,w'',''phy:/dev/test/test,xvdb ,w''] >>> >> extra=''gentoo=nodevfs console=xvc0'' >>> >> >>> >> It''s PV domU , so xvda,xvda,..... >>> >> >>> >> Blktap driver is not important, no "tap:aio" >>> >> >>> > >>> > Also I think Xen 4.0.0 needs to have "disk = [ "tap:tapdisk:aio:/path/images/disk.img,xvda,w" ]" to use blktap2. >>> >>> I tried that syntax but it does not work: >>> >>> name=''Gentoo-32-test'' >>> vif=[''bridge=eth0''] >>> bootloader=''/usr/bin/pygrub'' >>> disk=[ "tap:tapdisk:aio:/mnt/tb1_store/Xen VMs/Gentoo-32/Gentoo-32.sda1,xvda,w"] >>> extra=''gentoo=nodevfs console=xvc0'' >>> >>> 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 latest blktap2 README here: >> http://lxr.xensource.com/lxr/source/tools/blktap2/README >> >>> I changed the config back to file:/ and tried again, the xm create >>> process seemed to hang and the block script was stuck: >>> >> >> Ok, so you have some general problem, not really blktap2 related.. >> >>> >>> root 14152 0.0 0.0 17596 1572 ? S< 08:43 0:00 >>> /bin/bash /etc/xen/scripts/block add >>> >>> eventually it errors Error: 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 completely/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 cannot compile 4.0: Wl,-O1 -L../../tools/libxc -lxenctrl -L../../tools/libxc -lxenctrl -o libvhd.so.1.0.0 -luuid libvhd.o libvhd-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/tools/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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Jun-19 13:21 UTC
Re: [Xen-devel] Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem? broken with filenames with spaces
On Fri, Apr 09, 2010 at 01:33:30PM +0300, Pasi Kärkkäinen 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 <andrew.lyon@gmail.com> wrote: > > > On Fri, Apr 9, 2010 at 9:15 AM, Andrew Lyon <andrew.lyon@gmail.com> wrote: > > >> On Fri, Apr 9, 2010 at 9:10 AM, Pasi Kärkkäinen <pasik@iki.fi> 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ärkkäinen <pasik@iki.fi> wrote: > > >>>> > On Thu, Apr 08, 2010 at 02:14:17PM -0700, Boris Derzhavets wrote: > > >>>> >> I believe profile should look like > > >>>> >> > > >>>> >> memory=512 > > >>>> >> name=''Gentoo-32-test'' > > >>>> >> vif=[''bridge=eth(x)''] > > >>>> >> bootloader=''/usr/bin/pygrub'' > > >>>> >> disk=[''file:/mnt/tb1_store/Xen > > >>>> >> VMs/Gentoo-32/Gentoo-32.sda1,xvda,w'',''phy:/dev/test/test,xvdb ,w''] > > >>>> >> extra=''gentoo=nodevfs console=xvc0'' > > >>>> >> > > >>>> >> It''s PV domU , so xvda,xvda,..... > > >>>> >> > > >>>> >> Blktap driver is not important, no "tap:aio" > > >>>> >> > > >>>> > > > >>>> > Also I think Xen 4.0.0 needs to have "disk = [ "tap:tapdisk:aio:/path/images/disk.img,xvda,w" ]" to use blktap2. > > >>>> > > >>>> I tried that syntax but it does not work: > > >>>> > > >>>> name=''Gentoo-32-test'' > > >>>> vif=[''bridge=eth0''] > > >>>> bootloader=''/usr/bin/pygrub'' > > >>>> disk=[ "tap:tapdisk:aio:/mnt/tb1_store/Xen VMs/Gentoo-32/Gentoo-32.sda1,xvda,w"] > > >>>> extra=''gentoo=nodevfs console=xvc0'' > > >>>> > > >>>> 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 latest blktap2 README here: > > >>> http://lxr.xensource.com/lxr/source/tools/blktap2/README > > >>> > > >>>> I changed the config back to file:/ and tried again, the xm create > > >>>> process seemed to hang and the block script was stuck: > > >>>> > > >>> > > >>> Ok, so you have some general problem, not really blktap2 related.. > > >>> > > >>>> > > >>>> root 14152 0.0 0.0 17596 1572 ? S< 08:43 0:00 > > >>>> /bin/bash /etc/xen/scripts/block add > > >>>> > > >>>> eventually it errors Error: 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 completely/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 cannot > > > compile 4.0: > > > > > > Wl,-O1 -L../../tools/libxc -lxenctrl -L../../tools/libxc > > > -lxenctrl -o libvhd.so.1.0.0 -luuid libvhd.o libvhd-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/tools/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 > > > > > > > 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. > > > > I struggled to find any errors relating to domain creation, but the > > hotplug cleanup scripts do log some errors: > > > > /etc/xen/scripts/xen-hotplug-cleanup: line 25: [: !=: unary operator 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 > > > > The path was "/mnt/tb1_store/Xen VMs/WinXP/WinXP.hda" and worked fine with 3.4.2 > > > > Thanks for looking into that. > I added xen-devel to CC.. maybe this rings some bells for someone. >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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Reasonably Related Threads
- Xen 4.0 on gentoo hotplug scripts problem?
- [PATCH] blktap2: fix makefile of vhd for parallel make
- [PATCH 00 of 18] [v2] tools: fix bugs and build errors triggered by -O2 -Wall -Werror
- BLKTAPCTRL[2375]: blktapctrl_linux.c:86: blktap0 open failed
- [PATCH] vhd-util create: add -C|nocow option