Setting the ZFS partition failed for...

22 views
Skip to first unread message

robertob

unread,
May 7, 2019, 8:53:59 AM5/7/19
to OSv Development
Sorry but something happened when update Fedora distro from 29 to 30 version and now when I build the image I get this error:

# capstan package compose uni

Setting the ZFS partition failed for /tmp/capstan924335984/application.img
Failed to find an available port: Address already in use
Failed to initialize empty image named uni.
Error was: Bad magic: 49484156454f5054

zfs is running on my machine and I do not understand why it has problems. 

Any idea?

thx

Waldek Kozaczuk

unread,
May 8, 2019, 9:09:49 AM5/8/19
to OSv Development
The problem might be due to the new version of qemu-nbd utility that is part of QEMU that Fedora 30 ships with. More specifically nbd-client as of the version 3.1.0 stopped supporting old style of handshake and current Capstan support old one. I have just applied a patch to OSv itself to enhance scripts/nbd_client.py to support both versions of handshake.

Can you confirm which version of QEMU is on your system?

If that is the case we need to do similar change in capstan. I might be able to do it and cut new release of it soon.

Waldek

robertob

unread,
May 8, 2019, 10:50:23 AM5/8/19
to OSv Development
Yes, the version is 3.1.0. 

thank you so much for your support

roberto

Waldek Kozaczuk

unread,
May 9, 2019, 8:38:53 AM5/9/19
to OSv Development
Hi,

We have just applied couple of patches to fix these issues (detecting KVM and fixing nbd protocol handling). One of them - fixing the nbd protocol handling logic is still pending extra review - https://github.com/cloudius-systems/capstan/pull/178. In any case I am not sure when I will be able to publish new binaries on github so meanwhile you can try to build new capstan locally from source. Obviously the master repo does not have have latest changes so you would have to do something like this:

1) Install go (latest 1.12 should work).
4) git remote add wkozaczuk https://github.com/wkozaczuk/capstan
5) git fetch --all
6) git checkout nbd_client
7) go build
8) go install

The new binary should be under $GOPATH/bin

Obviously the steps 4, 5 and 6 will be unnecessary once my pull request is merged. 

I hope new version will address your issues.

Waldek

robertob

unread,
May 14, 2019, 9:32:55 AM5/14/19
to OSv Development
thank you, it works like a charm. 

roberto
Reply all
Reply to author
Forward
0 new messages