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


Groups > linux.debian.user > #226675

Re: virt-install returns error

From john doe <johndoe65534@mail.com>
Newsgroups linux.debian.user
Subject Re: virt-install returns error
Date 2020-09-03 17:50 +0200
Message-ID <AKZER-B6-3@gated-at.bofh.it> (permalink)
References <AKraa-2t2-3@gated-at.bofh.it> <AKspA-3uv-3@gated-at.bofh.it> <AKNDJ-1d4-7@gated-at.bofh.it> <AKReh-3KV-5@gated-at.bofh.it> <AKZvc-wS-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web