Russel,
    What version of xCAT are you using? 

Ling


Ling Gao
Poughkeepsie Unix Development Lab
IBM Systems and Technology Group
Internal: T/L 293-5692 
External: ling...@us.ibm.com, 845-433-5692

"I never worry about the future. It comes soon enough." --- Albert 
Einstein 



From:   Russell Jones <russell-l...@jonesmail.me>
To:     xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Date:   03/10/2015 03:47 PM
Subject:        Re: [xcat-user] Building diskless image with different 
kernel  version



Thanks Ling,
I have followed these instructions exactly for RHEL and it does not work 
for me. It ends with the errors I posted before. Here are some lsdef 
information. Any further assistance is appreciated!
[root@evxcat 2.6.32-431.el6.x86_64]# lsdef -t osimage 
v6.6.0-dl-genesisbuild
Object name: v6.6.0-dl-genesisbuild
groups=all
imagetype=linux
kerneldir=/install/kernels
kernelver=2.6.32-431.el6.x86_64
nodebootif=eth0
osarch=x86_64
osdistroname=centos6.6-x86_64
osname=Linux
osvers=centos6.6
permission=755
pkgdir=/install/centos6.6/x86_64
pkglist=/install/custom/v6.6.0-dl-genesisbuild/v6.6.0-dl-genesisbuild.pkglist
postscripts=syslog,confignics,syncfiles,setupntp,addsiteyum
profile=v6.6.0-dl-genesisbuild
provmethod=netboot
rootimgdir=/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild
 
[root@evxcat 2.6.32-431.el6.x86_64]# ll -R /install/kernels
/install/kernels:
total 4
drwxr-xr-x 3 root root 4096 Mar 10 14:34 2.6.32-431.el6.x86_64
/install/kernels/2.6.32-431.el6.x86_64:
total 82192
-rw-r--r-- 1 root root 29038424 Feb 10 16:18 
kernel-2.6.32-431.el6.x86_64.rpm
-rw-r--r-- 1 root root 2235524 Feb 10 16:18 
kernel-abi-whitelists-2.6.32-431.el6.noarch.rpm
-rw-r--r-- 1 root root 29750344 Feb 10 16:18 
kernel-debug-2.6.32-431.el6.x86_64.rpm
-rw-r--r-- 1 root root 9167492 Feb 10 16:18 
kernel-devel-2.6.32-431.el6.x86_64.rpm
-rw-r--r-- 1 root root 13601072 Feb 10 16:18 
kernel-firmware-2.6.32-431.el6.noarch.rpm
drwxr-xr-x 2 root root 4096 Mar 10 14:34 repodata
/install/kernels/2.6.32-431.el6.x86_64/repodata:
total 1116
-rw-r--r-- 1 root root 5472 Mar 10 14:34 
28fd032f735b6b7d16a35fc9f592776468815fc3eff3b16392ed07f0c49406e3-other.xml.gz
-rw-r--r-- 1 root root 296092 Mar 10 14:34 
6c1a302abae7e1a84dd2e2718e67302410ec4a6c8c85435b4387115981ef42e3-primary.xml.gz
-rw-r--r-- 1 root root 569749 Mar 10 14:34 
a56c6abff1536e4d57feeeb237c34151f48b1eb55f7cad94248f8ed5e6aa9a3c-primary.sqlite.bz2
-rw-r--r-- 1 root root 9079 Mar 10 14:34 
b8f9a96a768b14e978c7693d7b983c9f407b84d3fbb616cd15466947102178ac-other.sqlite.bz2
-rw-r--r-- 1 root root 89899 Mar 10 14:34 
c71a142e7d36ab00df76aac61d41b577914d8dc5611503c3b36b94078aae5805-filelists.xml.gz
-rw-r--r-- 1 root root 135383 Mar 10 14:34 
f10ad0b736c8e5c37824d1a30fa0072e6e1509b64fbd333c78b5876e97cb0d37-filelists.sqlite.bz2
-rw-r--r-- 1 root root 2998 Mar 10 14:34 repomd.xml
 
