Re: [Vserver] CIFS-mounts in vserver guests: solved

From: Wilhelm Meier <wilhelm.meier_at_fh-kl.de>
Date: Tue 03 Apr 2007 - 19:21:12 BST
Message-Id: <200704032021.12705.wilhelm.meier@fh-kl.de>

Am Dienstag, 3. April 2007 schrieb Roderick A. Anderson:
> Wilhelm Meier wrote:
> > Am Montag, 2. April 2007 schrieb Wilhelm Meier:
> >> after our conversion I got the quick cifs hack running (using a special
> >> CLONE-flag for the cifs-thread).
> >>
> >> The I got this patch, which changes the api to kthread_run. But, the
> >> problem remains. I still got this error in dmesg:
> >
> > I've to correct myself!
> > I had a configuration flaw ... if the patch is in place, it works as
> > expected. CIFS-shares can be mounted inside the guests.
>
> Wilhelm,
>
> Would you be willing to put some instructions together on what it takes
> to do this?

Ok., get the patch from the list and apply it
to /usr/src/linux-vserver/fs/cifs/connect.c (or whatever you kernel source
path is).

Recompile the kernel and/or modules (if cifs is a module). be sure to load the
newly compiled module ;-)

Boot the host into the new kernel or just un/load the cifs module.

Set the ccaps of a guest to binary_mount and secure_mount.

Restart the guest.

Enter the guest and do a

mount.cifs '\\windowsserver\share' /mnt/test -o
user=windowsusername,pass=password

inside the guest.

That's all.
Now you can use cifs-mounts inside a guest (like nfs-mounts).

-- 
Wilhelm Meier
email: wilhelm.meier@fh-kl.de
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Apr 3 20:03:04 2007
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 03 Apr 2007 - 20:03:07 BST by hypermail 2.1.8