Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM does not start from virt-manager #63

Open
welcoMattic opened this issue Jan 6, 2023 · 15 comments
Open

VM does not start from virt-manager #63

welcoMattic opened this issue Jan 6, 2023 · 15 comments
Labels
bug Something isn't working

Comments

@welcoMattic
Copy link

Which operating system are you trying to install?
e.g. macOS Ventura

Describe the bug

Warning message by running ./basic.sh

qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]

But the VM starts.

And in virt-manager, same messages but as errors, and the VM does not start.

To Reproduce
Steps to reproduce the behavior:
Follow the documentation to create a fresh new VM
Run ./make.sh --add
Try to run the VM from virt-manager

Expected behavior
The VM to boot normally, like by running basic.sh

Desktop (please complete the following information):

  • OS: Arch
  • Version kernel 6.1
@welcoMattic welcoMattic added the bug Something isn't working label Jan 6, 2023
@jon-bit
Copy link

jon-bit commented Jan 17, 2023

I'm having the same problem. Anyone know how to fix this?

@notAperson535
Copy link
Owner

@welcoMattic @jon-bit Did you add the macos.qow2 disk to virt-manager?

@jon-bit
Copy link

jon-bit commented Jan 17, 2023

Sorry, but how would I go about that? I'm kinda new to KVM.

@jon-bit
Copy link

jon-bit commented Jan 17, 2023

Found it but what bus type do I use?

@jon-bit
Copy link

jon-bit commented Jan 17, 2023

Never mind did not work. I just tried them all.

@welcoMattic
Copy link
Author

@notAperson535 Yes, I did

@jon-bit
Copy link

jon-bit commented Jan 19, 2023

here is my full log for when I try to start it in vit-manger

Error starting domain: internal error: qemu unexpectedly closed the monitor: 2023-01-19T04:24:40.358934Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T04:24:40.359119Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T04:24:40.359125Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T04:24:40.359302Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T04:24:40.359307Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
audio: Device hda: audiodev default parameter is deprecated, please specify audiodev=audio1
2023-01-19T04:24:40.370817Z qemu-system-x86_64: -device {"driver":"qxl-vga","id":"video0","max_outputs":1,"ram_size":67108864,"vram_size":67108864,"vram64_size_mb":0,"vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}: PCI: slot 1 function 0 not available for qxl-vga, in use by intel-hda,id=(null)

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
    self._backend.create()
  File "/usr/lib64/python3.11/site-packages/libvirt.py", line 1362, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2023-01-19T04:24:40.358934Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T04:24:40.359119Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T04:24:40.359125Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T04:24:40.359302Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T04:24:40.359307Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
audio: Device hda: audiodev default parameter is deprecated, please specify audiodev=audio1
2023-01-19T04:24:40.370817Z qemu-system-x86_64: -device {"driver":"qxl-vga","id":"video0","max_outputs":1,"ram_size":67108864,"vram_size":67108864,"vram64_size_mb":0,"vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}: PCI: slot 1 function 0 not available for qxl-vga, in use by intel-hda,id=(null)

@notAperson535
Copy link
Owner

@jon-bit Try removing the qxl driver from virt-manager. It looks like it is conflicting with your intel card

@welcoMattic
Copy link
Author

I've tried to remove qxl, but it is still unable to boot:

2023-01-19T14:11:14.321217Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321221Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T14:11:14.321393Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321397Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
audio: Device hda: audiodev default parameter is deprecated, please specify audiodev=audio1
2023-01-19T14:11:14.337307Z qemu-system-x86_64: -device {"driver":"VGA","id":"video0","vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}: PCI: slot 1 function 0 not available for VGA, in use by intel-hda,id=(null)

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
    self._backend.create()
  File "/usr/lib/python3.10/site-packages/libvirt.py", line 1373, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2023-01-19T14:11:14.321051Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T14:11:14.321217Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321221Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T14:11:14.321393Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321397Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
audio: Device hda: audiodev default parameter is deprecated, please specify audiodev=audio1
2023-01-19T14:11:14.337307Z qemu-system-x86_64: -device {"driver":"VGA","id":"video0","vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}: PCI: slot 1 function 0 not available for VGA, in use by intel-hda,id=(null)

I replace the video model by VGA or virtio : same error.

@pedrohqb
Copy link

I am having the same issue. It seems to be a qemu bug.

@mbaldessari
Copy link

Something like https://lore.kernel.org/qemu-devel/[email protected]/ is probably needed to fix this in qemu, although I assume it might depend on which CPU you're running

@DeeeeLAN
Copy link

I made the warnings/errors go away by changing the -cpu Haswell... \ line to -cpu host \, which works on my system but I am not sure about others.

@notAperson535
Copy link
Owner

I don't think the warnings really matter though, they don't seem to effect anything

@funjay
Copy link

funjay commented Jul 19, 2023

I've tried to remove qxl, but it is still unable to boot:

2023-01-19T14:11:14.321217Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321221Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T14:11:14.321393Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321397Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
audio: Device hda: audiodev default parameter is deprecated, please specify audiodev=audio1
2023-01-19T14:11:14.337307Z qemu-system-x86_64: -device {"driver":"VGA","id":"video0","vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}: PCI: slot 1 function 0 not available for VGA, in use by intel-hda,id=(null)

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
    self._backend.create()
  File "/usr/lib/python3.10/site-packages/libvirt.py", line 1373, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2023-01-19T14:11:14.321051Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T14:11:14.321217Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321221Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
2023-01-19T14:11:14.321393Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
2023-01-19T14:11:14.321397Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
audio: Device hda: audiodev default parameter is deprecated, please specify audiodev=audio1
2023-01-19T14:11:14.337307Z qemu-system-x86_64: -device {"driver":"VGA","id":"video0","vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}: PCI: slot 1 function 0 not available for VGA, in use by intel-hda,id=(null)

I replace the video model by VGA or virtio : same error.

Your issue is the hda as the error says,
Quick fix, remove the hda settings in your virtm xml properties
or
fullfix, add the audiodev value (read the docs)

thanks

@ericek111
Copy link

Just change the PCI slot number for the virtual GPU. 0x08 works for me, like this:

    <video>
      <model type="qxl" ram="65536" vram="65536" vgamem="16384" heads="1" primary="yes"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x08" function="0x0"/>
    </video>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants