Bug 705235 - Fail to start guest with vhost-net on upstream
Summary: Fail to start guest with vhost-net on upstream
Keywords:
Status: CLOSED DUPLICATE of bug 705313
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: ---
Assignee: Jiri Denemark
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-17 05:28 UTC by Nan Zhang
Modified: 2011-05-24 11:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-24 11:38:00 UTC


Attachments (Terms of Use)
foo.xml (1.61 KB, text/plain)
2011-05-17 05:28 UTC, Nan Zhang
no flags Details

Description Nan Zhang 2011-05-17 05:28:50 UTC
Created attachment 499270 [details]
foo.xml

Description of problem:
Attach the following XML to <interface> element. Then booting up the guest will get a failure.

<interface>
  ...
  <driver name='vhost'/>
  ...
</interface>

Version-Release number of selected component (if applicable):
libvirt-0.9.1-1.el6.x86_64 (upstream)
qemu-kvm-0.12.1.2-2.161.el6.x86_64

How reproducible:
always

Steps to Reproduce:
# lsmod | grep vhost
vhost_net              29524  0 
macvtap                 7867  1 vhost_net
tun                    16953  2 vhost_net

# virsh define foo.xml
Domain foo defined from foo.xml

# virsh start foo
error: Failed to start domain foo
error: unsupported configuration: vhost-net is not supported with this QEMU binary
  
Actual results:
23:25:39.139: 15419: debug : virDomainGetID:2649 : dom=0x23d3c60, (VM: name=foo, uuid=d3782e1f-e34a-bf7c-414b-4f74d3837e96), 
23:25:39.139: 15419: debug : virDomainCreate:5081 : dom=0x23d3c60, (VM: name=foo, uuid=d3782e1f-e34a-bf7c-414b-4f74d3837e96), 
23:25:39.139: 15419: debug : remoteIO:5961 : Do proc=9 serial=4 length=56 wait=(nil)
23:25:39.139: 15419: debug : remoteIO:6033 : We have the buck 9 0x23d46a0 0x23d46a0
23:25:39.139: 15419: debug : virEventPollUpdateHandle:144 : Update handle w=2 e=0
23:25:39.139: 15419: debug : virEventPollInterruptLocked:686 : Skip interrupt, 0 0
23:25:39.388: 15419: debug : remoteIODecodeMessageLength:5353 : Got length, now need 240 total (236 more)
23:25:39.388: 15419: debug : remoteIOEventLoop:5887 : Giving up the buck 9 0x23d46a0 (nil)
23:25:39.388: 15419: debug : virEventPollUpdateHandle:144 : Update handle w=2 e=1
23:25:39.388: 15419: debug : virEventPollInterruptLocked:686 : Skip interrupt, 0 0
23:25:39.388: 15419: debug : remoteIO:6061 : All done with our call 9 (nil) 0x23d46a0
23:25:39.388: 15419: debug : virDomainGetName:2554 : domain=0x23d3c60
error: Failed to start domain foo
23:25:39.388: 15419: debug : virDomainFree:2114 : dom=0x23d3c60, (VM: name=foo, uuid=d3782e1f-e34a-bf7c-414b-4f74d3837e96), 
23:25:39.388: 15419: debug : virUnrefDomain:276 : unref domain 0x23d3c60 foo 1
23:25:39.388: 15419: debug : virReleaseDomain:238 : release domain 0x23d3c60 foo d3782e1f-e34a-bf7c-414b-4f74d3837e96
23:25:39.388: 15419: debug : virReleaseDomain:246 : unref connection 0x23d4390 2
error: unsupported configuration: vhost-net is not supported with this QEMU binary

23:25:39.388: 15419: debug : virConnectClose:1350 : conn=0x23d4390
23:25:39.389: 15419: debug : virUnrefConnect:145 : unref connection 0x23d4390 1
23:25:39.389: 15419: debug : virReleaseConnect:94 : release connection 0x23d4390

Expected results:
The guest boot up with vhost-net interface successfully.

Additional info:
Attched domain XML file for reference.

Comment 1 Jiri Denemark 2011-05-22 08:16:24 UTC
(In reply to comment #0)
> Version-Release number of selected component (if applicable):
> libvirt-0.9.1-1.el6.x86_64 (upstream)

Can you recheck whether it works or not with the official rebased libvirt package from brew? (also called libvirt-0.9.1-1.el6.x86_64)

Comment 2 Nan Zhang 2011-05-23 02:59:35 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > Version-Release number of selected component (if applicable):
> > libvirt-0.9.1-1.el6.x86_64 (upstream)
> 
> Can you recheck whether it works or not with the official rebased libvirt
> package from brew? (also called libvirt-0.9.1-1.el6.x86_64)

Hi Jiri,

I've re-checked with official rebased libvirt package(for 6.2), it works well.


Note You need to log in before you can comment on or make changes to this bug.