WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

AW: [Xen-users] Overcoming loopback device limitation - revisited

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: AW: [Xen-users] Overcoming loopback device limitation - revisited
From: "Mathias Diehl" <md@xxxxxxxxxxxxx>
Date: Sun, 30 Jul 2006 23:29:42 +0200
Delivery-date: Sun, 30 Jul 2006 14:30:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <4170c1720607301330g61a2e5e7vf46a7e49de09d756@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi John,

actually I'm not sure about your problem - but here's what I did:

C=8; echo; echo "Creating loop device nodes."; \
   while [ $C -lt 256 ]; do mknod /dev/loop$C b 7 $C; \
   echo -n .; C=`expr $C + 1`; done; echo;

As yo see permissions do not appear. You create your file's to store the
VM's, give them a filesystem and fire them up.

cheers,

Mathias


___
www.evoconcept.de


-----Ursprüngliche Nachricht-----
Von: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx]Im Auftrag von john
maclean
Gesendet: Sonntag, 30. Juli 2006 22:31
An: xen-users@xxxxxxxxxxxxxxxxxxx
Betreff: [Xen-users] Overcoming loopback device limitation - revisited


Hi there chaps,

Just to get me up and running I ran `make world && make install` from
source. All went well until I started running out of loopback devices
to create guests. I know of the 8 devices limitation and I'm sure that
the loop "module" is built into the kernel;

 modinfo loop
 filename:       /lib/modules/2.6.16-xen/kernel/drivers/block/loop.ko
 license:        GPL
 alias:          block-major-7-*
 vermagic:       2.6.16-xen SMP 686 gcc-3.3
 depends:
 parm:           max_loop:Maximum number of loop devices (1-256) (int)

OK, that number is more than enough for me. This is a laptop and I'd
want to manage about 12. So I use this boot time parameter even though
I know/think that it's a built in:-

 cat /proc/cmdline
 root=/dev/hda3 ro console=tty0 max_loop=32

To create some more loop back devices I ran the following:-

 for X in $(seq 8 31); do mknod ;  MAKEDEV /dev/loop$X  b 7 $i ; chmod
660 /dev/loop$X; chown 0.disk /dev/loop$X;  done

Now I can only seem to have just one domU running!

#acid~#  xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0      512     1 r-----   108.4
vm01                               1       64     1 ------     0.3

acid:~# xm create vm00 -c /etc/xen/vm00
Using config file "/etc/xen/vm00".
Error: Device 769 (vbd) could not be connected. Backend device not found.

I have a few simple-ish questions that I'd a appreciate some answers for;
 - What is the file system that creates loopback devices a required,
on the fly?
 - How do I know if I have this?
 - Did I give the newly created devices the wrong permissons?
 - Why does it appear that all of the /dev/loop devices bar one are
"blocked"?
 - Do I have to do some /etc/udev mojo?

version:- xen-3.0.2-2
arch:- debian sarge
me:- very stuck ;)
--
John Maclean  - 07739 171 531
MSc (DIC)

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users