/ Juniper VMX

Run VMX on Oracle Linux

We run into a few issues running VMX on Oracle Linux and here are a few notes.

Make sure KVM is installed and running

The vmx.sh script will try to run virsh -c qemu:///system version and it'll fail if it does not work so make sure:
kvm is installed:
yum -y install kvm virt-manager libvirt

kvm is running:
systemctl enable libvirtd systemctl start libvirtd

No oracle_virtio.env file

That one was just a plain copy:
cp env/ubuntu_virtio.env env/oracle_virtio.env

And change the follwing:
PARAMS_pkg_cmd='rpm -q' PARAMS_qemu_bin='/usr/libexec/qemu-kvm'

Fix the vmx system setup script

open scripts/kvm/common/vmx_kvm_system_setup.sh
cmd="service libvirtd start"
cmd="systemctl start libvirtd"

Make sure bridge settings are correct:

In your vmx.conf make sure is set to the correct interface ( in this case virbr0-nic )
HOST: host-management-interface : virbr0-nic

Make sure the bridge name is correct:

`#External bridge configuration

  • type : external
    name : virbr0 # Max 10 characters`
Change the machine type in your template files:

The original template files located in scripts/templates are geared towards ubuntu which has the following machine types in their respective files:

_vPFE-ref-ubuntu.xml.org: <type arch='x86_64' machine='pc-0.13'>hvm</type>

_vPFE-ref.xml.org: <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>

since OEL KVM only has the following:

[root@kvm]# /usr/libexec/qemu-kvm -machine ?
Supported machines are:
none                 empty machine
pc                   RHEL 7.0.0 PC (i440FX + PIIX, 1996) (alias of pc-i440fx-rhel7.0.0)
pc-i440fx-rhel7.0.0  RHEL 7.0.0 PC (i440FX + PIIX, 1996) (default)
rhel6.6.0            RHEL 6.6.0 PC
rhel6.5.0            RHEL 6.5.0 PC
rhel6.4.0            RHEL 6.4.0 PC
rhel6.3.0            RHEL 6.3.0 PC
rhel6.2.0            RHEL 6.2.0 PC
rhel6.1.0            RHEL 6.1.0 PC
rhel6.0.0            RHEL 6.0.0 PC

You need to change both of the above machine types to pc

Symlink qemu-kvm

The script is looking for qemu-system-x86_64 and I was too lazy to fix all of them so just symlinked it:
ln -s /usr/libexec/qemu-kvm /usr/bin/qemu-system-x86_64