Results 1 to 1 of 1
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:
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-21-2013 #1Just Joined!
- Join Date
- Apr 2013
- Posts
- 1
9p virtio problems
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:
Using libvirt:Code: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'
Editing the .xml file that configures the guest and adding:
Gets imediately reconfigured by libvirt to:Code:<filesystem type='mount' accessmode='passthrough'> <source dir='/images'/> <target dir='/imagestarget'/> </filesystem>
On the guest, trying to mount the share yeilds:Code:<filesystem type='mount'> <source dir='/images'/> <target dir='/imagestarget'/> </filesystem>
and dmesg output:Code: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 all makes me think im missing a kernel module, or a part of qemu/kvm, anybody have any idea whats wrong?Code:[ 47.175910] Installing 9P2000 support [ 47.181580] Installing v9fs 9p2000 file system support [ 47.181990] FS-Cache: Netfs '9p' registered for caching [ 56.370180] 9p: no channels available [ 56.370209] BUG: unable to handle kernel NULL pointer dereference at 0000000000000001 [ 56.370219] IP: [<ffffffffa0347174>] p9_virtio_close+0x11/0x22 [9pnet_virtio] [ 56.370233] PGD 3e385067 PUD 3ec7f067 PMD 0 [ 56.370241] Oops: 0002 [#1] SMP [ 56.370247] last sysfs file: /sys/bus/virtio/drivers/9pnet_virtio/uevent [ 56.370253] CPU 0 [ 56.370257] Modules linked in: 9pnet_virtio 9p 9pnet fscache nfsd lockd nfs_acl auth_rpcgss sunrpc exportfs loop snd_pcm snd_timer snd i2c_piix4 soundcore psmouse snd_page_alloc virtio_balloon serio_raw evdev i2c_core pcspkr processor button ext3 jbd mbcache sg sr_mod sd_mod crc_t10dif cdrom ata_generic ata_piix uhci_hcd ehci_hcd 8139too virtio_pci virtio_ring libata usbcore floppy virtio 8139cp mii nls_base scsi_mod thermal thermal_sys [last unloaded: scsi_wait_scan] [ 56.370327] Pid: 963, comm: mount Not tainted 2.6.32-5-amd64 #1 Bochs [ 56.370333] RIP: 0010:[<ffffffffa0347174>] [<ffffffffa0347174>] p9_virtio_close+0x11/0x22 [9pnet_virtio] [ 56.370345] RSP: 0018:ffff88003e3adc68 EFLAGS: 00010286 [ 56.370350] RAX: 000000203d5c5bc0 RBX: 0000000000000000 RCX: 0000000000011ac0 [ 56.370356] RDX: ffff88003e3adcb8 RSI: 0000000000000096 RDI: ffffffffa0347640 [ 56.370362] RBP: ffff88003deb8000 R08: 0000000000005128 R09: 000000000000000a [ 56.370368] R10: 0000000000000000 R11: ffffffff811b8a5c R12: 00000000ffffffed [ 56.370374] R13: ffff88003e3adcb8 R14: ffffffffffffffed R15: ffff88003e39f000 [ 56.370382] FS: 00007fd7154d97e0(0000) GS:ffff880001800000(0000) knlGS:0000000000000000 [ 56.370389] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 56.370394] CR2: 0000000000000001 CR3: 000000003e3c0000 CR4: 00000000000006f0 [ 56.370411] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 56.370423] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 56.370429] Process mount (pid: 963, threadinfo ffff88003e3ac000, task ffff88003ec42350) [ 56.370436] Stack: [ 56.370439] 0000000000000003 ffffffffa032c398 0000000000000003 ffff88003deb8000 [ 56.370447] <0> 00000000ffffffed ffff88003e3adcb8 ffffffffffffffed ffffffffa032c7bc [ 56.370457] <0> 00000000000000d0 ffff88003dbea4f0 ffff88003f30a306 ffff88003f30a30c [ 56.370467] Call Trace: [ 56.370477] [<ffffffffa032c398>] ? p9_client_destroy+0x17/0x130 [9pnet] [ 56.370487] [<ffffffffa032c7bc>] ? p9_client_create+0x20f/0x221 [9pnet] [ 56.370498] [<ffffffff8119750d>] ? match_token+0x7d/0x1cc [ 56.370508] [<ffffffffa033cddf>] ? v9fs_session_init+0x31e/0x3cf [9p] [ 56.370517] [<ffffffffa033b0db>] ? v9fs_get_sb+0x96/0x22b [9p] [ 56.370527] [<ffffffff810f1547>] ? vfs_kern_mount+0x99/0x14b [ 56.370536] [<ffffffff810f164c>] ? do_kern_mount+0x43/0xe2 [ 56.370545] [<ffffffff81105823>] ? do_mount+0x72a/0x792 [ 56.370552] [<ffffffff81103c21>] ? copy_mount_options+0xca/0x12b [ 56.370560] [<ffffffff8110590b>] ? sys_mount+0x80/0xbd [ 56.370568] [<ffffffff81010b42>] ? system_call_fastpath+0x16/0x1b [ 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 [ 56.370625] RIP [<ffffffffa0347174>] p9_virtio_close+0x11/0x22 [9pnet_virtio] [ 56.370635] RSP <ffff88003e3adc68> [ 56.370639] CR2: 0000000000000001 [ 56.370645] ---[ end trace 8a6252165a873cd6 ]---
I tried to include all the information that might be useful. Many thanks in advance for your help!
J


Reply With Quote
