To share files from windows to mininet, winscp can only copy the files from the virtual machine. I just flipped through the Internet. I found all the methods to mount blabla on a CD. But since I didn't have a graphic interface, I had to spend a long time, and finally mixed various methods and commands. I have summarized a method. I do not quite understand some commands, but I feel that they are common.
First, let me explain the environment: win7 + virtualbox
After successful login, select "device->" Install enhancement package "in the menu (at the top) of the virtual machine that is opened ".
Then enter the command: sudo Mount/dev/cdrom2/mnt
Run the/mnt command CD/MNT.
Run sudo./vboxlinuxadditions. Run.
After the command is executed, restart the VM. The command is sudo reboot.
After the VM is restarted, select "device->" shared folder "in the upper menu of the VM to add a shared folder, the fixed and temporary options indicate whether the folder is persistent. You can use either of the Sharing names, such as "wencie", but try to use an English name.
Create a folder on the command line terminal: sudo mkdir/mnt/shared
Run sudo Mount-T vboxsf wencie/mnt/shared
Open/mnt/shared to view the shared folder in windows.
If you do not want to manually mount each time, you can add one in/etc/fstab.
(In terminal, Type
Sudo
Gedit
/Etc/fstab
) Reset folders/mnt/shared vboxsf RW, gid = 100, uid = 1000, auto 0 0
Command: VI/etc/fstab and add the above line at the end.