- OS: Debian GNU/Linux 12 (bookworm) x86_64
- Host: Intel NUC7JY
- Kernel: 6.1.0-26-amd64
- CPU: Intel Celeron J4005 (2) @ 2.700GHz
- GPU: Intel GeminiLake [UHD Graphics 600]
- Memory: 7287MiB / 7524MiB
Install QEMU / KVM & Libvirt
Code: Select all
sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon -y
sudo systemctl enable --now libvirtd
Code: Select all
sudo apt install virt-manager -y
Go to the Application launcher and search for “Virtual machine manager” (VMM) and run it. Before it opens, the system will ask to provide the root password. This will allow it to create and manage virtual machines.
Configure Virtual Machine
From the VMM, click File → New Virtual Machine
Wizard Step 1
- Choose, Local install media
- Click, Forward
- Click, Browse… and from the Locate ISO media volume dialog find and select the OpenVMS installation ISO image.
- Click, Choose Volume
- Deselect the Automatically detect… checkbox.
- In the Choose the operating system… input box, start typing the word, generic and options will appear above.
- Select, Generic or unknown OS
- Click, Forward
- Set Memory to 8192
- Set CPUs to 2
- Click, Forward
- Set disk image size to at least 16 GiB
- Click, Forward
- Choose and type a suitable Name
- Click the Customize configuration before install checkbox
- Click, Finish
- The VM hardware configuration dialog appears.
Overview
- Change the Chipset to Q35
- Change the Firmware to UEFI x86_64
- Click, Apply
- Change Disk bus to SATA
- Click, Apply
- Change Disk bus to SATA
- Click, Apply
- Enable the checkbox next to, Start virtual machine on host boot up
- In the Boot device order list, enable the checkbox next to, SATA CDROM 1
- Using the up arrow to the right of the list, move this entry to the top of the list.
- Click, Apply
Make sure the Device model is set to e1000
NAT
- Make sure the Network source is set to NAT
- Make sure the Network source is set to Macvtap device...
- Set Device Name to be the hardware address of the network card, e.g. eno1
Click, Begin Installation
Boot from Installation Media
In the VMM, select the virtual machine instance and click the Play button on the toolbar.
Click the Open button on the toolbar.
From the UEFI console window, display the available devices.
Code: Select all
BOOTMGR> DEVICES
BOOTABLE DEVICES: B = BootMgr Device, V = Default VMS Boot Device
BV DKA0 (HD) = FS0 UEFI: V9_2_2 VMS: X86SYS 16384 MB SATA Disk
DKA100 (DVD) = FS1 UEFI: V9_2_2 VMS: None 1481 MB SATA DVD
Code: Select all
BOOTMGR> b dka100:
To enable Automatic Boot of the VM to OpenVMS, type the following.
Code: Select all
BOOTMGR> auto boot
Now boot from the disk with the installed operating system.
Code: Select all
BOOTMGR> b dka0
From a terminal on the host, access the VM console as follows.
Code: Select all
screen virsh console NAME-OF-THE-VM
Code: Select all
virsh list
Id Name State
-------------------------
1 OpenVMS running
virsh Cheat Sheet
virsh is your friend especially if running the host headless. I prefer to use screen also which provides a convenient management layer over the sessions.
So, to connect to a VM use.
Code: Select all
screen virsh console NAME-OF-THE-VM
Code: Select all
virsh list --all
The following will allow you to manually edit the VM configuration.
Code: Select all
virsh edit NAME-OF-THE-VM
Code: Select all
virsh dumpxml NAME-OF-THE-VM > config.xml
Code: Select all
virsh destroy NAME-OF-THE-VM
Code: Select all
virsh start NAME-OF-THE-VM