Download and deploy VM images
Read the following sections to learn how to download the images and deploy them using your preferred virtualization tool.
On this page:
Download the VM image
You can download hardened Linux VM images from OpenLogic’s Nexus Sonar repository. Each compressed archive includes a VMDK or QCOW2 image.
Deploy the VM image
Use the following table to find high-level instructions for deploying and consuming the VMDK or QCOW2 disk images across various virtualization platforms. Because the hardened Linux images are shipped without a default password, you must inject credentials using Cloud-Init after deployment.
Platform | Format | Tool | High-level instructions |
---|---|---|---|
VirtualBox |
VMDK |
GUI |
Import VMDK as existing disk |
VMware Workstation |
VMDK |
GUI |
Replace default disk with provided VMDK |
VMware ESXi/vSphere |
VMDK |
Web UI |
Upload VMDK > Attach to new VM |
KVM/Virt-Manager |
QCOW2 |
GUI |
Import existing disk |
KVM/CLI |
QCOW2 |
virt-install |
Import via command line |
Use Cloud-Init with hardened Linux VM images
OpenLogic hardened Linux VM images are shipped with no default password. You must inject credentials using Cloud-Init. This allows you to create your own credentials at deployment time, eliminating the need to distribute default passwords.
To inject credentials using Cloud-Init:
-
Create a
user-data
file with your desired configuration. For example, to create a user with SSH access:Copy#cloud-config
users:
- name: rocky
gecos: Rocky User
groups: wheel
sudo: ['ALL=(ALL) NOPASSWD:ALL'}
shell: /bin/bash
lock_passwd: true
ssh_authorized_keys:
- ssh-rsa AAA ...your-public-key...
ssh_pwauth: false -
Create a
meta-data
file with instance metadata (can be minimal).Copyinstance-id: my-vm-001
local-hostname: my-vm -
Generate an ISO file using both files:
Copygenisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data
-
Attach the
seed.iso
file to your VM as a CD-ROM drive. The method depends on your cloud or virtualization platform:-
KVM/Libvirt: Add to
virt-install
:Copy--disk path=/var/lib/libvirt/images/cloudinit.iso,device=cdrom
-
VMWare/VirtualBox: Attach the ISO as a CD-ROM in the VM settings.
-
OpenStack: Use the
--user-data
option when creating the server.
-
-
Verify the configuration after the VM boots:
-
Confirm that the user was created.
-
Veriy SSH access using your key.
-
Ensure no default password is present.
-