Setting Up the Virtual Machine (VM) on a Fedora host O/SΒΆ
- Create a new virtual network 192.168.124.0/24 (using virt-manager
or virsh). | Do not use DHCP for this network.
Start with a fresh Fedora 19 VM (this can be a minimal install).
- Assign the previously created virtual network to the VM and
configure the | VM’s networking like this:
/etc/sysconfig/network-scripts/ifcfg-eth0and
| /etc/resolv.conf to achieve this on a VM that was configured
differently
| during installation.)
Connect to the machine via SSH and try to ping some address to verify that
traffic gets routed correctly and DNS works.
kvm-host> ssh root@192.168.124.10
[Optional] If you have problems with outbound connections from VM even after
editing network-scripts and resolv.conf, it might be that iptables forwarding rules for the virtual network didn’t get created on your
- host
machine. Check that with iptables:
kvm-host> sudo iptables -L
(The output is shortened to show the important part only.)
restart | libvirtd:
kvm-host> systemctl restart libvirtd.service
Then check the iptables output again and the forwarding rules should be there.
- Create a user on the VM for Crowbar development.