Qemu share folder - 9pnet_virtio: no channels available for deviceQemu & VNC - how to use absolute...

Is there a math equivalent to the conditional ternary operator?

Ultrafilters as a double dual

Replacing tantalum capacitor with ceramic capacitor for Op Amps

PTiJ: How should animals pray?

How to make sure I'm assertive enough in contact with subordinates?

Quitting employee has privileged access to critical information

When to use the term transposed instead of modulation?

Can inspiration allow the Rogue to make a Sneak Attack?

What does "rhumatis" mean?

Is it a Cyclops number? "Nobody" knows!

Should we avoid writing fiction about historical events without extensive research?

How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?

Is there such a thing in math the inverse of a sequence?

How do you make a gun that shoots melee weapons and/or swords?

Affine transformation of circular arc in 3D

Did Amazon pay $0 in taxes last year?

The Key to the Door

Iron deposits mined from under the city

New invention compresses matter to produce energy? or other items? (Short Story)

Is "cogitate" an appropriate word for this?

The past tense for the quoting particle って

Can a space-faring robot still function over a billion years?

Python 3.6+ function to ask for a multiple-choice answer

What's the best tool for cutting holes into duct work?



Qemu share folder - 9pnet_virtio: no channels available for device


Qemu & VNC - how to use absolute pointing deviceARM Compiled QEMU - “standard VGA not available”USB passthrough for QEMU gets error “qemu: could not add USB device”Qemu KVM Passthrough - could not add USB deviceVFIO permission issue with dGPU passthroughqemu - Could not initialize SDL(No available video device)qemu -enable-kvm *slower* than pure emulation for x86_64How to disable buffering for a LVM partition under QEMU KVMCan't I acess /dev/nbdX(qemu device) via iSCSI?How to boot a physical Linux partition with Qemu for Windows 10 X64 bit?













3















I try to run a qemu virtual machine having a folder shared with host. No matter what I do, I have always the same error: 9pnet_virtio: no channels available for device share.



Host machine is under Linux.



Kernel was compiled with all 9P and virtio options enabled (https://wiki.qemu.org/Documentation/9psetup).



Here's my script to run qemu:



#! /bin/bash

HDA=archlinux.img
HDB=myHome.img
KERNEL=linux/arch/x86/boot/bzImage

if [ -n "${KDB}" ]; then
KGD_WAIT='kgdbwait'
fi

CMDLINE="root=/dev/sda1 rw vga=792 console=ttyS0 kgdboc=ttyS1 ${KGD_WAIT}"

FLAGS="--enable-kvm -s"
VIRTFS+=" --virtfs local,path=./share/,mount_tag=share,security_model=passthrough,id=share "

exec qemu-system-x86_64 ${FLAGS}
-hda "${HDA}" -hdb "${HDB}"
${VIRTFS}
-net user -net nic
-serial stdio -serial tcp::1234,server,nowait
-boot c -m 1G
-kernel "${KERNEL}" -append "${CMDLINE}"


When I mount the folder manually (https://www.linux-kvm.org/page/9p_virtio)



mkdir share_folder
mount -t 9p -o trans=virtio,version=9p2000.L share share_folder


The result is the same.










share|improve this question























  • Here is an automated QEMU+ Buildroot setup that uses 9P successfully: github.com/cirosantilli/linux-kernel-module-cheat/tree/…

    – Ciro Santilli 新疆改造中心 六四事件 法轮功
    Oct 13 '18 at 9:02
















3















I try to run a qemu virtual machine having a folder shared with host. No matter what I do, I have always the same error: 9pnet_virtio: no channels available for device share.



Host machine is under Linux.



Kernel was compiled with all 9P and virtio options enabled (https://wiki.qemu.org/Documentation/9psetup).



Here's my script to run qemu:



#! /bin/bash

HDA=archlinux.img
HDB=myHome.img
KERNEL=linux/arch/x86/boot/bzImage

if [ -n "${KDB}" ]; then
KGD_WAIT='kgdbwait'
fi

CMDLINE="root=/dev/sda1 rw vga=792 console=ttyS0 kgdboc=ttyS1 ${KGD_WAIT}"

FLAGS="--enable-kvm -s"
VIRTFS+=" --virtfs local,path=./share/,mount_tag=share,security_model=passthrough,id=share "

exec qemu-system-x86_64 ${FLAGS}
-hda "${HDA}" -hdb "${HDB}"
${VIRTFS}
-net user -net nic
-serial stdio -serial tcp::1234,server,nowait
-boot c -m 1G
-kernel "${KERNEL}" -append "${CMDLINE}"


When I mount the folder manually (https://www.linux-kvm.org/page/9p_virtio)



mkdir share_folder
mount -t 9p -o trans=virtio,version=9p2000.L share share_folder


The result is the same.










share|improve this question























  • Here is an automated QEMU+ Buildroot setup that uses 9P successfully: github.com/cirosantilli/linux-kernel-module-cheat/tree/…

    – Ciro Santilli 新疆改造中心 六四事件 法轮功
    Oct 13 '18 at 9:02














3












3








3


2






I try to run a qemu virtual machine having a folder shared with host. No matter what I do, I have always the same error: 9pnet_virtio: no channels available for device share.



Host machine is under Linux.



Kernel was compiled with all 9P and virtio options enabled (https://wiki.qemu.org/Documentation/9psetup).



Here's my script to run qemu:



#! /bin/bash

HDA=archlinux.img
HDB=myHome.img
KERNEL=linux/arch/x86/boot/bzImage

if [ -n "${KDB}" ]; then
KGD_WAIT='kgdbwait'
fi

CMDLINE="root=/dev/sda1 rw vga=792 console=ttyS0 kgdboc=ttyS1 ${KGD_WAIT}"

FLAGS="--enable-kvm -s"
VIRTFS+=" --virtfs local,path=./share/,mount_tag=share,security_model=passthrough,id=share "

exec qemu-system-x86_64 ${FLAGS}
-hda "${HDA}" -hdb "${HDB}"
${VIRTFS}
-net user -net nic
-serial stdio -serial tcp::1234,server,nowait
-boot c -m 1G
-kernel "${KERNEL}" -append "${CMDLINE}"


When I mount the folder manually (https://www.linux-kvm.org/page/9p_virtio)



mkdir share_folder
mount -t 9p -o trans=virtio,version=9p2000.L share share_folder


The result is the same.










share|improve this question














I try to run a qemu virtual machine having a folder shared with host. No matter what I do, I have always the same error: 9pnet_virtio: no channels available for device share.



Host machine is under Linux.



Kernel was compiled with all 9P and virtio options enabled (https://wiki.qemu.org/Documentation/9psetup).



Here's my script to run qemu:



#! /bin/bash

HDA=archlinux.img
HDB=myHome.img
KERNEL=linux/arch/x86/boot/bzImage

if [ -n "${KDB}" ]; then
KGD_WAIT='kgdbwait'
fi

CMDLINE="root=/dev/sda1 rw vga=792 console=ttyS0 kgdboc=ttyS1 ${KGD_WAIT}"

FLAGS="--enable-kvm -s"
VIRTFS+=" --virtfs local,path=./share/,mount_tag=share,security_model=passthrough,id=share "

exec qemu-system-x86_64 ${FLAGS}
-hda "${HDA}" -hdb "${HDB}"
${VIRTFS}
-net user -net nic
-serial stdio -serial tcp::1234,server,nowait
-boot c -m 1G
-kernel "${KERNEL}" -append "${CMDLINE}"


When I mount the folder manually (https://www.linux-kvm.org/page/9p_virtio)



mkdir share_folder
mount -t 9p -o trans=virtio,version=9p2000.L share share_folder


The result is the same.







linux virtualization qemu virtio






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 25 '18 at 15:17









jksjks

162




162













  • Here is an automated QEMU+ Buildroot setup that uses 9P successfully: github.com/cirosantilli/linux-kernel-module-cheat/tree/…

    – Ciro Santilli 新疆改造中心 六四事件 法轮功
    Oct 13 '18 at 9:02



















  • Here is an automated QEMU+ Buildroot setup that uses 9P successfully: github.com/cirosantilli/linux-kernel-module-cheat/tree/…

    – Ciro Santilli 新疆改造中心 六四事件 法轮功
    Oct 13 '18 at 9:02

















Here is an automated QEMU+ Buildroot setup that uses 9P successfully: github.com/cirosantilli/linux-kernel-module-cheat/tree/…

– Ciro Santilli 新疆改造中心 六四事件 法轮功
Oct 13 '18 at 9:02





Here is an automated QEMU+ Buildroot setup that uses 9P successfully: github.com/cirosantilli/linux-kernel-module-cheat/tree/…

– Ciro Santilli 新疆改造中心 六四事件 法轮功
Oct 13 '18 at 9:02










2 Answers
2






active

oldest

votes


















1














Resolved for me (with an ubuntu 18.04 host and 14.04 guest) by adding theses modules:




  • virtio_input

  • 9pnet

  • 9pnet_virtio


into guest file /etc/initramfs-tools/modules.



Don't forget to upadate initramfs for your kernel(s) after add:



update-initramfs -uk <kernel|all>






share|improve this answer








New contributor




Batman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




























    0














    In my case it was failing due to missing virtio_pci module and I fixed it with:



    modprobe virtio_pci






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1317119%2fqemu-share-folder-9pnet-virtio-no-channels-available-for-device%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      Resolved for me (with an ubuntu 18.04 host and 14.04 guest) by adding theses modules:




      • virtio_input

      • 9pnet

      • 9pnet_virtio


      into guest file /etc/initramfs-tools/modules.



      Don't forget to upadate initramfs for your kernel(s) after add:



      update-initramfs -uk <kernel|all>






      share|improve this answer








      New contributor




      Batman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























        1














        Resolved for me (with an ubuntu 18.04 host and 14.04 guest) by adding theses modules:




        • virtio_input

        • 9pnet

        • 9pnet_virtio


        into guest file /etc/initramfs-tools/modules.



        Don't forget to upadate initramfs for your kernel(s) after add:



        update-initramfs -uk <kernel|all>






        share|improve this answer








        New contributor




        Batman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.























          1












          1








          1







          Resolved for me (with an ubuntu 18.04 host and 14.04 guest) by adding theses modules:




          • virtio_input

          • 9pnet

          • 9pnet_virtio


          into guest file /etc/initramfs-tools/modules.



          Don't forget to upadate initramfs for your kernel(s) after add:



          update-initramfs -uk <kernel|all>






          share|improve this answer








          New contributor




          Batman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.










          Resolved for me (with an ubuntu 18.04 host and 14.04 guest) by adding theses modules:




          • virtio_input

          • 9pnet

          • 9pnet_virtio


          into guest file /etc/initramfs-tools/modules.



          Don't forget to upadate initramfs for your kernel(s) after add:



          update-initramfs -uk <kernel|all>







          share|improve this answer








          New contributor




          Batman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          Batman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 21 hours ago









          BatmanBatman

          112




          112




          New contributor




          Batman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Batman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Batman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.

























              0














              In my case it was failing due to missing virtio_pci module and I fixed it with:



              modprobe virtio_pci






              share|improve this answer




























                0














                In my case it was failing due to missing virtio_pci module and I fixed it with:



                modprobe virtio_pci






                share|improve this answer


























                  0












                  0








                  0







                  In my case it was failing due to missing virtio_pci module and I fixed it with:



                  modprobe virtio_pci






                  share|improve this answer













                  In my case it was failing due to missing virtio_pci module and I fixed it with:



                  modprobe virtio_pci







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Sep 24 '18 at 5:37









                  John DoeJohn Doe

                  4114




                  4114






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1317119%2fqemu-share-folder-9pnet-virtio-no-channels-available-for-device%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

                      Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

                      looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...