Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
blocks:server:virtualized [2024-06-25 15:52] – Recommend to use net-blocks admin | blocks:server:virtualized [2025-09-05 20:10] (current) – Deleted admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Virtual Server Installation====== | ||
- | Blocks works well on virtual servers, whether "in the cloud" or on premise. For such environments, | ||
- | |||
- | There are two methods available for getting Blocks up and running in a virtual environment: | ||
- | |||
- | - Installation from scratch using our cloud server installation scripts (recommended). | ||
- | - Installing a bare-bones Blocks server based on a OVA server image file (described below). | ||
- | |||
- | In most cases, installing the server using our [[https:// | ||
- | |||
- | The method described below uses an standard " | ||
- | |||
- | :!: This is an advanced guide, descibing an unsupported method for running Blocks. If you don't feel at home in a Linux terminal window, you're strongly advised to use our [[blocks: | ||
- | |||
- | ===Minimal Server OS=== | ||
- | The virtual server image discussed here runs is based on Debian, without any desktop environment. Thus, all system management and maintenance must be done from the command line. Most of the additional functions included with our standard Linux serve rimage are not included here. | ||
- | |||
- | ===No Webmin interface=== | ||
- | The user-friendly, | ||
- | |||
- | ===No DHCP server=== | ||
- | There' | ||
- | |||
- | ===No DNS server=== | ||
- | The same applies for the DNS server. While the software is included also in the virtualized server image, it has not been pre-configured and is not enabled. | ||
- | |||
- | =====Virtual Environment===== | ||
- | This image is designed to be used in a virtualized environment. It is distributed as an [[https:// | ||
- | |||
- | * Oracle [[https:// | ||
- | * VMWare' | ||
- | |||
- | After importing the OVA file into your virtualizer of choice, start it up and wait for the login screen to appear. | ||
- | |||
- | =====Users and Passwords===== | ||
- | For full system access, log in with the user name **root**, with password //pixi//. This **root** user can do anything without restrictions, | ||
- | |||
- | User name **blocks**, with default password // | ||
- | |||
- | =====Network Configuration===== | ||
- | On the Host computer, running VirtualBox (or other preferred virtualizer), | ||
- | |||
- | ====Guest Linux OS terminal window==== | ||
- | Find the network interface name and verify connectivity. | ||
- | * Use the command //ip addr// to see all network interfaces with their names. Ignore the //lo// loopback interface. | ||
- | * The name is typically something like //enp0s3//. | ||
- | * If the interface is already UP, and you have internet access, you're done | ||
- | * Verify internet access by using the command //ping 1.1.1.1//, that should show the turn-around time in mS repeatedly if OK. | ||
- | |||
- | ===Verify/ | ||
- | If you didn't automatically get network access, you need to configure networking inside the virtual Blocks server. Settings are specified in the **/ | ||
- | If required, add a file there and name it //primary// (although the actual file name isn't important). Enter the following data into the file. You can do so using the simple terminal text editor //nano//. | ||
- | < | ||
- | auto enp0s3 | ||
- | allow-hotplug enp0s3 | ||
- | iface enp0s3 inet dhcp | ||
- | </ | ||
- | |||
- | Use the actual name of your interface in the file instead of //enp0s3//, if different. | ||
- | These settings result in a dynamic address, suitable for testing purposes. Since the interface is bridged, the virtual machine will get a network address from your local network, assuming there' | ||
- | |||
- | :!: Do not use a wifi network interface, since that will typically not provide a dynamic address to the virtual machine. | ||
- | |||
- | Alternatively, | ||
- | < | ||
- | auto enp0s3 | ||
- | allow-hotplug enp0s3 | ||
- | iface enp0s3 inet static | ||
- | address 192.168.0.31/ | ||
- | gateway 192.168.0.1 | ||
- | dns-nameservers 1.1.1.1 8.8.8.8 | ||
- | </ | ||
- | |||
- | After making changes, restart the virtual machine using //reboot now// or merely restart the networking stack by | ||
- | //systemctl restart networking// | ||
- | |||
- | =====License Access===== | ||
- | Blocks server software requires a license to be operational. Either connect a physical license key to a USB port or request a cloud-based license (requires internet access). A physical license key can be accessed either directly from a USB port attached to the virtual machine or over the local network. | ||
- | |||
- | [[blocks: | ||
- | |||
- | |||
- | |||
- | |||
- | =====Blocks Configuration===== | ||
- | There' | ||
- | |||
- | =====Starting and Stopping Blocks===== | ||
- | Assuming that the license key is accessible, Blocks should start automatically. Blocks is started and stopped by an operating system service known as // | ||
- | |||
- | < | ||
- | systemctl --user status blocks | ||
- | </ | ||
- | |||
- | If Blocks is currently active, you should see the text " | ||
- | |||
- | < | ||
- | systemctl --user enable --now blocks | ||
- | </ | ||
- | |||
- | To stop and disable Blocks: | ||
- | |||
- | < | ||
- | systemctl --user disable --now blocks | ||
- | </ | ||
- | |||
- | Note that //systemd// differentiates between // | ||
- | |||
- | If you run into trouble launching Blocks, and the //status// command doesn' | ||
- | |||
- | < | ||
- | journalctl -n 20 --no-pager --user-unit blocks | ||
- | </ | ||
- | |||
- | This will show the 20 most recent //systemd// log messages related to blocks. Again, you must be logged in as the //blocks// user in order to use this command. | ||
- | |||
- | =====Using HTTPS with Blocks===== | ||
- | |||
- | The server image includes [[http:// | ||
- | |||
- | =====Security Considerations===== | ||
- | This section describes some security considerations. You don't need to do any of this to get a functioning Blocks system. | ||
- | |||
- | ===Secure Shell Remote Access (SSH)=== | ||
- | Secure Shell is not enabled in the VM image. SSH may be useful for many system configuration and remote access purposes. If desired, enable SSH in the VM's console window using the command //systemctl enable ssh// while running as the root user. Before enabling SSH, set a strong password for the blocks user account. The root account is not enabled for SSH access. This can be changed in the file / | ||
- | |||
- | ===Firewall=== | ||
- | The firewall is not enabled in the VM image. Very few services are enabled, so you may not need a firewall since only the required ports are exposed. Feel free to [[https:// | ||