35 | | * La vinculación entre el objeto imagen y el fichero físico de la imagen es automática si coinciden los nombres (nombre canónico con el nombre del fichero). |
36 | | * Para evitar problemas con el nombre canónico, intentar no utilizar algunos caracteres especiales tales como [ espacios, \ / ` ' . ] |
37 | | * Todos los campos son obligatorios, a pesar de que algunos no son validados por la aplicación web. |
38 | | |
39 | | |
40 | | == Crear una imagen desde una partición de un cliente !OpenGnsys == #CrearImagen |
41 | | |
42 | | Una vez que la imagen esta dada de alta, podemos crearla a partir de una partición de un equipo modelo que está iniciado con el cliente opengnsys. Desde la consola de administración en la '''pestaña aulas''', nos vamos al equipo que deseemos y utilizamos el comando '''crear imagen'''. |
43 | | |
44 | | Me permite seleccionar la partición que quiero clonar, el nombre de la imagen y el repositorio donde la almacenaré. |
45 | | |
46 | | Observamos que junto al nombre de la imagen aparece el repositorio al que la hemos asociado en el momento de definirla, este valor es sólo informativo ya que la imagen se creará en el repositorio que elijamos en este comando. |
| 35 | * If the names match (canonical name and file name) the link between image object and the physical file will be automatic. |
| 36 | * To avoid problems with canonical name, it is important try not use some specials caracters as [ spaces \ / ` ' . ] |
| 37 | * All fields are required, although some are not validated by the web application. |
| 38 | |
| 39 | |
| 40 | == Create an image from a partition of an OpenGnSys client == #CrearImagen |
| 41 | |
| 42 | Once the image is registered, we can create a partition from a computer of referenced that it is iniciated by OpenGnSys client. From the administration console in '''tab classrooms''', click on the computer and use the command '''Create Image'''. |
| 43 | |
| 44 | This allow select the partition to deploy, the image name and the repository where save it. |
| 45 | |
| 46 | We note that beside the name of the image is the repository that we have associated at the time to define, this value is informational because the image is created in the repository you choose this command. |
50 | | El fichero de imagen se almacenará en el repositorio que hayamos elegido en el directorio /opt/opengnsys/images con el nombre canónico acabado en .img |
51 | | |
52 | | == Incorporar una imagen desde otro servidor o aplicación de clonación == |
53 | | |
54 | | Opengnsys puede gestionar imágenes creadas en otros servidores. Es compatible con Brutalix, HIDRA, EAC, FOG, Clonezilla y todas las imágenes creadas con partclone o partimage y comprimidas con lzop o gzip. |
55 | | |
56 | | El sistema detecta automáticamente el tipo de imagen, en cuanto a compresión, herramenta de clonación y tipo de sistema de ficheros, de forma que podrá restaurarla correctamente. |
57 | | |
58 | | === Copiando la imagen a nuestro servidor === |
59 | | |
60 | | La imagen deberá ser almacenada en /opt/opengnsys/images del servidor repositorio. |
61 | | |
62 | | La imagen debe ser un sólo archivo. En el caso de que nuestra imagen haya sido creada en un modo multivolumen, debemos de convertirla en un solo archivo, utilizando para ello la instrucción: cat imagen* >> nuevaimagen. |
63 | | |
64 | | El nombre de la imagen será la composición del nombre canónico que se introdujo al dar de alta el objeto imagen desde la opción "imagen" de la consola web más la extensión .img. |
65 | | |
66 | | Según la situación de la imagen tenemos dos casos: |
67 | | |
68 | | * Si la imagen ya está en /opt/opengnsys/images (debido a que la partición o el disco duro ha sido reutilizado) |
69 | | * Eliminamos los .sum y .torrent asociados a dicha imagen, si existen. |
70 | | * En el caso de que el nombre de la imagen tuviese una extensión distinta a .img renombrarla para que así sea. |
71 | | |
72 | | * Si la imagen no está en el directorio /opt/opengnsys/images. |
73 | | * Copiarla con una extensión distinta a .img. |
74 | | * Una vez terminado el proceso de copiado, renombrar la imagen para que tenga la extensión .img |
75 | | |
76 | | !OpenGnsys realiza una serie de procesos para confirmar la integridad de la imagen que guardarán la información en el fichero .sum y el .torrent. Estos procesos acceden a la imagen y la bloquean, de forma que si copiamos la imagen directamente con la extensión .img puede estropearse. |
77 | | |
78 | | El proceso de incorporación habrá finalizado cuando aparezcan en /opt/opengnsys/images los correspondientes ficheros asociados a la imagen: para el fichero-imagen.img serán el fichero-imagen.img.sum y fichero-imagen.img.torrent. |
79 | | |
80 | | Un método para comprobar que la imagen incorporada será reconocida por !OpenGnsys es ejecutar, desde un cliente PXE !Opengnsys la siguiente instrucción: |
| 50 | The image file will be stored in the repository in directory /opt/opengnsys/images with the canonical name finished in .img |
| 51 | |
| 52 | == Incorporate an image form other server or application of deploying == |
| 53 | |
| 54 | OpenGnSys can manage images created in other servers. It is compatible with Brutalix, HIDRA, EAC, FOG, Clonezilla and for all the images created by partclone or partimage and compressed with lzop or gzip. |
| 55 | |
| 56 | Automatically, the system detect the image type, in terms of compression, deploy tool and filesystem type, so that you can restore correctly. |
| 57 | |
| 58 | === Copy the Image to Server === |
| 59 | |
| 60 | The image will be stored in /opt/opengnsys/images of the repository server. |
| 61 | |
| 62 | The image must be only a file. In the case that the image would be created in multivolume mode, we should convert in a single file using the command: cat image* >> newimage. |
| 63 | |
| 64 | The image name will be composed by the canonical name and the extension .img. |
| 65 | |
| 66 | Depending of the situation of the image have two cases: |
| 67 | |
| 68 | * If the image exists in /opt/opengnsys/images (debido a que la partición o el disco duro ha sido reutilizado) |
| 69 | * If the files with extensions .sum and .torrent, associated to the image, exists you will have to delete them. |
| 70 | * In the case that the image name have a different extension to .img, you should rename it to .img. |
| 71 | |
| 72 | * If the image not exists in /opt/opengnsys/images. |
| 73 | * Copy with a different extension to .img. |
| 74 | * Rename the image to extension .img |
| 75 | |
| 76 | OpenGnSys performs a series of processes to confirm the integrity of the image information stored in the file .sum and .torrent. These processes have access to the image and block it, so that if we copy the image directly with extension .img may be damaged. |
| 77 | |
| 78 | The incorporation process is complete when appears in /opt/opengnsys/images the files associated to the image: for file-image.img will be the file-image.img.sum and file-image.img.torrent. |
| 79 | |
| 80 | A method to verify that the embedded image will be recognized by OpenGnSys is run from a PXE client OpenGnSys the following: |
89 | | == Restaurar una imagen == |
90 | | |
91 | | Se podrán restaurar imágenes contenidas en el repositorio que tiene es equipo asignado o situadas en la cache de otros clientes o en otro repositorio. |
92 | | |
93 | | Las caches de los clientes se podrán definir en la consola como repositorio, pero no podrán estar asignadas a un equipo ya que no contienen la parte del cliente que está en la red. |
94 | | |
95 | | Tenemos tres formas de restaurar las imágenes. |
96 | | |
97 | | * '''Comando restaurar''': restaura una imagen desde el repositorio asignado al equipo a través de unicast, multicast o torrent (en los dos últimos casos usará la cache). |
98 | | * '''Asistente Deploy de imágenes'''. Restaura una imagen utilizando la cache. La trae del repositorio a la cache con los protocolos multicast o torrent |
99 | | * '''Asistente Clonación Particiones Remotas'''. Utiliza un equipo cliente como origen de la clonación, permite tomar el contenido de una partición o una imagen contenida en la cache. También permite traer una imagen desde el repositorio por unicast y servirla al resto de equipos del grupo con el protocolo unicast o multicast |
100 | | |
101 | | __Comprobación del tamaño de la cache__ |
102 | | |
103 | | Al restaurar utilizando la cache del cliente destino se comprueba si hay espacio disponible para guardar la imagen, en caso contrario se clonará directamente desde el repositorio a la partición del equipo cliente por unicast. |
104 | | |
105 | | |
106 | | === Comando restaurar === |
107 | | |
108 | | En la '''pestaña aulas''' pulsaremos sobre el ámbito deseado con el botón derecho pulsamos el comandos '''Restaurar Imagen'''. |
109 | | |
110 | | Mostrará la información sobre las particiones del equipo/equipos y el sistema operativo que contienen. |
111 | | |
112 | | Nos pedirá información sobre: |
113 | | * '''par''': partición de destino de la imagen. |
114 | | * '''Imagen''' (mismo sistema o distinto sistema): la imagen que queremos restaurar situada en el repositorio que tiene asignado el ámbito. Hay que tener en cuenta que si elegimos la opción (distinto sistema), el Sistema Operativo elegido debe ser compatible con el sistema de ficheros de la partición (ej. No podríamos clonar un sistema linux si la partición es NTFS), en ese caso habría que [wiki:OperacionParticionado#Formatearunapartici%C3%B3n formatear antes la partición] a un sistema de ficheros válido. |
115 | | * '''Método''': unicast, multicast o torrent |
| 89 | == Restore an Image == |
| 90 | |
| 91 | We can restored images contained in the repository that has the computer assigned or placed in the cache of other clients or in other repository. |
| 92 | |
| 93 | The client caches can be defined in the console and in the repository, but can not be assigned to a computer because they do not contain the client side that is on the network. |
| 94 | |
| 95 | We have three ways to restore the images. |
| 96 | * '''Command Restore''': Restores an image from the repository assigned to the computer via UNICAST, MULTICAST or TORRENT (in the latter two case will use the cache). |
| 97 | * '''Wizard Image Deploy'''. Restores an image using the cache. Brings the repository to the cache with MULTICAST or TORRENT protocols. |
| 98 | * '''Wizard Remote Partition Deploy'''. Use a computer client as deploy origins, allow tiliza un equipo cliente como origen de la clonación, can take the contents of a partition or an image file in the cache. Also allowed to bring a picture from the repository for unicast and serve it to other computers in the group with unicast or multicast protocol. |
| 99 | |
| 100 | __Checking the Size of the Cache__ |
| 101 | |
| 102 | When you restore using the computer's destination cache, it is checked for available space to store the image, otherwise it will be deployed directly from the repository to the client computer partition by UNICAST. |
| 103 | |
| 104 | === Command Restore === |
| 105 | |
| 106 | In the '''tab Classrooms''' right-click on the scope and click on '''Restore Image'''. |
| 107 | |
| 108 | It shown info about computer/s partitions and the operating system. |
| 109 | |
| 110 | Please give information about: |
| 111 | * '''par''': target partition image. |
| 112 | * '''Image''' (same or different system): Restore the image you want placed in the repository that it is assigned the scope. Keep in mind that if we choose option (other system), the operating system chosen must be compatible with the file system partition (i.e. could not clone a linux system if the partition is NTFS), in that case would [wiki: OperacionParticionado#Formatearunapartici%C3%B3n Format before Partition] to a valid filesystem. |
| 113 | * '''Method''': UNICAST, MULTICAST or TORRENT |