Difference between revisions of "Virtio"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(8 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
Example Virtual Machine using virtio:
 
Example Virtual Machine using virtio:
* <code>[[virt-install]] --autostart --check all=on --name YOUR_VM_MACHINE --memory VM_MEMORY --vcpus VM_CPUs --os-variant ubuntu18.04 --cdrom VM_INSTALLATION_MEDIA --disk /path/libvirt/VM_STORAGE_POOL_NAME/YOUR_VM_MACHINE.qcow2 --noautoconsole --wait TIME_TO_WAIT --network type=direct,source=eno111,source_mode=bridge,model=[[virtio]]</code>
+
* <code>[[virt-install]] --autostart --check all=on --name YOUR_VM_MACHINE --memory VM_MEMORY --vcpus VM_CPUs --os-variant ubuntu18.04 --cdrom VM_INSTALLATION_MEDIA --disk /path/libvirt/VM_STORAGE_POOL_NAME/YOUR_VM_MACHINE.qcow2 --noautoconsole --wait TIME_TO_WAIT [[--network]] [[type=direct]],source=eno111,source_mode=bridge,model=[[virtio]]</code>
 +
 
 +
 
 +
 
 +
== Migrate to virtio ==
 +
Replace:
 +
<target dev='hda' bus='ide'/>
 +
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
 +
 
 +
New options:
 +
: <code><target dev='vda' bus='virtio'/></code>
  
 
== Related terms ==
 
== Related terms ==
 
* <code>[[virt-install --import]]</code>
 
* <code>[[virt-install --import]]</code>
 
* [[KVM networking]]
 
* [[KVM networking]]
 +
* <code>[[virtio-fs]]</code>
  
 
== Activities ==
 
== Activities ==
 
* [[Install virtio-win]]
 
* [[Install virtio-win]]
 +
* Change an existing interface to virtio: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/sect-kvm_para_virtualized_virtio_drivers-using_kvm_virtio_drivers_for_nic_devices
  
 
== See also ==
 
== See also ==
 +
* {{virtio}}
 
* {{KVM networking}}
 
* {{KVM networking}}
 
* {{KVM}}
 
* {{KVM}}

Latest revision as of 09:19, 4 April 2021

Virtio[1] is the main platform for IO virtualization in KVM


Example Virtual Machine using virtio:

  • virt-install --autostart --check all=on --name YOUR_VM_MACHINE --memory VM_MEMORY --vcpus VM_CPUs --os-variant ubuntu18.04 --cdrom VM_INSTALLATION_MEDIA --disk /path/libvirt/VM_STORAGE_POOL_NAME/YOUR_VM_MACHINE.qcow2 --noautoconsole --wait TIME_TO_WAIT --network type=direct,source=eno111,source_mode=bridge,model=virtio


Migrate to virtio[edit]

Replace:

<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>

New options:

<target dev='vda' bus='virtio'/>

Related terms[edit]

Activities[edit]

See also[edit]

  • https://www.linux-kvm.org/page/Virtio
  • Advertising: