Hi, I have installed Suse 10.3 with Xen 3.1 Installed Windows XP on the top of it on the AMD 64 X2 dual core cpu with svm flag installation went fine, however after using the guest XP os I have realized that during coping files and installing software onto the virtual windows the CPU load jumps continuously to 100% I have moved the guest os image file to a raw partition with dd onto a secondary physical device, which resulted in a bit of performance improvement, but the CPU is still used above 90 percent during I/O operations ... running the same copy test scenario on a vmware box was eating up "only" about 40-60% fluctuating ... The disks are sata 3g/s ... Anybody else has similar problems, any hints would be appreciated even how to look for the source of the problem ... Thanks Sub _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Di, Dez 11, 2007 at 06:24:36 +1100, Szabolcs Feczak wrote:> Hi, > > I have installed Suse 10.3 with Xen 3.1 > Installed Windows XP on the top of it on the AMD 64 X2 dual core cpu with svm flag > installation went fine, however after using the guest XP os > I have realized that during coping files and installing software onto the > virtual windows the CPU load jumps continuously to 100% > > I have moved the guest os image file to a raw partition with dd onto a secondary physical > device, which resulted in a bit of performance improvement, but the CPU is still used > above 90 percent during I/O operations ... running the same copy test scenario > on a vmware box was eating up "only" about 40-60% fluctuating ... > > The disks are sata 3g/s ... > > Anybody else has similar problems, any hints would be appreciated > even how to look for the source of the problem ...This is due to the fact that Windows runs in a HVM domain, so I/O devices (and particulary disk controllers) should be emulated. A solution of the problem could be paravirtual drivers for Windows HVM domain, which bypass emulation layer and save great part of CPU resources. There are no stable opensource Xen PV-drivers for Windows. But there are unstable drivers which you can download and try to play with it [1]. Also there are proprietary PV drivers for Windows, which are included to the proprietary versions of Xen (e.g. to the XenExpress by XenSource). [1] http://www.google.com/search?q=site%3Alists.xensource.com+James+Harper+drivers> > Thanks > > > Sub > > > > > > > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Artur Linhart - Linux communication
2007-Dec-12 06:42 UTC
RE: [Xen-users] Windows XP on Linux domain0
Hello, I think this is not the complete answer - We run some HVM guests - windows 2003 Server Enterprise x64 R2 and such an OS seems to work correctly according to the CPU usage reported in Dom0... And we do not have installed any PV drivers on that windows instance... But all w2k guests behave so lie described - CPU Load in the Dom0 is reported to be maximum possible (so, if 3 VCPUs are allocated for the instance, then it is nearly to 300%) I have no clear answer for it... It is also surprise for me it wors on any Windows without the PV drivers installed... Cheers, Archie -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Igor Chubin Sent: Tuesday, December 11, 2007 8:48 PM To: Szabolcs Feczak Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] Windows XP on Linux domain0 On Di, Dez 11, 2007 at 06:24:36 +1100, Szabolcs Feczak wrote:> Hi, > > I have installed Suse 10.3 with Xen 3.1 > Installed Windows XP on the top of it on the AMD 64 X2 dual core cpu withsvm flag> installation went fine, however after using the guest XP os > I have realized that during coping files and installing software onto the > virtual windows the CPU load jumps continuously to 100% > > I have moved the guest os image file to a raw partition with dd onto asecondary physical> device, which resulted in a bit of performance improvement, but the CPU isstill used> above 90 percent during I/O operations ... running the same copy testscenario> on a vmware box was eating up "only" about 40-60% fluctuating ... > > The disks are sata 3g/s ... > > Anybody else has similar problems, any hints would be appreciated > even how to look for the source of the problem ...This is due to the fact that Windows runs in a HVM domain, so I/O devices (and particulary disk controllers) should be emulated. A solution of the problem could be paravirtual drivers for Windows HVM domain, which bypass emulation layer and save great part of CPU resources. There are no stable opensource Xen PV-drivers for Windows. But there are unstable drivers which you can download and try to play with it [1]. Also there are proprietary PV drivers for Windows, which are included to the proprietary versions of Xen (e.g. to the XenExpress by XenSource). [1] http://www.google.com/search?q=site%3Alists.xensource.com+James+Harper+drive rs> > Thanks > > > Sub > > > > > > > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users __________ Informace od NOD32 2714 (20071210) __________ Tato zprava byla proverena antivirovym systemem NOD32. http://www.nod32.cz _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mi, Dez 12, 2007 at 07:42:55 +0100, Artur Linhart - Linux communication wrote:> Hello, > > I think this is not the complete answer - We run some HVM guests - > windows 2003 Server Enterprise x64 R2 and such an OS seems to work correctly > according to the CPU usage reported in Dom0... And we do not have installed > any PV drivers on that windows instance...Hello, Archie, it is very interesting. I''m not aware of any difference between w2k and w2k3 in this way, but may be the difference exists. If you may, try to copy big file (or create disk I/O load in any other way) in the w2k3 domain and watch for qemu-dm in the domain 0. You suppose, that the proccess will not take as many CPU resources as in W2K case?> But all w2k guests behave so lie described - CPU Load in the Dom0 is > reported to be maximum possible (so, if 3 VCPUs are allocated for the > instance, then it is nearly to 300%) > I have no clear answer for it... It is also surprise for me it wors > on any Windows without the PV drivers installed... > > Cheers, Archie > > -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Igor Chubin > Sent: Tuesday, December 11, 2007 8:48 PM > To: Szabolcs Feczak > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] Windows XP on Linux domain0 > > On Di, Dez 11, 2007 at 06:24:36 +1100, Szabolcs Feczak wrote: > > Hi, > > > > I have installed Suse 10.3 with Xen 3.1 > > Installed Windows XP on the top of it on the AMD 64 X2 dual core cpu with > svm flag > > installation went fine, however after using the guest XP os > > I have realized that during coping files and installing software onto the > > virtual windows the CPU load jumps continuously to 100% > > > > I have moved the guest os image file to a raw partition with dd onto a > secondary physical > > device, which resulted in a bit of performance improvement, but the CPU is > still used > > above 90 percent during I/O operations ... running the same copy test > scenario > > on a vmware box was eating up "only" about 40-60% fluctuating ... > > > > The disks are sata 3g/s ... > > > > Anybody else has similar problems, any hints would be appreciated > > even how to look for the source of the problem ... > > > This is due to the fact that Windows runs in a HVM domain, > so I/O devices (and particulary disk controllers) > should be emulated. > > A solution of the problem could be paravirtual drivers > for Windows HVM domain, which bypass emulation layer and > save great part of CPU resources. > > There are no stable opensource Xen PV-drivers for Windows. > But there are unstable drivers which you can download and try > to play with it [1]. > > Also there are proprietary PV drivers for Windows, > which are included to the proprietary versions of Xen > (e.g. to the XenExpress by XenSource). > > > [1] > http://www.google.com/search?q=site%3Alists.xensource.com+James+Harper+drive > rs > > > > > > > Thanks > > > > > > Sub > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > -- > WBR, i.m.chubin > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > __________ Informace od NOD32 2714 (20071210) __________ > > Tato zprava byla proverena antivirovym systemem NOD32. > http://www.nod32.cz > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi all. I have a scenario that I''ve tried searching for but I''m a little unsure of what to be looking for in the first place. I have a guest domU that was setup using HVM and installed straight from CD. The host and guest both happen to be Debian since I''m trying to do a proof of concept that I can install other guest OS''s. I thought I''d start simple and install the same OS but from scratch, so to speak. The issue I have is that I can start the guest domU and connect using VNC, networking, ssh, etc are all working correctly. However, since I only want to use the VNC display when SSH isn''t available, I disabled it in my config file. When I do that, the guest domain never starts up. It shows up in an xm list but has not CPU and no state. So to summarize, my guest domain is only starting up when I have ''vnc=1'' enabled in the config file. Any help on how to get it to start without using VNC? Here''s my config file *** kernel = ''/usr/lib/xen-3.0.3-1/boot/hvmloader'' builder = ''hvm'' device_model=''/usr/lib/xen-3.0.3-1/bin/qemu-dm'' memory = ''256'' disk = [ ''phy:/dev/xendisks/base_deb,ioemu:hda,w'',''phy:/dev/cdrom,hdc:cdrom,r'' ] name = base_deb'' vif = [''type=ioemu,bridge=xenbr0,mac=00:19:c0:a8:01:c9''] boot=''c'' vnc=1 vncviewer=0 vncunused=0 vncdisplay=2 vnclisten=''0.0.0.0'' serial=''pty'' *** _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Igor Chubin
2007-Dec-20 06:47 UTC
Re: [Xen-users] Xen, HVM guest won''t start without VNC=1
On Mi, Dez 19, 2007 at 05:45:10 -0500, Norton, Jerry wrote:> Hi all. I have a scenario that I''ve tried searching for but I''m a > little unsure of what to be looking for in the first place. > > I have a guest domU that was setup using HVM and installed straight from > CD. The host and guest both happen to be Debian since I''m trying to do > a proof of concept that I can install other guest OS''s. I thought I''d > start simple and install the same OS but from scratch, so to speak. > > The issue I have is that I can start the guest domU and connect using > VNC, networking, ssh, etc are all working correctly. However, since I > only want to use the VNC display when SSH isn''t available, I disabled it > in my config file. When I do that, the guest domain never starts up. > It shows up in an xm list but has not CPU and no state. > > So to summarize, my guest domain is only starting up when I have ''vnc=1'' > enabled in the config file. Any help on how to get it to start without > using VNC? >As far as I understand one of the options (either vnc, or sdl) should be enabled. Otherwise domain will not work. What bad if you bound VNC to local interface?> Here''s my config file > *** > kernel = ''/usr/lib/xen-3.0.3-1/boot/hvmloader'' > builder = ''hvm'' > device_model=''/usr/lib/xen-3.0.3-1/bin/qemu-dm'' > memory = ''256'' > disk = [ > ''phy:/dev/xendisks/base_deb,ioemu:hda,w'',''phy:/dev/cdrom,hdc:cdrom,r'' ] > name = base_deb'' > vif = [''type=ioemu,bridge=xenbr0,mac=00:19:c0:a8:01:c9''] > boot=''c'' > vnc=1 > vncviewer=0 > vncunused=0 > vncdisplay=2 > vnclisten=''0.0.0.0'' > serial=''pty'' > *** > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Norton, Jerry
2007-Dec-20 16:28 UTC
RE: [Xen-users] Xen, HVM guest won''t start without VNC=1
> > > On Mi, Dez 19, 2007 at 05:45:10 -0500, Norton, Jerry wrote: > > Hi all. I have a scenario that I''ve tried searching for but I''m a > > little unsure of what to be looking for in the first place. > > > > I have a guest domU that was setup using HVM and installed straight > from > > CD. The host and guest both happen to be Debian since I''m trying to > do > > a proof of concept that I can install other guest OS''s. I thought > I''d > > start simple and install the same OS but from scratch, so to speak. > > > > The issue I have is that I can start the guest domU and connectusing> > VNC, networking, ssh, etc are all working correctly. However, since > I > > only want to use the VNC display when SSH isn''t available, Idisabled> it > > in my config file. When I do that, the guest domain never startsup.> > It shows up in an xm list but has not CPU and no state. > > > > So to summarize, my guest domain is only starting up when I have > ''vnc=1'' > > enabled in the config file. Any help on how to get it to start > without > > using VNC? > > > > > As far as I understand one of the options (either vnc, or sdl) > should be enabled. Otherwise domain will not work. > > What bad if you bound VNC to local interface? >[Norton, Jerry] Thanks for the reply Igor. I did some digging and found a reference to SDL in a qemu.log. I guess nothing is wrong with running VNC, it''s just that I''m a little paranoid. I hate having processes running that no one will be using and try my best to keep servers very lean. I see it as a potential security risk. Am I understanding correctly that SDL needs X11? I''m adverse to running X11 on a server. I prefer to keep them console only. I''m ultimately looking to run the guest OS''s headless and running in the background with a backdoor console that I can start up only as needed. I guess if VNC or SDL w/ X running are the only options, I''ll work with them. I just want to be sure those are the only options.> > > > Here''s my config file > > *** > > kernel = ''/usr/lib/xen-3.0.3-1/boot/hvmloader'' > > builder = ''hvm'' > > device_model=''/usr/lib/xen-3.0.3-1/bin/qemu-dm'' > > memory = ''256'' > > disk = [ > >''phy:/dev/xendisks/base_deb,ioemu:hda,w'',''phy:/dev/cdrom,hdc:cdrom,r''> ] > > name = base_deb'' > > vif = [''type=ioemu,bridge=xenbr0,mac=00:19:c0:a8:01:c9''] > > boot=''c'' > > vnc=1 > > vncviewer=0 > > vncunused=0 > > vncdisplay=2 > > vnclisten=''0.0.0.0'' > > serial=''pty'' > > *** > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > -- > WBR, i.m.chubin_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Igor Chubin
2007-Dec-21 11:14 UTC
Re: [Xen-users] Xen, HVM guest won''t start without VNC=1
...> > > > As far as I understand one of the options (either vnc, or sdl) > > should be enabled. Otherwise domain will not work. > > > > What bad if you bound VNC to local interface? > > > > [Norton, Jerry] Thanks for the reply Igor. I did some digging and found > a reference to SDL in a qemu.log. I guess nothing is wrong with running > VNC, it''s just that I''m a little paranoid. I hate having processes > running that no one will be using and try my best to keep servers very > lean. I see it as a potential security risk.Yes I understand you, but 1) There are no special processes starting which must handle VNC connections. 2) You can bound it to 127.0.0.1 or something else IP 3) You can drop all the traffic that goes to that IP with iptables iptables -I INPUT -d 127.0.0.1 -p tcp --dport 5900 -j REJECT --reject-with tcp-reset and after you have this command run, it will be impossible to connect to the VNC session (assuming its run on the port 5900) even from the localhost.> > Am I understanding correctly that SDL needs X11? I''m adverse to running > X11 on a server. I prefer to keep them console only. >I know that SDL can run without X Window System (using framebuffer) but I don''t know if it possible in case of SDL usage with Xen. I think that VNC is more convenient option for you task and you should not contrive something wit SDL.> I''m ultimately looking to run the guest OS''s headless and running in the > background with a backdoor console that I can start up only as needed. >I think that you can use VNC as this backdoor. You can bond it to local interface (and even firewall it, in the way I mentioned earlier) and make SSH-portforwarding when you need to access it from the external host.> I guess if VNC or SDL w/ X running are the only options, I''ll work with > them. I just want to be sure those are the only options. > > > > > > > > Here''s my config file > > > *** > > > kernel = ''/usr/lib/xen-3.0.3-1/boot/hvmloader'' > > > builder = ''hvm'' > > > device_model=''/usr/lib/xen-3.0.3-1/bin/qemu-dm'' > > > memory = ''256'' > > > disk = [ > > > > ''phy:/dev/xendisks/base_deb,ioemu:hda,w'',''phy:/dev/cdrom,hdc:cdrom,r'' > > ] > > > name = base_deb'' > > > vif = [''type=ioemu,bridge=xenbr0,mac=00:19:c0:a8:01:c9''] > > > boot=''c'' > > > vnc=1 > > > vncviewer=0 > > > vncunused=0 > > > vncdisplay=2 > > > vnclisten=''0.0.0.0'' > > > serial=''pty'' > > > *** > > > > > > > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xensource.com > > > http://lists.xensource.com/xen-users > > > > -- > > WBR, i.m.chubin > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed December 19 2007 5:45:10 pm Norton, Jerry wrote:> kernel = ''/usr/lib/xen-3.0.3-1/boot/hvmloader'' > builder = ''hvm'' > device_model=''/usr/lib/xen-3.0.3-1/bin/qemu-dm'' > memory = ''256'' > disk = [ > ''phy:/dev/xendisks/base_deb,ioemu:hda,w'',''phy:/dev/cdrom,hdc:cdrom,r'' ] > name = base_deb'' > vif = [''type=ioemu,bridge=xenbr0,mac=00:19:c0:a8:01:c9''] > boot=''c'' > vnc=1 > vncviewer=0 > vncunused=0 > vncdisplay=2 > vnclisten=''0.0.0.0'' > serial=''pty''When Igor says ''bind vnc to localhost'', the simple way to do that is vnclisten=''127.0.0.1''. Then only someone who has ssh access to the xen server can get a vnc window. He''s also right that either sdl or vnc must =1. That bit me recently when vnc was failing. And his iptables trick is also nice. Note that the iptables ''--dport'' option accepts a port range, as in ''--dport 5900:5910'', etc. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users