LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-01-2011, 12:35 PM   #1
Nemus
Member
 
Registered: Apr 2007
Distribution: Fedora/Ubuntu
Posts: 63

Rep: Reputation: 15
HVM vs PV (Xen Full virtualization (HVM) Xen Paravirtualization (PV))


Is HVM or PV better for performance and overall stability in xen?
 
Old 04-11-2011, 08:50 PM   #2
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,198

Rep: Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777
Quote:
Originally Posted by Nemus View Post
Is HVM or PV better for performance and overall stability in xen?
I have a Slackware PV domU, a Windows XP HVM domU, and several NetBSD domUs on NetBSD dom0. All very stable and fast. If you can go with PV for domU then go with it. Your only choice with Windows (at least XP and 2003) is HVM.
 
1 members found this post helpful.
Old 04-11-2011, 11:50 PM   #3
Nemus
Member
 
Registered: Apr 2007
Distribution: Fedora/Ubuntu
Posts: 63

Original Poster
Rep: Reputation: 15
general rule?

So the general rules if if you can do linux pv then do it? right? ... no reason to just use hvm ?
 
Old 04-13-2011, 07:26 PM   #4
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,198

Rep: Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777Reputation: 1777
Quote:
Originally Posted by Nemus View Post
So the general rules if if you can do linux pv then do it? right? ... no reason to just use hvm ?
That's the way I understand it. I haven't even tried Slackware (I use only Slackware and Slackware-based Linux) on HVM. Why bother, when my Slackware PV domU runs as fast and as stable as the same Slackware dual-booted on bare metal? I can't speak for any other Linux domU. It's easy for me to compile a kernel in Slackware with Xen PV domU support. All I need to look after then is /etc/fstab, to make sure the mount points are correct. To do this I mount using UUIDs, so that Slackware will boot into bare metal and also under Xen.
 
Old 05-16-2011, 05:45 AM   #5
eloi
Member
 
Registered: Nov 2010
Posts: 227

Rep: Reputation: 61
slackware domU on host-side xen kernel

Quote:
Originally Posted by gezley View Post
That's the way I understand it. I haven't even tried Slackware (I use only Slackware and Slackware-based Linux) on HVM. Why bother, when my Slackware PV domU runs as fast and as stable as the same Slackware dual-booted on bare metal? I can't speak for any other Linux domU. It's easy for me to compile a kernel in Slackware with Xen PV domU support. All I need to look after then is /etc/fstab, to make sure the mount points are correct. To do this I mount using UUIDs, so that Slackware will boot into bare metal and also under Xen.
I am using a Slackware domU in a xen pv. But the provider use a host-side kernel, and this gave me problems from the very start. I've read that to you be able to use your kernel they need to use pygrub or pv-grub. Am I right?

According to the words of the guy of the company, Slackware is the only distribution that give he problems. The rest of their domUs are Gentoo, Ubuntu, Debian, etc. With this argument he "invite" me to search for another provider (yes, like it sounds ).

Any advice or clue you give me I will be eternally grateful with you. Even if you advice me about some really serious provider where to run Slackware. I've tried several and my experience was even worst than the above.

Thanks
 
Old 05-18-2011, 02:48 AM   #6
rajivdp
Member
 
Registered: Oct 2008
Posts: 34

Rep: Reputation: 17
HVM vs PV (Xen Full virtualization (HVM) Xen Paravirtualization (PV))

Paravirtualisation is always better.

In PV, VM will aware of that IO should be handled by host and VM will generate a direct call to the Hypervisor. But the Guest OS should be modified and installed with the drivers (block and network) through which VM kernel will directly call hypervisor.

In FV, there is no need for the guest to be modified but the Guest should be given the emulated devices (BIOS, block,network) which VM Kernel will generate the normal system call with emulated devices which call further the hypervisor. Emulation consumes lot of CPU time therefore VM will slow in handling the IO.
 
1 members found this post helpful.
Old 05-19-2011, 05:03 AM   #7
eloi
Member
 
Registered: Nov 2010
Posts: 227

Rep: Reputation: 61
Quote:
Originally Posted by rajivdp View Post
Paravirtualisation is always better.

In PV, VM will aware of that IO should be handled by host and VM will generate a direct call to the Hypervisor. But the Guest OS should be modified and installed with the drivers (block and network) through which VM kernel will directly call hypervisor.

In FV, there is no need for the guest to be modified but the Guest should be given the emulated devices (BIOS, block,network) which VM Kernel will generate the normal system call with emulated devices which call further the hypervisor. Emulation consumes lot of CPU time therefore VM will slow in handling the IO.

It is faster, but what about reliability?

I ignore all about virtualization, but I understand (and knew) what you say and I've experienced this slower responsiveness in HVM compared Xen PV (or OpenVZ, that is just a patched kernel).

But taking in care your same argument, which is more problematic when a bug or a regression appear?

What I posted above and what I will say now are a bit offtopic, because you are discussing just the tech aspect of the issue. But I will say it anyway because it is what happens in practice.

I know that most companies out there have not interest in lead with a real tech solution; when things get too complicated, it is more 'profitable' for them to kick customer ass than pay to a tech. And taking in care that customers who really have money can afford a real dedicated server, all VPS customers are "ass kickables" :-).

Now the question to those who know the theory: does PV setup and maintenance require more knowledge/work than FV? When "money" parameter appears, this question is important at time of judge which solution is better in terms of reliability.
 
1 members found this post helpful.
Old 05-19-2011, 01:34 PM   #8
Nemus
Member
 
Registered: Apr 2007
Distribution: Fedora/Ubuntu
Posts: 63

Original Poster
Rep: Reputation: 15
good point

that is a good point is pv less reliable than hvm ? I have been running pv for a couple of months now and haven't had any major issues yet..
 
Old 02-23-2016, 10:48 PM   #9
geeth4sg
LQ Newbie
 
Registered: Feb 2008
Posts: 15

Rep: Reputation: 0
Anyone running the Slackware in HVM.
 
Old 02-27-2016, 10:07 AM   #10
Chris E
Member
 
Registered: Jun 2008
Location: Berkshire, UK.
Distribution: CentOS
Posts: 31

Rep: Reputation: 2
Xen PV will always be faster and more reliable than Xen HVM, as you have an additional component (Qemu) on HVM which runs as a process per VM on the host machine. Xen has been around a long time through and both are very stable at this point. HVM used to be a bit iffy before Xen 3.4 (Now were on 4.6)

Almost every version of Windows, Linux and BSD will run under HVM. It's also possible to run FreeBSD under Xen PV but requires a fair bit of work.
 
  


Reply

Tags
xen



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KVM/Xen HVM guests require SWAP ?? vzxen Linux - Virtualization and Cloud 5 11-02-2010 10:16 PM
[SOLVED] Windows 2003 won't boot on XEN with HVM mr51m0n Linux - Server 2 06-11-2010 09:24 AM
LXer: PV on HVM at Xen 4.0 on top of Fedora 13 LXer Syndicated Linux News 0 05-28-2010 01:10 AM
Xen Virtualization VGA Passthrough: Playing 3D FPS Games in Windows XP HVM Guest Teo En Ming Linux - Virtualization and Cloud 2 10-27-2009 01:22 PM
LXer: Xen 3.1 HVM on SLES 10 SP1 LXer Syndicated Linux News 0 08-04-2007 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration