Skip to contentSkip to conversation

device assignment doesn't work: "error: requires KVM support"

Qemu-devel Yongjie Ren 1 participant 5 messages Oct 27, 2011 – Oct 31, 2011

lore
Share & tools
lore
#0 lore raw

Public bug reported:

qemu.git commit:8843cf40c0f482949e6ae9d0119e45d6b96fe890

I met the following error when do device assignment with qemu in kvm host. ./x86_64-softmmu/qemu-system-x86_64 -smp 2 -m 1024 -device pci-assign,host=0e:00.0 -hda /root/jay/rhel6u1.img
qemu-system-x86_64: -device pci-assign,host=0e:00.0: pci-assign: error: requires KVM support
qemu-system-x86_64: -device pci-assign,host=0e:00.0: Device 'pci-assign' could not be initialized

./x86_64-softmmu/qemu-system-x86_64 -device ? 2>&1 | grep -i pci-assign -----------------name "pci-assign", bus PCI, desc "pass through host pci devices to the guest"
When configuring the qemu, it prints "KVM support yes". My qemu configuration log and compiling log are attached.

But commit edbb7c0d doesn't have this issue.

** Affects: qemu
Importance: Undecided
Status: New

Signature · 26 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/882358

Title:
  device assignment doesn't work: "error: requires KVM support"

Status in QEMU:
  New

Bug description:
  qemu.git commit:8843cf40c0f482949e6ae9d0119e45d6b96fe890

  I met the following error when do device assignment with qemu in kvm host. 
  ./x86_64-softmmu/qemu-system-x86_64 -smp 2 -m 1024 -device pci-assign,host=0e:00.0 -hda /root/jay/rhel6u1.img
  qemu-system-x86_64: -device pci-assign,host=0e:00.0: pci-assign: error: requires KVM support
  qemu-system-x86_64: -device pci-assign,host=0e:00.0: Device 'pci-assign' could not be initialized

  ./x86_64-softmmu/qemu-system-x86_64 -device ? 2>&1 | grep -i pci-assign
  -----------------name "pci-assign", bus PCI, desc "pass through host pci devices to the guest"
  When configuring the qemu, it prints "KVM support       yes".    My qemu configuration log and compiling log are attached.

  But commit edbb7c0d doesn't have this issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/882358/+subscriptions
#1 lore raw

** Attachment added: "qemu configuration log"
https://bugs.launchpad.net/bugs/882358/+attachment/2574718/+files/configure.log

Signature · 26 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/882358

Title:
  device assignment doesn't work: "error: requires KVM support"

Status in QEMU:
  New

Bug description:
  qemu.git commit:8843cf40c0f482949e6ae9d0119e45d6b96fe890

  I met the following error when do device assignment with qemu in kvm host. 
  ./x86_64-softmmu/qemu-system-x86_64 -smp 2 -m 1024 -device pci-assign,host=0e:00.0 -hda /root/jay/rhel6u1.img
  qemu-system-x86_64: -device pci-assign,host=0e:00.0: pci-assign: error: requires KVM support
  qemu-system-x86_64: -device pci-assign,host=0e:00.0: Device 'pci-assign' could not be initialized

  ./x86_64-softmmu/qemu-system-x86_64 -device ? 2>&1 | grep -i pci-assign
  -----------------name "pci-assign", bus PCI, desc "pass through host pci devices to the guest"
  When configuring the qemu, it prints "KVM support       yes".    My qemu configuration log and compiling log are attached.

  But commit edbb7c0d doesn't have this issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/882358/+subscriptions
#2 lore raw
In reply to Yongjie Ren

** Attachment added: "qemu compiling log"
https://bugs.launchpad.net/qemu/+bug/882358/+attachment/2574719/+files/make.log

Signature · 26 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/882358

Title:
  device assignment doesn't work: "error: requires KVM support"

Status in QEMU:
  New

