Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #226628 > unrolled thread

virt-install returns error

Started byCharles Zeitler <cfzeitler@gmail.com>
First post2020-09-02 05:00 +0200
Last post2020-09-04 13:20 +0200
Articles 10 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  virt-install returns error Charles Zeitler <cfzeitler@gmail.com> - 2020-09-02 05:00 +0200
    Re: virt-install returns error Kenneth Parker <sea7kenp@gmail.com> - 2020-09-02 06:20 +0200
      Re: virt-install returns error Charles Zeitler <cfzeitler@gmail.com> - 2020-09-03 05:00 +0200
        Re: virt-install returns error john doe <johndoe65534@mail.com> - 2020-09-03 08:50 +0200
          Re: virt-install returns error Charles Zeitler <cfzeitler@gmail.com> - 2020-09-03 17:40 +0200
            Re: virt-install returns error john doe <johndoe65534@mail.com> - 2020-09-03 17:50 +0200
              Re: virt-install returns error Charles Zeitler <cfzeitler@gmail.com> - 2020-09-06 16:10 +0200
                Re: virt-install returns error john doe <johndoe65534@mail.com> - 2020-09-08 20:30 +0200
            Re: virt-install returns error Kenneth Parker <sea7kenp@gmail.com> - 2020-09-03 18:00 +0200
    Re: virt-install returns error Marko Randjelovic <markoran@eunet.rs> - 2020-09-04 13:20 +0200

#226628 — virt-install returns error

FromCharles Zeitler <cfzeitler@gmail.com>
Date2020-09-02 05:00 +0200
Subjectvirt-install returns error
Message-ID<AKraa-2t2-3@gated-at.bofh.it>
i get:

debian@debian:~$ su -c 'virt-install --name test --cdrom
/home/debian/mnt/sdi/Downloads/0_distros/windows/Win10* --memory 4000
--disk size=5 --cpu=host'
Password:

Starting install...
Allocating 'test.qcow2'
                                                 | 5.0 GB  00:00:00
ERROR    internal error: process exited while connecting to monitor:
nput0,bus=usb.0,port=1 -spice
port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,seamless-migration=on
-device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2
-device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device
hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev
spicevmc,id=charredir0,name=usbredir -device
usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 -chardev
spicevmc,id=charredir1,name=usbredir -device
usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on
ioctl(KVM_CREATE_VM) failed: 16 Device or resource busy
failed to initialize KVM: Device or resource busy
Removing disk 'test.qcow2'

also from dmesg:



[27901.188584] kvm: enabling virtualization on CPU1 failed
[27901.188589] kvm: enabling virtualization on CPU2 failed
[27901.188601] kvm: enabling virtualization on CPU0 failed
[27901.501308] audit: type=1400 audit(1599004754.100:55):
apparmor="STATUS" operation="profile_load" profile="unconfined"
name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11035
comm="apparmor_parser"
[27901.570108] virbr0: port 2(vnet0) entered blocking state
[27901.570114] virbr0: port 2(vnet0) entered disabled state
[27901.570271] device vnet0 entered promiscuous mode
[27901.590262] virbr0: port 2(vnet0) entered blocking state
[27901.590268] virbr0: port 2(vnet0) entered listening state
[27901.844514] audit: type=1400 audit(1599004754.448:56):
apparmor="STATUS" operation="profile_replace" info="same as current
profile, skipping" profile="unconfined"
name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11059
comm="apparmor_parser"
[27901.892175] audit: type=1400 audit(1599004754.496:57):
apparmor="DENIED" operation="open"
profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
name="/sys/devices/system/node/" pid=11119 comm="qemu-system-x86"
requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
[27901.892187] audit: type=1400 audit(1599004754.496:58):
apparmor="DENIED" operation="open"
profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
name="/sys/devices/system/cpu/" pid=11119 comm="qemu-system-x86"
requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
[27901.895201] kvm: enabling virtualization on CPU0 failed
[27901.895205] kvm: enabling virtualization on CPU2 failed
[27901.895212] kvm: enabling virtualization on CPU1 failed
[27901.899325] virbr0: port 2(vnet0) entered disabled state
[27901.904663] device vnet0 left promiscuous mode
[27901.904666] virbr0: port 2(vnet0) entered disabled state
[27902.165074] audit: type=1400 audit(1599004754.768:59):
apparmor="STATUS" operation="profile_remove" profile="unconfined"
name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11145
comm="apparmor_parser"

any hints/tips?

charkes zeitler
-- 
 The Perfect Is The Enemy Of
 The Good Enough

[toc] | [next] | [standalone]


#226629

FromKenneth Parker <sea7kenp@gmail.com>
Date2020-09-02 06:20 +0200
Message-ID<AKspA-3uv-3@gated-at.bofh.it>
In reply to#226628

[Multipart message — attachments visible in raw view] — view raw

On Tue, Sep 1, 2020 at 10:58 PM Charles Zeitler <cfzeitler@gmail.com> wrote:

> i get:
>
> debian@debian:~$ su -c 'virt-install --name test --cdrom
> /home/debian/mnt/sdi/Downloads/0_distros/windows/Win10* --memory 4000
> --disk size=5 --cpu=host'
> Password:
>
> Starting install...
> Allocating 'test.qcow2'
>                                                  | 5.0 GB  00:00:00
> ERROR    internal error: process exited while connecting to monitor:
> nput0,bus=usb.0,port=1 -spice
>
> port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,seamless-migration=on
> -device
> qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2
> -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device
> hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev
> spicevmc,id=charredir0,name=usbredir -device
> usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 -chardev
> spicevmc,id=charredir1,name=usbredir -device
> usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device
> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on
> ioctl(KVM_CREATE_VM) failed: 16 Device or resource busy
> failed to initialize KVM: Device or resource busy
> Removing disk 'test.qcow2'
>
> also from dmesg:
>
>
>
> [27901.188584] kvm: enabling virtualization on CPU1 failed
> [27901.188589] kvm: enabling virtualization on CPU2 failed
> [27901.188601] kvm: enabling virtualization on CPU0 failed
> [27901.501308] audit: type=1400 audit(1599004754.100:55):
> apparmor="STATUS" operation="profile_load" profile="unconfined"
> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11035
> comm="apparmor_parser"
> [27901.570108] virbr0: port 2(vnet0) entered blocking state
> [27901.570114] virbr0: port 2(vnet0) entered disabled state
> [27901.570271] device vnet0 entered promiscuous mode
> [27901.590262] virbr0: port 2(vnet0) entered blocking state
> [27901.590268] virbr0: port 2(vnet0) entered listening state
> [27901.844514] audit: type=1400 audit(1599004754.448:56):
> apparmor="STATUS" operation="profile_replace" info="same as current
> profile, skipping" profile="unconfined"
> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11059
> comm="apparmor_parser"
> [27901.892175] audit: type=1400 audit(1599004754.496:57):
> apparmor="DENIED" operation="open"
> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
> name="/sys/devices/system/node/" pid=11119 comm="qemu-system-x86"
> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
> [27901.892187] audit: type=1400 audit(1599004754.496:58):
> apparmor="DENIED" operation="open"
> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
> name="/sys/devices/system/cpu/" pid=11119 comm="qemu-system-x86"
> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
> [27901.895201] kvm: enabling virtualization on CPU0 failed
> [27901.895205] kvm: enabling virtualization on CPU2 failed
> [27901.895212] kvm: enabling virtualization on CPU1 failed
> [27901.899325] virbr0: port 2(vnet0) entered disabled state
> [27901.904663] device vnet0 left promiscuous mode
> [27901.904666] virbr0: port 2(vnet0) entered disabled state
> [27902.165074] audit: type=1400 audit(1599004754.768:59):
> apparmor="STATUS" operation="profile_remove" profile="unconfined"
> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11145
> comm="apparmor_parser"
>

Looks like your BIOS doesn't support Virtualization.

any hints/tips?
>

I had to enter my computer's BIOS and tell it that Virtualization is
allowed.  (KVM requires Hardware Virtualization.  Qemu by itself doesn't,
just in case you have a CPU that doesn't support this).

charkes zeitler
> --
>  The Perfect Is The Enemy Of
>  The Good Enough
>

Kenneth Parker

[toc] | [prev] | [next] | [standalone]


#226655

FromCharles Zeitler <cfzeitler@gmail.com>
Date2020-09-03 05:00 +0200
Message-ID<AKNDJ-1d4-7@gated-at.bofh.it>
In reply to#226629
On Tue, Sep 1, 2020 at 11:16 PM Kenneth Parker <sea7kenp@gmail.com> wrote:
>
>
>
> On Tue, Sep 1, 2020 at 10:58 PM Charles Zeitler <cfzeitler@gmail.com> wrote:
>>
>> i get:
>>
>> debian@debian:~$ su -c 'virt-install --name test --cdrom
>> /home/debian/mnt/sdi/Downloads/0_distros/windows/Win10* --memory 4000
>> --disk size=5 --cpu=host'
>> Password:
>>
>> Starting install...
>> Allocating 'test.qcow2'
>>                                                  | 5.0 GB  00:00:00
>> ERROR    internal error: process exited while connecting to monitor:
>> nput0,bus=usb.0,port=1 -spice
>> port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,seamless-migration=on
>> -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2
>> -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device
>> hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev
>> spicevmc,id=charredir0,name=usbredir -device
>> usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 -chardev
>> spicevmc,id=charredir1,name=usbredir -device
>> usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device
>> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on
>> ioctl(KVM_CREATE_VM) failed: 16 Device or resource busy
>> failed to initialize KVM: Device or resource busy
>> Removing disk 'test.qcow2'
>>
>> also from dmesg:
>>
>>
>>
>> [27901.188584] kvm: enabling virtualization on CPU1 failed
>> [27901.188589] kvm: enabling virtualization on CPU2 failed
>> [27901.188601] kvm: enabling virtualization on CPU0 failed
>> [27901.501308] audit: type=1400 audit(1599004754.100:55):
>> apparmor="STATUS" operation="profile_load" profile="unconfined"
>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11035
>> comm="apparmor_parser"
>> [27901.570108] virbr0: port 2(vnet0) entered blocking state
>> [27901.570114] virbr0: port 2(vnet0) entered disabled state
>> [27901.570271] device vnet0 entered promiscuous mode
>> [27901.590262] virbr0: port 2(vnet0) entered blocking state
>> [27901.590268] virbr0: port 2(vnet0) entered listening state
>> [27901.844514] audit: type=1400 audit(1599004754.448:56):
>> apparmor="STATUS" operation="profile_replace" info="same as current
>> profile, skipping" profile="unconfined"
>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11059
>> comm="apparmor_parser"
>> [27901.892175] audit: type=1400 audit(1599004754.496:57):
>> apparmor="DENIED" operation="open"
>> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
>> name="/sys/devices/system/node/" pid=11119 comm="qemu-system-x86"
>> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
>> [27901.892187] audit: type=1400 audit(1599004754.496:58):
>> apparmor="DENIED" operation="open"
>> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
>> name="/sys/devices/system/cpu/" pid=11119 comm="qemu-system-x86"
>> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
>> [27901.895201] kvm: enabling virtualization on CPU0 failed
>> [27901.895205] kvm: enabling virtualization on CPU2 failed
>> [27901.895212] kvm: enabling virtualization on CPU1 failed
>> [27901.899325] virbr0: port 2(vnet0) entered disabled state
>> [27901.904663] device vnet0 left promiscuous mode
>> [27901.904666] virbr0: port 2(vnet0) entered disabled state
>> [27902.165074] audit: type=1400 audit(1599004754.768:59):
>> apparmor="STATUS" operation="profile_remove" profile="unconfined"
>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11145
>> comm="apparmor_parser"
>
>
> Looks like your BIOS doesn't support Virtualization.
>
>> any hints/tips?
>
>
> I had to enter my computer's BIOS and tell it that Virtualization is allowed.  (KVM requires Hardware Virtualization.  Qemu by itself doesn't, just in case you have a CPU that doesn't support this).
>

bios claims it's enabled
cpu=amd phenom ii


>> charkes zeitler
>> --
>>  The Perfect Is The Enemy Of
>>  The Good Enough
>
>
> Kenneth Parker



-- 
 The Perfect Is The Enemy Of
 The Good Enough

[toc] | [prev] | [next] | [standalone]


#226658

Fromjohn doe <johndoe65534@mail.com>
Date2020-09-03 08:50 +0200
Message-ID<AKReh-3KV-5@gated-at.bofh.it>
In reply to#226655
On 9/3/2020 4:53 AM, Charles Zeitler wrote:
> On Tue, Sep 1, 2020 at 11:16 PM Kenneth Parker <sea7kenp@gmail.com> wrote:
>>
>>
>>
>> On Tue, Sep 1, 2020 at 10:58 PM Charles Zeitler <cfzeitler@gmail.com> wrote:
>>>
>>> i get:
>>>
>>> debian@debian:~$ su -c 'virt-install --name test --cdrom
>>> /home/debian/mnt/sdi/Downloads/0_distros/windows/Win10* --memory 4000
>>> --disk size=5 --cpu=host'
>>> Password:
>>>
>>> Starting install...
>>> Allocating 'test.qcow2'
>>>                                                   | 5.0 GB  00:00:00
>>> ERROR    internal error: process exited while connecting to monitor:
>>> nput0,bus=usb.0,port=1 -spice
>>> port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,seamless-migration=on
>>> -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2
>>> -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device
>>> hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev
>>> spicevmc,id=charredir0,name=usbredir -device
>>> usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 -chardev
>>> spicevmc,id=charredir1,name=usbredir -device
>>> usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device
>>> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on
>>> ioctl(KVM_CREATE_VM) failed: 16 Device or resource busy
>>> failed to initialize KVM: Device or resource busy
>>> Removing disk 'test.qcow2'
>>>
>>> also from dmesg:
>>>
>>>
>>>
>>> [27901.188584] kvm: enabling virtualization on CPU1 failed
>>> [27901.188589] kvm: enabling virtualization on CPU2 failed
>>> [27901.188601] kvm: enabling virtualization on CPU0 failed
>>> [27901.501308] audit: type=1400 audit(1599004754.100:55):
>>> apparmor="STATUS" operation="profile_load" profile="unconfined"
>>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11035
>>> comm="apparmor_parser"
>>> [27901.570108] virbr0: port 2(vnet0) entered blocking state
>>> [27901.570114] virbr0: port 2(vnet0) entered disabled state
>>> [27901.570271] device vnet0 entered promiscuous mode
>>> [27901.590262] virbr0: port 2(vnet0) entered blocking state
>>> [27901.590268] virbr0: port 2(vnet0) entered listening state
>>> [27901.844514] audit: type=1400 audit(1599004754.448:56):
>>> apparmor="STATUS" operation="profile_replace" info="same as current
>>> profile, skipping" profile="unconfined"
>>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11059
>>> comm="apparmor_parser"
>>> [27901.892175] audit: type=1400 audit(1599004754.496:57):
>>> apparmor="DENIED" operation="open"
>>> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
>>> name="/sys/devices/system/node/" pid=11119 comm="qemu-system-x86"
>>> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
>>> [27901.892187] audit: type=1400 audit(1599004754.496:58):
>>> apparmor="DENIED" operation="open"
>>> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
>>> name="/sys/devices/system/cpu/" pid=11119 comm="qemu-system-x86"
>>> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
>>> [27901.895201] kvm: enabling virtualization on CPU0 failed
>>> [27901.895205] kvm: enabling virtualization on CPU2 failed
>>> [27901.895212] kvm: enabling virtualization on CPU1 failed
>>> [27901.899325] virbr0: port 2(vnet0) entered disabled state
>>> [27901.904663] device vnet0 left promiscuous mode
>>> [27901.904666] virbr0: port 2(vnet0) entered disabled state
>>> [27902.165074] audit: type=1400 audit(1599004754.768:59):
>>> apparmor="STATUS" operation="profile_remove" profile="unconfined"
>>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11145
>>> comm="apparmor_parser"
>>
>>
>> Looks like your BIOS doesn't support Virtualization.
>>
>>> any hints/tips?
>>
>>
>> I had to enter my computer's BIOS and tell it that Virtualization is allowed.  (KVM requires Hardware Virtualization.  Qemu by itself doesn't, just in case you have a CPU that doesn't support this).
>>
>
> bios claims it's enabled
> cpu=amd phenom ii
>

What does 'kvm-ok' (1) say?


The Libvirt mailing list is also friendly.

1)
https://help.ubuntu.com/community/KVM/Installation#Check_that_your_CPU_supports_hardware_virtualization

--
John Doe

[toc] | [prev] | [next] | [standalone]


#226674

FromCharles Zeitler <cfzeitler@gmail.com>
Date2020-09-03 17:40 +0200
Message-ID<AKZvc-wS-15@gated-at.bofh.it>
In reply to#226658
On Thu, Sep 3, 2020 at 1:47 AM john doe <johndoe65534@mail.com> wrote:
>
> On 9/3/2020 4:53 AM, Charles Zeitler wrote:
> > On Tue, Sep 1, 2020 at 11:16 PM Kenneth Parker <sea7kenp@gmail.com> wrote:
> >>
> >>
> >>
> >> On Tue, Sep 1, 2020 at 10:58 PM Charles Zeitler <cfzeitler@gmail.com> wrote:
> >>>
> >>> i get:
> >>>
> >>> debian@debian:~$ su -c 'virt-install --name test --cdrom
> >>> /home/debian/mnt/sdi/Downloads/0_distros/windows/Win10* --memory 4000
> >>> --disk size=5 --cpu=host'
> >>> Password:
> >>>
> >>> Starting install...
> >>> Allocating 'test.qcow2'
> >>>                                                   | 5.0 GB  00:00:00
> >>> ERROR    internal error: process exited while connecting to monitor:
> >>> nput0,bus=usb.0,port=1 -spice
> >>> port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,seamless-migration=on
> >>> -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2
> >>> -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device
> >>> hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev
> >>> spicevmc,id=charredir0,name=usbredir -device
> >>> usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 -chardev
> >>> spicevmc,id=charredir1,name=usbredir -device
> >>> usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device
> >>> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on
> >>> ioctl(KVM_CREATE_VM) failed: 16 Device or resource busy
> >>> failed to initialize KVM: Device or resource busy
> >>> Removing disk 'test.qcow2'
> >>>
> >>> also from dmesg:
> >>>
> >>>
> >>>
> >>> [27901.188584] kvm: enabling virtualization on CPU1 failed
> >>> [27901.188589] kvm: enabling virtualization on CPU2 failed
> >>> [27901.188601] kvm: enabling virtualization on CPU0 failed
> >>> [27901.501308] audit: type=1400 audit(1599004754.100:55):
> >>> apparmor="STATUS" operation="profile_load" profile="unconfined"
> >>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11035
> >>> comm="apparmor_parser"
> >>> [27901.570108] virbr0: port 2(vnet0) entered blocking state
> >>> [27901.570114] virbr0: port 2(vnet0) entered disabled state
> >>> [27901.570271] device vnet0 entered promiscuous mode
> >>> [27901.590262] virbr0: port 2(vnet0) entered blocking state
> >>> [27901.590268] virbr0: port 2(vnet0) entered listening state
> >>> [27901.844514] audit: type=1400 audit(1599004754.448:56):
> >>> apparmor="STATUS" operation="profile_replace" info="same as current
> >>> profile, skipping" profile="unconfined"
> >>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11059
> >>> comm="apparmor_parser"
> >>> [27901.892175] audit: type=1400 audit(1599004754.496:57):
> >>> apparmor="DENIED" operation="open"
> >>> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
> >>> name="/sys/devices/system/node/" pid=11119 comm="qemu-system-x86"
> >>> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
> >>> [27901.892187] audit: type=1400 audit(1599004754.496:58):
> >>> apparmor="DENIED" operation="open"
> >>> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
> >>> name="/sys/devices/system/cpu/" pid=11119 comm="qemu-system-x86"
> >>> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
> >>> [27901.895201] kvm: enabling virtualization on CPU0 failed
> >>> [27901.895205] kvm: enabling virtualization on CPU2 failed
> >>> [27901.895212] kvm: enabling virtualization on CPU1 failed
> >>> [27901.899325] virbr0: port 2(vnet0) entered disabled state
> >>> [27901.904663] device vnet0 left promiscuous mode
> >>> [27901.904666] virbr0: port 2(vnet0) entered disabled state
> >>> [27902.165074] audit: type=1400 audit(1599004754.768:59):
> >>> apparmor="STATUS" operation="profile_remove" profile="unconfined"
> >>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11145
> >>> comm="apparmor_parser"
> >>
> >>
> >> Looks like your BIOS doesn't support Virtualization.
> >>
> >>> any hints/tips?
> >>
> >>
> >> I had to enter my computer's BIOS and tell it that Virtualization is allowed.  (KVM requires Hardware Virtualization.  Qemu by itself doesn't, just in case you have a CPU that doesn't support this).
> >>
> >
> > bios claims it's enabled
> > cpu=amd phenom ii
> >
>
> What does 'kvm-ok' (1) say?

comand not found

>
>
> The Libvirt mailing list is also friendly.
>
> 1)
> https://help.ubuntu.com/community/KVM/Installation#Check_that_your_CPU_supports_hardware_virtualization
>
> --
> John Doe
>


-- 
 The Perfect Is The Enemy Of
 The Good Enough

[toc] | [prev] | [next] | [standalone]


#226675

Fromjohn doe <johndoe65534@mail.com>
Date2020-09-03 17:50 +0200
Message-ID<AKZER-B6-3@gated-at.bofh.it>
In reply to#226674
On 9/3/2020 5:34 PM, Charles Zeitler wrote:
> On Thu, Sep 3, 2020 at 1:47 AM john doe <johndoe65534@mail.com> wrote:
>>
>> On 9/3/2020 4:53 AM, Charles Zeitler wrote:
>>> On Tue, Sep 1, 2020 at 11:16 PM Kenneth Parker <sea7kenp@gmail.com> wrote:
>>>>
>>>>
>>>>
>>>> On Tue, Sep 1, 2020 at 10:58 PM Charles Zeitler <cfzeitler@gmail.com> wrote:
>>>>>
>>>>> i get:
>>>>>
>>>>> debian@debian:~$ su -c 'virt-install --name test --cdrom
>>>>> /home/debian/mnt/sdi/Downloads/0_distros/windows/Win10* --memory 400
0
>>>>> --disk size=5 --cpu=host'
>>>>> Password:
>>>>>
>>>>> Starting install...
>>>>> Allocating 'test.qcow2'
>>>>>                                                    | 5.0 GB  00:00:0
0
>>>>> ERROR    internal error: process exited while connecting to monitor:
>>>>> nput0,bus=usb.0,port=1 -spice
>>>>> port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,seamless-migration=on
>>>>> -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2
>>>>> -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device
>>>>> hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev
>>>>> spicevmc,id=charredir0,name=usbredir -device
>>>>> usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 -chardev
>>>>> spicevmc,id=charredir1,name=usbredir -device
>>>>> usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device
>>>>> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on
>>>>> ioctl(KVM_CREATE_VM) failed: 16 Device or resource busy
>>>>> failed to initialize KVM: Device or resource busy
>>>>> Removing disk 'test.qcow2'
>>>>>
>>>>> also from dmesg:
>>>>>
>>>>>
>>>>>
>>>>> [27901.188584] kvm: enabling virtualization on CPU1 failed
>>>>> [27901.188589] kvm: enabling virtualization on CPU2 failed
>>>>> [27901.188601] kvm: enabling virtualization on CPU0 failed
>>>>> [27901.501308] audit: type=1400 audit(1599004754.100:55):
>>>>> apparmor="STATUS" operation="profile_load" profile="unconfined"
>>>>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11035
>>>>> comm="apparmor_parser"
>>>>> [27901.570108] virbr0: port 2(vnet0) entered blocking state
>>>>> [27901.570114] virbr0: port 2(vnet0) entered disabled state
>>>>> [27901.570271] device vnet0 entered promiscuous mode
>>>>> [27901.590262] virbr0: port 2(vnet0) entered blocking state
>>>>> [27901.590268] virbr0: port 2(vnet0) entered listening state
>>>>> [27901.844514] audit: type=1400 audit(1599004754.448:56):
>>>>> apparmor="STATUS" operation="profile_replace" info="same as current
>>>>> profile, skipping" profile="unconfined"
>>>>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11059
>>>>> comm="apparmor_parser"
>>>>> [27901.892175] audit: type=1400 audit(1599004754.496:57):
>>>>> apparmor="DENIED" operation="open"
>>>>> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
>>>>> name="/sys/devices/system/node/" pid=11119 comm="qemu-system-x86"
>>>>> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
>>>>> [27901.892187] audit: type=1400 audit(1599004754.496:58):
>>>>> apparmor="DENIED" operation="open"
>>>>> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
>>>>> name="/sys/devices/system/cpu/" pid=11119 comm="qemu-system-x86"
>>>>> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
>>>>> [27901.895201] kvm: enabling virtualization on CPU0 failed
>>>>> [27901.895205] kvm: enabling virtualization on CPU2 failed
>>>>> [27901.895212] kvm: enabling virtualization on CPU1 failed
>>>>> [27901.899325] virbr0: port 2(vnet0) entered disabled state
>>>>> [27901.904663] device vnet0 left promiscuous mode
>>>>> [27901.904666] virbr0: port 2(vnet0) entered disabled state
>>>>> [27902.165074] audit: type=1400 audit(1599004754.768:59):
>>>>> apparmor="STATUS" operation="profile_remove" profile="unconfined"
>>>>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11145
>>>>> comm="apparmor_parser"
>>>>
>>>>
>>>> Looks like your BIOS doesn't support Virtualization.
>>>>
>>>>> any hints/tips?
>>>>
>>>>
>>>> I had to enter my computer's BIOS and tell it that Virtualization is allowed.  (KVM requires Hardware Virtualization.  Qemu by itself doesn't, just in case you have a CPU that doesn't support this).
>>>>
>>>
>>> bios claims it's enabled
>>> cpu=amd phenom ii
>>>
>>
>> What does 'kvm-ok' (1) say?
>
> comand not found
>

The below cmd should do it:

$ apt-get install cpu-checker


Relooking at above, some hints:

Is the command working if you do it as root?

Is your regular user able to interact with Libvirt?

Any firewall filtering 127.0.0.0/8?

--
John Doe

[toc] | [prev] | [next] | [standalone]


#226724

FromCharles Zeitler <cfzeitler@gmail.com>
Date2020-09-06 16:10 +0200
Message-ID<AM3wK-1IP-19@gated-at.bofh.it>
In reply to#226675
On Thu, Sep 3, 2020 at 10:47 AM john doe <johndoe65534@mail.com> wrote:
>
> On 9/3/2020 5:34 PM, Charles Zeitler wrote:
> > On Thu, Sep 3, 2020 at 1:47 AM john doe <johndoe65534@mail.com> wrote:
> >>
> >> On 9/3/2020 4:53 AM, Charles Zeitler wrote:
> >>> On Tue, Sep 1, 2020 at 11:16 PM Kenneth Parker <sea7kenp@gmail.com> wrote:
> >>>>
> >>>>
> >>>>
> >>>> On Tue, Sep 1, 2020 at 10:58 PM Charles Zeitler <cfzeitler@gmail.com> wrote:
> >>>>>
> >>>>> i get:
> >>>>>
> >>>>> debian@debian:~$ su -c 'virt-install --name test --cdrom
> >>>>> /home/debian/mnt/sdi/Downloads/0_distros/windows/Win10* --memory 4000
> >>>>> --disk size=5 --cpu=host'
> >>>>> Password:
> >>>>>
> >>>>> Starting install...
> >>>>> Allocating 'test.qcow2'
> >>>>>                                                    | 5.0 GB  00:00:00
> >>>>> ERROR    internal error: process exited while connecting to monitor:
> >>>>> nput0,bus=usb.0,port=1 -spice
> >>>>> port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,seamless-migration=on
> >>>>> -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2
> >>>>> -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device
> >>>>> hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev
> >>>>> spicevmc,id=charredir0,name=usbredir -device
> >>>>> usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 -chardev
> >>>>> spicevmc,id=charredir1,name=usbredir -device
> >>>>> usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device
> >>>>> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on
> >>>>> ioctl(KVM_CREATE_VM) failed: 16 Device or resource busy
> >>>>> failed to initialize KVM: Device or resource busy
> >>>>> Removing disk 'test.qcow2'
> >>>>>
> >>>>> also from dmesg:
> >>>>>
> >>>>>
> >>>>>
> >>>>> [27901.188584] kvm: enabling virtualization on CPU1 failed
> >>>>> [27901.188589] kvm: enabling virtualization on CPU2 failed
> >>>>> [27901.188601] kvm: enabling virtualization on CPU0 failed
> >>>>> [27901.501308] audit: type=1400 audit(1599004754.100:55):
> >>>>> apparmor="STATUS" operation="profile_load" profile="unconfined"
> >>>>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11035
> >>>>> comm="apparmor_parser"
> >>>>> [27901.570108] virbr0: port 2(vnet0) entered blocking state
> >>>>> [27901.570114] virbr0: port 2(vnet0) entered disabled state
> >>>>> [27901.570271] device vnet0 entered promiscuous mode
> >>>>> [27901.590262] virbr0: port 2(vnet0) entered blocking state
> >>>>> [27901.590268] virbr0: port 2(vnet0) entered listening state
> >>>>> [27901.844514] audit: type=1400 audit(1599004754.448:56):
> >>>>> apparmor="STATUS" operation="profile_replace" info="same as current
> >>>>> profile, skipping" profile="unconfined"
> >>>>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11059
> >>>>> comm="apparmor_parser"
> >>>>> [27901.892175] audit: type=1400 audit(1599004754.496:57):
> >>>>> apparmor="DENIED" operation="open"
> >>>>> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
> >>>>> name="/sys/devices/system/node/" pid=11119 comm="qemu-system-x86"
> >>>>> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
> >>>>> [27901.892187] audit: type=1400 audit(1599004754.496:58):
> >>>>> apparmor="DENIED" operation="open"
> >>>>> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
> >>>>> name="/sys/devices/system/cpu/" pid=11119 comm="qemu-system-x86"
> >>>>> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
> >>>>> [27901.895201] kvm: enabling virtualization on CPU0 failed
> >>>>> [27901.895205] kvm: enabling virtualization on CPU2 failed
> >>>>> [27901.895212] kvm: enabling virtualization on CPU1 failed
> >>>>> [27901.899325] virbr0: port 2(vnet0) entered disabled state
> >>>>> [27901.904663] device vnet0 left promiscuous mode
> >>>>> [27901.904666] virbr0: port 2(vnet0) entered disabled state
> >>>>> [27902.165074] audit: type=1400 audit(1599004754.768:59):
> >>>>> apparmor="STATUS" operation="profile_remove" profile="unconfined"
> >>>>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11145
> >>>>> comm="apparmor_parser"
> >>>>
> >>>>
> >>>> Looks like your BIOS doesn't support Virtualization.
> >>>>
> >>>>> any hints/tips?
> >>>>
> >>>>
> >>>> I had to enter my computer's BIOS and tell it that Virtualization is allowed.  (KVM requires Hardware Virtualization.  Qemu by itself doesn't, just in case you have a CPU that doesn't support this).
> >>>>
> >>>
> >>> bios claims it's enabled
> >>> cpu=amd phenom ii
> >>>
> >>
> >> What does 'kvm-ok' (1) say?
> >
> > comand not found
> >
>
> The below cmd should do it:
>
> $ apt-get install cpu-checker
>
>
> Relooking at above, some hints:
>
> Is the command working if you do it as root?

kvm-ok gives:
INFO: /dev/kvm exists
KVM acceleration can be used

sudo.... gives same results

>
> Is your regular user able to interact with Libvirt?

in what way?

>
> Any firewall filtering 127.0.0.0/8?
>

how do  i check this?

> --
> John Doe
>


-- 
 The Perfect Is The Enemy Of
 The Good Enough

[toc] | [prev] | [next] | [standalone]


#226805

Fromjohn doe <johndoe65534@mail.com>
Date2020-09-08 20:30 +0200
Message-ID<AMQxr-7he-9@gated-at.bofh.it>
In reply to#226724
On 9/6/2020 4:09 PM, Charles Zeitler wrote:
> On Thu, Sep 3, 2020 at 10:47 AM john doe <johndoe65534@mail.com> wrote:
>>
>> On 9/3/2020 5:34 PM, Charles Zeitler wrote:
>>> On Thu, Sep 3, 2020 at 1:47 AM john doe <johndoe65534@mail.com> wrote:
>>>>
>>>> On 9/3/2020 4:53 AM, Charles Zeitler wrote:
>>>>> On Tue, Sep 1, 2020 at 11:16 PM Kenneth Parker <sea7kenp@gmail.com> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Sep 1, 2020 at 10:58 PM Charles Zeitler <cfzeitler@gmail.com> wrote:
>>>>>>>
>>>>>>> i get:
>>>>>>>
>>>>>>> debian@debian:~$ su -c 'virt-install --name test --cdrom
>>>>>>> /home/debian/mnt/sdi/Downloads/0_distros/windows/Win10* --memory 4000
>>>>>>> --disk size=5 --cpu=host'
>>>>>>> Password:
>>>>>>>
>>>>>>> Starting install...
>>>>>>> Allocating 'test.qcow2'
>>>>>>>                                                     | 5.0 GB  00:00:00
>>>>>>> ERROR    internal error: process exited while connecting to monitor:
>>>>>>> nput0,bus=usb.0,port=1 -spice
>>>>>>> port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,seamless-migration=on
>>>>>>> -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2
>>>>>>> -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device
>>>>>>> hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev
>>>>>>> spicevmc,id=charredir0,name=usbredir -device
>>>>>>> usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 -chardev
>>>>>>> spicevmc,id=charredir1,name=usbredir -device
>>>>>>> usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device
>>>>>>> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on
>>>>>>> ioctl(KVM_CREATE_VM) failed: 16 Device or resource busy
>>>>>>> failed to initialize KVM: Device or resource busy
>>>>>>> Removing disk 'test.qcow2'
>>>>>>>
>>>>>>> also from dmesg:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> [27901.188584] kvm: enabling virtualization on CPU1 failed
>>>>>>> [27901.188589] kvm: enabling virtualization on CPU2 failed
>>>>>>> [27901.188601] kvm: enabling virtualization on CPU0 failed
>>>>>>> [27901.501308] audit: type=1400 audit(1599004754.100:55):
>>>>>>> apparmor="STATUS" operation="profile_load" profile="unconfined"
>>>>>>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11035
>>>>>>> comm="apparmor_parser"
>>>>>>> [27901.570108] virbr0: port 2(vnet0) entered blocking state
>>>>>>> [27901.570114] virbr0: port 2(vnet0) entered disabled state
>>>>>>> [27901.570271] device vnet0 entered promiscuous mode
>>>>>>> [27901.590262] virbr0: port 2(vnet0) entered blocking state
>>>>>>> [27901.590268] virbr0: port 2(vnet0) entered listening state
>>>>>>> [27901.844514] audit: type=1400 audit(1599004754.448:56):
>>>>>>> apparmor="STATUS" operation="profile_replace" info="same as current
>>>>>>> profile, skipping" profile="unconfined"
>>>>>>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11059
>>>>>>> comm="apparmor_parser"
>>>>>>> [27901.892175] audit: type=1400 audit(1599004754.496:57):
>>>>>>> apparmor="DENIED" operation="open"
>>>>>>> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
>>>>>>> name="/sys/devices/system/node/" pid=11119 comm="qemu-system-x86"
>>>>>>> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0

As pointed out by someone else, the above line might help you find where
the issue lies.

>>>>>>> [27901.892187] audit: type=1400 audit(1599004754.496:58):
>>>>>>> apparmor="DENIED" operation="open"
>>>>>>> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
>>>>>>> name="/sys/devices/system/cpu/" pid=11119 comm="qemu-system-x86"
>>>>>>> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
>>>>>>> [27901.895201] kvm: enabling virtualization on CPU0 failed
>>>>>>> [27901.895205] kvm: enabling virtualization on CPU2 failed
>>>>>>> [27901.895212] kvm: enabling virtualization on CPU1 failed
>>>>>>> [27901.899325] virbr0: port 2(vnet0) entered disabled state
>>>>>>> [27901.904663] device vnet0 left promiscuous mode
>>>>>>> [27901.904666] virbr0: port 2(vnet0) entered disabled state
>>>>>>> [27902.165074] audit: type=1400 audit(1599004754.768:59):
>>>>>>> apparmor="STATUS" operation="profile_remove" profile="unconfined"
>>>>>>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11145
>>>>>>> comm="apparmor_parser"
>>>>>>
>>>>>>
>>>>>> Looks like your BIOS doesn't support Virtualization.
>>>>>>
>>>>>>> any hints/tips?
>>>>>>
>>>>>>
>>>>>> I had to enter my computer's BIOS and tell it that Virtualization is allowed.  (KVM requires Hardware Virtualization.  Qemu by itself doesn't, just in case you have a CPU that doesn't support this).
>>>>>>
>>>>>
>>>>> bios claims it's enabled
>>>>> cpu=amd phenom ii
>>>>>
>>>>
>>>> What does 'kvm-ok' (1) say?
>>>
>>> comand not found
>>>
>>
>> The below cmd should do it:
>>
>> $ apt-get install cpu-checker
>>
>>
>> Relooking at above, some hints:
>>
>> Is the command working if you do it as root?
>
> kvm-ok gives:
> INFO: /dev/kvm exists
> KVM acceleration can be used
>
> sudo.... gives same results
>

Actually, I was talking about your virt-install command, so  if it works
as root you will know where to look.

>>
>> Is your regular user able to interact with Libvirt?
>
> in what way?
>

Libvirt does not allow non-root user to work per default.

>>
>> Any firewall filtering 127.0.0.0/8?
>>
>
> how do  i check this?
>

You could use 'nc' or alike utilities to know that (look online to
understand how to check if a port is open on linux).


One approach would be to reinstall Debian from scratch then without
doing anything installing Libvirt and virt-install and start from there.


HTH.

--
John Doe

[toc] | [prev] | [next] | [standalone]


#226676

FromKenneth Parker <sea7kenp@gmail.com>
Date2020-09-03 18:00 +0200
Message-ID<AKZOx-FE-3@gated-at.bofh.it>
In reply to#226674

[Multipart message — attachments visible in raw view] — view raw

On Thu, Sep 3, 2020, 11:35 AM Charles Zeitler <cfzeitler@gmail.com> wrote:

> On Thu, Sep 3, 2020 at 1:47 AM john doe <johndoe65534@mail.com> wrote:
> >
> > On 9/3/2020 4:53 AM, Charles Zeitler wrote:
> > > On Tue, Sep 1, 2020 at 11:16 PM Kenneth Parker <sea7kenp@gmail.com>
> wrote:
> > >>
> > >>
> > >>
> > >> On Tue, Sep 1, 2020 at 10:58 PM Charles Zeitler <cfzeitler@gmail.com>
> wrote:
> > >>>
> > >>> i get:
> > >>>
> > >>> debian@debian:~$ su -c 'virt-install --name test --cdrom
> > >>> /home/debian/mnt/sdi/Downloads/0_distros/windows/Win10* --memory 4000
> > >>> --disk size=5 --cpu=host'
> > >>> Password:
> > >>>
> > >>> Starting install...
> > >>> Allocating 'test.qcow2'
> > >>>                                                   | 5.0 GB  00:00:00
> > >>> ERROR    internal error: process exited while connecting to monitor:
> > >>> nput0,bus=usb.0,port=1 -spice
> > >>>
> port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,seamless-migration=on
> > >>> -device
> qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2
> > >>> -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device
> > >>> hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev
> > >>> spicevmc,id=charredir0,name=usbredir -device
> > >>> usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 -chardev
> > >>> spicevmc,id=charredir1,name=usbredir -device
> > >>> usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device
> > >>> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on
> > >>> ioctl(KVM_CREATE_VM) failed: 16 Device or resource busy
> > >>> failed to initialize KVM: Device or resource busy
> > >>> Removing disk 'test.qcow2'
> > >>>
> > >>> also from dmesg:
> > >>>
> > >>>
> > >>>
> > >>> [27901.188584] kvm: enabling virtualization on CPU1 failed
> > >>> [27901.188589] kvm: enabling virtualization on CPU2 failed
> > >>> [27901.188601] kvm: enabling virtualization on CPU0 failed
> > >>> [27901.501308] audit: type=1400 audit(1599004754.100:55):
> > >>> apparmor="STATUS" operation="profile_load" profile="unconfined"
> > >>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11035
> > >>> comm="apparmor_parser"
> > >>> [27901.570108] virbr0: port 2(vnet0) entered blocking state
> > >>> [27901.570114] virbr0: port 2(vnet0) entered disabled state
> > >>> [27901.570271] device vnet0 entered promiscuous mode
> > >>> [27901.590262] virbr0: port 2(vnet0) entered blocking state
> > >>> [27901.590268] virbr0: port 2(vnet0) entered listening state
> > >>> [27901.844514] audit: type=1400 audit(1599004754.448:56):
> > >>> apparmor="STATUS" operation="profile_replace" info="same as current
> > >>> profile, skipping" profile="unconfined"
> > >>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11059
> > >>> comm="apparmor_parser"
> > >>> [27901.892175] audit: type=1400 audit(1599004754.496:57):
> > >>> apparmor="DENIED" operation="open"
> > >>> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
> > >>> name="/sys/devices/system/node/" pid=11119 comm="qemu-system-x86"
> > >>> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
> > >>> [27901.892187] audit: type=1400 audit(1599004754.496:58):
> > >>> apparmor="DENIED" operation="open"
> > >>> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
> > >>> name="/sys/devices/system/cpu/" pid=11119 comm="qemu-system-x86"
> > >>> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
> > >>> [27901.895201] kvm: enabling virtualization on CPU0 failed
> > >>> [27901.895205] kvm: enabling virtualization on CPU2 failed
> > >>> [27901.895212] kvm: enabling virtualization on CPU1 failed
> > >>> [27901.899325] virbr0: port 2(vnet0) entered disabled state
> > >>> [27901.904663] device vnet0 left promiscuous mode
> > >>> [27901.904666] virbr0: port 2(vnet0) entered disabled state
> > >>> [27902.165074] audit: type=1400 audit(1599004754.768:59):
> > >>> apparmor="STATUS" operation="profile_remove" profile="unconfined"
> > >>> name="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae" pid=11145
> > >>> comm="apparmor_parser"
> > >>
> > >>
> > >> Looks like your BIOS doesn't support Virtualization.
> > >>
> > >>> any hints/tips?
> > >>
> > >>
> > >> I had to enter my computer's BIOS and tell it that Virtualization is
> allowed.  (KVM requires Hardware Virtualization.  Qemu by itself doesn't,
> just in case you have a CPU that doesn't support this).
> > >>
> > >
> > > bios claims it's enabled
> > > cpu=amd phenom ii
> > >
> >
> > What does 'kvm-ok' (1) say?
>
> comand not found

"apt install cpu-checker".

Kenneth Parker

[toc] | [prev] | [next] | [standalone]


#226692

FromMarko Randjelovic <markoran@eunet.rs>
Date2020-09-04 13:20 +0200
Message-ID<ALhV8-4tD-7@gated-at.bofh.it>
In reply to#226628
On Tue, 1 Sep 2020 21:57:59 -0500
Charles Zeitler <cfzeitler@gmail.com> wrote:

> [27901.892175] audit: type=1400 audit(1599004754.496:57):
> apparmor="DENIED" operation="open"
> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
> name="/sys/devices/system/node/" pid=11119 comm="qemu-system-x86"
> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0
> [27901.892187] audit: type=1400 audit(1599004754.496:58):
> apparmor="DENIED" operation="open"
> profile="libvirt-845413b9-8775-499f-bfaa-bf583e4040ae"
> name="/sys/devices/system/cpu/" pid=11119 comm="qemu-system-x86"
> requested_mask="r" denied_mask="r" fsuid=64055 ouid=0

You have DENIED entries where apparmor prevents qemu-system-x86 to
access files /sys/devices/system/node/ and /sys/devices/system/cpu/.
Try to edit apparmor profile for qemu-system-x86 and reload it
afterwards. Profiles are located in /etc/apparmor.d. There are guides
on the web how to do it.

Regards,
Marko

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web