Skip to content

VM setup

Dej edited this page Jun 9, 2020 · 3 revisions

Configure bridge network (VM connects directly to the NIC)

$ vim /etc/sysconfig/network-scripts/ifcfg_<INTERFACE>

BOOTPROTO=static
ONBOOT=yes
# static machine IP
IPADDR=<192.168.0.100> 
PREFIX=24
# router IP
GATEWAY=192.168.0.10
DNS1=8.8.8.8

$ipdown <INTERFACE> $ifup <INTERFACE>

Configure SSHD.

$ vim /etc/ssh/sshd_config

PermitRootLogin yes
Port 22
ListenAddress 192.168.0.100

$ systemctl /stop/start/status sshd

Configure firewall:

$ vim /etc/sysconfig/selinux

SELINUX=disabled

Change hostname:

$ vim /etc/hostname # name.example.com. $ hostname -A

Clone this wiki locally