-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File transfer to QEMU #2407
Comments
Have you found a way to do it? |
I found a way to make it work. Still mount external folder. For Linux QemuYou can mount a shared folder like following content. Add the command when the Qemu starts:
And then, you should create a new folder in the system:
For Windows QemuI tried to using Samba, it works. You can refer this link, it's from Qemu official: https://www.qemu.org/docs/master/system/invocation.html#hxtool-5 First, you should install the Samba server in your host system. And then, add the command when the Qemu starts:
There is a example
When you start your Windows Qemu system, you should check your ip address. And then, adding a Network mapping. Samba uses the x.x.x.4 address by default, the qemu official document also mention it. If it succeeds, a new hard drive will appear. |
A different approach could leverage the USB redirection feature supported by virt-viewer in order to alternatively attach/detach a pseudo USB removable disk to a virtual appliance. |
Actually, I found a new way to transfer files, set the IP address in real-time address, etc. If your Qemu file can be pre-installed software, you can install the Qemu-Guest-Agent(QGA). I experimented with it on Windows 7-10, Centos 6-8, and Ubuntu 18-24. They all work. For different platforms, QGA will have some version differences, but the basic features will work. related reference:https://www.qemu.org/docs/master/interop/qemu-ga.html |
spice-webdavd + remote viewer's folder sharing is another way to transfer files between host and guest. |
For Docker, we can use the command "docker cp" to transfer files to a container. But for QEMU, how do we do it without using the cloud?
I tried using a shared folder (mount -t 9p…), but it's not the best way because I need to execute the command to mount the shared folder in the QEMU system every time it starts. Furthermore, mounting a shared folder doesn't seem to work with Windows systems.
Do you have a good way to transfer files without using the cloud?
The text was updated successfully, but these errors were encountered: