Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blocks:server:creating_a_server [2019-05-24 09:32]
mattias
blocks:server:creating_a_server [2023-03-16 07:10] (current)
mattias [Prepare Server Image USB Stick]
Line 10: Line 10:
 To build a PIXILAB BLOCKS Server from scratch, you'll need the following items: To build a PIXILAB BLOCKS Server from scratch, you'll need the following items:
   * A working computer (Mac or PC) with an internet connection, for downloading the software and copying it to the USB sticks.   * A working computer (Mac or PC) with an internet connection, for downloading the software and copying it to the USB sticks.
-  * Two USB memory sticks of at least 4GB each. A USB 3 compatible stick will speed up the process.+  * Two USB memory sticks of at least 8GB each. A USB 3 compatible stick will speed up the process.
   * A suitable computer to install the server software onto, which will become the BLOCKS Server.   * A suitable computer to install the server software onto, which will become the BLOCKS Server.
-The server image is qualified for use on servers supplied by PIXILAB, as well as on an Intel NUC (e.g., model NUC5CPYH and NUC7i3BNK) with 4GB of RAM and a 128GB (or larger) SSD with a single partition. While the software will likely install and work work on other PC computers, only the models mentioned here are supported.+The server image is qualified for use on servers supplied by PIXILAB, as well as on an Intel NUC (e.g., model NUC5CPYH or later) with 4GB of RAM and a 256GB (or larger) SSD. While the software will likely install and work work on other PC computers, only the models mentioned here are supported.
  
 :!: The Intel NUC is primarily intended for demos and basic tests. For final installation, please contact PIXILAB to obtain a suitable server. :!: The Intel NUC is primarily intended for demos and basic tests. For final installation, please contact PIXILAB to obtain a suitable server.
- 
 ===== Prepare Clonezilla USB Stick ===== ===== Prepare Clonezilla USB Stick =====
 A program named Clonezilla is used to write the server software to the computer. Follow these instructions to download Clonezilla and putting it on one of the USB sticks.  A program named Clonezilla is used to write the server software to the computer. Follow these instructions to download Clonezilla and putting it on one of the USB sticks. 
-  - Download Clonezilla Live version 2.6.1-25 from [[http://pixilab.se/outgoing/blocks/clonezilla-live-2.6.1-25-amd64.iso|here]] or from the [[http://free.nchc.org.tw/clonezilla-live/stable/clonezilla-live-2.6.1-25-amd64.iso| official archive]]. If you download from some other site, make sure you chose the "amd64" architechture and the "iso" file type. +  - Download Clonezilla Live version 2.6.1-25 from [[https://int.pixilab.se/outgoing/files/clonezilla-live-2.6.1-25-amd64.iso|here]] or from the [[http://free.nchc.org.tw/clonezilla-live/stable/| official archive]]. If you download from some other site, make sure you chose the "amd64" architechture and the "iso" file type. 
   - Download [[https://etcher.io|Etcher]] for your computer (Mac or Windows).    - Download [[https://etcher.io|Etcher]] for your computer (Mac or Windows). 
   - Use Etcher to create a bootable USB stick from the "iso" file downloaded in step 1.   - Use Etcher to create a bootable USB stick from the "iso" file downloaded in step 1.
Line 26: Line 25:
 Mark the USB stick so you know it contains the Clonezilla software. Mark the USB stick so you know it contains the Clonezilla software.
 ===== Prepare Server Image USB Stick ===== ===== Prepare Server Image USB Stick =====
-Download the Server image file from [[:blocks#downloads|here]]. Unpack the ZIP file, and copy the resulting image folder onto a FAT32 formatted USB stick. The result should be like in the image shown below (although the exact date in the file name may be different).+ 
 +[[:blocks:linux|Download the Server image from here]]. Unpack the ZIP file, and copy the resulting image folder onto a FAT32 formatted USB stick. The result should be like in the image shown below (although the exact date in the file name may be different)
 + 
 +:!: Windows may not be able to unpack large ZIP files using its built-in functionality. If so, download 7-Zip or WinZip, and use that program to unzip the image file instead.
  
 {{ :blocks:source_usb_stick.png?nolink |}} {{ :blocks:source_usb_stick.png?nolink |}}
Line 45: Line 47:
  
 {{ :blocks:server:clonzilla_initial.png?800;nolink |}} {{ :blocks:server:clonzilla_initial.png?800;nolink |}}
 +sc
 ===== Writing the Server Image to the SSD ===== ===== Writing the Server Image to the SSD =====
 Clonezilla will present you with a sequence of windows and options. Follow the sequence outlined below in order to copy the content of your server image USB stick to the server's SSD. Clonezilla will present you with a sequence of windows and options. Follow the sequence outlined below in order to copy the content of your server image USB stick to the server's SSD.
Line 101: Line 104:
  
 === Chose the "Expert" Mode === === Chose the "Expert" Mode ===
-{{ :blocks:server:expertmode2.jpg?600 |}}+ 
 +{{ :blocks:server:expertmode.png?800;nolink |}} 
  
 === Chose "Restore an Image" === === Chose "Restore an Image" ===
Line 116: Line 121:
  
 {{ :blocks:server:destination_drive.png?800;nolink |}} {{ :blocks:server:destination_drive.png?800;nolink |}}
 +
 +Use the default settings in the extra parameters dialogs.
 +
 +{{ :blocks:server:clone_expert_settings.png?800;nolink |}}
 +
 +Select the -k1 setting in the following "Advanced Extra Parameters" window to create the partition table proportionally.
 +
 +{{ :blocks:server:clone_k1_option.png?800;nolink |}}
  
 Skip checking the source image in the next prompt. Skip checking the source image in the next prompt.
Line 142: Line 155:
 === Next Step === === Next Step ===
  
-If you want to configure the server for your own use, please continue reading the [[First Start]] article+To configure the server, please continue with the [[blocks:server:first_start|First Start]] article.
- +
-===== Cloning to a Smaller Disk ===== +
- +
-Clonezilla may fail if you attempt to write the image to a drive or partition that's smaller than the one the image was made from. We try to be conservative by making the image from a small (120GB) disk. But even when cloning to a drive that has the same size, there may be minor differences between brands, resulting in a small difference in the number of space actually available on the disk. This may result in Clonezilla failing with a messa indicating that the destination disk was too small. +
- +
-In such cases, you can often work around this problem by selecting "Expert" mode rather than "Beginner" mode in the step titled "Chose the Beginner Mode" above, like this: +
- +
-{{ :blocks:server:expertmode.png?800;nolink |}} +
- +
-This will result in a list of "expert options" being presented later in the process: +
- +
-{{ :blocks:server:extraparameterssmallerdisk1.png?800;nolink |}} +
-{{ :blocks:server:extraparameterssmallerdisk2.png?800;nolink |}} +
- +
-Choose the -icds option here using the down arrow and spacebar, so an asterisk appears next to this option in the list, as shown above. Then proceed with the cloning operation as usual. This will force Clonezilla to disregard the size of the target disk, writing the image anyway. If the clone fails due to to small disk, try the option K1 and make a second attempt.    +
- +
-===== Cloning to a Larger Disk ===== +
-If your target disk is larger than the disk used to make the image in the first place, you may want to use the full size of your target disk. By default, Clonezilla will only use as much of the target disk as the size of the original disk used to make the image (e.g., 120GB for our standard image). To use the full size of the target disk, do as follows: +
- +
-  - Follow the steps above under "Cloning to a Smaller Disk" to show the expert options. +
-  - Selet the -r option but //not// the -icds option. +
-  - On the next screen, select the -k1 option to "Create partition table proportionally".+
  
-Then proceed as above.  
  
-:!: You can use the //disks// program to verify the size of the partitions on the target disk once started.