HI,

Yes, you can simply run "genimage centos6.2img -i eth0" to generate the
image, the img files have already been extracted to correct directory.


Several problems caused the error:

1. There is a code problem with imgcapture -o <imgname>, I opened bug
https://sourceforge.net/tracker/?func=detail&aid=3529354&group_id=208749&atid=1006945
 to address this, the fix has been attached on this bug, you can download
the fix from the bug and put it under /opt/xcat/lib/perl/xCAT_plugin/ and
restart xcatd. We will a new xCAT release very soon, the code stream is
closed for now, so I can not integrate the code changes, will put it in the
next release.

2. The -p flag can not be used with -o flag, you can put the profile info
in the img definition, like "chdef -t osimage centos6.2img
profile=compute", and then run "imgcapture gouda6 -o centos6.2img -i eth0
-V"
Thanks,
-------------------------------------------------------------------------
 Li,Guang Cheng (李光成)
 IBM China System Technology Laboratory

 Email: ligua...@cn.ibm.com
 Address: Building 28, ZhongGuanCun Software Park,
          No.8, Dong Bei Wang West Road, Haidian District Beijing 100193,
PRC

北京市海淀区东北旺西路8号中关村软件园28号楼
邮编: 100193


                                                                           
             Marianne                                                      
             Rieckmann                                                     
             <marianne.rieckma                                          To 
             n...@adelaide.edu.a         xCAT Users Mailing list             
             u>                        <xcat-user@lists.sourceforge.net>   
                                                                        cc 
             2012-05-22 14:18                                              
                                                                   Subject 
                                       [xcat-user] imgcapture, error using 
             Please respond to         genimage on management node         
                xCAT Users                                                 
               Mailing list                                                
             <xcat-user@lists.                                             
             sourceforge.net>                                              
                                                                           
                                                                           




Hi xCAT users,
I have had success in using genimage, both on and off the management node
to produce stateless images. (Blade cluster, using xCAT 2.7.1)

Now trying to use imgcapture following the instructions from
http://sourceforge.net/apps/mediawiki/xcat/index.php?title=Capture_Linux_Image


But the process falls over with the following error

<pre>
[root@gouda-san ~]# imgcapture gouda6 -o centos6.2img -p compute -i eth0 -V
nodename is gouda6; os is centos6.2; arch is x86_64; profile is compute
bootif is eth0; netdriver is
the output of "stat / -f |grep Type" on gouda6 is:
gouda6:     ID: c184347c80c784e8 Namelen: 255     Type: ext2/ext3
The file type is ext2/ext3
The excludestr is "cd /; find . ! -path "./tmp/*" ! -path "./proc/*" !
-path "./dev/*" ! -path "./sys/*" ! -path "./install/*" ! -path
"./xcatpost/*" |cpio -H newc -o |gzip -c - >/tmp/xcat_imgcapture.19411"
running "echo -n > /tmp/xcat_imgcapture.19411" on gouda6
Capturing image on gouda6...
running "cd /; find . ! -path "./tmp/*" ! -path "./proc/*" ! -path
"./dev/*" ! -path "./sys/*" ! -path "./install/*" ! -path "./xcatpost/*" |
cpio -H newc -o |gzip -c - >/tmp/xcat_imgcapture.19411" on gouda6 via the
"xdsh" command
Transfering the image captured on gouda6 back...
Running "scp gouda6:/tmp/xcat_imgcapture.19411 /tmp/xcat_imgcapture.19411"
Extracting the image to /install/netboot/centos6.2/x86_64/compute/rootimg
Creating the spots exluded when capturing on gouda6...
Generating kernel and initial ramdisks...
"The genimage command is: /opt/xcat/share/xcat/netboot/centos/genimage
centos6.2img-i eth0 "
Error: Usage: genimage [ -i <nodebootif> ] [ -n <nodenetdrivers> ] [-r
<otherifaces>] -o <osver> -p <profile> -k <kernelver> [--permission
<permission>]
Error:        --permission only works with statelite mode
Error: Examples:
Error:  genimage -i eth0 -n tg3 -o centos5.1 -p compute
Error:  genimage -i eth0 -r eth1,eth2 -n tg3,bnx2 -o centos5.1 -p compute
Error:  genimage -i eth0 -n igb,e1000e,e1000,bnx2,tg3 -o centos5.4 -p
nfsroot
Error:  genimage -i eth0 -n igb,e1000e,e1000,bnx2,tg3 -o centos5.4 -p
nfsroot --permission 777
</pre>

Since the genimage process is not working,  can a previously generated
image be used with the imgcapture data? For example using a kernel and
initial ramdisks from an image generated on that specific compute node?

Regards,
Marianne.

------------------------------------------------------------------------------

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to