Virtual machine
The first thing that is required is the creation of a simple VM that you can edit to configure the exact configuration required:
[root@rhel-tiger-14-6 ~]# mkdir /home/qemu/forticarrier-vm [root@rhel-tiger-14-6 ~]# cd /home/qemu/forticarrier-vm/ [root@rhel-tiger-14-6 forticarrier-vm]# unzip /var/lib/libvirt/images/FGT_VM64_KVM-v7.0.2-build0234-FORTINET.out.kvm.zip Archive: /var/lib/libvirt/images/FGT_VM64_KVM-v7.0.2-build0234-FORTINET.out.kvm.zip inflating: fortios.qcow2 [root@rhel-tiger-14-6 forticarrier-vm]# virt-install --noautoconsole --name FCR-VM-TIGER-14-48 --memory 1024 --vcpus 1 --import --disk /home/qemu/forticarrier-vm/fortios.qcow2,size=2 --disk /home/qemu/forticarrier-vm/fgt-logs.qcow2,size=30 --network type=direct,source=eno3,source_mode=bridge,model=virtio --noreboot WARNING No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results. Starting install... Allocating 'fgt-logs.qcow2' | 30 GB 00:00:00 Domain creation completed. You can restart your domain by running: virsh --connect qemu:///system start FCR-VM-TIGER-14-48 [root@rhel-tiger-14-6 forticarrier-vm]# virsh list --all Id Name State ------------------------------------- - FCR-VM-TIGER-14-48 shut off
You edit the VM definition using virsh edit FCR-VM-TIGER-14-48
, which updates /etc/libvirt/qemu/FCR-VM-TIGER-14-48.xml
. The following subsections discuss sections of this configuration to note. The libvirt.org website details the libvirt xml items.