[root@evxcat 2.6.32-431.el6.x86_64]# genimage v6.6.0-dl-genesisbuild -k 
2.6.32-431.el6.x86_64
Generating image: 
cd /opt/xcat/share/xcat/netboot/centos; ./genimage -a x86_64 -o centos6.6 
-p v6.6.0-dl-genesisbuild -i eth0 -k 2.6.32-431.el6.x86_64 --permission 
755 --kerneldir /install/kernels --srcdir /install/centos6.6/x86_64 
--pkglist 
/install/custom/v6.6.0-dl-genesisbuild/v6.6.0-dl-genesisbuild.pkglist 
--rootimgdir /install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild 
--tempfile /tmp/xcat_genimage.19121 --noupdate 1 v6.6.0-dl-genesisbuild
mknod: 
`/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/dev/null': 
No such file or directory
sh: line 0: cd: 
/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/etc/rc3.d: 
No such file or directory
sh: line 0: cd: 
/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/etc/rc3.d: 
No such file or directory
sh: 
/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/sbin/fsck.nfs: 
No such file or directory
chmod: cannot access 
`/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/sbin/fsck.nfs':
 
No such file or directory
chroot: failed to run command `rpm': No such file or directory
chroot: failed to run command `rpm': No such file or directory
couldn't find the kernel file matched 2.6.32-431.el6.x86_64 in 
/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/boot at 
./genimage line 72.
 
 
 
 
On 11.02.2015 13:41, Ling Gao wrote:
Russell, 
    Here is the instruction: 
http://sourceforge.net/p/xcat/wiki/Using_Provmethod%3Dosimagename/#installing-a-new-kernel-in-the-stateless-image
 


The files under boot are from the kernel rpm. So please follow the 
instruction to make sure that the kernel rpm gets installed in the image. 

Thanks, 

Ling 


Ling Gao
Poughkeepsie Unix Development Lab
IBM Systems and Technology Group
Internal: T/L 293-5692 
External: ling...@us.ibm.com, 845-433-5692

"I never worry about the future. It comes soon enough." --- Albert 
Einstein 



From:        Russell Jones <russell-l...@jonesmail.me> 
To:        xcat-user@lists.sourceforge.net 
Date:        02/11/2015 11:18 AM 
Subject:        Re: [xcat-user] Building diskless image with different 
kernel        version 



For clarification, this is of course after trying to place the kernels 
RPMs and the kernel itself in 
"/install/custom/v6.6.0-dl-genesisbuild/kernel" since I tried defining 
that path in my osimage definition.

On 2/11/2015 9:46 AM, Russell Jones wrote: 
It is empty, there's no boot directory.

I guess my real question is, what is the correct procedure for building a 
stateless image with a different kernel for CentOS 6? I have tried placing 
the kernel itself in /install/kernels/$kernel-ver, as well as a repo of 
the kernel RPMs and both do not work. Do I need to make the boot directory 
itself in the $rootimg_dir and place the kernels there?

Thanks!


On 2/11/2015 8:43 AM, Ling Gao wrote: 
Hi Russell, 
    It looks like it failed at these lines of code in genimage: 

