Asking Xen User Questions: Difference between revisions

From Xen
Jump to navigationJump to search
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Info|The content of this page is available in targetted FAQ's. We are keeping this page for historical reasons (as it is likely to be frequently linked to). All FAQ's are at [[:Category:FAQ]].}}
<!-- MoinMoin name: XenUsersQuestions -->
<!-- Comment: replace stephen.spector with community.manager@xen.org -->
<!-- WikiMedia name: XenUsersQuestions -->
<!-- Page revision: 00000007 -->
<!-- Original date: Tue Jan 25 16:12:06 2011 (1295971926000000) -->
<!-- ## Please edit system and help pages ONLY in the moinmaster wiki! For more -->
<!-- ## information, please see [[MoinMaster]]:[[MoinPagesEditorGroup]]. -->
<!-- ##master-page:[[HomepageReadWritePageTemplate]] -->
<!-- ##master-date:Unknown-Date -->
<!-- #format wiki -->
<!-- #language en -->


For:
{{Needs_Refactor|Needs splitting and moving into the smaller FAQs on [[:Category:FAQ]]}}
* Please send an e-mail to xen-users@lists.xenproject.org and follow [[Xen Users Netiquette]]

* For '''quick questions''', check out the '''#XEN''' [https://xenproject.org/help/irc.html IRC channel on irc.freenode.net]
= Xen Users Mailing List Commonly Asked Questions =
* '''Raising bugs''', see [[Reporting Bugs against Xen Project]]

* '''Man pages''' are at [http://xenbits.xen.org/docs/unstable/ docs/unstable]. For man pages of a specific release, go to [http://xenbits.xen.org/docs/ xenbits.xen.org/docs] and choose the right version.
== Introduction ==
* Documentation, see [http://xen.org/support/documentation.html documentation on xenproject.org]
This document is a Xen.org community effort to gather the most commonly asked questions from the xen-users emailing list and other support tools to assist new and experienced Xen hypervisor users with problems that frequently arise. If you would like to add content to this document, please send an email to community.manager@xen.org for editing rights if you don't have wiki editing rights already.
* HowTo's, see [[:Category:HowTo]], you can find a few example topics that are available from this page here:
For those users interested in trying Xen without installing the application, a Live CD version is available at http://wiki.xensource.com/xenwiki/LiveCD.
** [[XenNetworking|Xen Networking]]

** [[FreeBSDdomU|Xen FreeBSD]]
== Support Tools ==
** Adding USB Devices to Xen HVM - http://www.virtuatopia.com/index.php
The following sites are available for Xen hypervisor support:
* xen-users mailing list - http://lists.xensource.com/mailman/listinfo/xen-users
** Xen on Fedora - http://rackerhacker.com/2011/08/05/xen-4-1-on-fedora-15-with-linux-3-0/
* Xen 3.3 Documentation - http://bits.xensource.com/Xen/docs/user.pdf
** Create and Install CentOS on Xen - http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU
** http://www.virtuatopia.com/index.php/Configuring_a_VNC_based_Graphical_Console_for_a_Xen_Paravirtualized_domainU_Guest
* Stack Oveflow - http://stackoverflow.com/
** https://help.ubuntu.com/community/Xen Xen on Ubuntu
* Complete email history of all xen mailing lists - http://xen.markmail.org
* Guest Conversion, see [[Xen_FAQ_Guest_Conversion]]
* Language Specific Support
* Console, see [[Xen_FAQ_Console]]
** Japanese - http://lists.xensource.com/mailman/listinfo/xen-japanese
* Drivers, see [[Xen_FAQ_Drivers,_Windows]]
** Portuguese - http://groups.google.com/group/xen-br
* Domain0, see [[Xen_FAQ_Dom0]]

* DomainU/Guests, see [[Xen_FAQ_DomU]]
== How To Guide Links ==
* Devices, see [[Xen_FAQ_Devices]]
The Xen.org community Wiki has a [[HowTo]] Page with various information sources at http://wiki.xensource.com/xenwiki/HowTos. Updates to this Wiki page are continuous so check back often for new How Tos.
* Installation Questions, see [[Xen_FAQ_Installation]]
Sample topics internally within the Wiki are:
* Networking Questions, see [[Xen_FAQ_Networking]]
* [[XenNetworking| Xen Networking]]
* Security Questions, see [[Xen_FAQ_Security]]
* [[FreeBSDdomU| Xen FreeBSD]]
* Design/Misc Questions, see[[Xen_FAQ_Design_and_in_Depth]]

Sample topics with external links are:
* Adding USB Devices to Xen HVM - http://www.virtuatopia.com/index.php
* Xen on Fedora - http://rackerhacker.com/2011/08/05/xen-4-1-on-fedora-15-with-linux-3-0/
* Create and Install CentOS on Xen - http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU
* http://www.virtuatopia.com/index.php/Configuring_a_VNC_based_Graphical_Console_for_a_Xen_Paravirtualized_domainU_Guest
* https://help.ubuntu.com/community/Xen Xen on Ubuntu

== Guest Related Questions ==
=== Guest Conversion ===
See [[Xen_FAQ_Guest_Conversion]]

=== Console ===

See [[Xen_FAQ_Console]]

=== Drivers ===
See [[Xen_FAQ_Drivers,_Windows]]

=== Domain0 ===
See [[Xen_FAQ_Dom0]]


See [[Xen_FAQ_DomU]]

=== Devices ===
See [[Xen_FAQ_Devices]]

== Installation Questions ==

See [[Xen_FAQ_Installation]]

== Networking Questions ==

See [[Xen_FAQ_Networking]]

== Security Questions ==
See [[Xen_FAQ_Security]]

== Design/Misc Questions ==

=== How does Xen Work ===

Q (D3.0): How does Xen process System Calls on para-virtualized guest?

A (D3.0): When ever a system call is invoked via interrupt or sys center control gets transferred to the kernel (ring 0), which is then handled via system call handler. System call never goes to libc but Libc is a library that provides POSIX interface to the user space applications and in a way wrapper for invocation of a system call.
System call interrupt based [i386]: During booting process, linux kernel of a domU register's its IDT with Xen Hypervisor via HYPERVISOR_set_trap_table(trap_table); [arch/i386/kernel/traps-xen.c]. Xen maintains two IDT's, one global IDT (its own) and other per domain IDT. Xen uses global IDT to register the entire trap handler except for system call handler (int 0x80). When a VM gets scheduled, its system call handler (from per domain IDT table) is registered with the processor. Hence when a domain/VM executes a system call, its own handler is executed.
Implementation differs for x86_64: Xen registers its own system call handler with the processor and from that handler routes the request to VM/Domain specific handler.

Q (D3.1): How does Xen process System Calls on fully virtualized guest (HVM)?

A (D3.1): For HVM domU there is no change in the behavior of the system call. HVM is only supported for Intel-VT and AMD-SVM processors. These processors are virtualization aware. Virtualization aware processors provide a new ring (Root-Ring 0) with higher privilege for VMM and Guest OS continues to runs with the same privilege (as without Xen) in Non-Root Ring 0. Guest OS can issue the system calls the way it used to without Xen.

Q (D3.2): Can I run various DomU operating systems on a different Dom0 operating system?

A (D3.2): Yes.

Q (D3.3): Just curious to know, if there is any way that given a terminal to a box, we can determine is it a physical machine or a virtual machine ?

A (D3.3): You should be able to get some useful information from the DMI, e.g:
% for i in system-manufacturer system-product-name system-version\ system-serial-number; do echo -n "$i: "; sudo dmidecode -s $i; done
system-manufacturer: Xen system-product-name: HVM domU system-version: 3.3.1 system-serial-number: 89e5915f-dead-beef-cefd-46904ea94c4a
OR
Probably checking kernel process, check your process table for:
[xenwatch] [xenbus]
Another clue is checking the kernle suffix, for example:
<!-- # uname -r 2.6.24-23-xen -->
and the proc files:
/proc/xen/capabilities

Q (D3.4): What is STUBDOM ?

A (D3.4): Stubdoms are lightweight 'service' or 'driver' domains. The initial purpose was to offload qemu (for hvm guests) out of dom0.
So with stubdoms you can run hvm guest qemu in a separate stubdom, which boosts performance and makes it more secure.
stubdoms can also run for example pv-grub for pv guests, making it more secure compared to pygrub, which always runs in dom0.
http://wiki.xensource.com/xenwiki/StubDom
Presentation about stubdoms at Xen Summit: http://www.xen.org/files/xensummitboston08/SamThibault_XenSummit.pdf
http://blog.xen.org/index.php/2008/08/28/xen-33-feature-stub-domains/ http://blog.xen.org/index.php/2008/08/28/xen-33-feature-hvm-device-model-domain/ http://lxr.xensource.com/lxr/source/stubdom/README

Q (D3.5): When is hardware virtualization used in Xen? Is it required?

A (D3.5): Xen uses hardware virtualization for HVM guests. Xen will not launch a HVM guest unless hardware virtualization is turned on.


[[Category:Xen]]
[[Category:Xen]]

Latest revision as of 09:54, 26 January 2018

Icon Info.png The content of this page is available in targetted FAQ's. We are keeping this page for historical reasons (as it is likely to be frequently linked to). All FAQ's are at Category:FAQ.


For: