[uml-user] sharing filesystem between UML's (ocfs2?)

2007-08-17 Thread Benedict Verheyen
Hi,


i moved my vservers to UML but in the process, i ran into a problem.
I need to access the /home partition from several uml's.

I first thought of using hostfs and leaving /home on the host machine.
This for instance resulted in saving emails from a user with root rights.
Anyway, to solve this, i thought of making file to share between the 
umls and putting all data from /home in there.

I found out about ocfs2 and it seems this would allow just that.
I've set up etc/ocfs2/cluster.conf/, with the host and 2 guests as node.
The host too because i want /home to be in the file (home_fs) and not
anywhere else.

I'm however not sure this is the correct way to proceed and how and what 
  components i need from ocfs2. I installed the tools and as i said, i 
made the cluster.conf file, copied it to the 2 uml's.

The ocfs2 services are started but when i want to mount it (to first 
copy /home over), i get this error:
# mount -t ocfs2 /storage1/vm/home_fs /mnt/debinst
ocfs2_hb_ctl: The block size is smaller than the sector size on this 
device while reading uuid
mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation 
not permitted"

I formated the file like this:
mkfs.ocfs2 -b 4k -C 32K -L "ocs" -N 4 home_fs

I know that afterwards i need to specify it at start up with an added c:
... ubd2c=home_fs ...

What am i missing ?
Is there any specific documentation to getting this to work with UML or 
another way i can share parts between UML's?

Regards,
Benedict


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] network eth0/tap0 problem

2007-08-17 Thread Brock, Anthony - NET
> -Original Message-
> If i try to bring up the eth0/tap0 device with ifup eth0
> i get the message: modprobe QM_MODULES: Function not implemented
> What i need to do that the system is not trying to load the module ?

Christian,

Typically this message means your guest doesn't have the correct
utilities to load modules. The solution will depend on your
distribution. However, a quick search of the list archives show that
this has been addressed before:

http://www.mail-archive.com/user-mode-linux-user@lists.sourceforge.net/m
sg03927.html

Try installing the utilities and then see if you're still having
problems. Also, if you are still having problems, we'll need a lot more
information about how your trying to setup the tun device (transcripts
of commands with output) before we can offer suggestions.

Tony

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] sharing filesystem between UML's (ocfs2?)

2007-08-17 Thread Jeff Dike
On Fri, Aug 17, 2007 at 03:24:59PM +0200, Benedict Verheyen wrote:
> I first thought of using hostfs and leaving /home on the host machine.
> This for instance resulted in saving emails from a user with root rights.
> Anyway, to solve this, i thought of making file to share between the 
> umls and putting all data from /home in there.

hostfs should work in this case.  If you have a UML running as user,
importing the host's /home/user, the permissions should be OK.

The one odd thing, which shouldn't hurt, is that if the user inside
UML is root, and saves files, they will be owned by user, not root.

> I found out about ocfs2 and it seems this would allow just that.
> I've set up etc/ocfs2/cluster.conf/, with the host and 2 guests as node.
> The host too because i want /home to be in the file (home_fs) and not
> anywhere else.

ocfs2 should work, but setting up a cluster is overkill for what you
want.

Jeff

-- 
Work email - jdike at linux dot intel dot com

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] sharing filesystem between UML's (ocfs2?)

2007-08-17 Thread Benedict Verheyen
Jeff Dike schreef:


Thanks for your answers Jeff.

> hostfs should work in this case.  If you have a UML running as user,
> importing the host's /home/user, the permissions should be OK.

OK, but if want to import all of /home and not just /home/usr.
Is hostfs still usable in this case?
Because then the other users homes would also have the permissions of the user 
running the UML?

> The one odd thing, which shouldn't hurt, is that if the user inside
> UML is root, and saves files, they will be owned by user, not root.

Indeed, that wouldn't be bad.


> ocfs2 should work, but setting up a cluster is overkill for what you
> want.

But it's probably the only way to share a device file between UML's or are 
there other technologies that do allow that and maybe at less overkill?

Thans,
Benedict


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user