1,虚拟机中除去虚拟网桥virbr0:
a,安装了虚拟化相关的软件包,会自动创建虚拟网桥和虚拟网卡,ifconfig就会看到多了一个virbr0网卡;
b,卸载,删除它
# virsh net-list
# virsh net-destroy default
# virsh net-undefine default
# service libvirtd restart
2,samba 安装与配置
a,关闭selinux
永久关闭(重启后生效)
# sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
临时关闭(立即生效)
setenforce 0
b,关闭防火墙
systemctl stop firewalld.service#停止
systemctl disable firewalld.service #禁用或者
service iptables stop #停止 chkconfig iptables off #禁用c,配置
修改smb.conf文件
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
或者添加
[Share]
comment = Public Stuff
path = /Share
read only = No
public = yes
d,添加samba 用户 密码(此用户最好是系统中已经存在的)
smbpasswd -a username
e,启动Samba nmb服务器
service smb start
service nmb start
f,设置开机启动samba
chkconfig smb on
添加/etc/gdm/custom.conf找到[daemon]
AutomaticLoginEnble=true
AutomaticLogin=root (以root默认登录)