<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoPlainText">&gt; I upgraded from CentOS 5.9 to CentOS 6.4.<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; I try to reuse my virtual machines and am only partially successful: I
<o:p></o:p></p>
<p class="MsoPlainText">&gt; can run them, I just cannot get the network OK and need some help with that.<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; What I had in the past was pretty simple: both the host and the VM?s
<o:p></o:p></p>
<p class="MsoPlainText">&gt; used eth0 and each had an IP in the same subnet and could communicate freely.
<o:p></o:p></p>
<p class="MsoPlainText">&gt; With the new install it seems somewhat more complex and I think I need to configure a bridge and use that.<o:p></o:p></p>
<p class="MsoPlainText">&gt; Unfortunately, info I find through google is overwhelming and
<o:p></o:p></p>
<p class="MsoPlainText">&gt; confusing. All examples either configure something else, or the outcome is not what? expected.<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; So: how to go about setting things up to have say:<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; My physical machine is on 192.168.0.90<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; My Virtual machines are on 192.168.0.100 and 101.<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; These are to be fixed addresses.<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; The 2 VM?s have to communicate with each other and with the physical machine.<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; The VM?s do not necessarily need to communicate with the rest of the world.<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; The physical machine needs to communicate with the rest of the world.<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; I use:<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; - CentOS-6.4_64<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; - Virtual Machine Manager 0.9.0<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; - xen 4.2.3<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; - libvirt 0.10.2.7-5<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; - VM?s show Hypervisor = xen (fullvirt)<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; - Emulator = qemu-dm<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; - NIC points to Shared device name virbr0<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; - on the host, virbr0 has IQ 192.168.122.1<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; I have been fighting this for 2 weeks, now. I tried to follow several
<o:p></o:p></p>
<p class="MsoPlainText">&gt; advises which resulted in either the VM?s not connecting to anything,
<o:p></o:p></p>
<p class="MsoPlainText">&gt; or my host losing its connection to the rest of the world, or both. So either I still do something not-right, or I follow the wrong gidelines.<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; Can someone give me a push in the right direction, please?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanks to all who responded to this: it is working now.<o:p></o:p></p>
<p class="MsoNormal">Solution was relatively easy and mainly a matter of understanding the &#8220;ifcfg-eth0 &#8211; like&#8221; files.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">What I did:<o:p></o:p></p>
<p class="MsoNormal">1 - yum install bridge-utils<o:p></o:p></p>
<p class="MsoNormal">2 &#8211; change /etc/sysconfig/network-scripts/ifcfg-eth0 to:<o:p></o:p></p>
<p class="MsoNormal">DEVICE=&quot;eth0&quot;<br>
BOOTPROTO=none<br>
ONBOOT=&quot;yes&quot;<br>
TYPE=&quot;Ethernet&quot;<br>
HWADDR=xx:xx:xx:xx:xx:xx<br>
BRIDGE=&quot;br0&quot;<br>
USERCTL=no<br>
IPV6INIT=no<br>
NM_CONTROLLED=&quot;no&quot;<br>
3 &#8211; change change /etc/sysconfig/network-scripts/ifcfg-br0 to:<o:p></o:p></p>
<p class="MsoNormal">DEVICE=&quot;br0&quot;<br>
BOOTPROTO=none<br>
ONBOOT=&quot;yes&quot;<br>
IPADDR=192.168.0.95<br>
NETMASK=255.255.255.0<br>
GATEWAY=192.168.0.1<br>
DNS1=&quot;192.168.0.1&quot;<br>
PEERDNS=&quot;yes&quot;<br>
TYPE=&quot;Bridge&quot;<br>
DELAY=0<br>
STP=off<br>
USERCTL=no<br>
IPV6INIT=no<br>
NM_CONTROLLED=no<br>
4 - /etc/init.d/network restart<o:p></o:p></p>
<p class="MsoNormal">5 &#8211; choose Host device eth0 (Bridge &#8216;br0&#8217;) in the VM-manager GUI for the virtual-machine&#8217;s NIC<o:p></o:p></p>
<p class="MsoNormal">6 &#8211; restart the virtual machines<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">That made it all work.<o:p></o:p></p>
<p class="MsoNormal">So what I had wrong initially were settings in the ifcfg-xxx files. There are different settings that may work and I just tried some of the not-working combinations.<o:p></o:p></p>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
<p class="MsoNormal">Koos.<o:p></o:p></p>
</div>
</body>
</html>