Hello! I''ve got CentOS 5.3 x64 as dom0 and the same OS for domU. I''ve installed it using the following manual: http://www.howtoforge.com/centos_5.0_xen Guest image was taken from stacklet.com Unfortunately, I can''t make domU working with public static IP. When I use bridged networking, the guest don''t have network connection at all. When I use routed networking, the guest does not even start. Virtual network works just fine, but I need to use public static IP given by ISP. Two days of google did not help at all. With best regards, Andrew _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
n Wed, Sep 30, 2009 at 12:57 PM, Andrew Ovcharov <andrew.ovcharov@gmail.com>wrote:> Hello! > > I''ve got CentOS 5.3 x64 as dom0 and the same OS for domU. I''ve installed it > using the following manual: http://www.howtoforge.com/centos_5.0_xen > Guest image was taken from stacklet.com > Unfortunately, I can''t make domU working with public static IP. > When I use bridged networking, the guest don''t have network connection at > all. > When I use routed networking, the guest does not even start. > Virtual network works just fine, but I need to use public static IP given > by ISP. > Two days of google did not help at all. > > With best regards, Andrew > >Can you give us some information: - Output of ifconfig - Output of brctl show - Contents of the DomU config file Thanks Grant McWilliams Some people, when confronted with a problem, think "I know, I''ll use Windows." Now they have two problems. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
dom0: # ifconfig eth0 Link encap:Ethernet HWaddr 00:24:21:EF:30:68 inet addr:188.40.117.2 Bcast:188.40.117.63 Mask:255.255.255.255 inet6 addr: fe80::224:21ff:feef:3068/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:15 errors:0 dropped:0 overruns:0 frame:0 TX packets:37 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1318 (1.2 KiB) TX bytes:7197 (7.0 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:12429 errors:0 dropped:0 overruns:0 frame:0 TX packets:11193 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:914348 (892.9 KiB) TX bytes:1344996 (1.2 MiB) Interrupt:249 Base address:0xc000 vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:39 errors:0 dropped:0 overruns:0 frame:0 TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7521 (7.3 KiB) TX bytes:1318 (1.2 KiB) virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:30 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:8356 (8.1 KiB) xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:24 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5415 (5.2 KiB) TX bytes:0 (0.0 b) # brctl show bridge name bridge id STP enabled interfaces virbr0 8000.000000000000 yes xenbr0 8000.feffffffffff no peth0 vif0.0 # cat centos bootloader = "/usr/bin/pygrub" memory = 256 name = "centos" vif = [ ''bridge=xenbr0'' ] disk = [''file:/srv/vm/centos.5-3.x86-64.img,sda1,w'', ''file:/srv/vm/swap512.img,sda2,w''] root = "/dev/sda1" extra = "fastboot" And on domU: # cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 #BOOTPROTO=dhcp BOOTPROTO=static ONBOOT=yes TYPE=Ethernet IPADDR=188.40.117.56 NETMASK=255.255.255.255 # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 With best wishes, Andrew Ovcharov (andrew.ovcharov@gmail.com) On Thu, Oct 1, 2009 at 00:39, Grant McWilliams <grantmasterflash@gmail.com> wrote:> n Wed, Sep 30, 2009 at 12:57 PM, Andrew Ovcharov <andrew.ovcharov@gmail.com> > wrote: >> >> Hello! >> >> I''ve got CentOS 5.3 x64 as dom0 and the same OS for domU. I''ve installed >> it using the following manual: http://www.howtoforge.com/centos_5.0_xen >> Guest image was taken from stacklet.com >> Unfortunately, I can''t make domU working with public static IP. >> When I use bridged networking, the guest don''t have network connection at >> all. >> When I use routed networking, the guest does not even start. >> Virtual network works just fine, but I need to use public static IP given >> by ISP. >> Two days of google did not help at all. >> >> With best regards, Andrew >> > > Can you give us some information: > > > Output of ifconfig > Output of brctl show > Contents of the DomU config file > > Thanks > > Grant McWilliams > > Some people, when confronted with a problem, think "I know, I''ll use > Windows." > Now they have two problems. >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, Am Donnerstag, den 01.10.2009, 01:12 +0400 schrieb Andrey Ovcharov:> dom0: > > # ifconfig > et...Do not publish your ips ;-) ......> # cat centos > bootloader = "/usr/bin/pygrub" > memory = 256 > name = "centos" > vif = [ ''bridge=xenbr0'' ] > disk = [''file:/srv/vm/centos.5-3.x86-64.img,sda1,w'', > ''file:/srv/vm/swap512.img,sda2,w''] > root = "/dev/sda1" > extra = "fastboot"Looks good> > And on domU: > > # cat /etc/sysconfig/network-scripts/ifcfg-eth0 > DEVICE=eth0 > #BOOTPROTO=dhcp > BOOTPROTO=static > ONBOOT=yes > TYPE=Ethernet > IPADDR=188.40.117.56 > NETMASK=255.255.255.255This Netmask is /32 which consists of only ONE Host.> > # netstat -rn > Kernel IP routing table > Destination Gateway Genmask Flags MSS Window irtt Iface > 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0route add.... and ping will work :-)> > With best wishes, Andrew Ovcharov > (andrew.ovcharov@gmail.com) >Best Regards, Thomas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sep 30, 2009, at 5:12 PM, Andrey Ovcharov wrote:> > > # cat centos > bootloader = "/usr/bin/pygrub" > memory = 256 > name = "centos" > vif = [ ''bridge=xenbr0'' ] > disk = [''file:/srv/vm/centos.5-3.x86-64.img,sda1,w'', > ''file:/srv/vm/swap512.img,sda2,w''] > root = "/dev/sda1" > extra = "fastboot" >I think you need to give your guest a mac address. vif = [ ''mac=00:16:3e:xx:xx:xx'', bridge=xenbr0'' ] xen uses addresses starting with 00:16:3e: the other bits are up to you. When I run the virt-installer command, there''s one that''s generate automatically. You can create you own or run virt-install to have it create a fake one for you. ...adam _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
changed to: vif = [ ''mac=00:16:3e:fe:fe:fe,bridge=xenbr0'' ] Same result. I.e. no result. With best wishes, Andrew Ovcharov (andrew.ovcharov@gmail.com) On Thu, Oct 1, 2009 at 01:31, Adam Wead <awead@indiana.edu> wrote:> > On Sep 30, 2009, at 5:12 PM, Andrey Ovcharov wrote: >> >> >> # cat centos >> bootloader = "/usr/bin/pygrub" >> memory = 256 >> name = "centos" >> vif = [ ''bridge=xenbr0'' ] >> disk = [''file:/srv/vm/centos.5-3.x86-64.img,sda1,w'', >> ''file:/srv/vm/swap512.img,sda2,w''] >> root = "/dev/sda1" >> extra = "fastboot" >> > > I think you need to give your guest a mac address. > > vif = [ ''mac=00:16:3e:xx:xx:xx'', bridge=xenbr0'' ] > > xen uses addresses starting with 00:16:3e: the other bits are up to you. > When I run the virt-installer command, there''s one that''s generate > automatically. You can create you own or run virt-install to have it create > a fake one for you. > > ...adam > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Too late! :) With best wishes, Andrew Ovcharov [andrew.ovcharov@gmail.com) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hey Andrew. it gets a bit convoluted when there are multiple problems in the same thread. It would make much more sense if our problems were identical but these are completely different problems. Feel free to start your own thread about this since it will be easier for everyone else to understand. I hope everything works out for you. I''m running CentOS 4 and this is my /etc/xen config file: kernel="/boot/vmlinuz-2.6.26-2-xen-686" ramdisk="/boot/initrd.img-2.6.26-2-xen-686" memory=512 name="backend" root="/dev/sda1 ro" disk=["phy:vg0/backend_root,sda1,w"] extra="4" extra="clocksource=jiffies" extra="console=hvc0 xencons=tty" vif=["bridge=eth0"]> > Hello! > > I''ve got CentOS 5.3 x64 as dom0 and the same OS for domU. I''ve installed > it using the following manual: http://www.howtoforge.com/centos_5.0_xen > Guest image was taken from stacklet.com > Unfortunately, I can''t make domU working with public static IP. > When I use bridged networking, the guest don''t have network connection > at all. > When I use routed networking, the guest does not even start. > Virtual network works just fine, but I need to use public static IP > given by ISP. > Two days of google did not help at all. > > With best regards, Andrew > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_________________________________________________________________ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Sep 30, 2009 at 3:20 PM, WM RWL <wmrwl@hotmail.com> wrote:> Hey Andrew. it gets a bit convoluted when there are multiple problems in > the same thread. It would make much more sense if our problems were > identical but these are completely different problems. Feel free to start > your own thread about this since it will be easier for everyone else to > understand. I hope everything works out for you. > > I''m running CentOS 4 and this is my /etc/xen config file: > > kernel="/boot/vmlinuz-2.6.26-2-xen-686" > ramdisk="/boot/initrd.img-2.6.26-2-xen-686" > memory=512 > name="backend" > root="/dev/sda1 ro" > disk=["phy:vg0/backend_root,sda1,w"] > extra="4" > extra="clocksource=jiffies" > extra="console=hvc0 xencons=tty" > vif=["bridge=eth0"] >Is there two threads named the same thing? Andrew, I think Thomas has solved your problem Try messing with the netmask and setting your default GW. Grant McWilliams _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
oops my mistake. must have clicked on the wrong one since the thread title is similar. On Wed, Sep 30, 2009 at 3:20 PM, WM RWL <wmrwl@hotmail.com> wrote: Hey Andrew. it gets a bit convoluted when there are multiple problems in the same thread. It would make much more sense if our problems were identical but these are completely different problems. Feel free to start your own thread about this since it will be easier for everyone else to understand. I hope everything works out for you. I''m running CentOS 4 and this is my /etc/xen config file: kernel="/boot/vmlinuz-2.6.26-2-xen-686" ramdisk="/boot/initrd.img-2.6.26-2-xen-686" memory=512 name="backend" root="/dev/sda1 ro" disk=["phy:vg0/backend_root,sda1,w"] extra="4" extra="clocksource=jiffies" extra="console=hvc0 xencons=tty" vif=["bridge=eth0"] Is there two threads named the same thing? Andrew, I think Thomas has solved your problem Try messing with the netmask and setting your default GW. Grant McWilliams _________________________________________________________________ Bing™ brings you maps, menus, and reviews organized in one place. Try it now. http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TEXT_MLOGEN_Core_tagline_local_1x1 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com [mailto:xen-users- > bounces@lists.xensource.com] On Behalf Of Andrey Ovcharov > Sent: Wednesday, September 30, 2009 5:36 PM > To: Adam Wead > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] Problem with bridged network > > changed to: > > vif = [ 'mac=00:16:3e:fe:fe:fe,bridge=xenbr0' ] > > Same result. I.e. no result. > > With best wishes, Andrew Ovcharov > (andrew.ovcharov@gmail.com)If you have changed the MAC address, make sure that the /etc/sysconfig/network-scripts/ifcfg-eth0 script in the domU has the line: HWADDR=00:16:3e:fe:fe:fe I have had issues before with this on some machines. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Seemingly Similar Threads
- XCP 1.0 beta Realtek 8168 nic not working
- bridge with IP address, "received packet with own address as source address"
- SSH ping etc not working between dom0 and domU''s
- Gutsy Xen 3.1 2.6.22-9-xen network-bridge problem
- eth0 on dom0 not working on a bridged conf