From ISPWiki
Jump to: navigation, search

Using virtio will help to get high performance network and disk operations. We recommend that you use virtio disks.

In VMmanager 5.4.0 and later virtio is a default driver, if the OS template supports this technology. The <virtiodisk>yes</virtiodisk> and <virtionet>yes<virtionet> tags in the xml description of the OS template should be specified.

Already existing virtual machines can also be used as virtio. However, you might need to modify settings of the virtual machine.

How to create virtio disks

To use already existing disks in a virtio model, select a virtual machine and open a list of its virtual disks. Select all the disks and click "Disable". The click "Enable", select a disabled disk, select the "virtio" bus. Perform the same operation for all the disks of that virtual machine.

Once you are done, restart the virtual machine.

How to create a virtio network

To enable the virtio network for a virtual machine, access the master node via ssh and execute the following command:

/usr/local/mgr5/sbin/mgrctl -m vmmgr maintenance.virtiofornet elid=VM_ID enabled=on

where VM_ID id the virtual machine's id.


/usr/local/mgr5/sbin/mgrctl -m vmmgr maintenance.virtiofornet elid=VM_ID enabled=off