1,234
edits
Changes
no edit summary
* Set up a nested virtual machine
* Get familiar with basic networking setup and utilities used on Linux
= PART 1: NESTED VIRTUAL MACHINE =
After you're done - you'll have a command-line-only CentOS machine (lin1) running inside a graphical CentOS desktop (c7host).
= PART 2: BASIC NETWORKING =
== New virtual network ==
By default a KVM setup has a NAT network with a DHCP server. That works nicely out of the box but won't work for us because we'll need to configure network settings manually.
# Power off lin1
# In the '''Connection Details''' dialog box, select the '''Virtual Networks''' tab
# Click to <u>de-select</u> the '''Autostart (on boot)''' check-box options and click the '''Apply''' button.
# Stop the default network by clicking on the '''stop''' button at the bottom left-side of the dialog box.
# Click the '''add''' button to add a new network configuration.
# Leave the default network name '''network1'''.
# In the next screen, enter the '''new network IP address space''' called: '''192.168.210.0/24'''
# Disable '''DHCPv4'''
# Enable Network Forwarding by Selecting '''Forwarding to physical network''', the destination should be '''Any physical device''' and the mode should be '''NAT'''
= PART 2: IPTABLES =