Hi, It''s me again. Now that I have managed to install a domU with debootstrap and linux-image-2.6.18-6-xen-amd64 kernel, I have lost access to the network. Here is my configuration file: --- vif = [ ''mac=00:16:3e:00:00:05, ip=10.0.0.5'' ] --- And my /etc/network/interfaces: ---- auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 10.0.0.5 netmask 255.255.255.0 gateway 10.0.0.132 --- At boot time, I have the following error messages: --- Setting up networking.... Configuring network interfaces...SIOCSIFADDR: No such device eth0: ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device Failed to bring up eth0. --- And obviously, when I try to ping, I get: --- connect: Network is unreachable --- When I issue ifconfig, I only see the loopback interface. The setup I have shown above woks with custom 2.6.25 kernels. Anyone sees what I am missing? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
>It''s me again. Now that I have managed to install a domU with >debootstrap and linux-image-2.6.18-6-xen-amd64 kernel, I have lost >access to the network. > >Here is my configuration file: >--- >vif = [ ''mac=00:16:3e:00:00:05, ip=10.0.0.5'' ] >---What networking scenario do you use in Dom0, bridged/routed etc? Possibly your vif statement is incomplete? jlc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Yeah sorry I forgot some details: I use routed mode: --- (network-script ''network-route netdev=eth0'') (vif-script vif-route) --- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Switching to nat mode yields the same problem, anyway in the past I have noticed that my config works for both nat and routed mode, so I will keep routed mode as it enables me to do more. I also tested with the following config file: --- vif = [ ''mac=00:16:3e:00:00:05, ip=10.0.0.5'' ] netmask = "255.255.255.0" gateway = "10.0.0.132" --- But it is still the same. I have also noticed in the past that defining netmask and gateway in the config file of the domU was useless, well at least for my custom 2.6.25 kernel. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2008/9/2 Thomas <iamkenzo@gmail.com>:> Yeah sorry I forgot some details: > > I use routed mode: > --- > (network-script ''network-route netdev=eth0'') > (vif-script vif-route)I don''t normally use routed mode, but those look right config Has your kernel got xennet/netfront built-in or as a module? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
That''s a good question which I don''t know how to answer. For the domU I am using linux-image-2.6.18-6-xen-vserver-amd64 which is a Debian package: http://packages.debian.org/etch/linux-image-2.6.18-6-xen-vserver-amd64 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2008/9/2 Thomas <iamkenzo@gmail.com>:> That''s a good question which I don''t know how to answer.OK, bear in mind that I''ve only ever installed one Debian machine, but shouldn''t be a million miles different for this ;-)> For the domU I am using linux-image-2.6.18-6-xen-vserver-amd64 which > is a Debian package: > http://packages.debian.org/etch/linux-image-2.6.18-6-xen-vserver-amd64if you "lsmod" do you see a xennet, if not can you "modprobe xennet" any messages about netfront in your dmesg? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Andy, You have found something here. When I do lsmod, I do not see any xennet module in the list. When I do modprobe xennet, here is the output: --- FATAL: Module xennet not found. --- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I have found in a mailing-list someone saying that the Debian xen kernels are not geared towards domU as they lack the xennet module. Unfortunately I can''t the link anymore. By the way on my dom0 I use a custom 2.6.21 kernel. Is it safe to run "sudo aptitude install linux-image-2.6.18-6-xen-amd64"??? I want to install a kernel on dom0 so that domU can use it when it boots. However I am wondering if doing so could wreck my dom0 distro? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2008/9/2 Thomas <iamkenzo@gmail.com>:> FATAL: Module xennet not found.I assume you also have the linux-modules-2.6.18-6-xen-vserver-amd64 dependency installed? looking at the contents of your xen packages http://packages.debian.org/etch/amd64/linux-image-2.6.18-6-xen-vserver-amd64/filelist http://packages.debian.org/etch/amd64/linux-modules-2.6.18-6-xen-vserver-amd64/filelist it doesn''t seem to have any xen modules provided with it, just a kernel, so either it *ought* to have the xen frontends built-in, or you may need to install them as part of another package, and maybe rebuild an initrd with them, this is where my Debian knowledge runs out ... _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2008/9/2 Thomas <iamkenzo@gmail.com>:> I have found in a mailing-list someone saying that the Debian xen > kernels are not geared towards domU as they lack the xennet module. > Unfortunately I can''t the link anymore.Can I double check the domU is a PV domain, not an HVM domain? Apart from lack of networking the domU works? If so, seems strange that the Debian kernel has xenblk but not xennet.> By the way on my dom0 I use a custom 2.6.21 kernel. Is it safe to run > "sudo aptitude install linux-image-2.6.18-6-xen-amd64"??? I want to > install a kernel on dom0 so that domU can use it when it boots.So you specify your own kernel/initrd in the domU config rather installing the 2.6.18 domU kernel inside /boot of the domU and then using pygrub?> However I am wondering if doing so could wreck my dom0 distro?I don''t think the problem is with your dom0, just that the domU doesn''t have the xennet driver, _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Can I double check the domU is a PV domain, not an HVM domain? Apart > from lack of networking the domU works? If so, seems strange that the > Debian kernel has xenblk but not xennet.The domU is PV. The domU works perfectly apart the network.> So you specify your own kernel/initrd in the domU config rather > installing the 2.6.18 domU kernel inside /boot of the domU and then > using pygrub?Yes exactly. I have heard scary things about pygrub, so I want to install all kernels in dom0.>> However I am wondering if doing so could wreck my dom0 distro? > > I don''t think the problem is with your dom0, just that the domU > doesn''t have the xennet driver,What I meant, is that if I install additional packaged kernels in my dom0, could the dom0 get broken? because that already happened to me in the past, when I installed by mistake xen-linux-system-2.6.18-5-xen-amd64, it completely destroyed my dom0, and I had to reinstall the server from scratch, so I don''t want to get into this anymore. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2008/9/2 Thomas <iamkenzo@gmail.com>:> What I meant, is that if I install additional packaged kernels in my > dom0, could the dom0 get broken? because that already happened to me > in the past, when I installed by mistake > xen-linux-system-2.6.18-5-xen-amd64, it completely destroyed my dom0, > and I had to reinstall the server from scratch, so I don''t want to get > into this anymore.If you''re worried about that, can you just download the .deb(?) file and extract the files from it, rather than installing it? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I tried the following kernel: linux-image-2.6.18-6-xen-vserver-amd64 But it still has the exact same problem. Nobody is using Debian as a domU? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
When installing a debian kernel I do get the following error message: --- Setting up linux-image-2.6.18-6-xen-vserver-amd64 (2.6.18.dfsg.1-22etch2) ... update-initramfs: Generating /boot/initrd.img-2.6.18-6-xen-vserver-amd64 W: mdadm: /etc/mdadm/mdadm.conf defines no arrays. W: mdadm: no arrays defined in configuration file. W: mdadm: falling back to emergency procedure in initramfs. --- At first I thought I could disregard, but maybe it is the cause of my problem. I checked /etc/mdadm/mdadm.conf, but there is nothing fancy in there though. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users