docs_in_draft:kvm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
docs_in_draft:kvm [2023/05/22 17:33] – [Access methods for viewing the VM] chentedocs_in_draft:kvm [2023/05/27 11:41] – [Summary] chente
Line 31: Line 31:
   * Installation.   * Installation.
   * Overview of the plugin's operation.   * Overview of the plugin's operation.
-  * Preconfiguring the plugin → Storage and network interface.+  * Preconfiguring the plugin → Storage and Network interface.
   * Configuring a Virtual Machine.   * Configuring a Virtual Machine.
   * Access methods for viewing the VM.   * Access methods for viewing the VM.
Line 37: Line 37:
   * Remote connection with virt-manager to KVM   * Remote connection with virt-manager to KVM
   * Increase the number of monitors in the VM with QXL   * Increase the number of monitors in the VM with QXL
 +  * Support
 +  * Source Code
  
 ---- ----
Line 154: Line 156:
       * Follow the same to create the //isos// folder.       * Follow the same to create the //isos// folder.
       * ...       * ...
-      * <html><body><table width="100%" border="0"><tr><td colspan="2" style="background-color:#69A5FF;height:30px;"><strong><span style="color:#FFFFFF;font-size:110%;">&#160;  +      * <html><body><table width="100%" border="0"><tr><td colspan="2" style="background-color:#FFB663;height:30px;"><strong><span style="color:#FFFFFF;font-size:110%;">&#160;  
-Note +Warning  
-</span></strong></td></tr><tr><td style="background-color:#E6FEFF;height:25px;width:380px;">+</span></strong></td></tr><tr><td style="background-color:#FFE4A6;height:25px;width:380px;">
 These folders are now owned by the <em>root</em> user and the <em>users</em> group and have 2775 permissions, that's enough for it to work.<br> These folders are now owned by the <em>root</em> user and the <em>users</em> group and have 2775 permissions, that's enough for it to work.<br>
 The <b>libvirt-qemu</b> user (id=64055) must have path access to these folders, make sure of this if you choose another way to create those folders. The <b>libvirt-qemu</b> user (id=64055) must have path access to these folders, make sure of this if you choose another way to create those folders.
Line 217: Line 219:
 == Configuring a Macvtap Bridge == == Configuring a Macvtap Bridge ==
  
 +(FOTO 7)
   * This type of network interface is easily configurable in the openmediavault-KVM GUi.   * This type of network interface is easily configurable in the openmediavault-KVM GUi.
   * With this network interface, the guest virtual machine's IP will be on the same network as the host and will be able to access shared resources on the network, but will not be able to access shared resources by the host.   * With this network interface, the guest virtual machine's IP will be on the same network as the host and will be able to access shared resources on the network, but will not be able to access shared resources by the host.
Line 234: Line 237:
 == Configuring a br0 bridge interface on OMV == == Configuring a br0 bridge interface on OMV ==
  
 +(FOTO 8)
   * This interface is the one that offers more connectivity to the guest machine on the host. It allows access to shared resources and also the IP will be in the same network range as the host.   * This interface is the one that offers more connectivity to the guest machine on the host. It allows access to shared resources and also the IP will be in the same network range as the host.
   * The procedure can be summarized by saying that we are going to create a virtual network switch in OMV. To do this, we are going to replace the network interface that the OMV server is currently using with another Bridge type interface. OMV will use the new Bridge interface from then on and will continue to receive the same IP it had, but now through the new network interface.   * The procedure can be summarized by saying that we are going to create a virtual network switch in OMV. To do this, we are going to replace the network interface that the OMV server is currently using with another Bridge type interface. OMV will use the new Bridge interface from then on and will continue to receive the same IP it had, but now through the new network interface.
Line 272: Line 276:
 ===== Configuring a Virtual Machine ===== ===== Configuring a Virtual Machine =====
  
 +(FOTO 9)
   * The first requirement is to have storage and a network interface. If you have not configured them yet, do so by following the steps in the previous point.   * The first requirement is to have storage and a network interface. If you have not configured them yet, do so by following the steps in the previous point.
   * Download the ISO of the guest operating system you want to configure and store it in the //isos// folder.   * Download the ISO of the guest operating system you want to configure and store it in the //isos// folder.
Line 329: Line 334:
  
 ===== Access methods for viewing the VM ===== ===== Access methods for viewing the VM =====
 +
 +(FOTOS 10 11)
  
 Once the VM is started, we have different alternatives to access the VM and visualize its operation: Once the VM is started, we have different alternatives to access the VM and visualize its operation:
Line 356: Line 363:
 <html><body><table width="100%" border="0"><tr><td colspan="2" style="background-color:#69A5FF;height:30px;"><strong><span style="color:#FFFFFF;font-size:110%;">&#160; Note <html><body><table width="100%" border="0"><tr><td colspan="2" style="background-color:#69A5FF;height:30px;"><strong><span style="color:#FFFFFF;font-size:110%;">&#160; Note
 </span></strong></td></tr><tr><td style="background-color:#E6FEFF;height:25px;width:380px;"> </span></strong></td></tr><tr><td style="background-color:#E6FEFF;height:25px;width:380px;">
-Depending on the language of your keyboard and other variables, one method may work better than another. Try and decide the one that works best for you.+Depending on the language of your keyboard and other variables, one method may work better than another.<br> 
 +Try and decide the one that works best for you.
 </tr></table></body></html> </tr></table></body></html>
  
Line 365: Line 373:
 === Preparation === === Preparation ===
  
-  * Download the Windows 11 ISO. At this moment it can be downloaded on the [[https://www.microsoft.com/es-es/software-download/windows11|software download page]]+(FOTOS 12 13)https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso 
 +  * Download the Windows 11 ISO. At this moment it can be downloaded on the [[https://www.microsoft.com/en-us/software-download/windows11|software download page]]
     * Copy the ISO to the //isos// folder we have created for the plugin.     * Copy the ISO to the //isos// folder we have created for the plugin.
   * Download virtio drivers ISO for windows. It can be downloaded on the [[https://pve.proxmox.com/wiki/Windows_VirtIO_Drivers|proxmox download page]] or directly from the plugin:   * Download virtio drivers ISO for windows. It can be downloaded on the [[https://pve.proxmox.com/wiki/Windows_VirtIO_Drivers|proxmox download page]] or directly from the plugin:
Line 425: Line 434:
   * Right now we are using the virtio QXL drivers. For most users it should be enough, but if you need more graphics power you can attach a dedicated card to the vm.   * Right now we are using the virtio QXL drivers. For most users it should be enough, but if you need more graphics power you can attach a dedicated card to the vm.
   * The plugin does not provide this feature so you would have to do it manually. If you have the right hardware and enough patience you will be able to do it, it is a long and hard road, but it has an end.   * The plugin does not provide this feature so you would have to do it manually. If you have the right hardware and enough patience you will be able to do it, it is a long and hard road, but it has an end.
-  * A good starting point is here, in this [[https://forum.openmediavault.org/index.php?thread/43668-omv6-kvm-gpu-passthrough-how-to/&postID=316896#post316896|forum post]] Ryecoaaron published several interesting links to achieve this.+  * A good starting point is here, in this [[https://forum.openmediavault.org/index.php?thread/43668-omv6-kvm-gpu-passthrough-how-to/&postID=316896#post316896|forum post]] Ryecoaaron published several interesting links to achieve this. This other [[https://forum.openmediavault.org/index.php?thread/38149-new-openmediavault-kvm-plugin/&postID=306739#post306739|forum post]] shows links to port an integrated intel GPU to the VM.
  
  
Line 432: Line 441:
 ===== Remote connection with virt-manager to KVM ===== ===== Remote connection with virt-manager to KVM =====
  
 +(FOTO 14)
   * You can connect to KVM from your PC with [[https://virt-manager.org/|virt-manager]] through the local network. It can be useful if you need to make any changes to an already configured VM. It is not advisable to fully configure a VM from virt-manager.   * You can connect to KVM from your PC with [[https://virt-manager.org/|virt-manager]] through the local network. It can be useful if you need to make any changes to an already configured VM. It is not advisable to fully configure a VM from virt-manager.
   * To achieve this connection follow these steps:   * To achieve this connection follow these steps:
Line 442: Line 452:
     * Click on **Connect**.     * Click on **Connect**.
     * Your VMs should now appear on the dashboard.     * Your VMs should now appear on the dashboard.
- 
- 
-(FOTO CONEXION) 
- 
  
 <html><body><table width="100%" border="0"><tr><td colspan="2" style="background-color:#FFB663;height:30px;"><strong><span style="color:#FFFFFF;font-size:110%;">&#160;  <html><body><table width="100%" border="0"><tr><td colspan="2" style="background-color:#FFB663;height:30px;"><strong><span style="color:#FFFFFF;font-size:110%;">&#160; 
Line 502: Line 508:
   * But be careful, you must assign slot that is available and not already occupied ''slot=''   * But be careful, you must assign slot that is available and not already occupied ''slot=''
  
 +----
  
 +===== Support =====
 +
 +If you need support on this plugin you can post your problem in this [[https://forum.openmediavault.org/index.php?thread/38149-new-openmediavault-kvm-plugin/&pageNo=1|dedicated forum thread]].
  
 ---- ----
Line 508: Line 518:
 ===== Source Code ===== ===== Source Code =====
  
--> [[https://github.com/OpenMediaVault-Plugin-Developers/openmediavault-kvm|Source Code]]+-> [[https://github.com/OpenMediaVault-Plugin-Developers/openmediavault-kvm|openmediavault-KVM]]
  
 +----
 +
 +===== A Closing Note =====
 +
 +We, who support the openmediavault project, hope that you’ll find your openmediavault server to be 
 +enjoyable, efficient, and easy to use.\\
 +\\
 +If you found this guide to be helpful, please consider a modest donation to support the 
 +hosting costs of this server (OMV-Extras) and the project (Openmediavault). \\
 +\\
 +**OMV-Extras.org**
 +\\
 +<html>
 +<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
 +<input type="hidden" name="cmd" value="_s-xclick">
 +<input type="hidden" name="hosted_button_id" value="2BQNGSC8HQJME">
 +<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" border="0">
 +<img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" border="0">
 +</form>
 +</html>
 +\\
 +\\
 +**www.openmediavault.org**
 +\\
 +<html>
 +<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
 +<input name="cmd" type="hidden" value="_s-xclick" /> 
 +<input name="hosted_button_id" type="hidden" value="95MF5UQ66PW2E" /> 
 +<input style="border: 0px; padding: 0px;" alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" type="image" /> 
 +<img loading="lazy" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" alt="" width="1" height="1" border="0" />
 +</form>
 +</html>
 +
 +
 +\\ 
 +\\
 +\\