Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown protocol 'openvstorage' #8

Open
yongshengma opened this issue Mar 8, 2019 · 6 comments
Open

Unknown protocol 'openvstorage' #8

yongshengma opened this issue Mar 8, 2019 · 6 comments

Comments

@yongshengma
Copy link

Hello,

I cloned and compiled this project in spite of a warning:

  CC    vl.o
vl.c: In function ‘main’:
vl.c:2778:5: warning: ‘g_mem_set_vtable’ is deprecated [-Wdeprecated-declarations]
     g_mem_set_vtable(&mem_trace);
     ^
In file included from /usr/include/glib-2.0/glib/glist.h:32:0,
                 from /usr/include/glib-2.0/glib/ghash.h:33,
                 from /usr/include/glib-2.0/glib.h:50,
                 from vl.c:59:
/usr/include/glib-2.0/glib/gmem.h:357:7: note: declared here
 void  g_mem_set_vtable (GMemVTable *vtable);
       ^
  CC    tpm.o

and an issue in make install:

install: cannot stat '/root/qemu/pc-bios/bios.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/bios-256k.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/sgabios.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/vgabios.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/vgabios-cirrus.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/vgabios-stdvga.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/vgabios-vmware.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/vgabios-qxl.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/acpi-dsdt.aml': No such file or directory
install: cannot stat '/root/qemu/pc-bios/q35-acpi-dsdt.aml': No such file or directory
install: cannot stat '/root/qemu/pc-bios/ppc_rom.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/openbios-sparc32': No such file or directory
install: cannot stat '/root/qemu/pc-bios/openbios-sparc64': No such file or directory
install: cannot stat '/root/qemu/pc-bios/openbios-ppc': No such file or directory
install: cannot stat '/root/qemu/pc-bios/QEMU,tcx.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/QEMU,cgthree.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/pxe-e1000.rom': No such file or directory
install: cannot stat '/root/qemu/pc-bios/pxe-eepro100.rom': No such file or directory
install: cannot stat '/root/qemu/pc-bios/pxe-ne2k_pci.rom': No such file or directory
install: cannot stat '/root/qemu/pc-bios/pxe-pcnet.rom': No such file or directory
install: cannot stat '/root/qemu/pc-bios/pxe-rtl8139.rom': No such file or directory
install: cannot stat '/root/qemu/pc-bios/pxe-virtio.rom': No such file or directory
install: cannot stat '/root/qemu/pc-bios/efi-e1000.rom': No such file or directory
install: cannot stat '/root/qemu/pc-bios/efi-eepro100.rom': No such file or directory
install: cannot stat '/root/qemu/pc-bios/efi-ne2k_pci.rom': No such file or directory
install: cannot stat '/root/qemu/pc-bios/efi-pcnet.rom': No such file or directory
install: cannot stat '/root/qemu/pc-bios/efi-rtl8139.rom': No such file or directory
install: cannot stat '/root/qemu/pc-bios/efi-virtio.rom': No such file or directory
install: cannot stat '/root/qemu/pc-bios/bamboo.dtb': No such file or directory
install: cannot stat '/root/qemu/pc-bios/multiboot.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/linuxboot.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/kvmvapic.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/s390-zipl.rom': No such file or directory
install: cannot stat '/root/qemu/pc-bios/s390-ccw.img': No such file or directory
install: cannot stat '/root/qemu/pc-bios/spapr-rtas.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/slof.bin': No such file or directory
install: cannot stat '/root/qemu/pc-bios/palcode-clipper': No such file or directory
install: cannot stat '/root/qemu/pc-bios/u-boot.e500': No such file or directory
Makefile:400: recipe for target 'install' failed
make: *** [install] Error 1
qem

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:

root@Node-32:~# /usr/local/bin/qemu-system-x86_64 -drive file=openvstorage:cirrus,if=virtio,cache=none,format=raw

(process:26408): GLib-WARNING **: /build/glib2.0-7ZsPUq/glib2.0-2.48.2/./glib/gmem.c:483: custom memory allocation vtable not supported
qemu-system-x86_64: -drive file=openvstorage:cirrus,if=virtio,cache=none,format=raw: Unknown protocol 'openvstorage'

Do I miss something?

Best regards,
Yongsheng

@yongshengma
Copy link
Author

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?

@cnanakos
Copy link
Member

cnanakos commented Mar 8, 2019

@yongshengma we already provide packages for qemu, otherwise you need to use the correct qemu binary produced from your compilation.

@yongshengma
Copy link
Author

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

@yongshengma
Copy link
Author

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.

@cnanakos
Copy link
Member

cnanakos commented Mar 8, 2019

@yongshengma please compile from the feature/for_16.04_v2.5 branch.

@yongshengma
Copy link
Author

yongshengma commented Mar 12, 2019

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

  1. The qemu-* files provided by deb packages from openvstorage repo are installed in /usr/bin/
  2. The qemu-* files made from master or branch feature/for_16.04_v2.5 are installed in /usr/local/bin/

qemu-img

  1. /usr/bin/qemu-img convert cirrus.qcow2 openvstorage+tcp:192.168.122.32:26203/cirrus still works as before.
  2. '/usr/local/bin/qemu-img convert cirrus.qcow2 openvstorage+tcp:192.168.122.32:26203/cirrus' still gives the error:
    qemu-img: Unknown protocol 'openvstorage+tcp'

qemu-system-x86_64

  1. /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'
  1. /usr/local/bin/qemu-system-x86_64 -drive file=openvstorage+tcp:192.168.122.32:26203/cirrus,if=virtio,cache=none,format=raw still gives error:
    Unknown protocol 'openvstorage+tcp'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants