Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
blocks:server:virtualized [2023-03-27 10:04] – [Network Access from Host Computer] mattias | blocks:server:virtualized [2025-09-05 20:10] (current) – Deleted admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Virtualized Server Image====== | ||
- | While the full Linux-based server image can be installed on a virtual machine, it is not specifically designed for that purpose. Installations that run Blocks in a virtualized environment often have different priorities than those using a stand-alone server. Many of the features included in the full server Linux image are typically managed by other parts of the infrastructure in a virtualized environment. | ||
- | |||
- | :!: This is an advanced guide. If you don't feel at home in a Linux terminal window, you should probably not follow it. | ||
- | |||
- | ===Minimal Server OS=== | ||
- | The full Linux-based server runs an enhanced desktop version of Ubuntu, including a user friendly window-and-mouse based desktop environment. That's suitable for users that prefer such a desktop environment for managing their server. In contrast, the virtual server image discussed here runs on Debian, which is essentially the same operating system core, but a pure server-version, | ||
- | |||
- | ===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: | ||
- | |||
- | |||
- | |||
- | ==== Connecting the USB License Key to Another Computer ==== | ||
- | In the example above, the license key is physically connected to the host computer, and then accessed over the (host-computer internal) " | ||
- | |||
- | |||
- | =====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:// | ||