Re: tftp related question

2022-10-28 Thread Peter Maydell
On Fri, 28 Oct 2022 at 07:57, Antonio Apostoliu
 wrote:
>
> Hello
>
>I use Qemu 6.2.0 on Windows 10.
>   I launch qemu with this script:
> ..\qemu\qemu-system-x86_64.exe -m 512 -smp 1 -hda images/d.qcow2  ^
>  -nic user,tftp=trf,hostfwd=tcp:127.0.0.1:-:22
>
>
> Before run script I typed
> icacls .\trf /grant:r "%username%":(OI)(CI)F /T
>
> Downloads from host to vm works.
> Uploads from vm to host does not works.

This is expected. QEMU's built-in TFTP server is read-only:
it is intended (together with the BOOTP support) for allowing
guests that need to do a network boot to load the
network-boot-files. It's not a general-purpose file-transfer
mechanism.

(We ought to document this in the docs somewhere.)

thanks
-- PMM



tftp related question

2022-10-28 Thread Antonio Apostoliu
Hello

   I use Qemu 6.2.0 on Windows 10.
  I launch qemu with this script:
..\qemu\qemu-system-x86_64.exe -m 512 -smp 1 -hda images/d.qcow2  ^
 -nic user,tftp=trf,hostfwd=tcp:127.0.0.1:-:22


Before run script I typed
icacls .\trf /grant:r "%username%":(OI)(CI)F /T

Downloads from host to vm works.
Uploads from vm to host does not works.

Curl command give me error type 28 and 69

Please see also the attached image.

Please help me

Best regards