you can do this by configuring Samba on the guest Linux machine
to be able to access the VM from outside the host you must change the virtual machine networking from NAT to the "bridged"
===== FOR DEVELOPMENT ONLY === Do not do this in production!!! ====
Samba Configuration
Configure Samba service on the guest so that Guest FS will be accessible on the windows network like yet another computer to write / read files from
Install Samba on the guest
shell command sudo apt-get samba
- Edit the
/etc/samba/smb.conf
Do it as root (sudo
) !!
add at the end of the file
[root]
path = /
browseable = yes
guest ok = yes
guest only = yes
read only = no
force user = root
force create mode = 0777
force directory mode = 0777
Now, set a username and password for the Samba share. This command has to be run with root privilege.
shell command sudo smbpasswd -a <username>
- use the same that you use in the guest - it more convenient
it will ask you to set a password. set the same as password for convenience and from Windows you can now access ///root and read/write the whole Linux filesystem
can be the IP of the guest
get it with
shell command ip a
or host name
shell command hostname
can be changed here \etc\hostname