On Wed, Sep 17, 2014 at 07:59:03PM +0530, Priyanka Ranjan wrote:> libguestfs: command: run: /usr/libexec/qemu-kvm > libguestfs: command: run: \ -nographic > libguestfs: command: run: \ -machine accel=kvm:tcg > libguestfs: command: run: \ -device ? > libguestfs: error: /usr/libexec/qemu-kvm exited with error status 1, see > debug messages above > libguestfs: trace: launch = -1 (error)It looks as if qemu is broken on your machine. What's the output of: /usr/libexec/qemu-kvm -nographic -machine accel=kvm:tcg -device \? Note that you don't need to run libguestfs tools as root. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Many Thanks Richard for your reply. # /usr/libexec/qemu-kvm -nographic -machine accel=kvm:tcg -device \? open /dev/kvm: No such file or directory failed to initialize KVM: Operation not permitted Back to tcg accelerator. Could not allocate dynamic translator buffer I tried executing "setsebool -P virt_use_execmem=on" also after looking at "http://libguestfs.org/guestfs-faq.1.html" but that also did not help. Please guide me how to fix this issue and proceed further. Thanks again for your help. On Wed, Sep 17, 2014 at 8:14 PM, Richard W.M. Jones <rjones@redhat.com> wrote:> On Wed, Sep 17, 2014 at 07:59:03PM +0530, Priyanka Ranjan wrote: > > libguestfs: command: run: /usr/libexec/qemu-kvm > > libguestfs: command: run: \ -nographic > > libguestfs: command: run: \ -machine accel=kvm:tcg > > libguestfs: command: run: \ -device ? > > libguestfs: error: /usr/libexec/qemu-kvm exited with error status 1, see > > debug messages above > > libguestfs: trace: launch = -1 (error) > > It looks as if qemu is broken on your machine. What's the output of: > > /usr/libexec/qemu-kvm -nographic -machine accel=kvm:tcg -device \? > > Note that you don't need to run libguestfs tools as root. > > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat > http://people.redhat.com/~rjones > Read my programming and virtualization blog: http://rwmj.wordpress.com > Fedora Windows cross-compiler. Compile Windows programs, test, and > build Windows installers. Over 100 libraries supported. > http://fedoraproject.org/wiki/MinGW >
On Wed, Sep 17, 2014 at 08:52:57PM +0530, Priyanka Ranjan wrote:> Many Thanks Richard for your reply. > > # /usr/libexec/qemu-kvm -nographic -machine accel=kvm:tcg -device \? > > open /dev/kvm: No such file or directory > failed to initialize KVM: Operation not permitted > Back to tcg accelerator. > Could not allocate dynamic translator buffer > > I tried executing "setsebool -P virt_use_execmem=on" also after looking at > "http://libguestfs.org/guestfs-faq.1.html" but that also did not help. > Please guide me how to fix this issue and proceed further.That command is the way you're supposed to fix this problem. If it doesn't work then I don't know -- perhaps ask on a CentOS or qemu list, or open a bug against CentOS? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW