I am trying to configure virtualized hosts on RHEL 5 using xen virtualization technology. I was able to successfully create two virtualized machines using virt-manager . The issue for me is that I am not able to ping from the master machine to the guest machines and vice versa . But I can ping among the guest machines. The following are the settings on the master machine: eth0 Link encap:Ethernet HWaddr 00:22:??:03:?8:99 inet addr:192.168.1.2 (from DHCP server) Bcast:192.168.1.255 Mask:255.255.255.0 xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 virbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 On the guest machines the ips are configured using static IP:The ip are as follows: node1:192.168.1.3 node2:192.168.1.5 While configuring the guest machines using "virt-manager" , Under the "Network Settings(to connect the new virtual machine to the host network)" , I selected "Virtual network (Defualt) " . Apart from default I could not see any option under Virtual Network . Where I went wrong ? What I want is that I should be able to ping from master machine to the guest machines and vice versa. Any help will be highly appreciated . If you need any other info please let me know . Thanks in Advance _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Thu, Mar 29, 2012 at 3:49 PM, Zama Ques <queszama@yahoo.in> wrote:> I am trying to configure virtualized hosts on RHEL 5 using xen > virtualization technology. I was able to successfully create two virtualized > machines using virt-manager . The issue for me is that I am not able to ping > from the master machine to the guest machines and vice versa . But I can > ping among the guest machines. > > The following are the settings on the master machine: > > eth0 Link encap:Ethernet HWaddr 00:22:??:03:?8:99 inet addr:192.168.1.2 > (from DHCP server) Bcast:192.168.1.255 Mask:255.255.255.0 > > xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING > NOARP MTU:1500 Metric:1 > > virbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet addr:192.168.122.1 > Bcast:192.168.122.255 Mask:255.255.255.0 > > On the guest machines the ips are configured using static IP:The ip are as > follows: > > node1:192.168.1.3 node2:192.168.1.5 > > While configuring the guest machines using "virt-manager" , Under the > "Network Settings(to connect the new virtual machine to the host network)" , > I selected "Virtual network (Defualt) " . Apart from default I could not see > any option under Virtual Network .I''m pretty sure "virtual network" there means virbr0. Try using dhcp on the guest as well, see what IP it gets. -- Fajar
Hi Fajar , Thanks for replying back. If I select the ip address as dhcp in the guest machines , then it could not retrive any ip address. It is blank . Also, just to bring to notice is that while configuring the network in setting up the guest machines, I could see only "Default" Network under "Virtual Network" Section. And if I select "Shared Device" other than "Virtual Network" in the network section while creating the guest machines , I could not see any device . it was blank . Please guide to troubleshoot further . Thanks Zaman ________________________________ From: Fajar A. Nugraha <list@fajar.net> To: Zama Ques <queszama@yahoo.in> Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org> Sent: Thursday, 29 March 2012 2:24 PM Subject: Re: [Xen-users] ping failing from master to guest hosts On Thu, Mar 29, 2012 at 3:49 PM, Zama Ques <queszama@yahoo.in> wrote:> I am trying to configure virtualized hosts on RHEL 5 using xen > virtualization technology. I was able to successfully create two virtualized > machines using virt-manager . The issue for me is that I am not able to ping > from the master machine to the guest machines and vice versa . But I can > ping among the guest machines. > > The following are the settings on the master machine: > > eth0 Link encap:Ethernet HWaddr 00:22:??:03:?8:99 inet addr:192.168.1.2 > (from DHCP server) Bcast:192.168.1.255 Mask:255.255.255.0 > > xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING > NOARP MTU:1500 Metric:1 > > virbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet addr:192.168.122.1 > Bcast:192.168.122.255 Mask:255.255.255.0 > > On the guest machines the ips are configured using static IP:The ip are as > follows: > > node1:192.168.1.3 node2:192.168.1.5 > > While configuring the guest machines using "virt-manager" , Under the > "Network Settings(to connect the new virtual machine to the host network)" , > I selected "Virtual network (Defualt) " . Apart from default I could not see > any option under Virtual Network .I''m pretty sure "virtual network" there means virbr0. Try using dhcp on the guest as well, see what IP it gets. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Thu, Mar 29, 2012 at 4:42 PM, Zama Ques <queszama@yahoo.in> wrote:> Hi Fajar , > > Thanks for replying back. > > If I select the ip address as dhcp in the guest machines , then it could not > retrive any ip address. It is blank . > > Also, just to bring to notice is that while configuring the network in > setting up the guest machines, > I could see only "Default" Network under "Virtual Network" Section. And if > I select "Shared Device" other than "Virtual Network" in the network section > while creating the guest machines , I could not see any device . it was > blank . > > Please guide to troubleshoot further .Hmmm ... not sure. I''m pretty sure it worked just fine last time I used virt-manager on RHEL5. Are you using some outdated version, perhaps? RHEL5 should be at 5.8. And if you''re using up-to-date RHEL version, and you have redhat support, you should be able to file a support ticket on RHN. -- Fajar
I am using 5.4 . But I remember configuring it last time using the same version but that was on a different hardware . Not sure where I went wrong this time . let me check further . Thanks Zaman ________________________________ From: Fajar A. Nugraha <list@fajar.net> To: Zama Ques <queszama@yahoo.in> Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org> Sent: Thursday, 29 March 2012 3:14 PM Subject: Re: [Xen-users] ping failing from master to guest hosts On Thu, Mar 29, 2012 at 4:42 PM, Zama Ques <queszama@yahoo.in> wrote:> Hi Fajar , > > Thanks for replying back. > > If I select the ip address as dhcp in the guest machines , then it could not > retrive any ip address. It is blank . > > Also, just to bring to notice is that while configuring the network in > setting up the guest machines, > I could see only "Default" Network under "Virtual Network" Section. And if > I select "Shared Device" other than "Virtual Network" in the network section > while creating the guest machines , I could not see any device . it was > blank . > > Please guide to troubleshoot further .Hmmm ... not sure. I''m pretty sure it worked just fine last time I used virt-manager on RHEL5. Are you using some outdated version, perhaps? RHEL5 should be at 5.8. And if you''re using up-to-date RHEL version, and you have redhat support, you should be able to file a support ticket on RHN. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hi , I did some more investigation and I could see that dhcp was not installed on my master host . I installed it and tried restarting the dhcpd service , but it is failing because the range of ip-address as allocated for xen network are not defined in dhcpd conf file . This I came to know by looking at system log file . Do it I need to add the ip range manually in dhcpd.conf or there are some xen tools to do the same . Please guide. Thanks in Advance Zaman ________________________________ From: Zama Ques <queszama@yahoo.in> To: Fajar A. Nugraha <list@fajar.net> Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org> Sent: Thursday, 29 March 2012 4:26 PM Subject: Re: [Xen-users] ping failing from master to guest hosts I am using 5.4 . But I remember configuring it last time using the same version but that was on a different hardware . Not sure where I went wrong this time . let me check further . Thanks Zaman ________________________________ From: Fajar A. Nugraha <list@fajar.net> To: Zama Ques <queszama@yahoo.in> Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org> Sent: Thursday, 29 March 2012 3:14 PM Subject: Re: [Xen-users] ping failing from master to guest hosts On Thu, Mar 29, 2012 at 4:42 PM, Zama Ques <queszama@yahoo.in> wrote:> Hi Fajar , > > Thanks for replying back. > > If I select the ip address as dhcp in the guest machines , then it could not > retrive any ip address. It is blank . > > Also, just to bring to notice is that while configuring the network in > setting up the guest machines, > I could see only "Default" Network under "Virtual Network" Section. And if > I select "Shared Device" other than "Virtual Network" in the network section > while creating the guest machines , I could notsee any device . it was> blank . > > Please guide to troubleshoot further .Hmmm ... not sure. I''m pretty sure it worked just fine last time I used virt-manager on RHEL5. Are you using some outdated version, perhaps? RHEL5 should be at 5.8. And if you''re using up-to-date RHEL version, and you have redhat support, you should be able to file a support ticket on RHN. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Fri, Mar 30, 2012 at 12:12 PM, Zama Ques <queszama@yahoo.in> wrote:> Hi , > > I did some more investigation and I could see that dhcp was not installed > on my master host . I installed it and tried restarting the dhcpd service , > but it is failing because the range of ip-address as allocated for xen > network are not defined in dhcpd conf file . This I came to know by looking > at system log file . Do it I need to add the ip range manually in dhcpd.conf > or there are some xen tools to do the same .I strongly suggest you start by upgrading your RHEL installation. After that, check your setup. A correct, unmodified setup should have libvirt (or is it libvirt-bin?) service started, which would create virbr0 bridge, and start dnsmasq. dnsmasq will function as both DNS and DHCP server for domUs. If you don''t have virbr0, or don''t have dnsmasq running, then it means you broke the default setup. -- Fajar
Thanks Fajar. I can see both libvirt and dnsmasq running. # ps -ef | grep -i dnsmasq nobody 12663 1 0 11:48 ? 00:00:00 /usr/sbin/dnsmasq -s example.com root 12680 6494 0 11:48 pts/4 00:00:00 grep -i dnsmasq # ps -ef | grep -i libvirt root 11455 1 0 11:45 ? 00:00:00 libvirtd --daemon root 12703 6494 0 11:48 pts/4 00:00:00 grep -i libvirt I could see dhcp-range commented in /etc/dnsmasq.conf , so uncommented it and added the right ip network range and restarted both dnsmasq and libvirt service , but no luck . dhcp-range=192.168.122.1,192.168.122.255,12h Will try a fresh installation .. Thanks Zaman ________________________________ From: Fajar A. Nugraha <list@fajar.net> To: Zama Ques <queszama@yahoo.in> Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org> Sent: Friday, 30 March 2012 11:06 AM Subject: Re: [Xen-users] ping failing from master to guest hosts On Fri, Mar 30, 2012 at 12:12 PM, Zama Ques <queszama@yahoo.in> wrote:> Hi , > > I did some more investigation and I could see that dhcp was not installed > on my master host . I installed it and tried restarting the dhcpd service , > but it is failing because the range of ip-address as allocated for xen > network are not defined in dhcpd conf file . This I came to know by looking > at system log file . Do it I need to add the ip range manually in dhcpd.conf > or there are some xen tools to do the same .I strongly suggest you start by upgrading your RHEL installation. After that, check your setup. A correct, unmodified setup should have libvirt (or is it libvirt-bin?) service started, which would create virbr0 bridge, and start dnsmasq. dnsmasq will function as both DNS and DHCP server for domUs. If you don''t have virbr0, or don''t have dnsmasq running, then it means you broke the default setup. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Fri, Mar 30, 2012 at 1:24 PM, Zama Ques <queszama@yahoo.in> wrote:> Thanks Fajar. > > I can see both libvirt and dnsmasq running. > > # ps -ef | grep -i dnsmasq > nobody 12663 1 0 11:48 ? 00:00:00 /usr/sbin/dnsmasq -s > example.comThat''s not right. It should be something like # ps -ef | grep masq nobody 4952 1 0 Feb21 ? 00:00:11 /usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file--except-interface lo --listen-address 192.168.122.1 --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-leasefile=/var/lib/libvirt/dnsmasq/default.leases --dhcp-lease-max=253 --dhcp-no-override> Will try a fresh installation ..Yes, that would be easier. -- Fajar