So I'm still trying to figure out how to set up a virtual host on my server. I found a great whitepaper on the subject from Dell for called "KVM Virtualization in RHEL 6 Made Easy":
Just what I needed! So I walked through his steps to set up bridged network and now I can't connect to wifi and that's the only network on my server. How do I get my wifi back? Here is what I did to break it:
1. Turn off NetworkManager (the network bridge does not like it) and use the „network‟ service
instead. Be sure to set NM_CONTROLLED=NO in your network controller configuration file
# chkconfig NetworkManager off
# chkconfig network on
# service NetworkManager stop
# service network start
2. Add to your network controller configuration file the following line:
(In my case, I used wlan0 which is my wifi card)
3. Create /etc/sysconfig/network-scripts/ifcfg-br0 and add:
# BOOTPROTO is your preference. It can be “dhcp” or “static”.
# If “static”, be sure to specify the IP address, netmask and gateway. Dell Inc.
KVM Virtualization in RHEL 6 Made Easy
4. Create a FORWARD firewall rule for the bridge br0 so that VM network traffic can be forwarded
through it. This rule works for all bridge devices:
# iptables -A FORWARD -m physdev --physdev-is-bridged -j ACCEPT
# service iptables save
5. Enable forwarding. Edit /etc/sysctl.conf:
inet.ipv4.ip_forward = 1
And read the file:
# sysctl -p /etc/sysctl.conf
6. Restart the „network‟ service so that the network bridge you just created can get an IP address:
# service network restart
Now I don't get the network connection widget at the top of my desktop anymore.
# ifconfig doesn't list the wlan0 adapter anymore. Now I just get eth0, lo and virbr0.
# service network restart fails and says:
Bringing up interface eth0:
Determining IP information for eth0... failed, no link present. Check cable?
Bringing up interface br0. Incorrect number of arguments for command.
There is not cable connected to eth0 on the computer. I strictly use the wifi. Unfortunately there is not convenient way to connect directly to the router. What do I need to do or undue to get my wifi back?