[CentOS-virt] Where is my qemu command?

Wed Apr 27 09:18:41 UTC 2011
Rainer Traut <tr.ml at gmx.de>

Am 27.04.2011 10:39, schrieb Jussi Hirvi:
> KVM virtualization is full of wonders. :-/
>
> I would need to attach an USB disk to a vm, but how?
>
> The command "qemu" would provide a way:
>
> [root at a134-224 yum.repos.d]# man qemu-kvm
>
>> QEMU(1)
>> NAME
>>         qemu-doc - QEMU Emulator User Documentation
>>
>> SYNOPSIS
>>         usage: qemu [options] [disk_image]
> (...)
>>         -usbdevice devname
>>             Add the USB device devname.
>
> But when I try it:
>
> [root at a134-224 yum.repos.d]# qemu start -usbdevice host:059f:1018 mail
> -bash: qemu: command not found
>
> That command syntax is probably ot right yet, but the main question is,
> where is qemu?
>
> I was tempted to yum-install qemu from rpmforge, but I would rather not.
> Besides the rpmforge version has a conflict with another manual page.
>

Yeah, you hit a bug in the man page.

Because qemu-kvm (thats the right name) is not meant to run directly it 
resides here:

# rpm -ql kvm|grep qemu
/usr/libexec/qemu-kvm
/usr/share/man/man1/qemu-kvm.1.gz

So
# /usr/libexec/qemu-kvm

should get you going.

Rainer