Kirjoittaja Aihe: Virtuaalikoneen (qemu/kvm) asennus ei onnistu - SOLVED  (Luettu 1282 kertaa)

0 jäsentä ja 3 Vierasta katselee tätä aihetta.

Poissa RaijaR

  • Jäsen
  • Viestejä: 1455
  • Sukupuoli: Nainen
Virhe toivottavasti kertoo syyn.
Tämä on ensimmäinen kerta, kun yritän luoda virtuaalikonetta puhtaan asennuksen jälkeen.

Lisätietoa:
Koodia: [Valitse]
Operating System: openSUSE Tumbleweed 20240726
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.9.9-1-default (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 9 5900HX with Radeon Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: MINIPC PN52

localhost:~ # id raija
uid=1000(raija) gid=1000(raija) groups=1000(raija),36(kvm),108(libvirt)
localhost:~ #

raija@localhost:~> l openSUSE-Tumbleweed-NET-x86_64-Snapshot20240726-Media.iso
-rw-r--r-- 1 raija raija 292552704 29. 7. 12:08 openSUSE-Tumbleweed-NET-x86_64-Snapshot20240726-Media.iso
raija@localhost:~>


# grep group /etc/libvirt/qemu.conf
# The group for QEMU processes run by the system instance. It can be
#group = "qemu" <----------------?
# to match the configured user/group above. Defaults to 1.
# What cgroup controllers to make use of with QEMU guests
# the administrator has mounted cgroups, e.g.:
#  mkdir /dev/cgroup
#  mount -t cgroup -o devices,cpu,memory,blkio,cpuset none /dev/cgroup
#cgroup_controllers = [ "cpu", "devices", "memory", "blkio", "cpuset", "cpuacct" ]
#cgroup_device_acl = [
#swtpm_group = "tss"
# group meaning no other process will share Hyper Threads of a single core with
# QEMU. Each QEMU has its own group.
#              into separate scheduling group
# "vcpus"    - only QEMU vCPU threads are placed into a separate scheduling group,
#              emulator threads and helper processes remain outside of the group
#              separate scheduling group, helper processes remain outside of
#              the group
#              scheduling group
localhost:~ #

localhost:~ # virsh net-list --all
 Name      State    Autostart   Persistent
--------------------------------------------
 default   active   yes         yes
« Viimeksi muokattu: 29.07.2024 - klo:13:35 kirjoittanut RaijaR »
Pöytäkone ASUS ExpertCenter PN52, Tumbleweed, jossa nippu distroja QEMU/KVM:ssä.
Ja Väinö-minibulli :D
Huom! Kirjoitusvihreet tulee jostain aravuudesta...

Poissa RaijaR

  • Jäsen
  • Viestejä: 1455
  • Sukupuoli: Nainen
Vs: Virtuaalikoneen (qemu/kvm) asennus ei onnistu - SOLVED
« Vastaus #1 : 29.07.2024 - klo:13:39 »
https://gist.github.com/yspkm/fb69f61f5fc0cc5c90bc01aded1f2204
Koodia: [Valitse]
How to Configure Access for qcow2 in virt-manager

If you've created a qcow2 virtual disk, you might have noticed that it's not internally accessible even when you access it using sudo virt-manager. To fix this, we need to make a few changes to the /etc/libvirt/qemu.conf file.

1. Locate the Configuration File: The configuration file is found at /etc/libvirt/qemu.conf.

2. Modify the User and Group Settings: Find the lines that specify the user and group for QEMU processes. The default settings look like:

# user = "root"
# group = "root"

Uncomment (remove the # at the start) these lines and set them as follows:

user = "root"
group = "root"
Pöytäkone ASUS ExpertCenter PN52, Tumbleweed, jossa nippu distroja QEMU/KVM:ssä.
Ja Väinö-minibulli :D
Huom! Kirjoitusvihreet tulee jostain aravuudesta...