* Re: [Qemu-devel] [Qemu-discuss] Accessing a shared folder
[not found] ` <1075529669.195794.1504079702032@mail.yahoo.com>
@ 2017-08-30 8:15 ` Thomas Huth
2017-08-30 9:28 ` Mahmood
0 siblings, 1 reply; 12+ messages in thread
From: Thomas Huth @ 2017-08-30 8:15 UTC (permalink / raw)
To: Mahmood, qemu-discuss; +Cc: QEMU Developers, Aneesh Kumar K.V, Greg Kurz
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 -enable-kvm -device e1000,netdev=host_files -netdev user,net=10.0.2.0/24,id=host_files -virtfs local,id=shared,path=/home/mahmood/Downloads,mount_tag=Downloads
> qemu-system-x86_64: -virtfs local,id=shared,path=/home/mahmood/Downloads,mount_tag=Downloads: Parameter 'driver' expects device type
Hmm, I've got the strange feeling that the -virtfs parameter might
currently be broken.
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
I hope that works better...
Thomas
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [Qemu-discuss] Accessing a shared folder
2017-08-30 8:15 ` [Qemu-devel] [Qemu-discuss] Accessing a shared folder Thomas Huth
@ 2017-08-30 9:28 ` Mahmood
2017-08-30 10:11 ` Greg Kurz
0 siblings, 1 reply; 12+ messages in thread
From: Mahmood @ 2017-08-30 9:28 UTC (permalink / raw)
To: Thomas Huth, qemu-discuss; +Cc: Greg Kurz, QEMU Developers, Aneesh Kumar K.V
>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 -hda centos7server.img -boot c -usbdevice tablet -enable-kvm -device e1000,netdev=host_files -netdev user,net=10.0.2.0/24,id=host_files -fsdev local,id=shared,path=/home/mahmood/Downloads -device virtio-9p-pci,fsdev=shared,mount_tag=Downloads
qemu-system-x86_64: -device virtio-9p-pci,fsdev=shared,mount_tag=Downloads: Parameter 'driver' expects device type
mahmood@cluster:qemu-vm$
Regards,
Mahmood
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [Qemu-discuss] Accessing a shared folder
2017-08-30 9:28 ` Mahmood
@ 2017-08-30 10:11 ` Greg Kurz
2017-08-30 10:17 ` Thomas Huth
0 siblings, 1 reply; 12+ messages in thread
From: Greg Kurz @ 2017-08-30 10:11 UTC (permalink / raw)
To: Mahmood; +Cc: Thomas Huth, qemu-discuss, Aneesh Kumar K.V, QEMU Developers
[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]
On Wed, 30 Aug 2017 09:28:57 +0000 (UTC)
Mahmood <nt_mahmood@yahoo.com> 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-system-x86_64 -m 4000 -cpu Opteron_G5 -smp 2 -hda centos7server.img -boot c -usbdevice tablet -enable-kvm -device e1000,netdev=host_files -netdev user,net=10.0.2.0/24,id=host_files -fsdev local,id=shared,path=/home/mahmood/Downloads -device virtio-9p-pci,fsdev=shared,mount_tag=Downloads
> qemu-system-x86_64: -device virtio-9p-pci,fsdev=shared,mount_tag=Downloads: Parameter 'driver' expects device type
> mahmood@cluster:qemu-vm$
>
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 ?
Cheers,
--
Greg
PS: I'm on vacation. I'll be fully available next week.
>
>
>
> Regards,
> Mahmood
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [Qemu-discuss] Accessing a shared folder
2017-08-30 10:11 ` Greg Kurz
@ 2017-08-30 10:17 ` Thomas Huth
2017-08-30 10:53 ` Mahmood
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Thomas Huth @ 2017-08-30 10:17 UTC (permalink / raw)
To: Greg Kurz, Mahmood
Cc: Thomas Huth, qemu-discuss, Aneesh Kumar K.V, QEMU Developers
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" option:
$ x86_64-softmmu/qemu-system-x86_64 -virtfs local,id=shared,path=/tmp,mount_tag=tag
qemu-system-x86_64: util/qemu-option.c:547: opt_set: Assertion `opt->str' failed.
Aborted (core dumped)
According to the qemu-doc, the securit_model is optional, so it
should be possible to run qemu without it, too, shouldn't it?
Thomas
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [Qemu-discuss] Accessing a shared folder
2017-08-30 10:17 ` Thomas Huth
@ 2017-08-30 10:53 ` Mahmood
2017-08-30 11:38 ` Mahmood
2017-08-30 13:21 ` Greg Kurz
2017-08-30 14:35 ` Mahmood
2 siblings, 1 reply; 12+ messages in thread
From: Mahmood @ 2017-08-30 10:53 UTC (permalink / raw)
To: Thomas Huth, Greg Kurz
Cc: Thomas Huth, qemu-discuss, Aneesh Kumar K.V, QEMU Developers
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 libraries (which is based on Centos-6). I will try some newer versions to find which version is better.
One more question. How can I uninstall the qemu which is built from source? "make uninstall" in the source folder doesn't work.
Sorry for taking up your time.
Regards,
Mahmood
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [Qemu-discuss] Accessing a shared folder
2017-08-30 10:53 ` Mahmood
@ 2017-08-30 11:38 ` Mahmood
2017-08-30 12:00 ` Peter Maydell
0 siblings, 1 reply; 12+ messages in thread
From: Mahmood @ 2017-08-30 11:38 UTC (permalink / raw)
To: Thomas Huth, Greg Kurz
Cc: Thomas Huth, qemu-discuss, Aneesh Kumar K.V, QEMU Developers
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_files -netdev user,net=10.0.2.0/24,id=host_files -virtfs local,id=shared,path=/home/mahmood/Downloads,mount_tag=Downloads
warning: host doesn't support requested feature: CPUID.40000001H:EAX.kvm_asyncpf [bit 4]
warning: host doesn't support requested feature: CPUID.40000001H:EAX.kvm_asyncpf [bit 4]
qemu-system-x86_64: -virtfs local,id=shared,path=/home/mahmood/Downloads,mount_tag=Downloads: 'virtio-9p-pci' is not a valid device model name
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_files -netdev user,net=10.0.2.0/24,id=host_files -fsdev local,id=shared,path=/home/mahmood/Downloads -device virtio-9p-pci,fsdev=shared,mount_tag=Downloads
warning: host doesn't support requested feature: CPUID.40000001H:EAX.kvm_asyncpf [bit 4]
warning: host doesn't support requested feature: CPUID.40000001H:EAX.kvm_asyncpf [bit 4]
qemu-system-x86_64: -device virtio-9p-pci,fsdev=shared,mount_tag=Downloads: 'virtio-9p-pci' is not a valid device model name
mahmood@cluster:qemu-vm$ qemu-system-x86_64 -version
QEMU emulator version 2.5.0, Copyright (c) 2003-2008 Fabrice Bellard
I appreciate if you help. Thanks.
Regards,
Mahmood
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [Qemu-discuss] Accessing a shared folder
2017-08-30 11:38 ` Mahmood
@ 2017-08-30 12:00 ` Peter Maydell
0 siblings, 0 replies; 12+ messages in thread
From: Peter Maydell @ 2017-08-30 12:00 UTC (permalink / raw)
To: Mahmood
Cc: Thomas Huth, Greg Kurz, Thomas Huth, QEMU Developers,
Aneesh Kumar K.V, qemu-discuss
On 30 August 2017 at 12:38, Mahmood <nt_mahmood@yahoo.com> 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
else? I wonder if it was built without support for the 9p
filesystem code. For this to be enabled:
* host machine must be Linux
* system building QEMU must have libcap development package installed
If you're building it yourself then you can pass configure
'--enable-virtfs' which will mean configure will stop with
an error if it can't enable virtfs rather than just disabling
this optional feature.
QEMU ought to produce a helpful error if you try to use -virtfs
when virtfs wasn't compiled in, but it may be that this check
was broken accidentally at some point.
Also, 2.5.0 is a couple of years old, you might try with 2.9.0
(or even with the 2.10.0 we're about to release today).
thanks
-- PMM
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [Qemu-discuss] Accessing a shared folder
2017-08-30 10:17 ` Thomas Huth
2017-08-30 10:53 ` Mahmood
@ 2017-08-30 13:21 ` Greg Kurz
2017-08-30 14:35 ` Mahmood
2 siblings, 0 replies; 12+ messages in thread
From: Greg Kurz @ 2017-08-30 13:21 UTC (permalink / raw)
To: Thomas Huth
Cc: Mahmood, Thomas Huth, qemu-discuss, Aneesh Kumar K.V, QEMU Developers
[-- Attachment #1: Type: text/plain, Size: 1414 bytes --]
On Wed, 30 Aug 2017 12:17:22 +0200
Thomas Huth <th.huth@posteo.de> 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 problem with -virtfs if you forget to specify
> the "security_model=xxx" option:
>
> $ x86_64-softmmu/qemu-system-x86_64 -virtfs local,id=shared,path=/tmp,mount_tag=tag
> qemu-system-x86_64: util/qemu-option.c:547: opt_set: Assertion `opt->str' failed.
> Aborted (core dumped)
>
Yeah, we should print out that security_model is missing instead of dumping
core... :-\
> According to the qemu-doc, the securit_model is optional, so it
> should be possible to run qemu without it, too, shouldn't it?
>
Hmm... the documentation is a bit misleading. We indeed have:
-virtfs fsdriver[,path=path],mount_tag=mount_tag[,security_model=security_model]
[,writeout=writeout][,readonly][,socket=socket|sock_fd=sock_fd]
but the description of security_model says:
Security model is mandatory only for local fsdriver. Other fsdrivers (like
handle, proxy) don't take security model as a parameter.
The same goes for the proxy fsdriver which needs socket or sock_fd, and doesn't use
path.
Should we have a -virtfs line for each fsdriver ?
> Thomas
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [Qemu-discuss] Accessing a shared folder
2017-08-30 10:17 ` Thomas Huth
2017-08-30 10:53 ` Mahmood
2017-08-30 13:21 ` Greg Kurz
@ 2017-08-30 14:35 ` Mahmood
2017-08-30 17:28 ` Greg Kurz
2 siblings, 1 reply; 12+ messages in thread
From: Mahmood @ 2017-08-30 14:35 UTC (permalink / raw)
To: Thomas Huth, Greg Kurz
Cc: Thomas Huth, QEMU Developers, Aneesh Kumar K.V, qemu-discuss
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 normally.
I haven't tried to see if I am able to access the shared folder nor not. Do you have any note on the above items?
Regards,
Mahmood
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [Qemu-discuss] Accessing a shared folder
2017-08-30 14:35 ` Mahmood
@ 2017-08-30 17:28 ` Greg Kurz
2017-08-31 10:34 ` Mahmood
0 siblings, 1 reply; 12+ messages in thread
From: Greg Kurz @ 2017-08-30 17:28 UTC (permalink / raw)
To: Mahmood
Cc: Thomas Huth, Thomas Huth, QEMU Developers, Aneesh Kumar K.V,
qemu-discuss
[-- Attachment #1: Type: text/plain, Size: 885 bytes --]
On Wed, 30 Aug 2017 14:35:00 +0000 (UTC)
Mahmood <nt_mahmood@yahoo.com> 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 just
like it is with -fsdev.
> 2- If I use -fsdev and -device, then I *must* use security_model
>
True, as indicated in the QEMU manpage:
"Security model is mandatory only for local fsdriver.
Other fsdrivers (like handle, proxy) don't take security model
as a parameter."
> 3- If I use -fsdev and -device and security_model, then the guest boots normally.
>
> I haven't tried to see if I am able to access the shared folder nor not. Do you have any note on the above items?
>
>
> Regards,
> Mahmood
>
Cheers,
--
Greg
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [Qemu-discuss] Accessing a shared folder
2017-08-30 17:28 ` Greg Kurz
@ 2017-08-31 10:34 ` Mahmood
2017-08-31 10:50 ` Peter Maydell
0 siblings, 1 reply; 12+ messages in thread
From: Mahmood @ 2017-08-31 10:34 UTC (permalink / raw)
To: Greg Kurz
Cc: Thomas Huth, qemu-discuss, Thomas Huth, QEMU Developers,
Aneesh Kumar K.V
Hello again,
For the command
mount -t 9p -o trans=virtio Downloads /media/Downloads
inside the Centos-7 guest, I get this error
mount: unknown filesystem type '9p'
Any thought?
Regards,
Mahmood
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [Qemu-discuss] Accessing a shared folder
2017-08-31 10:34 ` Mahmood
@ 2017-08-31 10:50 ` Peter Maydell
0 siblings, 0 replies; 12+ messages in thread
From: Peter Maydell @ 2017-08-31 10:50 UTC (permalink / raw)
To: Mahmood
Cc: Greg Kurz, Thomas Huth, Aneesh Kumar K.V, Thomas Huth,
QEMU Developers, qemu-discuss
On 31 August 2017 at 11:34, Mahmood via Qemu-devel
<qemu-devel@nongnu.org> wrote:
> Hello again,
> For the command
>
> mount -t 9p -o trans=virtio Downloads /media/Downloads
>
> inside the Centos-7 guest, I get this error
>
> mount: unknown filesystem type '9p'
>
> Any thought?
That's an issue with your guest OS (probably it doesn't
have 9p support enabled in the kernel).
thanks
-- PMM
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2017-08-31 10:50 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1915302638.2814146.1504030043465.ref@mail.yahoo.com>
[not found] ` <1915302638.2814146.1504030043465@mail.yahoo.com>
[not found] ` <14033890-2a35-666c-2fa7-5a8727090801@tuxfamily.org>
[not found] ` <1075529669.195794.1504079702032@mail.yahoo.com>
2017-08-30 8:15 ` [Qemu-devel] [Qemu-discuss] Accessing a shared folder Thomas Huth
2017-08-30 9:28 ` Mahmood
2017-08-30 10:11 ` Greg Kurz
2017-08-30 10:17 ` Thomas Huth
2017-08-30 10:53 ` Mahmood
2017-08-30 11:38 ` Mahmood
2017-08-30 12:00 ` Peter Maydell
2017-08-30 13:21 ` Greg Kurz
2017-08-30 14:35 ` Mahmood
2017-08-30 17:28 ` Greg Kurz
2017-08-31 10:34 ` Mahmood
2017-08-31 10:50 ` Peter Maydell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.