Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


Jaden856

4 posts

Wannabe Geek


#302190 6-Nov-2022 12:46
Send private message

Hi,

 

I’m running a VM on RedHat. Seems that a the source of my problem is: is “rather nasty – qemu update to version 6 has changed compatibility (see here) and libvirt has not followed through.”

 

Was able to partially fix my issue by:
“An ugly workaround is to modify the XML directly (either using Virt-Manager or using text editor of the VM’s XML) and modify the disk to the following. Change ‘file’ into ‘block’ as the type, and change source from ‘file’ type to ‘dev’ type.” Running Systems » Blog Archive » qemu-kvm: file driver requires to be a regular file for ZFS volume

 

Remaining error I can’t fix is:
internal error: process exited while connecting to monitor: 2022-11-05T00:11:40.702330Z qemu-kvm: -blockdev {“driver”:“file”,“filename”:“/dev/sdb”,“node-name”:“libvirt-2-storage”,“auto-read-only”:true,“discard”:“unmap”}: ‘file’ driver requires ‘/dev/sdb’ to be a regular file

 

[xxxxxx@localhost ~]$ getfacl /dev/sdb
getfacl: Removing leading ‘/’ from absolute path names

 

file: dev/sdb owner: root group: disk

 

user::rw-
group::rw-
other::—

 

I tried the following command but can’t make it work:
setfacl -m u:libvirt-qemu:x /dev/sdb (setfacl: Option -m: Invalid argument near character 3)

 

Manjaro Linux Forum – 11 Apr 22  Virt-manager doesn't work "permission denied"

 

Bit of a noob here and looking for help

 

Cheers


Create new topic
openmedia
3449 posts

Uber Geek
+1 received by user: 877

Trusted

  #2992722 7-Nov-2022 08:09
Send private message

Can you grab the current XML definition for the VM and post the disk details

 

eg

 

  • virsh dumpxml <vm_name>

You should get something like

 

    <disk type='block' device='disk'>
      <driver name='qemu' type='raw'/>
      <source dev='/dev/sdb'/>
      <target dev='sda' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>





Generally known online as OpenMedia, now working for Red Hat APAC as a Technology Evangelist and Portfolio Architect. Still playing with MythTV and digital media on the side.




Jaden856

4 posts

Wannabe Geek


  #2994054 9-Nov-2022 19:22
Send private message

Thanks for replying. Here you go: 

 

 

 

domain type='kvm'>

 

  <name>ZFS</name>

 

  <uuid>9afbb0f8-857b-4ecf-837b-90dbb78c7191</uuid>

 

  <metadata>

 

    <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">

 

      <libosinfo:os id="http://libosinfo.org/unknown"/>

 

    </libosinfo:libosinfo>

 

    <cockpit_machines:data xmlns:cockpit_machines="https://github.com/cockpit-project/cockpit/tree/master/pkg/machines">

 

      <cockpit_machines:has_install_phase>false</cockpit_machines:has_install_phase>

 

      <cockpit_machines:install_source_type>file</cockpit_machines:install_source_type>

 

      <cockpit_machines:install_source>/var/lib/libvirt/iso/TrueNAS-12.0-U5.1.iso</cockpit_machines:install_source>

 

      <cockpit_machines:os_variant>unknown</cockpit_machines:os_variant>

 

    </cockpit_machines:data>

 

  </metadata>

 

  <memory unit='KiB'>16777216</memory>

 

  <currentMemory unit='KiB'>16777216</currentMemory>

 

  <vcpu placement='static'>1</vcpu>

 

  <resource>

 

    <partition>/machine</partition>

 

  </resource>

 

  <os>

 

    <type arch='x86_64' machine='pc-i440fx-rhel7.6.0'>hvm</type>

 

    <boot dev='hd'/>

 

  </os>

 

  <features>

 

    <acpi/>

 

    <apic/>

 

    <vmport state='off'/>

 

  </features>

 

  <cpu mode='custom' match='exact' check='full'>

 

    <model fallback='forbid'>Haswell-noTSX-IBRS</model>

 

    <vendor>Intel</vendor>

 

    <feature policy='require' name='vme'/>

 

    <feature policy='require' name='ss'/>

 

    <feature policy='require' name='vmx'/>

 

    <feature policy='require' name='pdcm'/>

 

    <feature policy='require' name='f16c'/>

 

    <feature policy='require' name='rdrand'/>

 

    <feature policy='require' name='hypervisor'/>

 

    <feature policy='require' name='arat'/>

 

    <feature policy='require' name='tsc_adjust'/>

 

    <feature policy='require' name='umip'/>

 

    <feature policy='require' name='md-clear'/>

 

    <feature policy='require' name='stibp'/>

 

    <feature policy='require' name='arch-capabilities'/>

 

    <feature policy='require' name='ssbd'/>

 

    <feature policy='require' name='xsaveopt'/>

 

    <feature policy='require' name='pdpe1gb'/>

 

    <feature policy='require' name='abm'/>

 

    <feature policy='require' name='ibpb'/>

 

    <feature policy='require' name='ibrs'/>

 

    <feature policy='require' name='amd-stibp'/>

 

    <feature policy='require' name='amd-ssbd'/>

 

    <feature policy='require' name='skip-l1dfl-vmentry'/>

 

    <feature policy='require' name='pschange-mc-no'/>

 

  </cpu>

 

  <clock offset='utc'>

 

    <timer name='rtc' tickpolicy='catchup'/>

 

    <timer name='pit' tickpolicy='delay'/>

 

    <timer name='hpet' present='no'/>

 

  </clock>

 

  <on_poweroff>destroy</on_poweroff>

 

  <on_reboot>restart</on_reboot>

 

  <on_crash>destroy</on_crash>

 

  <pm>

 

    <suspend-to-mem enabled='no'/>

 

    <suspend-to-disk enabled='no'/>

 

  </pm>

 

  <devices>

 

    <emulator>/usr/libexec/qemu-kvm</emulator>

 

    <disk type='file' device='disk'>

 

      <driver name='qemu' type='qcow2'/>

 

      <source file='/var/lib/libvirt/images/ZFS.qcow2'/>

 

      <backingStore/>

 

      <target dev='hda' bus='ide'/>

 

      <address type='drive' controller='0' bus='0' target='0' unit='0'/>

 

    </disk>

 

    <disk type='file' device='cdrom'>

 

      <driver name='qemu' type='raw'/>

 

      <target dev='hdb' bus='ide'/>

 

      <readonly/>

 

      <address type='drive' controller='0' bus='0' target='0' unit='1'/>

 

    </disk>

 

    <disk type='block' device='disk'>

 

      <driver name='qemu' type='raw'/>

 

      <source dev='/dev/sdb'/>

 

      <target dev='vda' bus='virtio'/>

 

      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>

 

    </disk>

 

    <disk type='block' device='disk'>

 

      <driver name='qemu' type='raw'/>

 

      <source dev='/dev/sdc'/>

 

      <target dev='vdb' bus='virtio'/>

 

      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>

 

    </disk>

 

    <controller type='usb' index='0' model='ich9-ehci1'>

 

      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>

 

    </controller>

 

    <controller type='usb' index='0' model='ich9-uhci1'>

 

      <master startport='0'/>

 

      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>

 

    </controller>

 

    <controller type='usb' index='0' model='ich9-uhci2'>

 

      <master startport='2'/>

 

      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>

 

    </controller>

 

    <controller type='usb' index='0' model='ich9-uhci3'>

 

      <master startport='4'/>

 

      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>

 

    </controller>

 

    <controller type='pci' index='0' model='pci-root'/>

 

    <controller type='ide' index='0'>

 

      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>

 

    </controller>

 

    <controller type='virtio-serial' index='0'>

 

      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>

 

    </controller>

 

    <interface type='network'>

 

      <mac address='52:54:00:93:e6:18'/>

 

      <source network='default'/>

 

      <model type='e1000'/>

 

      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>

 

    </interface>

 

    <serial type='pty'>

 

      <target type='isa-serial' port='0'>

 

        <model name='isa-serial'/>

 

      </target>

 

    </serial>

 

    <console type='pty'>

 

      <target type='serial' port='0'/>

 

    </console>

 

    <channel type='spicevmc'>

 

      <target type='virtio' name='com.redhat.spice.0'/>

 

      <address type='virtio-serial' controller='0' bus='0' port='1'/>

 

    </channel>

 

    <input type='mouse' bus='ps2'/>

 

    <input type='keyboard' bus='ps2'/>

 

    <graphics type='spice' autoport='yes' listen='127.0.0.1'>

 

      <listen type='address' address='127.0.0.1'/>

 

      <image compression='off'/>

 

    </graphics>

 

    <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'>

 

      <listen type='address' address='127.0.0.1'/>

 

    </graphics>

 

    <sound model='ich6'>

 

      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>

 

    </sound>

 

    <video>

 

      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>

 

      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>

 

    </video>

 

    <redirdev bus='usb' type='spicevmc'>

 

      <address type='usb' bus='0' port='1'/>

 

    </redirdev>

 

    <redirdev bus='usb' type='spicevmc'>

 

      <address type='usb' bus='0' port='2'/>

 

    </redirdev>

 

    <memballoon model='virtio'>

 

      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>

 

    </memballoon>

 

  </devices>

 

  <seclabel type='dynamic' model='selinux' relabel='yes'/>

 

  <seclabel type='dynamic' model='dac' relabel='yes'/>

 

</domain>

 

 

 

 

 

 

 

 


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.