John A. Sullivan III
2005-May-10 03:43 UTC
[Xen-users] Installing NFS server on unprivileged domain
I have been delighted with my experiences with Xen thus far but have stumbled on a bit of a problem. We have a virtual machine we would like to use for Linux Terminal Services. This requires NFS server. I have not been able to make this work using Xen 2.0.5 and the 2.6.10 kernels. In order to create custom kernels, I installed from source. First I tried to make a unique kernel from 2.6.10-xenU so I copied the xen-2.0/linux-2.6.10-xenU directory to xen-2.0/linux-2.6.10-xenUNFS. I went do dist/install and copied boot/config-2.6.10-xenU to config-2.6.10-xenUNFS and copied lib/modules/2.6.10-xenU to 2.6.10- xenUNFS. I edited xen-2.0/Makefile to also make linux-2.6-xenUNFS. I went into the linux-2.6.10-xenUNFS directory and did a make ARCH=xen menuconfig and enabled NFS server first by compiling it into the kernel and then as a module. I went to the xen-2.0 directory and did a make && make install. I copied /lib/modules/2.6.10-xenUNFS into the domain''s /lib/modules directory. When I start the NFS service, it fails at rpcidmapd because it cannot find sunrpc and there is no rpc_pipes file system. Indeed, there is no sunrpc module file anywhere including /lib/modules/2.6.10- xenUNFS/kernel/net/sunrpc - in fact no net/sunrpc directory. I thought that I perhaps mangled this custom kernel so I ripped it all out and made the same changes to 2.6.10-xenU. The same results. So, I tried the same for 2.6.10-xen0. Same results. I tried directly editing .config to say that sunrpc should be compiled as a module. No change. What am I doing wrong? How does one install an NFS server on an unprivileged domain? Thanks - John -- John A. Sullivan III Open Source Development Corporation +1 207-985-7880 jsullivan@opensourcedevel.com If you would like to participate in the development of an open source enterprise class network security management system, please visit http://iscs.sourceforge.net _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
daniele patoner
2005-May-10 10:24 UTC
Re: [Xen-users] Installing NFS server on unprivileged domain
I succesfully install NFS in unprivileged Debian domain : -enable NFS server in the XenU kernel -apt-get install nfs-kernel-server nfs-common portmap Daniele John A. Sullivan III wrote:> I have been delighted with my experiences with Xen thus far but have > stumbled on a bit of a problem. We have a virtual machine we would like > to use for Linux Terminal Services. This requires NFS server. I have > not been able to make this work using Xen 2.0.5 and the 2.6.10 kernels. > In order to create custom kernels, I installed from source.> What am I doing wrong? How does one install an NFS server on an > unprivileged domain? Thanks - John_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John A. Sullivan III
2005-May-10 12:00 UTC
Re: [Xen-users] Installing NFS server on unprivileged domain
On Mon, 2005-05-09 at 23:57 -0700, Tom Brown wrote:> > I thought that I perhaps mangled this custom kernel so I ripped it all > > out and made the same changes to 2.6.10-xenU. The same results. So, I > > tried the same for 2.6.10-xen0. Same results. I tried directly > > editing .config to say that sunrpc should be compiled as a module. No > > change. > > > > What am I doing wrong? How does one install an NFS server on an > > unprivileged domain? Thanks - John > > what does modprobe say? Did you remember to copy the modules into the > appropriate /lib/modules directory in the filesystem for the xenU domain? > > -Tom >Thanks for such a quick response. I didn''t even try modprobe as there was no sunrpc.ko or sunrpc.o to be found anywhere in the /lib/modules/ subdirectories. I tried this morning anyway and it complained about not being able to find sunrpc. I do notice that I have a xen-2.0/linux-2.6.10- xenUNFS/net/sunrpc/sunrpc.o That would appear to be the necessary module but it did not install. I''m hesitant to work around the installation procedure lest I break something I don''t understand. I notice the same file in linux-2.6.10- xen0 and linux-2.6.10-xenU (I eventually tried NFS in all three). Should this file have been copied during the make install? If so, any idea why it wasn''t? Thanks again - John -- John A. Sullivan III Open Source Development Corporation +1 207-985-7880 jsullivan@opensourcedevel.com If you would like to participate in the development of an open source enterprise class network security management system, please visit http://iscs.sourceforge.net _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John A. Sullivan III
2005-May-10 19:17 UTC
Re: [Xen-users] Installing NFS server on unprivileged domain
On Tue, 2005-05-10 at 11:04 -0700, Tom Brown wrote:> On Tue, 10 May 2005, John A. Sullivan III wrote: > > > On Mon, 2005-05-09 at 23:57 -0700, Tom Brown wrote: > > > > I thought that I perhaps mangled this custom kernel so I ripped it all > > > > out and made the same changes to 2.6.10-xenU. The same results. So, I > > > > tried the same for 2.6.10-xen0. Same results. I tried directly > > > > editing .config to say that sunrpc should be compiled as a module. No > > > > change. > > > > > > > > What am I doing wrong? How does one install an NFS server on an > > > > unprivileged domain? Thanks - John > > > > > > what does modprobe say? Did you remember to copy the modules into the > > > appropriate /lib/modules directory in the filesystem for the xenU domain? > > > > > > -Tom > > > > > Thanks for such a quick response. I didn''t even try modprobe as there > > was no sunrpc.ko or sunrpc.o to be found anywhere in the /lib/modules/ > > subdirectories. I tried this morning anyway and it complained about not > > being able to find sunrpc. > > Good, that is exactly the line of thought I wanted you to go down. > > > > > I do notice that I have a xen-2.0/linux-2.6.10- > > xenUNFS/net/sunrpc/sunrpc.o > > > > That would appear to be the necessary module but it did not install. > > I''m hesitant to work around the installation procedure > > The installation proceedure (at least as I did it) doesn''t have anything > to do with setting up the domU filesystem, so it can''t very well install > the module for you... I built xen in my dom0 system... and there I have > 2.4.29-xen0 2.4.29-xenU 2.6.10-xen0 2.6.10-xenU directories in my > /lib/modules directory... if I were in your shoes, I would tar up the > appropriate directory and copy it to my domU filesystem... then run depmod > and (hoping that doesn''t produce any errors) then run modprobe > > -Tom<snip> Thanks again. I was a little skeptical since domain 0 is also failing to find sunrpc. Nonetheless, I copied over the entire /lib/modules directory and the directories containing the symbolic links for source and build. I restarted the unprivileged domain and still have the same problem. What bit of magic am I missing for something so seemingly simple? After I have reconfigured the kernel to add NFS server support, I have not run a make, make modules or make modules_install from the kernel directory. Instead, I have run make and make install from the xen parent directory. I thought that is what one is supposed to do. Am I mistaken? Am I supposed to build the modules in each of the separate kernel directories? Thanks - John -- John A. Sullivan III Open Source Development Corporation +1 207-985-7880 jsullivan@opensourcedevel.com If you would like to participate in the development of an open source enterprise class network security management system, please visit http://iscs.sourceforge.net _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users