Questions tagged [xen]

Xen is a hypervisor based virtualization. It supports x86, AMD64, IA64, ARM and other CPU types, and Linux, Windows, Solaris and *BSD guest operating systems.

The Xen (pronounced zen) hypervisor runs directly on the hardware and then starts a privileged virtualized system called "Dom0". You can regard that as xen-controller. From the Dom0 system you can create other virtualised systems called Domains that Xen literature calls DomU.

Xen works with paravirtualisation and full virtualisation (full virtualisation is only available on systems supporting CPU virtualisation extensions). Paravirtualisation requires an OS that is aware of it to work, but on the other hand provides almost direct access to critical parts of the hardware like memory and I/O, making paravirtualisation extremely fast. Linux and most BSDs have paravirtualised awareness and are widely used with Xen.

Full virtualisation is used by operating systems that are not paravirtualisation-aware like Microsoft Windows and require hardware support, specifically the virtualisation extensions from AMD and Intel (AMD-V or VT-x respectively). Also, full virtualisation has to emulate most of the access to hardware, having a performance penalty to this kind of virtualisation.

Xen started as a project at the University of Cambridge in 2003 as an open source project with an associated company selling support services (XenSource, Inc). Citrix acquired XenSource in 2007 and renamed the professional services XenServer, while the open source project moved to http://www.xen.org and continued its development under the guidance of the Xen Project Advisory Board formed by companies interested in Xen development. XenServer products were renamed Xen Cloud Platform (XCP) and open sourced by Citrix in 2009 and are available for download on the xen.org website.

1142 questions
89
votes
4 answers

Why is TCP accept() performance so bad under Xen?

The rate at which my server can accept() new incoming TCP connections is really bad under Xen. The same test on bare metal hardware shows 3-5x speed ups. How come this is so bad under Xen? Can you tweak Xen to improve performance for new TCP…
cgbystrom
  • 1,061
  • 1
  • 9
  • 9
71
votes
9 answers

xvda1 is 100% full, What is it? how to fix?

I'm running a Linux instance on EC2 (I have MongoDB and node.js installed) and I'm getting this error: Cannot write: No space left on device I think I've tracked it down to this file, here is the df output Filesystem 1K-blocks Used…
Chris Biscardi
  • 811
  • 1
  • 7
  • 5
56
votes
2 answers

Difference between Xen PV, Xen KVM and HVM?

I know that Xen is usually better than OpenVZ as the provider cannot oversell in Xen. However, what is the difference between Xen PV, Xen KVM and HVM (I was going through this provider's specs? Which one is better for what purposes and why?…
JP19
39
votes
7 answers

Xen vs. KVM in performance

What is faster on the same hardware, Xen or KVM? I'm trying to pick-up a virtualization technology to work, which gives the best performance. There are some benchmarks here that I found on the subject: http://virt.kernelnewbies.org/XenVsKVM They…
SyRenity
  • 3,159
  • 11
  • 55
  • 79
29
votes
2 answers

Is KVM a type 1 or type 2 hypervisor?

Is KVM a type 1 or a type 2 hypervisor? I understand that type 1 hypervisors run on bare metal while type 2 hypervisors are applications running on top of an operating system (such as VMware Workstation). I also understand that the performance…
23
votes
2 answers

Is it safe to mount the same partition to multiple VMs?

I'm using ubuntu 20.04 with Xen Hypervisor. On my machine I have an SSD that hosts my VM images, and then four sata drives which I have data on. My current set up is to mount the data on my domain0 and then provide that data to the other VMs over…
curios
  • 353
  • 2
  • 9
22
votes
4 answers

What are the benefits of "enterprise-level" virtualization?

For a company with modest virtualization needs - VirtualBox is currently doing fine at hosting a few light servers - what would some of the benefits be of moving to a more robust platform? I'm hoping to shortcut my research a bit - to get a short…
Ward - Reinstate Monica
  • 12,788
  • 28
  • 44
  • 59
19
votes
9 answers

LVM snapshots as a backup strategy

How viable as a backup strategy would be periodical LVM snapshots of xen domU's? Pros, cons, any gotchas? To me it seems like the perfect solution for a fast, brainless restore. Any investigation could take place on the broken logical volume with…
Karolis T.
  • 2,709
  • 7
  • 32
  • 45
17
votes
7 answers

Is virtualbox good for live server virtualization

I used virtual box before to test OS installation on my own personal computer. I'm not sure if it's suitable for actual virtualization on live servers. I mostly hear about Xen for that. Is virtualbox at the same level (production environment…
sameold
  • 963
  • 3
  • 11
  • 20
15
votes
2 answers

CRITICAL STRUCTURE CORRUPTION on Windows Server 2012 R2

I have a Windows Server 2012 R2 virtual machine; yes with all the updates. Additional software include Microsoft SQL Server 2014 (was 2012 on a previous VM). The web hosting company includes xenpci.sys (EJBPV XenPCI Driver (Checked Build), James…
Sarah Weinberger
  • 421
  • 2
  • 9
  • 23
14
votes
7 answers

Tough Choice: Xen or KVM

I'm building a fresh workstation and want to use Linux alongside Windows. This seems like a good opportunity to get acquainted with with either Xen or KVM. So I face a choice. In favour of using Xen I see a type 1 hypervisor with very clear…
LRE
  • 645
  • 7
  • 16
13
votes
3 answers

Having Mac OS X on a XEN virtual machine

Is it possible to have Mac OS X guest on a XEN host? If yes, how? There are difference for Mac OS X Server? In particular I'm interested in the installation of a testing Mac OS X Server inside a XEN domU, being the host a Debian linux server in the…
drAlberT
  • 10,871
  • 7
  • 38
  • 52
12
votes
2 answers

Meltdown & Spectre - Does patching the guest kernel of an unpatched hypervisor prevent cross-VM memory leaks?

24 hours after the wide scale release of the vulnerabilities, Rackspace is silent about Spectre and Meltdown. They do not have a plan for patching all of their Xen hypervisors. All their newer platform servers are HVM servers, which are vulnerable.…
Danny F
  • 488
  • 3
  • 10
12
votes
3 answers

How to disable "safely remove hardware"

I have some windows 7 virtual machines in xen that have devices showing up in "safely remove hardware". I don't want users to ever be able to remove/eject any hardware at all. I'm told vmware has a hotplug option. xen doesn't seem to provide this…
hookenz
  • 14,132
  • 22
  • 86
  • 142
12
votes
2 answers

Xen vs virtualbox?

Is there much performance difference between Xen and virtual box?
yazz.com
  • 6,743
  • 14
  • 37
  • 38
1
2 3
76 77