redhat:virtualization-redhat:start

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
redhat:virtualization-redhat:start [2020/04/01 12:01] michaelredhat:virtualization-redhat:start [2020/04/01 12:09] – [Configure KVM Environment] michael
Line 192: Line 192:
  
 <WRAP center box 100%> <WRAP center box 100%>
-''Allow QEMU/KVM Commands for personal user:''+==== Allow QEMU/KVM Commands for personal user: ====
  
 If you want to allow your login user (non-root) to run virsh command or other KVM/QEMU commands, or use these commands without sudo, (needed by cockpit) then add your login user to the libvirt group as follows: If you want to allow your login user (non-root) to run virsh command or other KVM/QEMU commands, or use these commands without sudo, (needed by cockpit) then add your login user to the libvirt group as follows:
Line 202: Line 202:
  
 <WRAP center box 100%> <WRAP center box 100%>
-''Setup own VM-Storage / ISO-Storage configuration:''+==== Setup own VM-Storage / ISO-Storage configuration: ====
  
----- +**Create needed directories**:
- +
-Create needed directories:+
  
 <code> <code>
-usermod -aG libvirt YOURUSERNAME+mkdir -p /data01/vm-storage 
 +# mkdir /data01/iso-images
 </code> </code>
  
 ---- ----
  
-Make the virsh pool configuration changes:+**Make the virsh pool configuration changes**:
  
   - Listing current pools: <code># virsh pool-list</code><sxh bash; gutter: false;>   - Listing current pools: <code># virsh pool-list</code><sxh bash; gutter: false;>
Line 222: Line 221:
 default              active     yes  default              active     yes 
 </sxh> </sxh>
-  - Destroying pool:<code># virsh pool-destroy default</code><sxh bash; gutter: false;>Pool default destroyed</sxh> +  - ''Destroying current default pool:''<code># virsh pool-destroy default</code><sxh bash; gutter: false;>Pool default destroyed</sxh> 
-  - Undefine pool:<code> +  - ''Undefine current default pool:''<code>virsh pool-undefine default</code><sxh bash; gutter: false;>Pool default has been undefined</sxh> 
-virsh pool-undefine default +  - ''Defining a new pool with name "default":''<code># virsh pool-define-as --name default --type dir --target /data01/vm-storage</code><sxh bash; gutter: false;>Pool default defined</sxh> 
-Pool default has been undefined +  - ''Set pool to be started when libvirt daemons starts:''<code># virsh pool-autostart default</code><sxh bash; gutter: false;>Pool default marked as autostarted</sxh> 
-Defining a new pool with name "default": +  - ''Start pool:''<code># virsh pool-start default</code><sxh bash; gutter: false;>Pool default started</sxh> 
- +  - ''Checking pool state:''<code># virsh pool-list</code><sxh bash; gutter: false;>
-virsh pool-define-as --name default --type dir --target /media/work/kvm +
-Pool default defined +
-Set pool to be started when libvirt daemons starts: +
- +
-virsh pool-autostart default +
-Pool default marked as autostarted +
-Start pool: +
- +
-virsh pool-start default +
-Pool default started +
-Checking pool state: +
- +
-virsh pool-list+
 Name                 State      Autostart  Name                 State      Autostart 
 ------------------------------------------- -------------------------------------------
 default              active     yes   default              active     yes  
-From now, when creating virtual machines, Virtual Machine Manager will inform you that the *.img file (virtual disk of your VM), will be saved at /media/work/kvm. +</sxh> 
-</code>+ 
 +From now, when creating virtual machines, Virtual Machine Manager will inform you that the *.img file (virtual disk of your VM), will be saved at ''/data01/vm-storage/''.
 </WRAP> </WRAP>
  
  • redhat/virtualization-redhat/start.txt
  • Last modified: 2020/09/02 12:37
  • by michael