Francisco Javier Funes Nieto
2011-May-12 19:39 UTC
[Xen-users] Weird bridge problem Xen 4 + Debian Squeeze + HVM
Hi all, I''ve a Debian Squeeze 64bits box with Xen 4 from deb repositories and PV/HVM support. root@debian:~# xm info |grep xen_caps xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 I''m trying to do a Windoze HVM but I''ve no network at all. This is the cfg file: ##################### import os, re arch = os.uname()[4] kernel = "/usr/lib/xen-4.0/boot/hvmloader" builder=''hvm'' vcpus = ''1'' memory = 512 shadow_memory = 8 name = "xp1.canonigos.es" vif = [ ''type=ioemu, bridge=eth0'' ] disk = [ ''phy:/dev/mapper/vserver-xp1,ioemu:hda,w'', ''file:/root/xp.iso,ioemu:hdb:cdrom,r'' ] device_model = ''/usr/lib/xen-4.0/bin/qemu-dm'' # boot on floppy (a), hard disk (c) or CD-ROM (d) # default: hard disk, cd-rom, floppy boot="dc" sdl=0 vnc=1 vnclisten="0.0.0.0" vncconsole=1 vncpasswd=''canonigos'' stdvga=0 serial=''pty'' usbdevice=''tablet'' on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' ######################## With this config I''ve no network inside the domU-HVM but PV domU''s with Debian works great. If I change vif= statement to type=paravirtualized the domU-HVM doesn''t recognize the PCI Network device. There''s some bug rolling'' here? Thanks! J. -- _____________________________________________ Francisco Javier Funes Nieto [esencia@gmail.com] CANONIGOS Servicios Informáticos para PYMES. Cl. Cruz 2, 1º Oficina 7 Tlf: 958.536759 / 661134556 Fax: 958.521354 GRANADA - 18002 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alexandre Chapellon
2011-May-12 21:47 UTC
Re: [Xen-users] Weird bridge problem Xen 4 + Debian Squeeze + HVM
you specify eth0 as the bridge interface? does eth0 is really a bridge? what''s the output of brctl show? Le jeudi 12 mai 2011 à 21:39 +0200, Francisco Javier Funes Nieto a écrit :> Hi all, > > > I''ve a Debian Squeeze 64bits box with Xen 4 from deb repositories and > PV/HVM support. > > > root@debian:~# xm info |grep xen_caps > xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 > hvm-3.0-x86_32p hvm-3.0-x86_64 > > > I''m trying to do a Windoze HVM but I''ve no network at all. > > > This is the cfg file: > > > ##################### > import os, re > arch = os.uname()[4] > > > kernel = "/usr/lib/xen-4.0/boot/hvmloader" > > > builder=''hvm'' > vcpus = ''1'' > memory = 512 > shadow_memory = 8 > name = "xp1.canonigos.es" > vif = [ ''type=ioemu, bridge=eth0'' ] > disk = [ > ''phy:/dev/mapper/vserver-xp1,ioemu:hda,w'', > ''file:/root/xp.iso,ioemu:hdb:cdrom,r'' > ] > > > > > device_model = ''/usr/lib/xen-4.0/bin/qemu-dm'' > # boot on floppy (a), hard disk (c) or CD-ROM (d) > # default: hard disk, cd-rom, floppy > boot="dc" > > > sdl=0 > vnc=1 > vnclisten="0.0.0.0" > vncconsole=1 > vncpasswd=''canonigos'' > stdvga=0 > serial=''pty'' > usbdevice=''tablet'' > > > on_poweroff = ''destroy'' > on_reboot = ''restart'' > on_crash = ''restart'' > > > ######################## > > > With this config I''ve no network inside the domU-HVM but PV domU''s > with Debian works great. > > > If I change vif= statement to type=paravirtualized the domU-HVM > doesn''t recognize the PCI Network device. > > > There''s some bug rolling'' here? > > > Thanks! > > > J. > > > -- > _____________________________________________ > > Francisco Javier Funes Nieto [esencia@gmail.com] > CANONIGOS > Servicios Informáticos para PYMES. > Cl. Cruz 2, 1º Oficina 7 > Tlf: 958.536759 / 661134556 > Fax: 958.521354 > GRANADA - 18002 > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- horoa: la voie est libre _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Francisco Javier Funes Nieto
2011-May-12 22:29 UTC
Re: [Xen-users] Weird bridge problem Xen 4 + Debian Squeeze + HVM
Without the VM-HVM running... root@debian:~# brctl show bridge name bridge id STP enabled interfaces eth0 8000.002215e17c2f no peth0 VM-HVM Running: root@debian:~# brctl show bridge name bridge id STP enabled interfaces eth0 8000.002215e17c2f no peth0 vif1.0 If I use type=paravirtualized in the vif statement and add to the iso the GPLPV drivers (with nLite) the network works in the HVM domU (WinXP) but the default type=ioemu doesn''t works. With Xen 3.4.2/Lenny dom0 it works flawlessly !! But Squeeze/Xen4 doesn''t. Any ideas? J. 2011/5/12 Alexandre Chapellon <a.chapellon@horoa.net>> you specify eth0 as the bridge interface? > does eth0 is really a bridge? > > what''s the output of brctl show? > > Le jeudi 12 mai 2011 à 21:39 +0200, Francisco Javier Funes Nieto a > écrit : > > Hi all, > > > > > > I''ve a Debian Squeeze 64bits box with Xen 4 from deb repositories and > > PV/HVM support. > > > > > > root@debian:~# xm info |grep xen_caps > > xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 > > hvm-3.0-x86_32p hvm-3.0-x86_64 > > > > > > I''m trying to do a Windoze HVM but I''ve no network at all. > > > > > > This is the cfg file: > > > > > > ##################### > > import os, re > > arch = os.uname()[4] > > > > > > kernel = "/usr/lib/xen-4.0/boot/hvmloader" > > > > > > builder=''hvm'' > > vcpus = ''1'' > > memory = 512 > > shadow_memory = 8 > > name = "xp1.canonigos.es" > > vif = [ ''type=ioemu, bridge=eth0'' ] > > disk = [ > > ''phy:/dev/mapper/vserver-xp1,ioemu:hda,w'', > > ''file:/root/xp.iso,ioemu:hdb:cdrom,r'' > > ] > > > > > > > > > > device_model = ''/usr/lib/xen-4.0/bin/qemu-dm'' > > # boot on floppy (a), hard disk (c) or CD-ROM (d) > > # default: hard disk, cd-rom, floppy > > boot="dc" > > > > > > sdl=0 > > vnc=1 > > vnclisten="0.0.0.0" > > vncconsole=1 > > vncpasswd=''canonigos'' > > stdvga=0 > > serial=''pty'' > > usbdevice=''tablet'' > > > > > > on_poweroff = ''destroy'' > > on_reboot = ''restart'' > > on_crash = ''restart'' > > > > > > ######################## > > > > > > With this config I''ve no network inside the domU-HVM but PV domU''s > > with Debian works great. > > > > > > If I change vif= statement to type=paravirtualized the domU-HVM > > doesn''t recognize the PCI Network device. > > > > > > There''s some bug rolling'' here? > > > > > > Thanks! > > > > > > J. > > > > > > -- > > _____________________________________________ > > > > Francisco Javier Funes Nieto [esencia@gmail.com] > > CANONIGOS > > Servicios Informáticos para PYMES. > > Cl. Cruz 2, 1º Oficina 7 > > Tlf: 958.536759 / 661134556 > > Fax: 958.521354 > > GRANADA - 18002 > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > -- > horoa: la voie est libre >-- _____________________________________________ Francisco Javier Funes Nieto [esencia@gmail.com] CANONIGOS Servicios Informáticos para PYMES. Cl. Cruz 2, 1º Oficina 7 Tlf: 958.536759 / 661134556 Fax: 958.521354 GRANADA - 18002 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alexandre Chapellon
2011-May-13 06:28 UTC
Re: [Xen-users] Weird bridge problem Xen 4 + Debian Squeeze + HVM
Le vendredi 13 mai 2011 à 00:29 +0200, Francisco Javier Funes Nieto a écrit :> Without the VM-HVM running... > > > root@debian:~# brctl show > bridge name bridge id STP enabled interfaces > eth0 8000.002215e17c2f no peth0 > >peth.... :/ Personnally, I stopped rely on the networks scripts of Xen since uears. As said in the Xen 4.1 release notes, thoose scripts are very fragiles and I personnally find them evry complicated for what they really do: configure the dom0 network. In the past I remember having some issue related to arp being disabled on some underlying device or being nabled whereas it should not... As you can see I don''t clearly remember. :) If you want to stick with the network-bridge scripts of xen ... may be you can take a look at the ARP options of the devices. I would recommend you let the OS take care of Dom0 network config (furthermore Xen 4.1 doesn''t provides thoose scripts anymore i think). I personnally use network-dummy as the network-script in xend-config.sxp and configure Debian to setup a bridge at startup like this: auto xenbr0 iface xenbr0 inet static address 192.168.x.y netmask 255.255.a.b broadcast 192.168.x.255 gateway 192.168.x.z bridge_ports eth0 bridge_fd 3 bridge_maxwait 5 This config allow HVM (here a vista host) to access network with the following in its configfile: vif = [ ''bridge=xenbr0'' ] Hope it helps.> > VM-HVM Running: > > > root@debian:~# brctl show > bridge name bridge id STP enabled interfaces > eth0 8000.002215e17c2f no peth0 > vif1.0 > > > If I use type=paravirtualized in the vif statement and add to the iso > the GPLPV drivers (with nLite) the network works in the HVM domU > (WinXP) but the default type=ioemu doesn''t works. > > > With Xen 3.4.2/Lenny dom0 it works flawlessly !! But Squeeze/Xen4 > doesn''t. > > > Any ideas? > > > J. > 2011/5/12 Alexandre Chapellon <a.chapellon@horoa.net> > you specify eth0 as the bridge interface? > does eth0 is really a bridge? > > what''s the output of brctl show? > > Le jeudi 12 mai 2011 à 21:39 +0200, Francisco Javier Funes > Nieto a > écrit : > > > Hi all, > > > > > > I''ve a Debian Squeeze 64bits box with Xen 4 from deb > repositories and > > PV/HVM support. > > > > > > root@debian:~# xm info |grep xen_caps > > xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p > hvm-3.0-x86_32 > > hvm-3.0-x86_32p hvm-3.0-x86_64 > > > > > > I''m trying to do a Windoze HVM but I''ve no network at all. > > > > > > This is the cfg file: > > > > > > ##################### > > import os, re > > arch = os.uname()[4] > > > > > > kernel = "/usr/lib/xen-4.0/boot/hvmloader" > > > > > > builder=''hvm'' > > vcpus = ''1'' > > memory = 512 > > shadow_memory = 8 > > name = "xp1.canonigos.es" > > vif = [ ''type=ioemu, bridge=eth0'' ] > > disk = [ > > ''phy:/dev/mapper/vserver-xp1,ioemu:hda,w'', > > ''file:/root/xp.iso,ioemu:hdb:cdrom,r'' > > ] > > > > > > > > > > device_model = ''/usr/lib/xen-4.0/bin/qemu-dm'' > > # boot on floppy (a), hard disk (c) or CD-ROM (d) > > # default: hard disk, cd-rom, floppy > > boot="dc" > > > > > > sdl=0 > > vnc=1 > > vnclisten="0.0.0.0" > > vncconsole=1 > > vncpasswd=''canonigos'' > > stdvga=0 > > serial=''pty'' > > usbdevice=''tablet'' > > > > > > on_poweroff = ''destroy'' > > on_reboot = ''restart'' > > on_crash = ''restart'' > > > > > > ######################## > > > > > > With this config I''ve no network inside the domU-HVM but PV > domU''s > > with Debian works great. > > > > > > If I change vif= statement to type=paravirtualized the > domU-HVM > > doesn''t recognize the PCI Network device. > > > > > > There''s some bug rolling'' here? > > > > > > Thanks! > > > > > > J. > > > > > > -- > > _____________________________________________ > > > > Francisco Javier Funes Nieto [esencia@gmail.com] > > CANONIGOS > > Servicios Informáticos para PYMES. > > Cl. Cruz 2, 1º Oficina 7 > > Tlf: 958.536759 / 661134556 > > Fax: 958.521354 > > GRANADA - 18002 > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > -- > horoa: la voie est libre > > > > -- > _____________________________________________ > > Francisco Javier Funes Nieto [esencia@gmail.com] > CANONIGOS > Servicios Informáticos para PYMES. > Cl. Cruz 2, 1º Oficina 7 > Tlf: 958.536759 / 661134556 > Fax: 958.521354 > GRANADA - 18002 > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- horoa: la voie est libre _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Francisco Javier Funes Nieto
2011-May-17 09:57 UTC
Re: [Xen-users] Weird bridge problem Xen 4 + Debian Squeeze + HVM
Hi, thanks for the info! I''d solved the problem ''partially'' running the VIF of the HVM domU with type=paravirtualized and modifying the Install ISO image with the gplpv drivers. I have a clone system for testing a development and will probe adding my own bridge. I have another issue now. The first time I''d install this system was in 192.168.13.0/24 network. The final network for this Xen host is not the same (192.168.5.0/26). I''d modified the network (/etc/network/interfaces) into dom0 to 5.0/26 final destiny and the domU too. But the PV domU''s that had installed into 13.0/24 doesnt'' have internet access now. I can ping them put they don''t resolv or ping gateway. There''s a place where Xen store this data and could be modified to reflect this network changes? (Other than network/interfaces or network/resolv.conf) Any help is appreciated.. Thanks! J. 2011/5/13 Alexandre Chapellon <a.chapellon@horoa.net>> Le vendredi 13 mai 2011 à 00:29 +0200, Francisco Javier Funes Nieto a > écrit : > > Without the VM-HVM running... > > > > > > root@debian:~# brctl show > > bridge name bridge id STP enabled interfaces > > eth0 8000.002215e17c2f no peth0 > > > > > peth.... :/ > > Personnally, I stopped rely on the networks scripts of Xen since uears. > As said in the Xen 4.1 release notes, thoose scripts are very fragiles > and I personnally find them evry complicated for what they really do: > configure the dom0 network. In the past I remember having some issue > related to arp being disabled on some underlying device or being nabled > whereas it should not... As you can see I don''t clearly remember. :) > If you want to stick with the network-bridge scripts of xen ... may be > you can take a look at the ARP options of the devices. I would recommend > you let the OS take care of Dom0 network config (furthermore Xen 4.1 > doesn''t provides thoose scripts anymore i think). > > I personnally use network-dummy as the network-script in xend-config.sxp > and configure Debian to setup a bridge at startup like this: > > auto xenbr0 > iface xenbr0 inet static > address 192.168.x.y > netmask 255.255.a.b > broadcast 192.168.x.255 > gateway 192.168.x.z > bridge_ports eth0 > bridge_fd 3 > bridge_maxwait 5 > > This config allow HVM (here a vista host) to access network with the > following in its configfile: > > vif = [ ''bridge=xenbr0'' ] > > Hope it helps. > > > > > VM-HVM Running: > > > > > > root@debian:~# brctl show > > bridge name bridge id STP enabled interfaces > > eth0 8000.002215e17c2f no peth0 > > vif1.0 > > > > > > If I use type=paravirtualized in the vif statement and add to the iso > > the GPLPV drivers (with nLite) the network works in the HVM domU > > (WinXP) but the default type=ioemu doesn''t works. > > > > > > With Xen 3.4.2/Lenny dom0 it works flawlessly !! But Squeeze/Xen4 > > doesn''t. > > > > > > Any ideas? > > > > > > J. > > 2011/5/12 Alexandre Chapellon <a.chapellon@horoa.net> > > you specify eth0 as the bridge interface? > > does eth0 is really a bridge? > > > > what''s the output of brctl show? > > > > Le jeudi 12 mai 2011 à 21:39 +0200, Francisco Javier Funes > > Nieto a > > écrit : > > > > > Hi all, > > > > > > > > > I''ve a Debian Squeeze 64bits box with Xen 4 from deb > > repositories and > > > PV/HVM support. > > > > > > > > > root@debian:~# xm info |grep xen_caps > > > xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p > > hvm-3.0-x86_32 > > > hvm-3.0-x86_32p hvm-3.0-x86_64 > > > > > > > > > I''m trying to do a Windoze HVM but I''ve no network at all. > > > > > > > > > This is the cfg file: > > > > > > > > > ##################### > > > import os, re > > > arch = os.uname()[4] > > > > > > > > > kernel = "/usr/lib/xen-4.0/boot/hvmloader" > > > > > > > > > builder=''hvm'' > > > vcpus = ''1'' > > > memory = 512 > > > shadow_memory = 8 > > > name = "xp1.canonigos.es" > > > vif = [ ''type=ioemu, bridge=eth0'' ] > > > disk = [ > > > ''phy:/dev/mapper/vserver-xp1,ioemu:hda,w'', > > > ''file:/root/xp.iso,ioemu:hdb:cdrom,r'' > > > ] > > > > > > > > > > > > > > > device_model = ''/usr/lib/xen-4.0/bin/qemu-dm'' > > > # boot on floppy (a), hard disk (c) or CD-ROM (d) > > > # default: hard disk, cd-rom, floppy > > > boot="dc" > > > > > > > > > sdl=0 > > > vnc=1 > > > vnclisten="0.0.0.0" > > > vncconsole=1 > > > vncpasswd=''canonigos'' > > > stdvga=0 > > > serial=''pty'' > > > usbdevice=''tablet'' > > > > > > > > > on_poweroff = ''destroy'' > > > on_reboot = ''restart'' > > > on_crash = ''restart'' > > > > > > > > > ######################## > > > > > > > > > With this config I''ve no network inside the domU-HVM but PV > > domU''s > > > with Debian works great. > > > > > > > > > If I change vif= statement to type=paravirtualized the > > domU-HVM > > > doesn''t recognize the PCI Network device. > > > > > > > > > There''s some bug rolling'' here? > > > > > > > > > Thanks! > > > > > > > > > J. > > > > > > > > > -- > > > _____________________________________________ > > > > > > Francisco Javier Funes Nieto [esencia@gmail.com] > > > CANONIGOS > > > Servicios Informáticos para PYMES. > > > Cl. Cruz 2, 1º Oficina 7 > > > Tlf: 958.536759 / 661134556 > > > Fax: 958.521354 > > > GRANADA - 18002 > > > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xensource.com > > > http://lists.xensource.com/xen-users > > > > -- > > horoa: la voie est libre > > > > > > > > -- > > _____________________________________________ > > > > Francisco Javier Funes Nieto [esencia@gmail.com] > > CANONIGOS > > Servicios Informáticos para PYMES. > > Cl. Cruz 2, 1º Oficina 7 > > Tlf: 958.536759 / 661134556 > > Fax: 958.521354 > > GRANADA - 18002 > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > -- > horoa: la voie est libre >-- _____________________________________________ Francisco Javier Funes Nieto [esencia@gmail.com] CANONIGOS Servicios Informáticos para PYMES. Cl. Cruz 2, 1º Oficina 7 Tlf: 958.536759 / 661134556 Fax: 958.521354 GRANADA - 18002 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users