Hi there, I'm using xen-3.0.2.2-86.1_rhel4.1 on a Redhat AS 4 update 1 for i386. When I try to create domU with NFS root, I get the following error: ##BEGINNING## Red Hat nash version 4.2.1.3 starting Mounted /proc filesystem Mounting sysfs Creating /dev Starting udev Loading scsi_mod.ko module scsi_mod: no version for "struct_module" found: kernel tainted. SCSI subsystem initialized Loading sd_mod.ko module Loading libata.ko module Loading sata_promise.ko module Loading dm-mod.ko module device-mapper: 4.5.0-ioctl (2005-10-04) initialised: dm-devel@redhat.com Loading jbd.ko module Loading ext3.ko module Creating root device Mounting root filesystem mount: error 6 mounting ext3 mount: error 2 mounting none Switching to new root switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init! ##END## My vm conf file looks like this: ##BEGINNING## kernel = "/boot/vmlinuz-2.6.16-xen3_86.1_rhel4.1" ramdisk = "/boot/initrd-2.6.16-xen3_86.1_rhel4.1.img" builder='linux' memory = 256 name = "nfsvm" vcpus = 4 vif = [ 'bridge=xenbr0' ] dhcp="dhcp" hostname= "nfsvm" root = '/dev/nfs' nfs_server = '192.168.1.123' nfs_root = '/diskless/i386/RHEL4-AS/root' extra = "3" ##END## Please help, Maxim. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Mounting root filesystem > mount: error 6 mounting ext3 > mount: error 2 mounting none > > Please help,It looks like it''s trying to mount the filesystem as ext3, not NFS. Did you compile NFS client support into your kernel? I think there''s also a kernel compile option to enable your root filesystem on NFS that you''ll need to enable as well. Cheers, Adam. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
The last time I did this was with Xen 2, and the default domU kernel didn''t have support for NFS ROOT. I had to download the source code and recompile the domU kernel enabling it and a few other options I can''t remember. :) If you fail, let me know and I''ll look where did I put the tutorial I once wrote for this. Thanks -- =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ Felipe Franciosi +55-51-91230557 CPAD/HP/PUCRS - Centro de Pesquisa em Alto Desempenho http://www.cpad.pucrs.br/ ozzy@cpad.pucrs.br Porto Alegre, RS - Brazil =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ -----Mensagem original----- De: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] Em nome de Maxim Rozin Enviada em: quarta-feira, 14 de junho de 2006 10:11 Para: xen-users@lists.xensource.com Assunto: [Xen-users] NFS root in domU Hi there, I''m using xen-3.0.2.2-86.1_rhel4.1 on a Redhat AS 4 update 1 for i386. When I try to create domU with NFS root, I get the following error: ##BEGINNING## Red Hat nash version 4.2.1.3 starting Mounted /proc filesystem Mounting sysfs Creating /dev Starting udev Loading scsi_mod.ko module scsi_mod: no version for "struct_module" found: kernel tainted. SCSI subsystem initialized Loading sd_mod.ko module Loading libata.ko module Loading sata_promise.ko module Loading dm-mod.ko module device-mapper: 4.5.0-ioctl (2005-10-04) initialised: dm-devel@redhat.com Loading jbd.ko module Loading ext3.ko module Creating root device Mounting root filesystem mount: error 6 mounting ext3 mount: error 2 mounting none Switching to new root switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init! ##END## My vm conf file looks like this: ##BEGINNING## kernel = "/boot/vmlinuz-2.6.16-xen3_86.1_rhel4.1" ramdisk = "/boot/initrd-2.6.16-xen3_86.1_rhel4.1.img" builder=''linux'' memory = 256 name = "nfsvm" vcpus = 4 vif = [ ''bridge=xenbr0'' ] dhcp="dhcp" hostname= "nfsvm" root = ''/dev/nfs'' nfs_server = ''192.168.1.123'' nfs_root = ''/diskless/i386/RHEL4-AS/root'' extra = "3" ##END## Please help, Maxim. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Adam, Thank you for the reply. I used rpm's to install xen, so I did not compile the kernel manually at all. My question is (before I download the sources and recompile the kernel) whether there is a way to use NFS root using rpm installation or by creating a new initrd (without kernel recompilation). Have a nice day, Maxim Rozin BenefIT-technologies Mobile: +972-54-5409444 Tel: +972-3-9238888 -----Original Message----- From: Adam Nielsen [mailto:adam.nielsen@uq.edu.au] Sent: Thursday, June 15, 2006 1:47 AM To: Maxim Rozin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] NFS root in domU> Mounting root filesystem > mount: error 6 mounting ext3 > mount: error 2 mounting none > > Please help,It looks like it's trying to mount the filesystem as ext3, not NFS. Did you compile NFS client support into your kernel? I think there's also a kernel compile option to enable your root filesystem on NFS that you'll need to enable as well. Cheers, Adam. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users