Debian Minimal 虚拟机配置技巧
一 镜像与安装策略
二 网络与软件源优化
使用 ip a 确认网卡名(常见为eth0/ens33/enp0s3等,未必是 eth0)。
编辑 /etc/network/interfaces(以静态为例,按需替换接口名与参数): auto lo iface lo inet loopback
auto ens33 iface ens33 inet static address 192.168.110.99 netmask 255.255.255.0 gateway 192.168.110.1 dns-nameservers 114.114.114.114 8.8.8.8
若域名解析失败,可创建或检查 /etc/resolv.conf 并写入 DNS。
重启网络或系统:systemctl restart networking 或 reboot。
三 安全与远程管理
四 存储与分区建议
五 常见坑与排查清单