# copy the kernel to $destdir 
if ( -e "$rootimg_dir/boot/vmlinux-$kernelver") { 
    cp("$rootimg_dir/boot/vmlinux-$kernelver", "$destdir/kernel"); 
} elsif ( -e "$rootimg_dir/boot/vmlinuz-$kernelver") { 
    cp("$rootimg_dir/boot/vmlinuz-$kernelver", "$destdir/kernel"); 
} elsif ( -e "$rootimg_dir/boot/image-$kernelver") { 
    cp("$rootimg_dir/boot/image-$kernelver", "$destdir/kernel"); 
} else { 
    xdie("couldn't find the kernel file matched $kernelver in 
$rootimg_dir/boot"); 
} 

What are the files under 
/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimage/boot 
firectory? 
The code is looking for something like 
 vmlinux-2.6.32-431.el6.x86_64 or 
 vmlinuz-2.6.32-431.el6.x86_64 or 
 image-2.6.32-431.el6.x86_64. 

Hope it helps, 


Ling

Ling Gao
Poughkeepsie Unix Development Lab
IBM Systems and Technology Group
Internal: T/L 293-5692 
External: ling...@us.ibm.com, 845-433-5692

"I never worry about the future. It comes soon enough." --- Albert 
Einstein 



From:        Russell Jones <russell-l...@jonesmail.me> 
To:        <xcat-user@lists.sourceforge.net> 
Date:        02/10/2015 05:09 PM 
Subject:        [xcat-user] Building diskless image with different kernel 
version 



Hi all, 
I am attempting to build a diskless image with a different kernel version, 
but not having much luck. I am getting the following error: 
[root@evxcat kernel]# genimage v6.6.0-dl-genesisbuild
Generating image:
cd /opt/xcat/share/xcat/netboot/centos; ./genimage -a x86_64 -o centos6.6 
-p v6.6.0-dl-genesisbuild -i eth0 -k 2.6.32-431.el6.x86_64 --permission 
755 --kerneldir /install/custom/v6.6.0-dl-genesisbuild/kernel --srcdir 
/install/centos6.6/x86_64 --pkglist 
/install/custom/v6.6.0-dl-genesisbuild/v6.6.0-dl-genesisbuild.pkglist 
--rootimgdir /install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild 
--tempfile /tmp/xcat_genimage.31434 --noupdate 1 v6.6.0-dl-genesisbuild
mknod: 
`/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/dev/null': 
No such file or directory
sh: line 0: cd: 
/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/etc/rc3.d: 
No such file or directory
sh: line 0: cd: 
/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/etc/rc3.d: 
No such file or directory
sh: 
/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/sbin/fsck.nfs: 
No such file or directory
chmod: cannot access 
`/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/sbin/fsck.nfs':
 
No such file or directory
chroot: failed to run command `rpm': No such file or directory
chroot: failed to run command `rpm': No such file or directory
couldn't find the kernel file matched 2.6.32-431.el6.x86_64 in 
/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/boot at 
./genimage line 72. 
 
[root@evxcat kernel]# lsdef -t osimage v6.6.0-dl-genesisbuild
Object name: v6.6.0-dl-genesisbuild
   groups=all
   imagetype=linux
   kerneldir=/install/custom/v6.6.0-dl-genesisbuild/kernel
   kernelver=2.6.32-431.el6.x86_64
   nodebootif=eth0
   osarch=x86_64
   osdistroname=centos6.6-x86_64
   osname=Linux
   osvers=centos6.6
   permission=755
   pkgdir=/install/centos6.6/x86_64
 
pkglist=/install/custom/v6.6.0-dl-genesisbuild/v6.6.0-dl-genesisbuild.pkglist
   postscripts=syslog,confignics,syncfiles,setupntp,addsiteyum
   profile=v6.6.0-dl-genesisbuild
   provmethod=netboot
   rootimgdir=/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild 
 
[root@evxcat kernel]# ll /install/custom/v6.6.0-dl-genesisbuild/kernel
total 81844
-rw-r--r-- 1 root root 29038424 Feb 10 15:49 
kernel-2.6.32-431.el6.x86_64.rpm
-rw-r--r-- 1 root root  2235524 Feb 10 15:49 
kernel-abi-whitelists-2.6.32-431.el6.noarch.rpm
-rw-r--r-- 1 root root 29750344 Feb 10 15:49 
kernel-debug-2.6.32-431.el6.x86_64.rpm
-rw-r--r-- 1 root root  9167492 Feb 10 15:49 
kernel-devel-2.6.32-431.el6.x86_64.rpm
-rw-r--r-- 1 root root 13601072 Feb 10 15:49 
kernel-firmware-2.6.32-431.el6.noarch.rpm
drwxr-xr-x 2 root root     4096 Feb 10 15:49 repodata 
 
Any idea what's bombing here? The errors make no sense. 
Thanks! 
 
 
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is 
your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user
 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is 
your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/ 


_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user




------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is 
your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/ 


_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is 
your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is 
your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/

_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, 
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for 
all
things parallel software development, from weekly thought leadership blogs 
to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to