Without a graphics head, I had to use the virt-install command line directly to create the VM for the install. This mostly worked, but I cannot figure how to get VirstIO SCSI disks presented to the guest. Here is the shell script I used to create the guest:
Code: Select all
#!/bin/bash
#
DVD1_ISO=$(ls /repo/OpenVMS/X86E921OE.ISO)
NEW_MACHINE=$1
MACO6=$2
VPORT=$3
virt-install \
--connect qemu:///system -n $NEW_MACHINE \
--ram 8192 --vcpus=4 \
--cdrom=/usr/share/OVMF/UefiShell.iso \
--disk device=disk,discard='unmap',path=/dev/T0/$NEW_MACHINE-disk0 \
--disk device=disk,discard='unmap',,path=/dev/T0/$NEW_MACHINE-disk1 \
--disk device=disk,path=/dev/T1/$NEW_MACHINE-disk2 \
--disk device=cdrom,path=$DVD1_ISO \
--network=bridge:kvm-guests,model='e1000',target.dev=vn.$1.0 \
--mac=00:16:3e:01:08:$MACO6 \
--noreboot --vnc --vncport=$VPORT \
--os-type generic --machine q35 \
--boot uefi
This script is derived from the one I use for building my Linux VMs. After running this, I connected to the console which was running the generic KVM UEFI menus. I accessed the Device Manager section, then the Secure Boot Configuration and disabled "Attempt Secure Boot". I saved the change then used the Reset option and the virtual system powered down. I then restarted and was put directly into the VSI Boot Manager.
Things are working quite nicely, but I have two issues that I need help with: VirtIO SCSI disk devices and console width.
VirtIO SCSI from command line?
---------------------------
The disk devices are presented to the guest VM as SATA devices. They are quite fast, but I would rather use the most efficient IO possible. When I create my Linux VMs, the disk stanzas would have "bus=virtio" added. With this syntax, the devices appear to the guest as vda, vdb, etc. instead of sda, sdb, etc. However, using this setting for the creation of the VMS guest made the disk devices invisible to VMS. That was true of both the install environment and the fully built system.
From the install documentation, it appears that when building the KVM guest using the Virtual Machine Manager GUI, it is possible to get VirtIO SCSI disks. How can I do this from the command line? Alternatively, what does the XML definition of the disk devices look like?
132 Column Hardware Console
--------------------------
The other issue i have is incredibly minor, yet annoying. How can I establish a 132 column width for the hardware console. As the system boots, the system appears to be wrapping at 80 columns and I cannot figure how to lock the console at 132 columns until well into startup.