Click on the Downloads section, under ONES, click to download ONES Release 2.0
Copy ONES Release 2.0 package (qcow2) to KVM Hypervisor Server
Create the VM using GUI App virt-manager
If your host server has Ubuntu Desktop and virt-manager installed you can use it to deploy the VM. Make sure you can start the Virtual Machine Manager and that it connects successfully to the local hypervisor.
Creating a VM with virt-manager is very straightforward, Use the following steps to deploy the ONES-Application
File -> New Virtual Machine -> Import existing disk image -> Forward
Now the ONES Application is ready to use
Create the VM using QEMU (XML configuration)
Create an XML configuration file from the following template using vi
Line #2 The Name of the VMLine #3 The amount of System Memory for the VMLine #4 The amount of System Memory for the VMLine #5 The number of vCPU Core for the VMLine #25 The Path to the qcow2 VM image fileLine #35 The name of the Linux bridge on the host machine
Create a Linux bridge configuration file (bridged-network.xml) for libvirt from the following template
Line #4 the name of the Linux bridge on the host machine
Define the Linux bridge for the VM
#Execute the below command to attach the VM to the Linux Bridge sonic@sonic-39:~$ virsh net-define bridged-network.xmlsonic@sonic-39:~$ virsh net-start br0sonic@sonic-39:~$ virsh net-autostart br0sonic@sonic-39:~$ virsh net-list Name State Autostart Persistent---------------------------------------------------------- br0 active yes yessonic@sonic-39:~$
Start the VM
virsh create <VMXMLconfigurationfile>#sonic@sonic-39:~$ virsh create ones.xml #Domain ONES_VM01 created from ones.xml#sonic@sonic-39:~$
If you see a permission error run the virsh command with sudo may fix the issue
Check the VM status
sonic@sonic-39:~$ virsh list Id Name State----------------------------------------------------8 ONES_VM01 runningsonic@sonic-39:~$