wiki:UserGuide/Omf/SaveImage

Version 6 (modified by msherman, 5 years ago) ( diff )

Saving Disk Images

OMF Save

Once you have the image prepared the way you want it. On the node run:

Error: Failed to load processor shell-session
No macro or processor named 'shell-session' found

This will remove udev rules (to prevent renaming of interfaces) and dump log files to lower the size of the image. It also shutdown the node.

Once the node has been shutdown, to save the existing disk image running on the node, use the omf save command on the console:

Error: Failed to load processor shell-session
No macro or processor named 'shell-session' found

The output of this image saving process will look like the following:

Error: Failed to load processor shell-session
No macro or processor named 'shell-session' found

Please make sure that the process ends without errors.

If there are no errors, at the end of the saving process, you will have disk image file with the name:

Error: Failed to load processor shell-session
No macro or processor named 'shell-session' found

in the directory

Error: Failed to load processor shell-session
No macro or processor named 'shell-session' found

This directory is available on each console, as well as the machine with the host name "frisbee". This information is printed in the output shown above.

You can then reload this disk image on a node (or nodes) using the omf load command.

Working with the saved image

Images are treated as standard linux files. That means that you can:

  • check that they have a nonzero size ls -al imagename
  • Rename them mv imagename imagenewname
  • Delete them rm imagename
  • set permissions chmod 600 filename
  • set user and group chown username:groupname filename

When you use OMF load, the -i flag refers to a file name in this directory. It obeys linux file permissions, so if you want to keep other people from loading your image, ensure that it doesn't allow group or everyone read permissions.

Note: See TracWiki for help on using the wiki.