Coder Social home page Coder Social logo

File transfer to QEMU about gns3-server HOT 2 OPEN

z5241248 avatar z5241248 commented on August 17, 2024
File transfer to QEMU

from gns3-server.

Comments (2)

grossmj avatar grossmj commented on August 17, 2024

Do you have a good way to transfer files without using the cloud?

Have you found a way to do it?

from gns3-server.

z5241248 avatar z5241248 commented on August 17, 2024

Do you have a good way to transfer files without using the cloud?

Have you found a way to do it?

First, please forgive me if there are some mistakes in my grammar

I found a way to make it work. Still mount external folder.

For Linux Qemu

You can mount a shared folder like following content. Add the command when the Qemu starts:

qemu-system-x86_64 … -virtfs local,path=/mnt/shared,mount_tag=host0,security_model=passthrough,id=host0

And then, you should create a new folder in the system:

mkdir -p /mnt/shared
mount -t 9p -o trans=virtio,version=9p2000.L host0 /mnt/shared

For Windows Qemu

I 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:

-nic user,id=nic0,smb=/share_directory

There is a example

qemu-system-x86_64 -name win7-Lite-1 -m 2048M -smp cpus=1,sockets=1 -enable-kvm -machine smm=off -boot order=c -drive file=/data/gns3/data/GNS3/images/QEMU/win7-Lite.qcow2 -vnc 0.0.0.0:2 -nic user,id=nic0,smb=/opt -machine usb=on -device usb-tablet

When you start your Windows Qemu system, you should check your ip address.

image

And then, adding a Network mapping.

Samba uses the x.x.x.4 address by default, the qemu official document also mention it.
image

image

If it succeeds, a new hard drive will appear.

image

from gns3-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.