Bug description:
  qemu.git commit:8843cf40c0f482949e6ae9d0119e45d6b96fe890

  I met the following error when do device assignment with qemu in kvm host. 
  ./x86_64-softmmu/qemu-system-x86_64 -smp 2 -m 1024 -device pci-assign,host=0e:00.0 -hda /root/jay/rhel6u1.img
  qemu-system-x86_64: -device pci-assign,host=0e:00.0: pci-assign: error: requires KVM support
  qemu-system-x86_64: -device pci-assign,host=0e:00.0: Device 'pci-assign' could not be initialized

  ./x86_64-softmmu/qemu-system-x86_64 -device ? 2>&1 | grep -i pci-assign
  -----------------name "pci-assign", bus PCI, desc "pass through host pci devices to the guest"
  When configuring the qemu, it prints "KVM support       yes".    My qemu configuration log and compiling log are attached.

  But commit edbb7c0d doesn't have this issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/882358/+subscriptions
#3 lore raw
In reply to Yongjie Ren

This is because kvm is not enabled by default even if I add KVM support when configuring qemu. Now it got fixed by the following commit.

author Marcelo Tosatti <[email protected]>
Thu, 27 Oct 2011 20:34:42 +0800 (10:34 -0200)
committer Marcelo Tosatti <[email protected]>
Thu, 27 Oct 2011 20:34:42 +0800 (10:34 -0200)
commit 7879db7e9c09b92d9af1c143fbe2cc212ec89e4b
Revert "qemu-kvm: set default accelerator via target.conf"

This reverts commit a5c40eb1aa929a03157252db7337bc4ddd2435be.

Jan says:

"Unless you fully install qemu, that conf is not picked up (or an older version is used). I'd still like to see this working with qemu started from a build directory..."

Signature · 26 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/882358

Title:
  device assignment doesn't work: "error: requires KVM support"

Status in QEMU:
  Fix Released

Bug description:
  qemu.git commit:8843cf40c0f482949e6ae9d0119e45d6b96fe890

  I met the following error when do device assignment with qemu in kvm host. 
  ./x86_64-softmmu/qemu-system-x86_64 -smp 2 -m 1024 -device pci-assign,host=0e:00.0 -hda /root/jay/rhel6u1.img
  qemu-system-x86_64: -device pci-assign,host=0e:00.0: pci-assign: error: requires KVM support
  qemu-system-x86_64: -device pci-assign,host=0e:00.0: Device 'pci-assign' could not be initialized

  ./x86_64-softmmu/qemu-system-x86_64 -device ? 2>&1 | grep -i pci-assign
  -----------------name "pci-assign", bus PCI, desc "pass through host pci devices to the guest"
  When configuring the qemu, it prints "KVM support       yes".    My qemu configuration log and compiling log are attached.

  But commit edbb7c0d doesn't have this issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/882358/+subscriptions
#4 lore raw
In reply to Yongjie Ren

It works now.

** Changed in: qemu
Status: New => Fix Released

Signature · 26 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/882358

Title:
  device assignment doesn't work: "error: requires KVM support"

Status in QEMU:
  Fix Released

Bug description:
  qemu.git commit:8843cf40c0f482949e6ae9d0119e45d6b96fe890

  I met the following error when do device assignment with qemu in kvm host. 
  ./x86_64-softmmu/qemu-system-x86_64 -smp 2 -m 1024 -device pci-assign,host=0e:00.0 -hda /root/jay/rhel6u1.img
  qemu-system-x86_64: -device pci-assign,host=0e:00.0: pci-assign: error: requires KVM support
  qemu-system-x86_64: -device pci-assign,host=0e:00.0: Device 'pci-assign' could not be initialized

  ./x86_64-softmmu/qemu-system-x86_64 -device ? 2>&1 | grep -i pci-assign
  -----------------name "pci-assign", bus PCI, desc "pass through host pci devices to the guest"
  When configuring the qemu, it prints "KVM support       yes".    My qemu configuration log and compiling log are attached.

  But commit edbb7c0d doesn't have this issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/882358/+subscriptions