omv6:omv6_plugins: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
omv6:omv6_plugins:kvm [2023/05/27 13:00] – [Configuring a Virtual Machine] chenteomv6:omv6_plugins:kvm [2024/04/22 04:02] (current) crashtest
Line 1: Line 1:
-{{indexmenu_n>5}}+{{indexmenu_n>7}}
 \\ \\
 <html><center><b>KVM Plugin For OMV6</b></center></html> <html><center><b>KVM Plugin For OMV6</b></center></html>
Line 54: Line 54:
   * The virtualization feature must be enabled in the server BIOS -> Consult your server's motherboard manual.   * The virtualization feature must be enabled in the server BIOS -> Consult your server's motherboard manual.
   * Consider the RAM needs for the guest VMs on your system.   * Consider the RAM needs for the guest VMs on your system.
 +  * A couple of cool beers on hand will be welcome.
  
 ---- ----
Line 61: Line 62:
 In OMV6's GUI:\\ In OMV6's GUI:\\
 Under **System** > **Plugins**, find and highlight **openmediavault-kvm 6.X**, and click the **install** button. Under **System** > **Plugins**, find and highlight **openmediavault-kvm 6.X**, and click the **install** button.
 +
 +<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;">
 +Depending on the development state of Debian at any given time, you may need to activate backports for the installation of this plugin.<br>
 +To do this go to the omv-extras tab in the OMV GUI and click the <b>Activate Backports</b> button. Once the installation is done you can disable backports again if you want.
 +</tr></table></body></html>
 +
  
 ---- ----
Line 168: Line 176:
 </tr></table></body></html> </tr></table></body></html>
         * ...         * ...
-      * In the **Path** field, search for the folder in the tree (button on the right) and select it.+      * In the **Path** field, search for the folder in the tree (button on the right) and select it. Disk mount folders are usually in the /srv folder.
       * Press **Add**       * Press **Add**
       * Now the pool is created, it only remains to activate it so that KVM can use it. To do it:       * Now the pool is created, it only remains to activate it so that KVM can use it. To do it:
Line 253: Line 261:
       * Now the new bridge network interface is configured, when you click on **Accept the changes** in the upper yellow bar, the previous interface will be deleted and the bridge will be created simultaneously. **Accept the changes** in the top yellow bar.       * Now the new bridge network interface is configured, when you click on **Accept the changes** in the upper yellow bar, the previous interface will be deleted and the bridge will be created simultaneously. **Accept the changes** in the top yellow bar.
     * Now the original interface is removed and the new bridge type interface is created and working. The name of the original interface no longer appears in the Device field, now the name of the interface is //br0//.     * Now the original interface is removed and the new bridge type interface is created and working. The name of the original interface no longer appears in the Device field, now the name of the interface is //br0//.
 +      * At this point netplan must make several changes to the network configuration. In some cases this procedure may require a server reboot for the configuration to stabilize.
   * This is the network interface that we will select in the plugin if we want a VM to use the //br0// bridge. We don't need to configure anything in the Network section of the plugin.   * This is the network interface that we will select in the plugin if we want a VM to use the //br0// bridge. We don't need to configure anything in the Network section of the plugin.
 +    * To select this network in a new vm, in the vm creation interface go to the Network Section and change the value of the Model field to Bridge, then change the value of the Bridge field to br0.
  
 <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:#69A5FF;height:30px;"><strong><span style="color:#FFFFFF;font-size:110%;">&#160; 
Line 271: Line 281:
  
 ===== Configuring a Virtual Machine ===== ===== Configuring a Virtual Machine =====
- 
-{{ :omv6:omv6_plugins:kvm9.jpg?direct&400|Services > KVM > VMs > Create VM}} 
  
   * 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.
 +{{ :omv6:omv6_plugins:kvm9.jpg?direct&600 |Services > KVM > VMs > Create VM}}
   * To configure a VM we must go in the GUI to **Services > KVM > VMs** and click on the **Add new vm** button from the menu on the top bar. A dialog box for entering the virtual machine configuration parameters will open with the following sections:   * To configure a VM we must go in the GUI to **Services > KVM > VMs** and click on the **Add new vm** button from the menu on the top bar. A dialog box for entering the virtual machine configuration parameters will open with the following sections:
     * **Settings**:     * **Settings**:
Line 332: Line 341:
 ===== Access methods for viewing the VM ===== ===== Access methods for viewing the VM =====
  
-(FOTOS 10 11)+{{ :omv6:omv6_plugins:kvm10.jpg?direct&400|Services >KVM > VMs > Create Consoles}}
  
 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 370: Line 379:
 === Preparation === === Preparation ===
  
-(FOTOS 12 13)https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso+[[https://www.microsoft.com/en-us/software-download/windows11|{{ :omv6:omv6_plugins:kvm11.jpg?direct&200|Windows software download page}}]]
   * 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]]   * 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.
 +[[https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso|{{ :omv6:omv6_plugins:kvm12.jpg?direct&200|Windows_VirtIO_Drivers}}]]
   * 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:
     * Go to **Services > KVM > Pools** and select the //isos// pool. The top buttons will be activated.     * Go to **Services > KVM > Pools** and select the //isos// pool. The top buttons will be activated.
Line 438: Line 448:
 ===== Remote connection with virt-manager to KVM ===== ===== Remote connection with virt-manager to KVM =====
  
-(FOTO 14)+{{ :omv6:omv6_plugins:kvm13.png?direct&400|}} 
   * 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 449: Line 460:
     * Click on **Connect**.     * Click on **Connect**.
     * Your VMs should now appear on the dashboard.     * Your VMs should now appear on the dashboard.
 +  * You can also use virt-manager through a docker container. In the [[omv6:omv6_plugins:docker_compose|openmediavault-compose]] plugin there is an example for using virt-manager via a docker container.
  
 <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; 
  • omv6/omv6_plugins/kvm.1685192430.txt.gz
  • Last modified: 2023/05/27 13:00
  • by chente