Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
redhat:virtualization-redhat:start [2020/04/01 11:56] – michael | redhat:virtualization-redhat:start [2020/09/02 12:37] (current) – michael | ||
---|---|---|---|
Line 8: | Line 8: | ||
+ | * [[redhat: | ||
* [[redhat: | * [[redhat: | ||
Line 192: | Line 193: | ||
<WRAP center box 100%> | <WRAP center box 100%> | ||
- | '' | + | ==== 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 201: | Line 202: | ||
</ | </ | ||
- | '' | + | <WRAP center box 100%> |
- | Setup own VM-Storage / ISO-Storage configuration: | + | ==== Setup own VM-Storage / ISO-Storage configuration: |
- | ---- | + | **Create needed directories**: |
- | + | ||
- | Create needed directories: | + | |
< | < | ||
- | # usermod | + | # mkdir -p / |
+ | # mkdir / | ||
</ | </ | ||
---- | ---- | ||
- | Make the virsh pool configuration changes: | + | **Make the virsh pool configuration changes**: |
- | - Listing current pools: < | + | - Listing current pools: < |
- | <sxh bash; gutter: false;> | + | |
Name | Name | ||
Line 223: | Line 222: | ||
default | default | ||
</ | </ | ||
- | + | | |
- | | + | - '' |
- | Pool default destroyed</ | + | - '' |
- | - Undefine pool: | + | - '' |
- | + | - '' | |
- | $ virsh pool-undefine default | + | - '' |
- | Pool default has been undefined | + | |
- | Defining a new pool with name " | + | |
- | + | ||
- | $ 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 | Name | ||
------------------------------------------- | ------------------------------------------- | ||
default | default | ||
- | 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. | + | </ |
- | </ | + | |
+ | 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 '' | ||
</ | </ | ||