exec: "qemu-nbd": executable file not found in $PATH

1,805 views
Skip to first unread message

Nir Henn

unread,
Dec 10, 2014, 4:49:05 AM12/10/14
to osv...@googlegroups.com
Hi all,

I am trying to build a new image using Capstan on a CentOS 6 box that is KVM enabled and face the following error.


capstan build -v titan

Building titan...

exec: "qemu-nbd": executable file not found in $PATH

Any thoughts how to overcome it?

Nir.

Nadav Har'El

unread,
Dec 10, 2014, 5:04:48 AM12/10/14
to Nir Henn, Osv Dev
In my Fedora, you get this by installing the "qemu-img" package. I hope (but didn't check) it is the same on Centos.

As a general trick, to find on RHEL/Fedora/Centos which package provides some executable you're looking for, you can try "yum whatprovides":

$ yum whatprovides "*/qemu-nbd"
...
2:qemu-img-2.1.2-6.fc21.x86_64 : QEMU command line tool for manipulating disk
                               : images
Repo        : @fedora
Matched from:
Filename    : /usr/bin/qemu-nbd


 
--

Nir Henn

unread,
Dec 10, 2014, 5:12:04 AM12/10/14
to osv...@googlegroups.com, nir....@gmail.com
Thanks Harel,

On CentOS

[cloud-user@titan ~]$ yum whatprovides "*/qemu-nbd"

Loaded plugins: fastestmirror

Determining fastest mirrors

 * base: centos.mirrors.hoobly.com

 * epel: mirror.hmc.edu

 * extras: mirror.web-ster.com

 * updates: mirror.hmc.edu

datastax                                                                                                                                   152/152

2:qemu-common-0.10.5-1.el5.2.x86_64 : QEMU common files needed by all QEMU targets

Repo        : epel

Matched from:

Filename    : /usr/bin/qemu-nbd

Installed it resolved the issue.

Now I am facing the following error which I have no clue how to resolve.

[cloud-user@titan titan-0.5.2-hadoop2]$ capstan build -v titan

Building titan...

dial tcp 127.0.0.1:10809: connection refused

Any clue?

Nir.

Dor Laor

unread,
Dec 10, 2014, 6:55:59 AM12/10/14
to Nir Henn, Osv Dev
Nir, can you first check if a capstan-example [1] project works?
It might be some Centos qemu issue.


--
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pekka Enberg

unread,
Dec 10, 2014, 8:04:26 AM12/10/14
to Nir Henn, Osv Dev
On Wed, Dec 10, 2014 at 11:49 AM, Nir Henn <nir....@gmail.com> wrote:
That means you don't have qemu-nbd installed. Apparently, it's part of
"qemu-common" package that's not available on RHEL. You can grab it
from Fedora, though:

http://wiki.xen.org/wiki/RHEL6_Xen4_Tutorial

- Pekka

Pekka Enberg

unread,
Dec 10, 2014, 8:09:19 AM12/10/14
to Nir Henn, Osv Dev
On Wed, Dec 10, 2014 at 12:12 PM, Nir Henn <nir....@gmail.com> wrote:
> Now I am facing the following error which I have no clue how to resolve.
>
> [cloud-user@titan titan-0.5.2-hadoop2]$ capstan build -v titan
>
> Building titan...
>
> dial tcp 127.0.0.1:10809: connection refused
>
> Any clue?

What Capstan version are you using? If you're able to build Capstan
from sources, please try this to make OSv more verbose during the
build process:

diff --git a/cmd/build.go b/cmd/build.go
index cec4549..886f3c3 100644
--- a/cmd/build.go
+++ b/cmd/build.go
@@ -52,7 +52,7 @@ func Build(r *util.Repo, image *core.Image, template
*core.Template, verbose boo
if err != nil {
return err
}
- if err := SetArgs(r, image.Hypervisor, image.Name,
"/tools/cpiod.so"); err != nil {
+ if err := SetArgs(r, image.Hypervisor, image.Name, "--verbose
/tools/cpiod.so"); err != nil {
return err
}
if template.RpmBase != nil {

- Pekka

Nir Henn

unread,
Dec 10, 2014, 8:12:35 AM12/10/14
to Pekka Enberg, Osv Dev
I am using the pre build version downloaded from github.
I will try to download the source and build it from scratch using the core you provided.

Nir.

Pekka Enberg

unread,
Dec 10, 2014, 8:24:52 AM12/10/14
to Nir Henn, Osv Dev
On Wed, Dec 10, 2014 at 3:12 PM, Nir Henn <nir....@gmail.com> wrote:
> I am using the pre build version downloaded from github.
> I will try to download the source and build it from scratch using the core you provided.

Great, thanks!

I applied this patch to master:

https://github.com/cloudius-systems/capstan/commit/cefa07672542e7b4e782d81a2dd9d47179c55924

So now if you use "-v" with capstan build, OSv boot process will also
be verbose.

- Pekka

Nir Henn

unread,
Dec 15, 2014, 8:11:36 AM12/15/14
to Pekka Enberg, Osv Dev, Shlomo Hakim
Hi Pekka,

We where able to stage the new Capstan on CentOS box as asked.
The errors are:

[cloud-user@titan titan-0.5.2-hadoop2]$ ../go/bin/capstan build cfile 
Building cfile...
nbd.c:nbd_trip():L653: invalid request type (3) received
EOF

Thoughts?

Nir.

Nir Henn

unread,
Dec 16, 2014, 9:32:42 AM12/16/14
to Pekka Enberg, Tzach Livyatan, Osv Dev, shlomo, Hakim
Adding Tzach,

Team, any chance that someone can look into it as it?

Nir.

Tzach Livyatan

unread,
Dec 17, 2014, 1:47:06 AM12/17/14
to Nir Henn, Pekka Enberg, Osv Dev, shlomo, Hakim
Hi Nir
I'm trying to reproduce.
Is the problem exists for every Capstan project or just titan?

Dor Laor

unread,
Dec 17, 2014, 3:30:35 AM12/17/14
to Tzach Livyatan, Nir Henn, Pekka Enberg, Osv Dev, shlomo, Hakim
On Wed, Dec 17, 2014 at 8:47 AM, Tzach Livyatan <tz...@cloudius-systems.com> wrote:
Hi Nir
I'm trying to reproduce.
Is the problem exists for every Capstan project or just titan?

It's Capstan - centos related. Nir tried this w/ capstan-example and it faulted too.
Pekka is on it as well
 

Nir Henn

unread,
Dec 17, 2014, 6:07:32 AM12/17/14
to Dor Laor, Tzach Livyatan, Pekka Enberg, Osv Dev, shlomo, Hakim
Thats correct, i tried both the example and my specific project with same result.

Nir.

Pekka Enberg

unread,
Dec 17, 2014, 7:13:45 AM12/17/14
to Dor Laor, Tzach Livyatan, Nir Henn, Osv Dev, shlomo, Hakim
On Wed, Dec 17, 2014 at 8:47 AM, Tzach Livyatan
<tz...@cloudius-systems.com> wrote:
>> Hi Nir
>> I'm trying to reproduce.
>> Is the problem exists for every Capstan project or just titan?

On Wed, Dec 17, 2014 at 10:30 AM, Dor Laor <d...@cloudius-systems.com> wrote:
> It's Capstan - centos related. Nir tried this w/ capstan-example and it
> faulted too.

Nir, this is CentOS 6, right? How did you install QEMU?

- Pekka

Nir Henn

unread,
Dec 17, 2014, 8:34:38 AM12/17/14
to Pekka Enberg, Dor Laor, Tzach Livyatan, Osv Dev, shlomo, Hakim
Yes,

It is CentOS 6

[cloud-user@titan ~]$ cat /etc/centos-release
CentOS release 6.6 (Final)

The QEMU was installed using yum .

Nir
Reply all
Reply to author
Forward
Message has been deleted
0 new messages