Re: Xcat image capture issues

2012-03-15 Thread Evelio Quiros
Thanks Dmitri,

In following this article, I get to the bottom of the page, where I put in
the 3 files needed for a stateless image.

I place the 3 files in the located indicated, and when I run

nodeset d6100a image

I get this:

Error: vmlinuz and initrd.img not found at /tftpboot/xcat/image/x86_64
Error: Some nodes failed to set up image resources, aborting

But vmlinuz and initrd.img are at /tftpboot/xcat/image/x86_64


Is there something else that needs to happen first ?


Also, the last step talks about NFS servers for the image store.
Are these required ?

Thanks for all your help,
Al Quiros



On 3/14/12 4:05 PM, Dmitri Chebotarov 4dim...@gmail.com wrote:

Evelio 

Please follow this article to add support for 'image' and 'install' :

https://cwiki.apache.org/VCL/adding-support-for-partimage-and-partimage-ng
-to-xcat-2x-unofficial.html

Thanks. 

-- 
Dmitri Chebotarov


On Wednesday, March 14, 2012 at 15:37 , Evelio Quiros wrote:

 Hello again,
 
 Dimitri, thanks for the advice.
 
 I have a question about these commands.
 Below, you wrote nodeset d6100a image,
 
 But there is no image argument for nodeset.
 Here is the man page:
 
 nodeset [-h|--help|-v|--version]
 nodeset noderange
 
[install|shell|boot|runcmd=bmcsetup|netboot|iscsiboot|osimage=imagename
|s
 tatelite]
 
 When I try the command as-is, I get this:
 
 
 nodeset d6100a image
 d6100a: Error: Unable to identify plugin for this command, check
relevant
 tables: nodetype.os
 Error: Some nodes failed to set up image resources, aborting
 
 I have done tabdump on the various tables, and done tabedit to modify
them
 to my environment.
 
 
 I know this is not an xCAT list, but your guidance would be appreciated.
 
 Thanks,
 Al Quiros
 
 
 
 On 3/13/12 4:45 PM, Dmitri Chebotarov dcheb...@gmu.edu
(mailto:dcheb...@gmu.edu) wrote:
 
  Evelio,
  
  You should be able to capture image via xCAT before you can use
VCL/xCAT.
  
  To capture image via xCAT:
  
  nodech d6100a nodetype.os=image nodetype.profile=rh5image-rh66-v0
  nodeset d6100a image - this will create PXEboot config file for
d6100a:
  
  cat /tftpboot/pxelinux.cfg/d6100a-PXE-if-mac
  
  #image rh5image-rh66-v0
  DEFAULT xCAT
  LABEL xCAT
  KERNEL xcat/image/x86_64/vmlinuz
  APPEND initrd=xcat/image/x86_64/initrd.img
  
imgurl=http://xcat-master/install/image/x86_64/installer_files/rootimg.gz
  image=/install/image/x86_64/rh5image-rh66-v0.img blocks=512
  action=save installnic=eth0 reboot noipv6
  IPAPPEND 2
  
  'tabdump nodetype' should look similar to this - note that arch is
x86:
  
  
#node,os,arch,profile,provmethod,supportedarchs,nodetype,comments,disable
  ...
  d6100a,image,x86,rh5image-rh66-v0,image,x86,x86_64,,,
  ...
  
  Then do 'rpower d6100a reset'. This will restart d6100a and when node
  boots over PXE it will boot into
  http://xcat-master/install/image/x86_64/installer_files/rootimg.gz
and,
  given that image works fine and maps NFS store OK, it dump hd image to
  /install/image/x86_64/rh5image-rh66-v0.img .
  
  If it's successful then to install from the image:
  
  nodeset d6100a install
  
  'tabdump nodetype' should look similar to this - provmethod changes
from
  image to install:
  
  
#node,os,arch,profile,provmethod,supportedarchs,nodetype,comments,disable
  ...
  d6100a,image,x86,rh5image-rh66-v0,install,x86,x86_64,,,
  ...
  
  If these steps work OK, then you can use VCL to capture bare-metal
image.
  VCL uses 'nodeset node image' and 'nodeset node install'
commands, so
  it's good idea to make them work before using VCL.
  
  Thanks.
  On Mar 13, 2012, at 16:11 , Evelio Quiros wrote:
  
   Hello Again,
   
   After trying again to capture a running image on a bare metal node,
I
   get
   a failure message:
   Any ideas ?
   
   Al Q
   
   
   Added new image to database: 'rh6'
   image.name (http://image.name): rh5image-rh66-v0
   image.id: 6
   imagerevision.id: 6
   imagemeta.id: 3
   resource.id: 16
   
   
   
-
   --
   -
   Inserted imaging request to the database:
   request ID: 1
   reservation ID: 1
   
   This process will now display the contents of the vcld.log file if
the
   vcld
   daemon is running. If you do not see many lines of additional
output,
   exit
   this
   process, start the vcld daemon, and monitor the image capture
process by
   running
   the command:
   tail -f /var/log/vcld.log | grep '1:1'
   
   
   
-
   --
   -
   2012-03-13 16:03:34|2012|vcld:main(167)|lastcheckin time updated for
   management node 1: 2012-03-13 16:03:34
   2012-03-13 
16:03:39|6899|utils.pm:setup_get_array_choice(9947)|choices
   argument:
   2012-03-13 16:03:39|2012|vcld:main(167)|lastcheckin time updated for
   management node 1: 2012-03-13 16:03:39
   2012-03-13 16:03:44|2012|vcld:main(167)|lastcheckin time updated for
   management node 1: 2012-03-13 16:03:44
   2012-03-13 

Re: Xcat image capture issues

2012-03-15 Thread Dmitri Chebotarov
Evelio

Could you please check that you have these files/folders as well?

/install/image/x86/installer_files/listener.py
/install/image/x86/installer_files/rootimg.gz

Also, can you check that there are symlinks for x86 or x86_64 in 
/install/image/ and /tftpboot/xcat/image/, ie:

$ ls -l
x86
x86_64 - x86

Thanks.

On Mar 15, 2012, at 9:56 , Evelio Quiros wrote:

 Thanks Dmitri,
 
 In following this article, I get to the bottom of the page, where I put in
 the 3 files needed for a stateless image.
 
 I place the 3 files in the located indicated, and when I run
 
 nodeset d6100a image
 
 I get this:
 
 Error: vmlinuz and initrd.img not found at /tftpboot/xcat/image/x86_64
 Error: Some nodes failed to set up image resources, aborting
 
 But vmlinuz and initrd.img are at /tftpboot/xcat/image/x86_64
 
 
 Is there something else that needs to happen first ?
 
 
 Also, the last step talks about NFS servers for the image store.
 Are these required ?
 
 Thanks for all your help,
 Al Quiros
 
 
 
 On 3/14/12 4:05 PM, Dmitri Chebotarov 4dim...@gmail.com wrote:
 
 Evelio 
 
 Please follow this article to add support for 'image' and 'install' :
 
 https://cwiki.apache.org/VCL/adding-support-for-partimage-and-partimage-ng
 -to-xcat-2x-unofficial.html
 
 Thanks. 
 
 -- 
 Dmitri Chebotarov
 
 
 On Wednesday, March 14, 2012 at 15:37 , Evelio Quiros wrote:
 
 Hello again,
 
 Dimitri, thanks for the advice.
 
 I have a question about these commands.
 Below, you wrote nodeset d6100a image,
 
 But there is no image argument for nodeset.
 Here is the man page:
 
 nodeset [-h|--help|-v|--version]
 nodeset noderange
 
 [install|shell|boot|runcmd=bmcsetup|netboot|iscsiboot|osimage=imagename
 |s
 tatelite]
 
 When I try the command as-is, I get this:
 
 
 nodeset d6100a image
 d6100a: Error: Unable to identify plugin for this command, check
 relevant
 tables: nodetype.os
 Error: Some nodes failed to set up image resources, aborting
 
 I have done tabdump on the various tables, and done tabedit to modify
 them
 to my environment.
 
 
 I know this is not an xCAT list, but your guidance would be appreciated.
 
 Thanks,
 Al Quiros
 
 
 
 On 3/13/12 4:45 PM, Dmitri Chebotarov dcheb...@gmu.edu
 (mailto:dcheb...@gmu.edu) wrote:
 
 Evelio,
 
 You should be able to capture image via xCAT before you can use
 VCL/xCAT.
 
 To capture image via xCAT:
 
 nodech d6100a nodetype.os=image nodetype.profile=rh5image-rh66-v0
 nodeset d6100a image - this will create PXEboot config file for
 d6100a:
 
 cat /tftpboot/pxelinux.cfg/d6100a-PXE-if-mac
 
 #image rh5image-rh66-v0
 DEFAULT xCAT
 LABEL xCAT
 KERNEL xcat/image/x86_64/vmlinuz
 APPEND initrd=xcat/image/x86_64/initrd.img
 
 imgurl=http://xcat-master/install/image/x86_64/installer_files/rootimg.gz
 image=/install/image/x86_64/rh5image-rh66-v0.img blocks=512
 action=save installnic=eth0 reboot noipv6
 IPAPPEND 2
 
 'tabdump nodetype' should look similar to this - note that arch is
 x86:
 
 
 #node,os,arch,profile,provmethod,supportedarchs,nodetype,comments,disable
 ...
 d6100a,image,x86,rh5image-rh66-v0,image,x86,x86_64,,,
 ...
 
 Then do 'rpower d6100a reset'. This will restart d6100a and when node
 boots over PXE it will boot into
 http://xcat-master/install/image/x86_64/installer_files/rootimg.gz
 and,
 given that image works fine and maps NFS store OK, it dump hd image to
 /install/image/x86_64/rh5image-rh66-v0.img .
 
 If it's successful then to install from the image:
 
 nodeset d6100a install
 
 'tabdump nodetype' should look similar to this - provmethod changes
 from
 image to install:
 
 
 #node,os,arch,profile,provmethod,supportedarchs,nodetype,comments,disable
 ...
 d6100a,image,x86,rh5image-rh66-v0,install,x86,x86_64,,,
 ...
 
 If these steps work OK, then you can use VCL to capture bare-metal
 image.
 VCL uses 'nodeset node image' and 'nodeset node install'
 commands, so
 it's good idea to make them work before using VCL.
 
 Thanks.
 On Mar 13, 2012, at 16:11 , Evelio Quiros wrote:
 
 Hello Again,
 
 After trying again to capture a running image on a bare metal node,
 I
 get
 a failure message:
 Any ideas ?
 
 Al Q
 
 
 Added new image to database: 'rh6'
 image.name (http://image.name): rh5image-rh66-v0
 image.id: 6
 imagerevision.id: 6
 imagemeta.id: 3
 resource.id: 16
 
 
 
 -
 --
 -
 Inserted imaging request to the database:
 request ID: 1
 reservation ID: 1
 
 This process will now display the contents of the vcld.log file if
 the
 vcld
 daemon is running. If you do not see many lines of additional
 output,
 exit
 this
 process, start the vcld daemon, and monitor the image capture
 process by
 running
 the command:
 tail -f /var/log/vcld.log | grep '1:1'
 
 
 
 -
 --
 -
 2012-03-13 16:03:34|2012|vcld:main(167)|lastcheckin time updated for
 management node 1: 2012-03-13 16:03:34
 2012-03-13 
 

Re: Xcat image capture issues

2012-03-15 Thread Evelio Quiros
Hello,

Yes, both listener.py and rootimg.gz are both located at
/install/image/x86/installer_files/


But NOWHERE on the documentation page does it mention a symlink between
x86_64 and x86.

Ok, I added the symlinks in both locations, and it did seem to accept it:

nodeset d6100a image
d6100a: image image-x86_64-rh5image-rh66-v0

Which created this file in /tftpboot/pxelinux.cfg:


lrwxrwxrwx 1 root root   6 Mar 15 11:36 0A19 - d6100a

cat d6100a 
#image image-x86_64-rh5image-rh66-v0
DEFAULT xCAT
LABEL xCAT
 KERNEL xcat/image/x86_64/vmlinuz
 APPEND initrd=xcat/image/x86_64/initrd.img
imgurl=http://10.0.0.3//install/image/x86_64/installer_files/rootimg.gz
image=/install/image/x86_64/rh5image-rh66-v0.img blocks=512 action=save
installnic=eth0 reboot  noipv6
  IPAPPEND 2

I did a tabedit to add the nodetype.supportedarchs.


tabdump nodetype
#node,os,arch,profile,provmethod,supportedarchs,nodetype,comments,disable
compute,rh6.0,x86_64,compute,,,osi,,
d6100a,image,x86,rh5image-rh66-v0,image,x86,x86_64,,,



However, when I do this:
rpower d6100a reset

I get this:
d6100a: Error: timeout

So, I guess I must be missing something that tells xCAT where the machine
is, and how to reach it.


Al Q


On 3/15/12 11:05 AM, Dmitri Chebotarov dcheb...@gmu.edu wrote:

Evelio

Could you please check that you have these files/folders as well?

/install/image/x86/installer_files/listener.py
/install/image/x86/installer_files/rootimg.gz

Also, can you check that there are symlinks for x86 or x86_64 in
/install/image/ and /tftpboot/xcat/image/, ie:

$ ls -l
x86
x86_64 - x86

Thanks.

On Mar 15, 2012, at 9:56 , Evelio Quiros wrote:

 Thanks Dmitri,
 
 In following this article, I get to the bottom of the page, where I put
in
 the 3 files needed for a stateless image.
 
 I place the 3 files in the located indicated, and when I run
 
 nodeset d6100a image
 
 I get this:
 
 Error: vmlinuz and initrd.img not found at /tftpboot/xcat/image/x86_64
 Error: Some nodes failed to set up image resources, aborting
 
 But vmlinuz and initrd.img are at /tftpboot/xcat/image/x86_64
 
 
 Is there something else that needs to happen first ?
 
 
 Also, the last step talks about NFS servers for the image store.
 Are these required ?
 
 Thanks for all your help,
 Al Quiros
 
 
 
 On 3/14/12 4:05 PM, Dmitri Chebotarov 4dim...@gmail.com wrote:
 
 Evelio 
 
 Please follow this article to add support for 'image' and 'install' :
 
 
https://cwiki.apache.org/VCL/adding-support-for-partimage-and-partimage-
ng
 -to-xcat-2x-unofficial.html
 
 Thanks. 
 
 -- 
 Dmitri Chebotarov
 
 
 On Wednesday, March 14, 2012 at 15:37 , Evelio Quiros wrote:
 
 Hello again,
 
 Dimitri, thanks for the advice.
 
 I have a question about these commands.
 Below, you wrote nodeset d6100a image,
 
 But there is no image argument for nodeset.
 Here is the man page:
 
 nodeset [-h|--help|-v|--version]
 nodeset noderange
 
 
[install|shell|boot|runcmd=bmcsetup|netboot|iscsiboot|osimage=imagenam
e
 |s
 tatelite]
 
 When I try the command as-is, I get this:
 
 
 nodeset d6100a image
 d6100a: Error: Unable to identify plugin for this command, check
 relevant
 tables: nodetype.os
 Error: Some nodes failed to set up image resources, aborting
 
 I have done tabdump on the various tables, and done tabedit to modify
 them
 to my environment.
 
 
 I know this is not an xCAT list, but your guidance would be
appreciated.
 
 Thanks,
 Al Quiros
 
 
 
 On 3/13/12 4:45 PM, Dmitri Chebotarov dcheb...@gmu.edu
 (mailto:dcheb...@gmu.edu) wrote:
 
 Evelio,
 
 You should be able to capture image via xCAT before you can use
 VCL/xCAT.
 
 To capture image via xCAT:
 
 nodech d6100a nodetype.os=image nodetype.profile=rh5image-rh66-v0
 nodeset d6100a image - this will create PXEboot config file for
 d6100a:
 
 cat /tftpboot/pxelinux.cfg/d6100a-PXE-if-mac
 
 #image rh5image-rh66-v0
 DEFAULT xCAT
 LABEL xCAT
 KERNEL xcat/image/x86_64/vmlinuz
 APPEND initrd=xcat/image/x86_64/initrd.img
 
 
imgurl=http://xcat-master/install/image/x86_64/installer_files/rootimg.
gz
 image=/install/image/x86_64/rh5image-rh66-v0.img blocks=512
 action=save installnic=eth0 reboot noipv6
 IPAPPEND 2
 
 'tabdump nodetype' should look similar to this - note that arch is
 x86:
 
 
 
#node,os,arch,profile,provmethod,supportedarchs,nodetype,comments,disab
le
 ...
 d6100a,image,x86,rh5image-rh66-v0,image,x86,x86_64,,,
 ...
 
 Then do 'rpower d6100a reset'. This will restart d6100a and when node
 boots over PXE it will boot into
 http://xcat-master/install/image/x86_64/installer_files/rootimg.gz
 and,
 given that image works fine and maps NFS store OK, it dump hd image
to
 /install/image/x86_64/rh5image-rh66-v0.img .
 
 If it's successful then to install from the image:
 
 nodeset d6100a install
 
 'tabdump nodetype' should look similar to this - provmethod changes
 from
 image to install:
 
 
 
#node,os,arch,profile,provmethod,supportedarchs,nodetype,comments,disab
le
 ...
 d6100a,image,x86,rh5image-rh66-v0,install,x86,x86_64,,,
 ...