|
Automatic filesystem image creation |
| Print |
|
Description
The automatic-image-creation is used to automatic created nfs- and iscsi-filesystem-images.
Usage
Install from NFS to NFS
- Create an empty mount point for the image on a NFS storage-server.
- Create an filesystem-image in the openQRM-server gui for the empty image.
- Add the following filesystem-image parameters:
- INSTALL_IMAGE=true;
- INSTALL_FROM_TARGET_IP_ADDRESS=[your-storage-server-ip];
- INSTALL_FROM_TARGET_PATH=[full-path-to-existing-fs-image-on-the-storage-server];
- Create and assign/start a virtual-environment using thie above create filesystem-image. The node will boot, mount source and target, copy source to target, umount and start the new created image.
- Remove the INSTALL_IMAGE=true; parameter from the filesystem-image configuration
Install from NFS to ISCSI
- Create an "empty" iscsi-lun/iscsi-block-device on the iscsi-target.
- Create an filesystem-image in the openQRM-server gui for the empty image.
- Add the following filesystem-image parameters:
- ISCSI_TARGET_NAME=[target-name];
- ISCSI_ROOT_PARTITION=1;
- ISCSI_LUN=0;
- ISCSI_ROOT_FS_TYPE=ext3;
- ISCSI_PORT=3260;
- ISCSI_HBA=0;
- INSTALL_IMAGE=true;
- INSTALL_FROM_TARGET_IP_ADDRESS=[your-storage-server-ip];
- INSTALL_FROM_TARGET_PATH=[full-path-to-the-empty-image-dir-on-the-storage-server];
(Note: ISCSI_PORT defaults to 3260 if not specified. additionally, an implicit parameter named ISCSI_INITIATOR contains the image identifier)
- Create and assign/start a virtual-environment using thie above create filesystem-image. The node will boot, mount source and target, copy source to target, umount and start the new created image.
- Remove the INSTALL_IMAGE=true; parameter from the filesystem-image configuration.
Technical Details
The automatic image creation happens during assignment of a VE. The booting node will mount "source" and "target" as configured by the parameters in the filesystem image configuration in the openQRN-server.
"source" -> where to get the image-content from (from nfs-export) "target" -> where to install the image-content to (to nfs-export or to iscsi-lun)
Then it will copy "source" to "target". After the copying phase finished it will umount "source" and "target" and continue with the regular startup of "target"(the new created image).
Knowledge Base / Known Issues
- After image-creation (at least) the parameter INSTALL_IMAGE=true; should be disabled/removed from the filesystem-image environment in the openQRM-server gui
|