<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="+1">Hi all,<br>
<br>
I had installed RHEL 5 x86_64 with virtualization right off the bat. 
Everything ran beautifully with two Xen guests (also RHEL 5.)  All 3
IPs (host and 2 guests) were in the same subnet.<br>
<br>
Then I had to change all the IP addresses to a different subnet (but
again all 3 within the same subnet - trying to stay away from 802.1q
stuff)...  so I modified each guest's /etc/hosts,
etc/sysconfig/network, etc/sysconfig/network-scripts/ifcfg-eth0 and
then shutdown both guests.  Then modified the configs on the host and
rebooted.<br>
<br>
When it boots now it seems like it's fine but there is no network
connectivity and the default route is pointing to the virbr0 interface!!<br>
ifconfig shows eth0 but without an IP address<br>
<br>
If I do a 'service network restart' then everything works fine again,
eth0 has the correct IP and the default route is in place.  At that
point everything seems fine with the exception of:<br>
<br>
I get this every two minutes now:<br>
libvir: Remote error : unable to connect to
'/var/run/libvirt/libvirt-sock': Connection refused<br>
libvir: warning : Failed to find the network: Is the daemon running ?<br>
libvir: Remote error : unable to connect to
'/var/run/libvirt/libvirt-sock': Connection refused<br>
libvir: Remote error : unable to connect to
'/var/run/libvirt/libvirt-sock': Connection refused<br>
libvir: warning : Failed to find a node driver: Is the libvirtd daemon
running ?<br>
libvir: Remote error : unable to connect to
'/var/run/libvirt/libvirt-sock': Connection refused<br>
libvir: warning : Failed to find the network: Is the daemon running ?<br>
libvir: Remote error : unable to connect to
'/var/run/libvirt/libvirt-sock': Connection refused<br>
libvir: Remote error : unable to connect to
'/var/run/libvirt/libvirt-sock': Connection refused<br>
libvir: warning : Failed to find a node driver: Is the libvirtd daemon
running ?<br>
<br>
virt-manager seems to work fine and lists my dom0 and my two xens which
also seem to be working just fine.  virsh also seems to have no issues
showing my xens:<br>
<br>
virsh list<br>
 Id Name                 State<br>
----------------------------------<br>
  0 Domain-0             running<br>
  1 jhsympa1             idle<br>
  2 jhsympa2             idle<br>
<br>
xm list also shows no issues:<br>
xm list<br>
Name                                      ID Mem(MiB) VCPUs State  
Time(s)<br>
Domain-0                                   0    30050     8 r-----  
2596.2<br>
jhsympa1                                   1     1023     1 -b----   
159.7<br>
jhsympa2                                   2     1023     1 -b----  
4125.3<br>
<br>
'service libvirtd status' shows:<br>
libvirtd dead but subsys locked<br>
<br>
dmesg doesn't show anything that sticks out other than the fact that
eth0 and eth1 seem to be pronounced to be DOWN, then UP, then DOWN,
then UP, then DOWN then UP again and again in a time span of a few
seconds as different modules start to act - mDNS, xend, bnx iSCSI
support, whatever.  But when I compared that to the logs prior to the
IP change, they're the same.<br>
<br>
I do notice that when I launch virt-manager there is nothing listed in
the 'virtual network' tab - it's all greyed out.<br>
<br>
SELinux is disabled.  I can't find anything in any configs pertaining
to xen or libvirt that are IP related.<br>
<br>
I know if this server is rebooted for any reason I'm going to need to
do a 'service network restart' before connectivity to/from the guests
will work and that's not a good thing!<br>
<br>
another error I noticed is:<br>
virsh net-list --all<br>
error: Failed to list active networks<br>
error: this function is not supported by the hypervisor:
virConnectNumOfNetworks<br>
<br>
whereas xm gives me this:<br>
#xm network-list Domain-0 comes back with nothing<br>
#xm network-list jhsympa1<br>
Idx BE     MAC Addr.     handle state evt-ch tx-/rx-ring-ref BE-path<br>
0   0  00:16:36:32:6e:39    0     4      8     768  /57     
/local/domain/0/backend/vif/1/0<br>
# xm network-list jhsympa2<br>
Idx BE     MAC Addr.     handle state evt-ch tx-/rx-ring-ref BE-path<br>
0   0  00:16:36:7b:f3:14    0     4      8     769  /768    
/local/domain/0/backend/vif/2/0<br>
<br>
Where am I to fix this weirdness?  Changing IPs shouldn't involve all
of this!  Especially when I'm only changing eth0 and they are all in
the same subnet as before and nothing else was modified.<br>
<br>
<br>
These guests are about to be put into production and I only have a few
days to make changes.<br>
Any help would be awesome!<br>
<br>
<br>
Thanks<br>
</font>
<pre class="moz-signature" cols="72">-- 
Denny Snyder
Systems Engineer
IT@Johns Hopkins
5801 Smith Ave Suite 3110C
Baltimore, MD 21209
(410) 735-7613: DESK
(410) 735-4660: FAX</pre>
</body>
</html>