Deependra Shekhawat
2007-Mar-24 08:45 UTC
[Fedora-xen] dummy network interface laptop configuration problem
Hello guys, I am using Redhat Enterprise Linux 5 with Xen. Now I have a laptop on which RHEL5 is installed. I read the docs related to Xen on redhat''s website where in the troubleshooting section they say to create a dummy0 network interface and bridge xenbr0 to dummy0 and finally NAT''ing dummy0 so that it can access the public net. Well I tried that article and I created a dummy0 interface as told in there and also bridged dummy0 to xenbr0 in /etc/xen/xend-config.sxp but I am getting problem in configuring NAT''ing (so that I can access the public network from within the virtual machine). I am using the script given here: https://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Virtualization-en-US/ch-virt-laptop-configurations.html When I run the script I get these two errors: ./S99XenLaptopNAT: line 21: unexpected EOF while looking for matching `"'' ./S99XenLaptopNAT: line 24: syntax error: unexpected end of file Regards Deependra -- Enjoy Life !
Andrew Cathrow
2007-Mar-24 14:54 UTC
Re: [Fedora-xen] dummy network interface laptop configuration problem
I suspect there''s a formatting problem - when I tried to copy that script from the html page it came out a little strange. Instead of ;; I got . . on one line and , , on the next. Without seeing your script it''s hard to guess - but I''d take a careful look at the various quote marks and make sure that they are matched. Here''s the script I''m using - it works in a similar vein You''ll need to copy it into /etc/init.d and make sure that it''s owned and readable and executable by root chkconfig virt-network --add chkconfig virt-network on service virt-network start On Sat, 2007-03-24 at 14:15 +0530, Deependra Shekhawat wrote:> Hello guys, > > I am using Redhat Enterprise Linux 5 with Xen. Now I have a laptop on > which RHEL5 is installed. I read the docs related to Xen on redhat''s > website where in the troubleshooting section they say to create a > dummy0 network interface and bridge xenbr0 to dummy0 and finally > NAT''ing dummy0 so that it can access the public net. > Well I tried that article and I created a dummy0 interface as told in > there and also bridged dummy0 to xenbr0 in /etc/xen/xend-config.sxp > but I am getting problem in configuring NAT''ing (so that I can access > the public network from within the virtual machine). > I am using the script given here: > https://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Virtualization-en-US/ch-virt-laptop-configurations.html > > When I run the script I get these two errors: > ./S99XenLaptopNAT: line 21: unexpected EOF while looking for matching > `"'' > ./S99XenLaptopNAT: line 24: syntax error: unexpected end of file > > > Regards > Deependra > -- > Enjoy Life ! > > -- > Fedora-xen mailing list > Fedora-xen@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-xen-- Andrew Cathrow Red Hat, Inc. (678) 733 0452 - Mobile (404) 437 6178 - Home Office acathrow@redhat.com
Deependra Shekhawat
2007-Mar-25 01:54 UTC
Re: [Fedora-xen] dummy network interface laptop configuration problem
Hi, Thanks for the script. It''s working. But now I got a new problem. Whenever I try to create a new virtual machine using either virt-install or virt-manager I get this error: Failed to get devices for domain rhel5pv1 libvirt.libvirtError: virDomainCreateLinux() failed I guess I am doing something wrong in /etc/xen/xend-config.sxp. This is what I did in it: (network-script ''network-bridge netdev=dummy0'') The line regarding xenbr0 is commented: # The bridge is named xenbr0, by default. To rename the bridge, use # # (network-script ''network-bridge bridge=xenbr0'') I guess this should bridge xenbr0 via dummy0. Tell me if I am doing something wrong. One more thing I like to say is that the doc I pointed out earlier is not perfect. I wrote the script by my hand and then too it failed with the last 2 errors. Also the lines related on how to make xenbr0 bridge to dummy0 are not exact if you read them carefully. Regards Deependra On 3/24/07, Andrew Cathrow <acathrow@redhat.com> wrote:> > I suspect there''s a formatting problem - when I tried to copy that script > from the html page it came out a little strange. > Instead of ;; I got . . on one line and , , on the next. > > Without seeing your script it''s hard to guess - but I''d take a careful > look at the various quote marks and make sure that they are matched. > Here''s the script I''m using - it works in a similar vein > > You''ll need to copy it into /etc/init.d and make sure that it''s owned and > readable and executable by root > > chkconfig virt-network --add > chkconfig virt-network on > service virt-network start > > > > > > > > On Sat, 2007-03-24 at 14:15 +0530, Deependra Shekhawat wrote: > > Hello guys, > > I am using Redhat Enterprise Linux 5 with Xen. Now I have a laptop on > which RHEL5 is installed. I read the docs related to Xen on redhat''s website > where in the troubleshooting section they say to create a dummy0 network > interface and bridge xenbr0 to dummy0 and finally NAT''ing dummy0 so that it > can access the public net. > Well I tried that article and I created a dummy0 interface as told in > there and also bridged dummy0 to xenbr0 in /etc/xen/xend-config.sxp but I > am getting problem in configuring NAT''ing (so that I can access the public > network from within the virtual machine). > I am using the script given here: > > https://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Virtualization-en-US/ch-virt-laptop-configurations.html > > When I run the script I get these two errors: > ./S99XenLaptopNAT: line 21: unexpected EOF while looking for matching `"'' > ./S99XenLaptopNAT: line 24: syntax error: unexpected end of file > > > Regards > Deependra > -- > Enjoy Life ! > > --Fedora-xen mailing listFedora-xen@redhat.comhttps://www.redhat.com/mailman/listinfo/fedora-xen > > -- > > Andrew Cathrow > Red Hat, Inc. > > (678) 733 0452 - Mobile > (404) 437 6178 - Home Office > > acathrow@redhat.com > > >-- Enjoy Life !
Richard W.M. Jones
2007-Mar-26 12:08 UTC
Re: [Fedora-xen] dummy network interface laptop configuration problem
Deependra Shekhawat wrote:> Hi, > > Thanks for the script. It''s working. But now I got a new problem. > Whenever I try to create a new virtual machine using either virt-install > or virt-manager I get this error: > Failed to get devices for domain rhel5pv1 > libvirt.libvirtError: virDomainCreateLinux() failedAre you getting any messages appearing in /root/.virt-manager/virt-manager.log? Rich.
Andrew Cathrow
2007-Mar-26 12:30 UTC
Re: [Fedora-xen] dummy network interface laptop configuration problem
Typically you see that if Xen times out waiting to connect some devices. While it''s "waiting to come up" please run virsh dumpxml rhel4pv1 This should show what devices it''s looking to connect. Maybe it''s unable to access the disk image - for example if your disk image file is some place other than /var/lib/xen/images and SELinux is in enforcing mode. Another common time we see this is when virt-install/virt-manager thinks you have a bridge called xenbr0 when infact you''re using xenbr1. Look at dumpxml''s output - look to see if the bridge interface there exists ? On Mon, 2007-03-26 at 13:08 +0100, Richard W.M. Jones wrote:> Deependra Shekhawat wrote: > > Hi, > > > > Thanks for the script. It''s working. But now I got a new problem. > > Whenever I try to create a new virtual machine using either virt-install > > or virt-manager I get this error: > > Failed to get devices for domain rhel5pv1 > > libvirt.libvirtError: virDomainCreateLinux() failed > > Are you getting any messages appearing in > /root/.virt-manager/virt-manager.log? > > Rich. > > -- > Fedora-xen mailing list > Fedora-xen@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-xen-- Andrew Cathrow Red Hat, Inc. (678) 733 0452 - Mobile (404) 437 6178 - Home Office acathrow@redhat.com