AWS EC2 offers two types of virtualization of Ubuntu Linux EC2 machines - PV and HVM.

PV: enter image description here

HVM: enter image description here

What is the difference between these types?

  • 9
    This is a good question. Why was it down-voted? I recommend adding explanations when you down-vote. – Chad Johnson Jan 12 '15 at 1:50
  • Mouse over the down arrow; the popup says "This question does not show any research effort; it is unclear or not useful". Downvotes without comment may be presumed to be for at least one of those reasons. – MadHatter Apr 25 '16 at 6:34
  • 2
    okay - how can this be 'not useful'? my researching took me here ... i wish i have an option to down vote your comment :) – OK999 Oct 19 '17 at 20:38
  • This is a very useful question! – Ravi Kumar Oct 15 '18 at 14:58

Amazon run on Xen, which provides Para-virtualization (PV) or Hardware-assisted virtualization (HVM).

Para-virtualization used to be the recommended choice, as it gave you better performance (with a much closer integration to the virtualization host, through patched specialized kernels/drivers on both the host and the guest).

Hardware-assisted virtualization uses the benefits provided in modern hardware, and it doesn't require any kind of custom kernel or patches. Recent benchmarks has proven that HVM is actually faster on certain workloads.


One noticeable difference is paravirtual doesn't support GPU Instances.

I'd have created it as hvm had I known that I would want to relaunch it as a GPU instance.

edit: Hmm, actually, it seems like we can change from paravirtual to hvm while create an AMI.


Now, On AWS, should use HVM and can get greater performance.

HVM AMIs are required to take advantage of enhanced networking and GPU processing
Historically, PV guests had better performance than HVM guests in many cases, but because of enhancements in HVM virtualization and the availability of PV drivers for HVM AMIs, this is no longer true.


Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.