I''m going to set up a PVM on xen-3.3.1 debian-amd64. I need advices about the best methods to install a fresh debian on it (i.e. how to choose the kernel for pvm) . I''ve installed xen from sources and only have one xen kernel in /boot which I''m using for dom0; should I use the same kernel for domUs? There is any problem on use vcpus=2; the other vm is an hvm running winxp and I would like to know if using 1 or 2 vcpus on the new pvm will slowdown the hvm. Any help would be appreciated. regards, -- edu _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, Jan 30, 2009 at 2:48 AM, edu gargiulo <egargiulo+lists@gmail.com> wrote:> I''m going to set up a PVM on xen-3.3.1 debian-amd64. I need advices > about the best methods to install a fresh debian on it (i.e. how to > choose the kernel for pvm) . I''ve installed xen from sources and only > have one xen kernel in /boot which I''m using for dom0; should I use > the same kernel for domUs?You can, but if you do you also need to copy /lib/modules/<kernel-version> directory from dom0 to domU as well. I''d recommend you use the kernel located on domU. In domU''s config file use pygrub as bootloader and install xenified-kernel (on RHEL this would be kernel-xen) on domU.> There is any problem on use vcpus=2; the other vm is an hvm running > winxp and I would like to know if using 1 or 2 vcpus on the new pvm > will slowdown the hvm. >Sort of, depends on what you use. If it''s HVM Windows guest, then most likely yes. To be more accurate, you need PV drivers (the one widely used is James Harper''s Xen PV Driver) in HVM Windows guest to get a decent performance. Last time I check, it''s network performance drops when using CPU > 1. It''s still over 500 Mbps though (vs over 1 Gbps when using 1 CPU), so depending on what you use it for it might be acceptable. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Jan 29, 2009 at 7:39 PM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Fri, Jan 30, 2009 at 2:48 AM, edu gargiulo <egargiulo+lists@gmail.com> wrote: >> I''m going to set up a PVM on xen-3.3.1 debian-amd64. I need advices >> about the best methods to install a fresh debian on it (i.e. how to >> choose the kernel for pvm) . I''ve installed xen from sources and only >> have one xen kernel in /boot which I''m using for dom0; should I use >> the same kernel for domUs? > > You can, but if you do you also need to copy > /lib/modules/<kernel-version> directory from dom0 to domU as well. I''d > recommend you use the kernel located on domU. In domU''s config file > use pygrub as bootloader and install xenified-kernel (on RHEL this > would be kernel-xen) on domU.Ok thanks, and what about arch? AFAIK the only kernel compiled can be used for dom0 and domUs, but it was compiled on amd64 so my question is how to set up the kernel if I want a VM with arch i386? SHould I have to compile other kernel for i386 domUs? regards, -- edu _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, Jan 30, 2009 at 8:12 AM, edu gargiulo <egargiulo+lists@gmail.com> wrote:>>> should I use >>> the same kernel for domUs? >> >> You can, but if you do you also need to copy >> /lib/modules/<kernel-version> directory from dom0 to domU as well. I''d >> recommend you use the kernel located on domU. In domU''s config file >> use pygrub as bootloader and install xenified-kernel (on RHEL this >> would be kernel-xen) on domU. > > Ok thanks, and what about arch? AFAIK the only kernel compiled can be > used for dom0 and domUs, but it was compiled on amd64 so my question > is how to set up the kernel if I want a VM with arch i386? SHould I > have to compile other kernel for i386 domUs?At this point I''d say stick with kernels in domU and use pygrub. Seriously. What domU do you use? Kernel/xen version in domU does not have to be exactly the same as dom0. For example, RHEL4 (and Centos) has kernel-xenU while RHEL5 has kernel-xen. It was compiled against xen-3.1.2 source, but you should be able to use them as domU kernel on any dom0 with xen >= 3.1.2. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello, I have to install a SLES9 sp4 as domU. This distribution comes with kernel 2.6.5-7-308 which I cannot compile with the para_virt_guest options. However the xennet driver is available. So I run a HVM with the xennet driver. It works fine. However the dom0 has a 1G nic but the link speed in the the domU with the xennet module say the link mode is only 100mb and 1G is not even available in domU. Anybody knows why I do not see the 1G link mode available in domU? best regards, Jeroen _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, Jan 30, 2009 at 1:22 PM, jeroen groenewegen van der weyden <groen692@grosc.com> wrote:> Hello, > > I have to install a SLES9 sp4 as domU. This distribution comes with kernel > 2.6.5-7-308 which I cannot compile with the para_virt_guest options.If you want to compile a kernel anyway, why not use new xen kernel from xen.org?> > However the dom0 has a 1G nic but the link speed in the the domU with the > xennet module say the link mode is only 100mb and 1G is not even available > in domU. >It''s not really related what link speed you have on dom0 and what you have on domU. For instance, even if dom0 has 10 Mbps link, domU can still have a link that says 100 Mbps speed. In this case domU <-> dom0 traffic can probably reach 100 Mbps, but domU <-> outside world will be capped at 10 Mbps max.> Anybody knows why I do not see the 1G link mode available in domU?I haven''t used PV driver on Linux HVM before, so I can''t comment much about it. Perhaps it''s simply because the domU network driver you use don''t support 1Gbps. There''s also another possibility: the link speed displayed on domU is meaningless. For example, when using Windows HVM domU with GPLPV driver, link speed is displayed as 1 Gbps. However, using iperf domU <-> dom0 can easily provide over 1 Gpbs speed (James said he got over 2Gbps. I only got 1.4). You should try using iperf to test your domU <-> dom0 performance. Regards, Fajar Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
jeroen groenewegen van der weyden
2009-Jan-30 09:36 UTC
Re: [Xen-users] link mode on pv sles9
Fajar A. Nugraha wrote:> On Fri, Jan 30, 2009 at 1:22 PM, jeroen groenewegen van der weyden > <groen692@grosc.com> wrote: > >> Hello, >> >> I have to install a SLES9 sp4 as domU. This distribution comes with kernel >> 2.6.5-7-308 which I cannot compile with the para_virt_guest options. >> > > If you want to compile a kernel anyway, why not use new xen kernel from xen.org? > >Well this distribution comes with this kernel, the application running on check the kernel version!? and won''t install unless it is this kernel version.>> However the dom0 has a 1G nic but the link speed in the the domU with the >> xennet module say the link mode is only 100mb and 1G is not even available >> in domU. >> >> > > It''s not really related what link speed you have on dom0 and what you > have on domU. > For instance, even if dom0 has 10 Mbps link, domU can still have a > link that says 100 Mbps speed. In this case domU <-> dom0 traffic can > probably reach 100 Mbps, but domU <-> outside world will be capped at > 10 Mbps max. > > >> Anybody knows why I do not see the 1G link mode available in domU? >> > > I haven''t used PV driver on Linux HVM before, so I can''t comment much about it. > Perhaps it''s simply because the domU network driver you use don''t support 1Gbps. > >I guess this is the case.> There''s also another possibility: the link speed displayed on domU is > meaningless. >it seems to be the reality, with iperf i get a 100mb throughput. anyway it is more throughput then the hvm realtek.> For example, when using Windows HVM domU with GPLPV driver, link speed > is displayed as 1 Gbps. However, using iperf domU <-> dom0 can easily > provide over 1 Gpbs speed (James said he got over 2Gbps. I only got > 1.4). You should try using iperf to test your domU <-> dom0 > performance. > >> Regards, > > Fajar > > > Regards, > > Fajar > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.233 / Virus Database: 270.10.15/1924 - Release Date: 29-1-2009 17:57 > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, Jan 30, 2009 at 4:36 PM, jeroen groenewegen van der weyden <groen692@grosc.com> wrote:>> Perhaps it''s simply because the domU network driver you use don''t support >> 1Gbps. > > I guess this is the case.I just tested RHEL4.6 HVM (kernel 2.6.9-67) with PV driver (kmod-xenpv-0.1-10.el4), and got some interesting results : (1) xennet is really just a symlink to xen-vnif, and xenblk is just a symlink to xen-vbd (the symlinks are not there on RHEL5''s kmod-xenpv-0.1-9.el5.i686.rpm) (2) after loading xennet, I got two network interfaces : - eth0 -> the emulated realtek - eth1 -> xennet Note that my vif line says vif = [ ''mac=00:16:3E:XX:XX:XX, bridge=brXXX'' ] i.e. no ioemu keyword. I set it up like that from the start (when I haven''t installed kmod-xenpv yet) and it works. kmod-xenpv''s readme specifically says "remove type=ioemu in the xen guest config file" (3) ethtool shows these result [root@rhel4hvm ~]# ethtool eth0 Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: MII PHYAD: 32 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbg Wake-on: d Current message level: 0x00000007 (7) Link detected: yes [root@rhel4hvm ~]# ethtool eth1 Settings for eth1: Link detected: yes (note the output difference) (4) iperf to dom0 with eth0 (emulated realtek) activated got about 62 Mbps, while with eth1 (xennet) got about 3 Gbps Which means that PROBABLY : - you still have ioemu line on your xen domU config, OR - your xennet driver is not activated yet (or perhaps the original realtek driver prevents it from activating), OR - SLES 9''s pv driver is different (and judging from your throughput, inferior) compared to RHEL''s. I highly doubt this, but it''s still a possibility. What does rpm -qi (whatever package that provides xennet) say on your system? What does "lsmod | grep xen" and ""lsmod | grep 8" say? What does ethtool say? What does "dmesg | grep eth" say? What does your domU vif config look like? Depending on the output, you might to fix some setup or replace SLES'' driver with RH''s Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2009/1/30 jeroen groenewegen van der weyden <groen692@grosc.com>:> Hello, > > I have to install a SLES9 sp4 as domU. This distribution comes with kernel > 2.6.5-7-308 which I cannot compile with the para_virt_guest options. However > the xennet driver is available. So I run a HVM with the xennet driver. It > works fine. > > However the dom0 has a 1G nic but the link speed in the the domU with the > xennet module say the link mode is only 100mb and 1G is not even available > in domU. > > Anybody knows why I do not see the 1G link mode available in domU? > > best regards, > > JeroenThere is already a xen enabled kernel in SP4, why don''t you use it? Regards, -- Ciro Iriarte http://cyruspy.wordpress.com -- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users