物理机与虚拟机交互(互传数据)
2020-03-13 本文已影响0人
杰_6343
一、 vmware tools
使虚拟机与客户机操作系统进行无缝交互
1. windows
虚拟机里选择安装Vmware tools选项

2. linux
虚拟机里选择安装Vmware tools选项
解压安装包执行安装文件
./vmware-install
二、挂载制作的光盘iso镜像




三、磁盘映射
虚拟机磁盘映射到本地卷


四、 文件共享
前情提要:物理机和虚拟机传输文件需要在虚拟机中设置虚拟网络

1. windows

点击网络和共享中心,选择关闭密码保护共享

ipconfig查看地址
ipconfig
win+R 启动运行框输入\\ IP地址

win+E启动文件管理器

2. Linux
Samba是在Linux和UNIX系统上实现SMB协议的一个免费软件,由服务器及客户端程序构成
SMB是一种在局域网上共享文件和打印机的一种通信协议,为局域网内的不同计算机之间提供文件及打印机等资源的共享服务
安装samba软件并启动smb服务
以centos为例
yum insall samba
systemctl start nmb.service
systemctl start smb.service

五、远程桌面
目前常用的远程桌面协议有VNC/SPICE/RDP三种

1. windows
远程桌面是方便windows服务器管理员对服务器进行基于图形界面的远程管理.远程桌面是基于RDP(RemoteDesktopProtocol远程桌面协议)的。
支持文件复制粘贴




2. linux
1、安装rdp,启动服务,加入开机启动项
以centos为例
yum install xrdp -y
service xrdp start
chkconfig xrdp on
windows远程连接centos
如果要外网连接,需要映射端口3389

linux桌面远程windows机器
yum -y install rdesktop
rdesktop -u username -p password IP:POST -r sound:on/off -g 1024*768