qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Using qemu command not able launch VM
@ 2017-10-07  7:53 Koushik Dutta
  2017-10-09 15:41 ` John Snow
  0 siblings, 1 reply; 3+ messages in thread
From: Koushik Dutta @ 2017-10-07  7:53 UTC (permalink / raw)
  To: qemu-devel

Hi All (qemu members),

I installed qemu utility in my host machine. I want to start Virtual
machine using qemu command.

My host machine: Intel-X86
Script for launching VM :

T=/home/koushik/vpp/cloud_ubuntu_img
    sudo qemu-system-i386  -enable-kvm -m 1024 -smp
sockets=1,cpus=4,cores=2 -cpu host \
    -vga none -nographic \
    -kernel $T/vmlinuz-4.4.0-96-generic --append "console=ttyAMA0
root=/dev/vda rw"  \
    -drive file=$T/custom32.img,if=virtio,aio=threads \
    -chardev socket,id=char1,path=/tmp/sock1.sock \
    -netdev type=vhost-user,id=mynet1,chardev=char1,vhostforce\
    -device virtio-net-pci,mac=00:00:00:00:00:01,netdev=mynet1 \
    -object
memory-backend-file,id=mem,size=1024M,mem-path=/dev/hugepages,share=on \
    -numa node,memdev=mem -mem-prealloc \
    #-debugcon file:debug.log -global isa-debugcon.iobase=0x402


Bug:  Invalid netdev type

Please let me know where i did wrong.
Please help me.
Thanks to all in advance.


Thanks & Regards,
Koushik

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Using qemu command not able launch VM
  2017-10-07  7:53 [Qemu-devel] Using qemu command not able launch VM Koushik Dutta
@ 2017-10-09 15:41 ` John Snow
  2017-10-10  7:23   ` Markus Armbruster
  0 siblings, 1 reply; 3+ messages in thread
From: John Snow @ 2017-10-09 15:41 UTC (permalink / raw)
  To: Koushik Dutta, qemu-devel



On 10/07/2017 03:53 AM, Koushik Dutta wrote:
> Hi All (qemu members),
> 
> I installed qemu utility in my host machine. I want to start Virtual
> machine using qemu command.
> 
> My host machine: Intel-X86
> Script for launching VM :
> 
> T=/home/koushik/vpp/cloud_ubuntu_img
>     sudo qemu-system-i386  -enable-kvm -m 1024 -smp
> sockets=1,cpus=4,cores=2 -cpu host \
>     -vga none -nographic \
>     -kernel $T/vmlinuz-4.4.0-96-generic --append "console=ttyAMA0
> root=/dev/vda rw"  \
>     -drive file=$T/custom32.img,if=virtio,aio=threads \
>     -chardev socket,id=char1,path=/tmp/sock1.sock \
>     -netdev type=vhost-user,id=mynet1,chardev=char1,vhostforce\
>     -device virtio-net-pci,mac=00:00:00:00:00:01,netdev=mynet1 \
>     -object
> memory-backend-file,id=mem,size=1024M,mem-path=/dev/hugepages,share=on \
>     -numa node,memdev=mem -mem-prealloc \
>     #-debugcon file:debug.log -global isa-debugcon.iobase=0x402
> 
> 
> Bug:  Invalid netdev type
> 
> Please let me know where i did wrong.
> Please help me.
> Thanks to all in advance.
> 
> 
> Thanks & Regards,
> Koushik
> 

type isn't a named parameter, it's positional.

-netdev vhost-user,foo=bar

Please take a look at the output from -help. look for "vhost-user."

--js

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Using qemu command not able launch VM
  2017-10-09 15:41 ` John Snow
@ 2017-10-10  7:23   ` Markus Armbruster
  0 siblings, 0 replies; 3+ messages in thread
From: Markus Armbruster @ 2017-10-10  7:23 UTC (permalink / raw)
  To: John Snow; +Cc: Koushik Dutta, qemu-devel

John Snow <jsnow@redhat.com> writes:

> On 10/07/2017 03:53 AM, Koushik Dutta wrote:
>> Hi All (qemu members),
>> 
>> I installed qemu utility in my host machine. I want to start Virtual
>> machine using qemu command.
>> 
>> My host machine: Intel-X86
>> Script for launching VM :
>> 
>> T=/home/koushik/vpp/cloud_ubuntu_img
>>     sudo qemu-system-i386  -enable-kvm -m 1024 -smp
>> sockets=1,cpus=4,cores=2 -cpu host \
>>     -vga none -nographic \
>>     -kernel $T/vmlinuz-4.4.0-96-generic --append "console=ttyAMA0
>> root=/dev/vda rw"  \
>>     -drive file=$T/custom32.img,if=virtio,aio=threads \
>>     -chardev socket,id=char1,path=/tmp/sock1.sock \
>>     -netdev type=vhost-user,id=mynet1,chardev=char1,vhostforce\
>>     -device virtio-net-pci,mac=00:00:00:00:00:01,netdev=mynet1 \
>>     -object
>> memory-backend-file,id=mem,size=1024M,mem-path=/dev/hugepages,share=on \
>>     -numa node,memdev=mem -mem-prealloc \
>>     #-debugcon file:debug.log -global isa-debugcon.iobase=0x402
>> 
>> 
>> Bug:  Invalid netdev type
>> 
>> Please let me know where i did wrong.

Sure: you didn't quote the full error message :)

Please try again.

>> Please help me.
>> Thanks to all in advance.
>> 
>> 
>> Thanks & Regards,
>> Koushik
>> 
>
> type isn't a named parameter, it's positional.
>
> -netdev vhost-user,foo=bar
>
> Please take a look at the output from -help. look for "vhost-user."

Actually, -netdev vhost-user,... is shorthand for -netdev
type=vhost-user,...

I suspect the actual problem is vhost-user not being compiled in, i.e.
CONFIG_VHOST_NET_USED is off.  Sadly, this isn't reflected in --help.
Screwed up in commit 03ce574442d.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-10  7:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-07  7:53 [Qemu-devel] Using qemu command not able launch VM Koushik Dutta
2017-10-09 15:41 ` John Snow
2017-10-10  7:23   ` Markus Armbruster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).