I have Xen 3.0.2 running on Debian Unstable with a straightforward setup, mainly based on this howto http://www.debian-administration.org/articles/396. When I have restarted dom0, I get this error, when I start a domU with xm create -c vm.cfg Error: Device 769 (vbd) could not be connected. Backend device not found. Google have pointed me to this solution: http://lists.xensource.com/archives/html/xen-users/2006-01/msg01302.html That is, on the dom0-console I enter mknod /dev/loop8 b 7 8 losetup /dev/loop8 to be able to start my domU''s. How can I get this done by the system itself (something in the xend-init-file might be a workaround) ? -- Morten Christensen Denmark _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, May 23, 2006 at 06:02:23PM +0200, Morten Christensen wrote:> I have Xen 3.0.2 running on Debian Unstable with a straightforward > setup, mainly based on this howto > http://www.debian-administration.org/articles/396.:)> Google have pointed me to this solution: > http://lists.xensource.com/archives/html/xen-users/2006-01/msg01302.html > > That is, on the dom0-console I enter > mknod /dev/loop8 b 7 8 > losetup /dev/loop8 > > to be able to start my domU''s. > > How can I get this done by the system itself (something in the > xend-init-file might be a workaround) ?You shouldn''t need to. The mknod will persist assuming you''re running a static /dev, and if you''re using a dynamic one you should have the correct devices created when you load the loop module. One think you should do is add the following to /etc/modprobe.d/loop options loop max_loop=255 This will allow you to have a lot of devices when loading the loop module, rather than the default of 8. See here for a quick writeup: http://www.steve.org.uk/Software/xen-tools/loopback.html Steve -- http://www.steve.org.uk/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Steve Kemp skrev den 23-05-2006 18:06:> On Tue, May 23, 2006 at 06:02:23PM +0200, Morten Christensen wrote: > >> I have Xen 3.0.2 running on Debian Unstable with a straightforward >> setup, mainly based on this howto >> http://www.debian-administration.org/articles/396. >> > > :) > > >> Google have pointed me to this solution: >> http://lists.xensource.com/archives/html/xen-users/2006-01/msg01302.html >> >> That is, on the dom0-console I enter >> mknod /dev/loop8 b 7 8 >> losetup /dev/loop8 >> >> to be able to start my domU''s. >> >> How can I get this done by the system itself (something in the >> xend-init-file might be a workaround) ? >> > > You shouldn''t need to. > > The mknod will persist assuming you''re running a static /dev, and > if you''re using a dynamic one you should have the correct devices > created when you load the loop module. > > One think you should do is add the following to /etc/modprobe.d/loop > > options loop max_loop=255 > > This will allow you to have a lot of devices when loading the loop > module, rather than the default of 8. > > See here for a quick writeup: > > http://www.steve.org.uk/Software/xen-tools/loopback.html > > Steve >Thank you for your help and work. I have followed both steps in the writeup. Unfortunately the loop-files in /dev does not survive a reboot. Now I have put the mknod-line from your writeup in the start of /etc/init.d/xend and then it works. -- Morten Christensen _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users