LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-22-2013, 09:33 AM   #1
lllux
LQ Newbie
 
Registered: Apr 2013
Posts: 11

Rep: Reputation: Disabled
host to guest directory share, 9p and virtio


Hi chaps,

I'm having some issues, I'm attempting to pass/share a directory from the host to a KVM guest using 9p and virtio, detailed here: wiki.qemu.org/Documentation/9psetup

Starting the Guest directly:

me(at)host$ qemu -m 1024 -name debian -drive file=/var/lib/libvirt/images_local/debian.img,if=virtio -fsdev local,security_model=passthrough,id=fsdev0,path=/images -device virtio-9p-pci,id=fs0,fsdev=fsdev0,mount_tag=/imagestarget
qemu: invalid option -- '-fsdev'

Using libvirt:

Editing the .xml file that configures the guest and adding:

<filesystem type='mount' accessmode='passthrough'>
<source dir='/images'/>
<target dir='/imagestarget'/>
</filesystem>

Gets imediately reconfigured by libvirt to:

<filesystem type='mount'>
<source dir='/images'/>
<target dir='/imagestarget'/>
</filesystem>

On the guest, trying to mount the share yeilds:

root(at)debian:~# mount -t 9p -o trans=virtio,version=9p2000.L /imagestarget /images
Killed
root(at)debian:~#
Message from syslogd(at)debian at Apr 21 18:59:27 ...
kernel:[ 56.370241] Oops: 0002 [#1] SMP

Message from syslogd(at)debian at Apr 21 18:59:27 ...
kernel:[ 56.370247] last sysfs file: /sys/bus/virtio/drivers/9pnet_virtio/uevent

Message from syslogd(at)debian at Apr 21 18:59:27 ...
kernel:[ 56.370436] Stack:

Message from syslogd(at)debian at Apr 21 18:59:27 ...
kernel:[ 56.370467] Call Trace:

Message from syslogd(at)debian at Apr 21 18:59:27 ...
kernel:[ 56.370573] Code: 8b 7d 18 48 8b 47 28 ff 50 08 31 d2 59 5b 5d 41 5c 41 5d 41 5e 89 d0 41 5f c3 53 48 8b 5f 20 48 c7 c7 40 76 34 a0 e8 cd 5f fb e0 <c6> 43 01 00 48 c7 c7 40 76 34 a0 5b e9 20 5d fb e0 41 54 49 89

Message from syslogd(at)debian at Apr 21 18:59:27 ...
kernel:[ 56.370639] CR2: 0000000000000001


This makes me think I'm missing a kernel module, or a part of qemu/kvm, anybody have any idea whats wrong?

I would be open to any other (fast) way of sharing a host directory (or disk) with a guest too if someone has a better way.

I tried to include all the information that might be useful. Many thanks in advance for your help!

J

Last edited by lllux; 04-22-2013 at 09:35 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to share from windows 7(host) to RHEL6.2 (guest) on VMware workstation 8.0 shibir Linux - Server 5 05-30-2012 04:54 AM
[SOLVED] Setting up an SMB share with a linux guest and host (qemu)? abtekk Linux - Software 2 04-21-2012 07:24 AM
VirtualBox:I want to share folders between Fedora 14 as guest and OS/2 as host pinky@linux Linux - Newbie 6 04-04-2011 09:17 PM
Share between Qemu-Kvm host and guest Alexvader General 1 06-13-2010 03:07 PM
Samba to share between host and guest in VMware cncrazu Linux - Software 0 06-11-2004 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration