Access denied with using KVM and libvirt with Virtual Machine Manager

Questions about virtualization software
Forum rules
Before you post please read how to get help
Post Reply
simpsonetti
Level 1
Level 1
Posts: 8
Joined: Wed Jan 28, 2015 10:15 am

Access denied with using KVM and libvirt with Virtual Machine Manager

Post by simpsonetti » Wed Mar 14, 2018 7:17 am

Hi,
I want to use KVM with libvirt an Virtual Machine Manager. I have 2 pools, one with my iso's and one on an usb-hdd where i store my FILENAME.qcow2 file.
I create the qcow2 with 300Gb filesize.

I start using VMM (as my regular user) add my iso, select RAM and CPU, select my custom storage (the qcow2 file) and than i get a message:
Der Emulator besitzt ggf. keine Suchberechtigungen für den Pfad «/media/gdecke/data/data-pool/windows-imc.qcow2». ( The emulator may not have search permissions for the path "/media/gdecke/data/data-pool/windows-imc.qcow2". )
"do you want to correct it?" -> YES -> i get next error " / media / gdecke: [Errno 1] Operation not allowed: '/ media / gdecke'"
The permissons were root:root 777 for the qcow2 file.
So i manualy adjust these to my user "gdecke" with 777 .
After that i could set the name of the VM and by clicking NEXT i'm in the mainmenu for my VM (because i activate the ceckbox " adjust settings before installation")
I see there my Virtual HD with the source path and everythings seems to be okay.
Than i will to begin the installation and i get this here:

Installation konnte nicht fertiggestellt werden: «Cannot access storage file '/media/gdecke/data/data-pool/windows-imc.qcow2' (as uid:64055, gid:133): Keine Berechtigung»
( Unable to complete installation: Can not access storage file /media/gdecke/data/data-pool/windows-imc.qcow2 (as uid: 64055, gid: 133): No permission » )
Even if i change permission to uid64055 (libvirt-qemu and gid133 = kvm the permissions after trying to start the installation are again at root:root 777 for the windows-imc.qcow2 file.

Does someone has any hints or sugestions for me?


this is my PC:
inxi -Frxzc0
System: Host: r930 Kernel: 4.13.0-26-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: MATE 1.18.0 (Gtk 3.18.9-1ubuntu3.3) Distro: Linux Mint 18.3 Sylvia
Machine: System: FUJITSU product: CELSIUS R930power
Mobo: FUJITSU model: D3118-A2 v: S26361-D3118-A2
Bios: FUJITSU // American Megatrends v: V4.6.5.4 R1.6.0 for D3118-A2x date: 06/05/2014
CPU(s): 2 Hexa core Intel Xeon E5-2620 v2s (-HT-MCP-SMP-) cache: 30720 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 50402
clock speeds: max: 2600 MHz 1: 2100 MHz 2: 2100 MHz 3: 2100 MHz 4: 2100 MHz 5: 2100 MHz 6: 2100 MHz
7: 2100 MHz 8: 2100 MHz 9: 2100 MHz 10: 2100 MHz 11: 2100 MHz 12: 2100 MHz 13: 2100 MHz 14: 2100 MHz
15: 2100 MHz 16: 2100 MHz 17: 2100 MHz 18: 2100 MHz 19: 2100 MHz 20: 2100 MHz 21: 2100 MHz
22: 2100 MHz 23: 2100 MHz 24: 2100 MHz
Graphics: Card-1: NVIDIA GF119 [NVS 315] bus-ID: 03:00.0
Card-2: NVIDIA GF119 [NVS 315] bus-ID: 04:00.0
Card-3: NVIDIA GF119 [NVS 315] bus-ID: 83:00.0
Display Server: X.Org 1.18.4 drivers: nvidia,nouveau (unloaded: fbdev,vesa)
Resolution: 1920x1080@59.93hz, 1920x1080@59.93hz
GLX Renderer: NVS 315/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 384.111 Direct Rendering: Yes
Audio: Card-1 3x NVIDIA GF119 HDMI Audio Controller
driver: snd_hda_intelsnd_hda_intelsnd_hda_intel bus-ID: 83:00.1
Card-2 Intel C600/X79 series High Definition Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
Card-3 Creative Live! Cam Sync HD [VF0770] driver: USB Audio usb-ID: 001-007
Sound: Advanced Linux Sound Architecture v: k4.13.0-26-generic
Network: Card-1: Intel 82579LM Gigabit Network Connection driver: e1000e v: 3.2.6-k port: 9040 bus-ID: 00:19.0
IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Card-2: Broadcom NetXtreme BCM5761 Gigabit Ethernet PCIe driver: tg3 v: 3.137 bus-ID: 06:00.0
IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Card-3: Intel 82574L Gigabit Network Connection driver: e1000e v: 3.2.6-k port: 4000 bus-ID: 07:00.0
IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives: HDD Total Size: 16473.0GB (53.5% used) ID-1: /dev/sda model: RAID_5/6_SAS_6G size: 1022.1GB
ID-2: USB /dev/sdg model: Cruzer_Blade size: 4.0GB ID-3: /dev/sdh model: iSCSI_Storage size: 7445.3GB
ID-4: USB /dev/sdi model: 01FFWX size: 8001.6GB
Partition: ID-1: / size: 728G used: 566G (82%) fs: ext4 dev: /dev/dm-0
ID-2: /boot size: 472M used: 183M (41%) fs: ext2 dev: /dev/sda1
ID-3: swap-1 size: 206.03GB used: 0.00GB (0%) fs: swap dev: /dev/dm-1
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 30.0C mobo: N/A gpu: 0.0:58C
Fan Speeds (in rpm): cpu: N/A
Repos: Active apt sources in file: /etc/apt/sources.list
deb http://download.virtualbox.org/virtualbox/debian xenial contrib
Active apt sources in file: /etc/apt/sources.list.d/giuspen-ppa-xenial.list
deb http://ppa.launchpad.net/giuspen/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/giuspen/ppa/ubuntu xenial main
Active apt sources in file: /etc/apt/sources.list.d/google-chrome.list
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
Active apt sources in file: /etc/apt/sources.list.d/nextcloud-devs-client-xenial.list
deb http://ppa.launchpad.net/nextcloud-devs/client/ubuntu xenial main
deb-src http://ppa.launchpad.net/nextcloud-devs/client/ubuntu xenial main
Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://mirror.netcologne.de/linuxmint/packages sylvia main upstream import backport
deb http://mirror.netcologne.de/ubuntu xenial main restricted universe multiverse
deb http://mirror.netcologne.de/ubuntu xenial-updates main restricted universe multiverse
deb http://mirror.netcologne.de/ubuntu xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ xenial partner
Active apt sources in file: /etc/apt/sources.list.d/opera-stable.list
deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
Active apt sources in file: /etc/apt/sources.list.d/teamviewer.list
deb http://linux.teamviewer.com/deb stable main
deb http://linux.teamviewer.com/deb preview main
Info: Processes: 507 Uptime: 2 days Memory: 41764.5/193323.5MB Init: systemd runlevel: 5 Gcc sys: 5.4.0
Client: Shell (bash 4.3.481) inxi: 2.2.35

Post Reply

Return to “Virtualization”