Difference between revisions of "Vnx-modify-rootfs"

From VNX
Jump to: navigation, search
Line 8: Line 8:
 
  vnx_modify_rootfs <rootfs_name>
 
  vnx_modify_rootfs <rootfs_name>
 
being <rootfs_name> the rootfs filename.
 
being <rootfs_name> the rootfs filename.
<li>Using the libvirt XML virtual machine definition use for creating the rootfs:</li>
+
<li>Using the libvirt XML virtual machine definition used for creating the rootfs:</li>
 
  virsh create rootfs_XXX.xml
 
  virsh create rootfs_XXX.xml
 
and manually opening the console using:
 
and manually opening the console using:
Line 14: Line 14:
 
being VMNAME the name or number assigned by libvirt to the virtual machine (you can get it with "virsh list" command or just looking for the <name> tag in root_fs_XXX.xml file).
 
being VMNAME the name or number assigned by libvirt to the virtual machine (you can get it with "virsh list" command or just looking for the <name> tag in root_fs_XXX.xml file).
 
</ul>
 
</ul>
<li>Once the </li>
+
<li>Once the virtual machine is started and you have access to the console, you can make the modifications desired, for example, updating the VNXACE daemon following the step described below.</li>
 +
 
 +
 
  
 
</ul>
 
</ul>
 +
 +
 +
== Updating VNXACE daemon ==
 +
  
  

Revision as of 23:06, 7 May 2012

Updating or modifying a VNX root filesystem

In order to update or modify a VNX root filesystem (rootfs from now on), you have to:

  • Start a virtual machine directly mounting that rootfs and with Internet connection. You can do it in several ways:
    • Using the vnx_modify_rootfs tool (recommended):
    • vnx_modify_rootfs <rootfs_name>
      

      being <rootfs_name> the rootfs filename.

    • Using the libvirt XML virtual machine definition used for creating the rootfs:
    • virsh create rootfs_XXX.xml
      

      and manually opening the console using:

      virt-viewer VMNAME
      

      being VMNAME the name or number assigned by libvirt to the virtual machine (you can get it with "virsh list" command or just looking for the <name> tag in root_fs_XXX.xml file).

  • Once the virtual machine is started and you have access to the console, you can make the modifications desired, for example, updating the VNXACE daemon following the step described below.

  • </ul>


    Updating VNXACE daemon

  • rootfs_XXX.xml, which are libvirt specifications to start virtual machines with Internet connection (through a NAT) using the different VNX root file-systems. They are included to easily allow modifying root filesystems (for example, to install new software packages).
  • Modify root filesystem scenarios (root_fs_XXX.xml)

    To modify a root filesystem, for example, installing new software packages, just start the associated libvirt scenario with:


    To easy the process, you can use the vnx_modify_rootfs simple script that starts the virtual machine and opens the console:

    /usr/share/vnx/bin/vnx_modify_rootfs root_fs_XXX.xml