Displaying 20 results from an estimated 2000 matches similar to: "vhost-net requested but could not be initialized"
2014 Jul 24
2
Re: vhost-net requested but could not be initialized
Thanks Wangkai but libvirt infact pre-configures network tap devices and
pre-opens /dev/vhost-net file and passes these to qemu as open, ready to
use file descriptors.
My issue is that my qemu requires that /dev/vhost-net directory is removed
and it's kernel module be unloaded. Then it creates a vhost -net device
using its own configuration.
On 24 July 2014 07:35, Wangkai (Kevin,C)
2014 Jul 24
2
Re: vhost-net requested but could not be initialized
The qemu that I am using isn't modified at all. It's the VHOST drivers
that are mounted elsewhere i.e., not on default /dev/vhost-net.
Here is the command that I use to launch my qemu VM:
qemu-system-x86_64 -cpu host -boot order=c -hda /root/Disks/ubuntu1.qcow2
-m 1024M -smp 2 --enable-kvm -name 'client 1' -nographic -vnc :2 -net none
-no-reboot -mem-path /dev/hugepages
2014 Jul 24
1
Re: vhost-net requested but could not be initialized
Currently in the VM XML, I am passing the following command line argument
as a passthrough argument:
-netdev type=tap,id=net1,script=no,downscript=no,ifname=port3,vhost=on
-device
virtio-net-pci,netdev=net1,mac=00:00:00:00:00:01,csum=off,gso=off,guest_tso4=off,guest_tso6=off,guest_ecn=off
Is there another way to represent this in the XML file? maybe that may
solve the problem.
On 24 July 2014
2014 Jul 24
2
Re: vhost-net requested but could not be initialized
On Thu, Jul 24, 2014 at 03:48:06PM +0500, Asadullah Hussain wrote:
> Let me clarify my question, I am using unmodified stock qemu (1.4.0) and
> only the location of vhost file descriptor is different from default (I
> don't remove the default /dev/vhost-net directory)
>
> The VHOST file descriptor is present in "/dev/vhost-0" directory instead of
> the default
2014 Jul 24
0
Re: vhost-net requested but could not be initialized
Let me clarify my question, I am using unmodified stock qemu (1.4.0) and
only the location of vhost file descriptor is different from default (I
don't remove the default /dev/vhost-net directory)
The VHOST file descriptor is present in "/dev/vhost-0" directory instead of
the default "/dev/vhost-net". When I try to give vhostfd in the XML I get a
different error:
2014 Jul 24
0
Re: vhost-net requested but could not be initialized
For qemu, the default vhost drive file is “/dev/vhost-net”, when you configured vhost on.
Give the command “modprobe vhost-net” to add host kernel support for vhost.
This is cannot controlled by libvirt I think.
Wangkai
From: libvirt-users-bounces@redhat.com [mailto:libvirt-users-bounces@redhat.com] On Behalf Of Asadullah Hussain
Sent: Thursday, July 24, 2014 12:43 AM
To:
2014 Jul 24
0
Re: vhost-net requested but could not be initialized
On 24 July 2014 15:52, Daniel P. Berrange <berrange@redhat.com> wrote:
> On Thu, Jul 24, 2014 at 03:48:06PM +0500, Asadullah Hussain wrote:
> > Let me clarify my question, I am using unmodified stock qemu (1.4.0) and
> > only the location of vhost file descriptor is different from default (I
> > don't remove the default /dev/vhost-net directory)
> >
> >
2016 Oct 13
3
Libvirt adds extra parameters in domain XML
Hello,
In my C++ code, I generate my own domain XML file and I
use virDomainCreateXML or virDomainDefineXML to launch my qemu VM. However,
when I get to check which commands are sent to the qemu commandline, I find
that libvirt has added so many extra parameters to the ones I have already
set. How can I prevent libvirt from adding any extra parameters to the ones
I originally defined in the
2016 Oct 17
2
Re: Libvirt adds extra parameters in domain XML
On Mon, Oct 17, 2016 at 02:29:10PM +0200, Marina Danial wrote:
>I have a predetermined set of commands that I want to launch qemu with:
>
>sudo `which qemu-system-x86_64` -m 4G $(IMAGE) -enable-kvm \
>-nographic \
>-net nic,model=virtio,netdev=net0,macaddr=$(MAC),vlan=0 \
>-netdev tap,id=net0,ifname=tap01,vhost=on,script=no,downscript=no \
>-net
2014 Mar 19
2
Re: Connecting libvirt to manually compiled QEMU
On Wed, Mar 19, 2014 at 05:17:52PM +0500, Asadullah Hussain wrote:
> Guys thanks a lot for taking the time out to reply, Although adding the
> $PATH & symbolic link methods both solved the "No hypervisor found" error
> on virt-manager but when I try to create a VM using the wizard it says:
>
> "No hypervisor options were found for this connection"
>
>
2014 Apr 23
2
Libvirt qemu permission denied error
Hello,
I am trying run a simple VM (qemu1.4.2) on RHEL 6.5 through libvirt (0.10).
virsh create throws the error:
*error: Failed to create domain from vm1.xml*
*error: internal error process exited while connecting to monitor:*
The libvirt log for VM shows:
*libvir: error : cannot execute binary /usr/bin/qemu-system-x86_64:
Permission denied*
I am running VM as root and all disk
2014 Mar 31
2
Passing non-standard Options through Libvirt to QEMU
Hello, I have a custom QEMU which requires some non-standard command line
arguments to launch a VM. e.g., "--proc-type=secondary" option is always
required to launch a QEMU VM.
To launch the VM through libvirt (virsh) "How do I specify these
non-standard options in XML?
OR if thats not possible ,Can you guide me at which point (code file)
libvirt converts the XML to QEMU command
2014 Mar 05
2
Re: Connecting libvirt to manually compiled QEMU
On Tue, Mar 04, 2014 at 02:09:19PM -0700, Eric Blake wrote:
> On 03/04/2014 05:12 AM, Asadullah Hussain wrote:
> > Hello I have manually compiled a customized qemu (1.4.0) which runs fine on
> > its own (create VM etc) but I want to access this qemu through libvirt
> > (virt-manager, virsh etc).
> >
> > But the libvirt driver only looks into "/usr/bin"
2014 Mar 04
2
Connecting libvirt to manually compiled QEMU
Hello I have manually compiled a customized qemu (1.4.0) which runs fine on
its own (create VM etc) but I want to access this qemu through libvirt
(virt-manager, virsh etc).
But the libvirt driver only looks into "/usr/bin" for qemu binaries, how
can I tell libvirt to connect to my qemu which is placed at
"/home/user/qemu" directory.
--
Asadullah Hussain
2014 Apr 23
1
Re: Libvirt qemu permission denied error
The qemu binary is accessible as I can create VM through command line. That
is why I thought it may be a libvirt issue.
I have also contacted Red Hat support and will post my findings here if the
issue is resolved.
On 23 April 2014 17:16, Eric Blake <eblake@redhat.com> wrote:
> On 04/23/2014 05:44 AM, Asadullah Hussain wrote:
> > Hello,
> >
> > I am trying run a
2014 Apr 10
1
Re: Passing non-standard Options through Libvirt to QEMU
There are a couple of problems with passthrough qemu:
1. virsh version/capabilities command executes "qemu -help" but this gives
an error in my case because my customized qemu has to receive mandatory
non-standard parameters "qemu -c -n -- -help".
2. Similarly when passing arguments as passthrough in a VMs XML. How can I
make sure that these non-standard arguments are passed
2013 Apr 18
1
How can I define a network using an exist host bridge
Hi all,
When I defined a network use the host bridge "virbr1" an error occurred :
"libvir: error : Unable to create bridge virbr1: File exists"
But how can I define this network use the host bridge "virbr1" ?
<network>
<name>def1</name>
<bridge name='virbr1'/>
<forward mode='nat'>
<interface dev='eth0'/>
2012 Jun 25
4
[RFC V2 PATCH 0/4] Multiqueue support for tap and virtio-net/vhost
Hello all:
This seires is an update of last version of multiqueue support to add multiqueue
capability to both tap and virtio-net.
Some kinds of tap backends has (macvatp in linux) or would (tap) support
multiqueue. In such kind of tap backend, each file descriptor of a tap is a
qeueu and ioctls were prodived to attach an exist tap file descriptor to the
tun/tap device. So the patch let qemu to
2012 Jun 25
4
[RFC V2 PATCH 0/4] Multiqueue support for tap and virtio-net/vhost
Hello all:
This seires is an update of last version of multiqueue support to add multiqueue
capability to both tap and virtio-net.
Some kinds of tap backends has (macvatp in linux) or would (tap) support
multiqueue. In such kind of tap backend, each file descriptor of a tap is a
qeueu and ioctls were prodived to attach an exist tap file descriptor to the
tun/tap device. So the patch let qemu to
2012 Jul 06
5
[RFC V3 0/5] Multiqueue support for tap and virtio-net/vhost
Hello all:
This seires is an update of last version of multiqueue support to add multiqueue
capability to both tap and virtio-net.
Some kinds of tap backends has (macvatp in linux) or would (tap) support
multiqueue. In such kind of tap backend, each file descriptor of a tap is a
qeueu and ioctls were prodived to attach an exist tap file descriptor to the
tun/tap device. So the patch let qemu to