Open yongshengma opened 5 years ago
Sorry. I ran qemu-img convert
before I compiled this project, so it should be located in /usr/bin instead of /usr/local/bin. Should I remove the previous qemu pkgs first?
@yongshengma we already provide packages for qemu, otherwise you need to use the correct qemu binary produced from your compilation.
But qemu-system-x86_64 with openvstorage tag didn't work before. That's why I built it this time. The repo I used to install qemu:
echo "deb http://apt.openvstorage.com fargo-updates-1 main" > /etc/apt/sources.list.d/ovsaptrepo.list
Same issue in previous env:
root@Node-31:~# qemu-system-x86_64 -drive file=openvstorage+tcp:192.168.122.31:26203/cirrus,if=virtio,cache=none,format=raw
Failed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/block-iscsi.so
Note: only modules from the same build can be loaded.
Failed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/block-curl.so
Note: only modules from the same build can be loaded.
Failed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/block-rbd.so
Note: only modules from the same build can be loaded.
Failed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/block-dmg.so
Note: only modules from the same build can be loaded.
qemu-system-x86_64: -drive file=openvstorage+tcp:192.168.122.31:26203/cirrus,if=virtio,cache=none,format=raw: Unknown protocol 'openvstorage+tcp'
This message only modules from the same build can be loaded
make me compile it.
@yongshengma please compile from the feature/for_16.04_v2.5
branch.
Hi @cnanakos
I compiled feature/for_16.04_v2.5
branch and made install but i got the same issue as before. Let me re-summarize a bit and just want to make sure.
/usr/bin/ vs /usr/local/bin/ and
qemu-img
/usr/bin/qemu-img convert cirrus.qcow2 openvstorage+tcp:192.168.122.32:26203/cirrus
still works as before. qemu-img: Unknown protocol 'openvstorage+tcp'
_qemu-system-x86_64_
/usr/bin/qemu-system-x86_64 -drive file=openvstorage+tcp:192.168.122.32:26203/cirrus,if=virtio,cache=none,format=raw
still failed:
Failed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/block-iscsi.so
Note: only modules from the same build can be loaded.
Failed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/block-curl.so
Note: only modules from the same build can be loaded.
Failed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/block-rbd.so
Note: only modules from the same build can be loaded.
Failed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/block-dmg.so
Note: only modules from the same build can be loaded.
qemu-system-x86_64: -drive file=openvstorage+tcp:192.168.122.32:26203/cirrus,if=virtio,cache=none,format=raw: Unknown protocol 'openvstorage+tcp'
Unknown protocol 'openvstorage+tcp'
Hello,
I cloned and compiled this project in spite of a warning:
and an issue in make install:
I commented them in install part of Makefile as these files do not exist at all. Continue.
Convert a qcow2 image into vdisk:
qemu-img convert cirrus.qcow2 openvstorage+tcp:192.168.20.32:26203/cirrus
It works fine. Go to next.Start VM:
Do I miss something?
Best regards, Yongsheng