[Qemu-discuss] Accessing a shared folder

2017-08-29 Thread Mahmood
Hi, Following the manual, I use this command to boot a centos guest and access a ashared folder between host and guest qemu-system-x86_64 -m 2000 -hda cent7.img -boot c -usbdevice tablet -enable-kvm -device e1000,netdev=host_files -netdev user,net=10.0.2.0/24,id=host_files -virtfs fsdriver,id=s

Re: [Qemu-discuss] Accessing a shared folder

2017-08-29 Thread Thomas Huth
Hi, On 29.08.2017 20:07, Mahmood wrote: > Hi, > Following the manual, I use this command to boot a centos guest and access a > ashared folder between host and guest > > qemu-system-x86_64 -m 2000 -hda cent7.img -boot c -usbdevice tablet > -enable-kvm -device e1000,netdev=host_files -netdev >

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Mahmood
>You don't have to write "fsdriver" here, but replace it with "local", >"handle" or "proxy". Still get the same error mahmood@cluster:qemu-vm$ qemu-system-x86_64 -m 4000 -cpu Opteron_G5 -smp 2 -hda centos7server.img -boot c  -usbdevice tablet -enable-kvm -device e1000,netdev=host_files -netde

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Thomas Huth
On 30.08.2017 09:55, Mahmood wrote: >> You don't have to write "fsdriver" here, but replace it with "local", >> "handle" or "proxy". > > Still get the same error > > mahmood@cluster:qemu-vm$ qemu-system-x86_64 -m 4000 -cpu Opteron_G5 -smp 2 > -hda centos7server.img -boot c  -usbdevice tablet -en

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Mahmood
>Could you please try to replace the -virtfs option with these two options: > >-fsdev local,id=shared,path=/home/mahmood/Downloads \ >-device virtio-9p-pci,fsdev=shared,mount_tag=Downloads Still get the same error! mahmood@cluster:qemu-vm$ qemu-system-x86_64 -m 4000 -cpu Opteron_G5 -smp 2 -h

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Thomas Huth
On 30.08.2017 11:28, Mahmood wrote: >> Could you please try to replace the -virtfs option with these two options: >> > >-fsdev local,id=shared,path=/home/mahmood/Downloads \ > >-device virtio-9p-pci,fsdev=shared,mount_tag=Downloads > > Still get the same error! > > mahmood@cluster:qemu-vm$ qemu

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Greg Kurz
On Wed, 30 Aug 2017 09:28:57 + (UTC) Mahmood wrote: > >Could you please try to replace the -virtfs option with these two options: > > > >-fsdev local,id=shared,path=/home/mahmood/Downloads \ > >-device virtio-9p-pci,fsdev=shared,mount_tag=Downloads > > > > > Still get the same error!

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Mahmood
The security_model=none also doesn't work and get the same error. mahmood@cluster:qemu-vm$ qemu-system-x86_64 -version QEMU emulator version 1.7.0, Copyright (c) 2003-2008 Fabrice Bellard I know it is old but I think I installed this version three years ago due to the Rocks-6 version old libra

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Mahmood
Hello again,I installed 2.5.0 quickly and it was pretty straight forward! Here is the error message I get regarding the 'virtio-9p-pci' mahmood@cluster:qemu-vm$ qemu-system-x86_64 -m 4000 -cpu Opteron_G5 -smp 2 -hda centos7.img -boot c  -usbdevice tablet -enable-kvm -device e1000,netdev=host_

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Peter Maydell
On 30 August 2017 at 12:38, Mahmood wrote: > Hello again,I installed 2.5.0 quickly and it was pretty straight forward! > > Here is the error message I get regarding the 'virtio-9p-pci' > 'virtio-9p-pci' is not a valid device model name Are you building your own QEMU binary or is it from somewhere

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Greg Kurz
On Wed, 30 Aug 2017 12:17:22 +0200 Thomas Huth wrote: > On 30.08.2017 12:11, Greg Kurz wrote: > [...] > > Hi, > > > > Both -virtfs and -fsdev/-device syntaxes work for me with the current QEMU > > master branch :) Where's your qemu-system-x86_64 binary coming from ? > > There is at least one

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Thomas Huth
On 30.08.2017 12:11, Greg Kurz wrote: [...] > Hi, > > Both -virtfs and -fsdev/-device syntaxes work for me with the current QEMU > master branch :) Where's your qemu-system-x86_64 binary coming from ? There is at least one problem with -virtfs if you forget to specify the "security_model=xxx" opt

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Mahmood
OK. I reconfigured 2.9.0 with --enable-virtfs. Please note: 1- If I use -virtfs option, I get qemu-option.c:547: opt_set: Assertion `opt->str' failed 2- If I use -fsdev and -device, then I *must* use security_model 3- If I use -fsdev and -device and security_model, then the guest boots nor

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Greg Kurz
On Wed, 30 Aug 2017 14:35:00 + (UTC) Mahmood wrote: > OK. I reconfigured 2.9.0 with --enable-virtfs. Please note: > 1- If I use -virtfs option, I get > qemu-option.c:547: opt_set: Assertion `opt->str' failed > If you use the local fsdriver, security_model is mandatory with -virtfs jus