<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Capture_Linux_Image</title><link>https://sourceforge.net/p/xcat/wiki/Capture_Linux_Image/</link><description>Recent changes to Capture_Linux_Image</description><atom:link href="https://sourceforge.net/p/xcat/wiki/Capture_Linux_Image/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 18 May 2015 02:23:15 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/xcat/wiki/Capture_Linux_Image/feed" rel="self" type="application/rss+xml"/><item><title>Capture_Linux_Image modified by Guang Cheng Li</title><link>https://sourceforge.net/p/xcat/wiki/Capture_Linux_Image/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -28,7 +28,7 @@

 #### Customize the osimage

-The .pkglist, .exlist, .postinstall and exlist files are the major attributes could be customized for the osimage to be captured, they work the same as when genimage command is running. Refer to [Deploying Stateless Nodes](XCAT_iDataPlex_Cluster_Quick_Start/#deploying-stateless-nodes) to see how to configure these files.
+The pkglist, postinstall and exlist files are the major attributes could be customized for the osimage to be captured, they work the same as when genimage command is running. Refer to [Deploying Stateless Nodes](XCAT_iDataPlex_Cluster_Quick_Start/#deploying-stateless-nodes) to see how to configure these files.

 During **imgcapture** is running, the user might need to exlude some files/directories from the image to be captured.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guang Cheng Li</dc:creator><pubDate>Mon, 18 May 2015 02:23:15 -0000</pubDate><guid>https://sourceforge.net38b690606dacbd4816cf0b10e8a803aa6e296fb2</guid></item><item><title>Capture_Linux_Image modified by Guang Cheng Li</title><link>https://sourceforge.net/p/xcat/wiki/Capture_Linux_Image/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -17,42 +17,27 @@

 ### Prepare the configuration files

+## Define the osimage object
+
+The image to be captured needs to be associated with one specific osimage object, you can use the existing osimage objects, or you can use the following command to create a new osimage &amp;lt;osimagename&amp;gt;
+
+~~~~
+    mkdef -t osimage -o &amp;lt;osimgname&amp;gt; attr1=val1 attr2=val2 ...
+~~~~

-#### The .pkglist, .exlist and .postinstall files
+#### Customize the osimage

-The following files will be used by the **imgcapture** command. And, they work the same as when genimage command is running. Refer to [Deploying Stateless Nodes](XCAT_iDataPlex_Cluster_Quick_Start/#deploying-stateless-nodes) to see how to configure these files.
-
-~~~~
-  &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.pkglist
-  &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.exlist
-  &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.postinstall
-~~~~
-
-#### The exlist file
-
-The file is named:
-
-~~~~
-   &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.imgcapture.exlist file
-~~~~
+The .pkglist, .exlist, .postinstall and exlist files are the major attributes could be customized for the osimage to be captured, they work the same as when genimage command is running. Refer to [Deploying Stateless Nodes](XCAT_iDataPlex_Cluster_Quick_Start/#deploying-stateless-nodes) to see how to configure these files.

 During **imgcapture** is running, the user might need to exlude some files/directories from the image to be captured.

-xCAT provides the &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;&amp;lt;arch&amp;gt;.imgcapture.exlist configuration file, the user can add any files/directories into this file.
+xCAT provides the exlist configuration file, the user can add any files/directories into this file.

-For example, there's one directory (/root/test/), which should be excluded from the image to be captured, the user can add the following line into the &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.imgcapture.exlist file:
+For example, there's one directory (/root/test/), which should be excluded from the image to be captured, the user can add the following line into the exlist file:

 ~~~~
      ./root/test*
-~~~~
-
-## Define the osimage object (Optional)
-
-If the image to be captured needs to be associated with one specific osimage object, you can use the existing osimage objects, or you can use the
-
-~~~~
-    chdef -t osimage -o &amp;lt;osimgname&amp;gt; .... command to set the attributes for &amp;lt;osimgname&amp;gt;.
 ~~~~

 ## Run imgcapture
@@ -94,20 +79,6 @@
 Run nodeset to set the node status ready for network boot.

 ~~~~
-     nodeset node1 netboot
-~~~~
-
-
-Or:
-
-~~~~
-     nodeset node1 statelite
-~~~~
-
-
-Or:
-
-~~~~
      nodeset node1 osimage=&amp;lt;osimagename&amp;gt;
 ~~~~

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guang Cheng Li</dc:creator><pubDate>Mon, 18 May 2015 02:22:33 -0000</pubDate><guid>https://sourceforge.net93e6a08c08c45ae1454d58607dd9e214141f3af0</guid></item><item><title>Capture_Linux_Image modified by Lissa Valletta</title><link>https://sourceforge.net/p/xcat/wiki/Capture_Linux_Image/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -2,101 +2,118 @@

 ## How To Capture Image from the Running Diskful Linux Node

-xCAT provides the [imgcapture](http://xcat.sourceforge.net/man1/imgcapture.1.html) command to capture an OS image from a running diskful Linux node, and prepares the rootimg directory, kernel and initial ramdisks for **liteimg**/**packimage** to generate the statelite/stateless rootimg. 
+xCAT provides the **imgcapture** command to capture an OS image from a running diskful Linux node, and prepares the rootimg directory, kernel and initial ramdisks for **liteimg**/**packimage** to generate the statelite/stateless rootimg.

-This command is very helpful, especially when there's already one diskful Linux node in which all the necessary applications are installed and configured, or the user needs to migrate the diskful environment to the diskless environment (including **statelite**/**stateless**). 
+This command is very helpful, especially when there's already one diskful Linux node in which all the necessary applications are installed and configured, or the user needs to migrate the diskful environment to the diskless environment (including **statelite**/**stateless**).

-The following are the steps to capture image. 
+See man page [imgcapture](http://xcat.sourceforge.net/man1/imgcapture.1.html).

-## Prepare one diskful Linux node

-The diskful Linux node to be captured must be managed by the xCAT MN, and the remote shell between the xCAT MN and this node must be configured. 
+The following are the steps to capture image.

-## Prepare the configuration files
+### Prepare one diskful Linux node

-### The &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.imgcapture.exlist file
+The diskful Linux node to be captured must be managed by the xCAT MN, and the remote shell between the xCAT MN and this node must be configured.

-During **imgcapture** is running, the user might need to exlude some files/directories from the image to be captured. 
+### Prepare the configuration files

-xCAT provides the _&amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;&amp;lt;arch&amp;gt;.imgcapture.exlist_ configuration file, the user can add any files/directories into this file. 

-For example, there's one directory (_/root/test/_), which should be exlcuded from the image to be captured, the user can add the following line into the _&amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.imgcapture.exlist_ file: 
-    
+
+#### The .pkglist, .exlist and .postinstall files
+
+The following files will be used by the **imgcapture** command. And, they work the same as when genimage command is running. Refer to [Deploying Stateless Nodes](XCAT_iDataPlex_Cluster_Quick_Start/#deploying-stateless-nodes) to see how to configure these files.
+
+~~~~
+  &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.pkglist
+  &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.exlist
+  &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.postinstall
+~~~~
+
+#### The exlist file
+
+The file is named:
+
+~~~~
+   &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.imgcapture.exlist file
+~~~~
+
+During **imgcapture** is running, the user might need to exlude some files/directories from the image to be captured.
+
+xCAT provides the &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;&amp;lt;arch&amp;gt;.imgcapture.exlist configuration file, the user can add any files/directories into this file.
+
+For example, there's one directory (/root/test/), which should be excluded from the image to be captured, the user can add the following line into the &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.imgcapture.exlist file:
+
+~~~~
      ./root/test*
-    
-
-For the searching orders for the _.imgcapture.exlist_ files, you can refer to the [XCAT_pLinux_Clusters#Search_order_for_installation_templates] section. 
-
-### The *.pkglist, *.exlist and *.postinstall files
-
-The _&amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.pkglist_, _&amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.exlist_ and _&amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.postinstall_ files will be used by the **imgcapture** command. And, they work the same as when _genimage_ command is running, so please refer to [XCAT_pLinux_Clusters#Statelessnode_installation] to see how to configure these files. 
+~~~~

 ## Define the osimage object (Optional)

-If the image to be captured needs to be associated with one specific _osimage_ object, you can use the existing _osimage_ objects, or you can use the _chdef -t osimage -o &amp;lt;osimgname&amp;gt; ...._ command to set the attributes for _&amp;lt;osimgname&amp;gt;_. 
+If the image to be captured needs to be associated with one specific osimage object, you can use the existing osimage objects, or you can use the
+
+~~~~
+    chdef -t osimage -o &amp;lt;osimgname&amp;gt; .... command to set the attributes for &amp;lt;osimgname&amp;gt;.
+~~~~

 ## Run imgcapture

-## The usage of imgcapture
-    
-    imgcapture &amp;lt;node&amp;gt; [-p | --profile &amp;lt;profile&amp;gt;] [-o|--osimage &amp;lt;osimage&amp;gt;] [-i &amp;lt;nodebootif&amp;gt;] [-n &amp;lt;nodenetdrivers&amp;gt;] [-V | --verbose]
-    imgcapture [-h|--help]
-    imgcapture [-v|--version]
-    
+## The usage of imgcapture and examples

-## Examples
+  See man page [imgcapture](http://xcat.sourceforge.net/man1/imgcapture.1.html).

-  * Capture the image from _node1_
-    
-     imgcapture node1
-    

-  * Capture the image from _node1_, and associate this image with the _osimage_ object: **ibmhpc**
-    
-     imgcapture node1 -o ibmhpc
-    
-
-For more explainations and examples, please refer to the manpage of _imgcapture_. 

 ## Generate stateless/statelite images

-After the image (_rootimg_), kernel (_kernel_) and initial ramdisks (_initrd-stateless.gz_ and _initrd-statelite.gz_)has been generated and put into _$installroot/netboot/&amp;lt;osver&amp;gt;/&amp;lt;arch&amp;gt;/&amp;lt;profile&amp;gt;/_, you can customize the image by running **packimage**/**liteimg** with the options you want. 
+After the image (rootimg), kernel (kernel) and initial ramdisks (initrd-stateless.gz and initrd-statelite.gz)has been generated and put into $installroot/netboot/&amp;lt;osver&amp;gt;/&amp;lt;arch&amp;gt;/&amp;lt;profile&amp;gt;/, you can customize the image by running **packimage**/**liteimg** with the options you want.

 ### Generate stateless images

-Run _packimage_: 
-    
-     packimage &amp;lt;osimagename&amp;gt;
-    
+Run packimage:

-For more info about _packimage_, please refer to the manpage of _packimage_. 
+~~~~
+     packimage &amp;lt;osimagename&amp;gt;
+~~~~
+
+
+For more info about packimage, please refer to the manpage of packimage.

 ### Generate statelite images

-Run _liteimg_: 
-    
-     liteimg &amp;lt;osimagename&amp;gt;
-    
+Run liteimg:

-For more info about _liteimg_, please refer to the manpage of _liteimg_. 
+~~~~
+     liteimg &amp;lt;osimagename&amp;gt;
+~~~~
+
+
+For more info about liteimg, please refer to the manpage of liteimg.

 ## Set the node status ready for network boot

-Run _nodeset_ to set the node status ready for network boot. 
-    
+Run nodeset to set the node status ready for network boot.
+
+~~~~
      nodeset node1 netboot
-    
+~~~~

-Or: 
-    
+
+Or:
+
+~~~~
      nodeset node1 statelite
-    
+~~~~

-Or: 
-    
-     nodeset node1 osimage=&amp;lt;osimagename&amp;gt;
-    
+
+Or:
+
+~~~~
+     nodeset node1 osimage=&amp;lt;osimagename&amp;gt;
+~~~~
+

 ## Notes

-If the node is set to _stateless_ or _RAMdisk-based statelite_ status, before booting the node up, please make sure the node has enough memory capabilities. In order to boot up the LPAR with the redhat6/PPC64 Linux image, the node should have about 5120MB memory. 
+If the node is set to stateless or RAMdisk-based statelite status, before booting the node up, please make sure the node has enough memory capabilities. In order to boot up the LPAR with the redhat6/PPC64 Linux image, the node should have about 5120MB memory.
+
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lissa Valletta</dc:creator><pubDate>Tue, 26 Aug 2014 15:05:13 -0000</pubDate><guid>https://sourceforge.netb30b8570fe05ec788d6b3fa26418170043ac6472</guid></item><item><title>Capture_Linux_Image modified by Bruce</title><link>https://sourceforge.net/p/xcat/wiki/Capture_Linux_Image/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -10,7 +10,7 @@

 ## Prepare one diskful Linux node

-The diskful Linux node must be managed by the xCAT MN, and the remote shell between the xCAT MN and this node must be configured. 
+The diskful Linux node to be captured must be managed by the xCAT MN, and the remote shell between the xCAT MN and this node must be configured. 

 ## Prepare the configuration files

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bruce</dc:creator><pubDate>Mon, 23 Jun 2014 21:46:42 -0000</pubDate><guid>https://sourceforge.netfee0dc1bc2e02195cc2c6c735004d0d9910420e3</guid></item><item><title>Capture_Linux_Image modified by Bruce</title><link>https://sourceforge.net/p/xcat/wiki/Capture_Linux_Image/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -2,9 +2,9 @@

 ## How To Capture Image from the Running Diskful Linux Node

-xCAT provides **imgcapture** to capture image from the running diskful Linux node, and prepares the rootimg directory, kernel and initial ramdisks for **liteimg**/**packimage** to generate the statelite/stateless rootimg. 
+xCAT provides the [imgcapture](http://xcat.sourceforge.net/man1/imgcapture.1.html) command to capture an OS image from a running diskful Linux node, and prepares the rootimg directory, kernel and initial ramdisks for **liteimg**/**packimage** to generate the statelite/stateless rootimg. 

-This command is very helpful. Especially when there's already one diskful Linux node in which all the necessary applications are installed and configured, the user needs to migrate the diskful environment to the diskless environment (including **statelite**/**stateless**). 
+This command is very helpful, especially when there's already one diskful Linux node in which all the necessary applications are installed and configured, or the user needs to migrate the diskful environment to the diskless environment (including **statelite**/**stateless**). 

 The following are the steps to capture image. 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bruce</dc:creator><pubDate>Mon, 23 Jun 2014 21:46:40 -0000</pubDate><guid>https://sourceforge.net514bd2ee99ddb7ca8ae13dbfa378c2dc57cdfdc7</guid></item><item><title>Capture_Linux_Image modified by Bruce</title><link>https://sourceforge.net/p/xcat/wiki/Capture_Linux_Image/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,6 +1,6 @@
 [TOC]

-# How To Capture Image from the Running Diskful Linux Node
+## How To Capture Image from the Running Diskful Linux Node

 xCAT provides **imgcapture** to capture image from the running diskful Linux node, and prepares the rootimg directory, kernel and initial ramdisks for **liteimg**/**packimage** to generate the statelite/stateless rootimg. 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bruce</dc:creator><pubDate>Mon, 23 Jun 2014 21:46:38 -0000</pubDate><guid>https://sourceforge.netd6f03759fdf6b07a721c30d8b97495a749f7ee1b</guid></item><item><title>Capture_Linux_Image modified by minjun xi</title><link>https://sourceforge.net/p/xcat/wiki/Capture_Linux_Image/</link><description>&lt;div class="markdown_content"&gt;&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#how-to-capture-image-from-the-running-diskful-linux-node"&gt;How To Capture Image from the Running Diskful Linux Node&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#prepare-one-diskful-linux-node"&gt;Prepare one diskful Linux node&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#prepare-the-configuration-files"&gt;Prepare the configuration files&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#the-wzxhzdk7profilewzxhzdk8wzxhzdk9osverwzxhzdk10wzxhzdk11archwzxhzdk12imgcaptureexlist-file"&gt;The &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.imgcapture.exlist file&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#the-pkglist-exlist-and-postinstall-files"&gt;The .pkglist, .exlist and *.postinstall files&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#define-the-osimage-object-optional"&gt;Define the osimage object (Optional)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#run-imgcapture"&gt;Run imgcapture&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#the-usage-of-imgcapture"&gt;The usage of imgcapture&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#examples"&gt;Examples&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#generate-statelessstatelite-images"&gt;Generate stateless/statelite images&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#generate-stateless-images"&gt;Generate stateless images&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#generate-statelite-images"&gt;Generate statelite images&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#set-the-node-status-ready-for-network-boot"&gt;Set the node status ready for network boot&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#notes"&gt;Notes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h1 id="how-to-capture-image-from-the-running-diskful-linux-node"&gt;How To Capture Image from the Running Diskful Linux Node&lt;/h1&gt;
&lt;p&gt;xCAT provides &lt;strong&gt;imgcapture&lt;/strong&gt; to capture image from the running diskful Linux node, and prepares the rootimg directory, kernel and initial ramdisks for &lt;strong&gt;liteimg&lt;/strong&gt;/&lt;strong&gt;packimage&lt;/strong&gt; to generate the statelite/stateless rootimg. &lt;/p&gt;
&lt;p&gt;This command is very helpful. Especially when there's already one diskful Linux node in which all the necessary applications are installed and configured, the user needs to migrate the diskful environment to the diskless environment (including &lt;strong&gt;statelite&lt;/strong&gt;/&lt;strong&gt;stateless&lt;/strong&gt;). &lt;/p&gt;
&lt;p&gt;The following are the steps to capture image. &lt;/p&gt;
&lt;h2 id="prepare-one-diskful-linux-node"&gt;Prepare one diskful Linux node&lt;/h2&gt;
&lt;p&gt;The diskful Linux node must be managed by the xCAT MN, and the remote shell between the xCAT MN and this node must be configured. &lt;/p&gt;
&lt;h2 id="prepare-the-configuration-files"&gt;Prepare the configuration files&lt;/h2&gt;
&lt;h3 id="the-wzxhzdk7profilewzxhzdk8wzxhzdk9osverwzxhzdk10wzxhzdk11archwzxhzdk12imgcaptureexlist-file"&gt;The &amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.imgcapture.exlist file&lt;/h3&gt;
&lt;p&gt;During &lt;strong&gt;imgcapture&lt;/strong&gt; is running, the user might need to exlude some files/directories from the image to be captured. &lt;/p&gt;
&lt;p&gt;xCAT provides the &lt;em&gt;&amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;&amp;lt;arch&amp;gt;.imgcapture.exlist&lt;/em&gt; configuration file, the user can add any files/directories into this file. &lt;/p&gt;
&lt;p&gt;For example, there's one directory (&lt;em&gt;/root/test/&lt;/em&gt;), which should be exlcuded from the image to be captured, the user can add the following line into the &lt;em&gt;&amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.imgcapture.exlist&lt;/em&gt; file: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;test&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;For the searching orders for the &lt;em&gt;.imgcapture.exlist&lt;/em&gt; files, you can refer to the &lt;span&gt;[XCAT_pLinux_Clusters#Search_order_for_installation_templates]&lt;/span&gt; section. &lt;/p&gt;
&lt;h3 id="the-pkglist-exlist-and-postinstall-files"&gt;The &lt;em&gt;.pkglist, &lt;/em&gt;.exlist and *.postinstall files&lt;/h3&gt;
&lt;p&gt;The &lt;em&gt;&amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.pkglist&lt;/em&gt;, &lt;em&gt;&amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.exlist&lt;/em&gt; and &lt;em&gt;&amp;lt;profile&amp;gt;.&amp;lt;osver&amp;gt;.&amp;lt;arch&amp;gt;.postinstall&lt;/em&gt; files will be used by the &lt;strong&gt;imgcapture&lt;/strong&gt; command. And, they work the same as when &lt;em&gt;genimage&lt;/em&gt; command is running, so please refer to &lt;span&gt;[XCAT_pLinux_Clusters#Statelessnode_installation]&lt;/span&gt; to see how to configure these files. &lt;/p&gt;
&lt;h2 id="define-the-osimage-object-optional"&gt;Define the osimage object (Optional)&lt;/h2&gt;
&lt;p&gt;If the image to be captured needs to be associated with one specific &lt;em&gt;osimage&lt;/em&gt; object, you can use the existing &lt;em&gt;osimage&lt;/em&gt; objects, or you can use the &lt;em&gt;chdef -t osimage -o &amp;lt;osimgname&amp;gt; ....&lt;/em&gt; command to set the attributes for &lt;em&gt;&amp;lt;osimgname&amp;gt;&lt;/em&gt;. &lt;/p&gt;
&lt;h2 id="run-imgcapture"&gt;Run imgcapture&lt;/h2&gt;
&lt;h2 id="the-usage-of-imgcapture"&gt;The usage of imgcapture&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;imgcapture&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;lt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;node&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;profile&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;lt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;profile&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;]&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="o"&gt;|--&lt;/span&gt;&lt;span class="n"&gt;osimage&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;lt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;osimage&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;]&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;lt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;nodebootif&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;]&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;lt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;nodenetdrivers&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;]&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;V&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;verbose&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;imgcapture&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="o"&gt;|--&lt;/span&gt;&lt;span class="n"&gt;help&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;imgcapture&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="o"&gt;|--&lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id="examples"&gt;Examples&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Capture the image from &lt;em&gt;node1&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;imgcapture node1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Capture the image from &lt;em&gt;node1&lt;/em&gt;, and associate this image with the &lt;em&gt;osimage&lt;/em&gt; object: &lt;strong&gt;ibmhpc&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;imgcapture node1 -o ibmhpc&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For more explainations and examples, please refer to the manpage of &lt;em&gt;imgcapture&lt;/em&gt;. &lt;/p&gt;
&lt;h2 id="generate-statelessstatelite-images"&gt;Generate stateless/statelite images&lt;/h2&gt;
&lt;p&gt;After the image (&lt;em&gt;rootimg&lt;/em&gt;), kernel (&lt;em&gt;kernel&lt;/em&gt;) and initial ramdisks (&lt;em&gt;initrd-stateless.gz&lt;/em&gt; and &lt;em&gt;initrd-statelite.gz&lt;/em&gt;)has been generated and put into &lt;em&gt;$installroot/netboot/&amp;lt;osver&amp;gt;/&amp;lt;arch&amp;gt;/&amp;lt;profile&amp;gt;/&lt;/em&gt;, you can customize the image by running &lt;strong&gt;packimage&lt;/strong&gt;/&lt;strong&gt;liteimg&lt;/strong&gt; with the options you want. &lt;/p&gt;
&lt;h3 id="generate-stateless-images"&gt;Generate stateless images&lt;/h3&gt;
&lt;p&gt;Run &lt;em&gt;packimage&lt;/em&gt;: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt; &lt;span class="n"&gt;packimage&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;lt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;osimagename&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;For more info about &lt;em&gt;packimage&lt;/em&gt;, please refer to the manpage of &lt;em&gt;packimage&lt;/em&gt;. &lt;/p&gt;
&lt;h3 id="generate-statelite-images"&gt;Generate statelite images&lt;/h3&gt;
&lt;p&gt;Run &lt;em&gt;liteimg&lt;/em&gt;: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt; &lt;span class="n"&gt;liteimg&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;lt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;osimagename&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;For more info about &lt;em&gt;liteimg&lt;/em&gt;, please refer to the manpage of &lt;em&gt;liteimg&lt;/em&gt;. &lt;/p&gt;
&lt;h2 id="set-the-node-status-ready-for-network-boot"&gt;Set the node status ready for network boot&lt;/h2&gt;
&lt;p&gt;Run &lt;em&gt;nodeset&lt;/em&gt; to set the node status ready for network boot. &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt; &lt;span class="n"&gt;nodeset&lt;/span&gt; &lt;span class="n"&gt;node1&lt;/span&gt; &lt;span class="n"&gt;netboot&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Or: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt; &lt;span class="n"&gt;nodeset&lt;/span&gt; &lt;span class="n"&gt;node1&lt;/span&gt; &lt;span class="n"&gt;statelite&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Or: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt; &lt;span class="n"&gt;nodeset&lt;/span&gt; &lt;span class="n"&gt;node1&lt;/span&gt; &lt;span class="n"&gt;osimage&lt;/span&gt;&lt;span class="o"&gt;=&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;lt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;osimagename&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;If the node is set to &lt;em&gt;stateless&lt;/em&gt; or &lt;em&gt;RAMdisk-based statelite&lt;/em&gt; status, before booting the node up, please make sure the node has enough memory capabilities. In order to boot up the LPAR with the redhat6/PPC64 Linux image, the node should have about 5120MB memory. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">minjun xi</dc:creator><pubDate>Mon, 23 Jun 2014 21:46:33 -0000</pubDate><guid>https://sourceforge.netdc118f0f3e27f0e0f64dcd8c0ad6fa48c10df895</guid></item></channel></rss>