aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* tool: make management of PCI D-states by guest optionalKeir Fraser2009-03-061-0/+9
| | | | | | | | | | | D3hot state in some PCI devices causes the failure of domain creation/destruction. The default is "pci_power_mgmt=3D0" which disables the guest OS from managing D-states because it would be better to avoid the trouble than advantage of low power consumption. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* xmexample: portability fixKeir Fraser2009-03-022-4/+6
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* passthough: MSI-INTx translation documentationKeir Fraser2009-01-081-0/+33
| | | | Signed-off-by: Qing He <qing.he@intel.com>
* tools/hotplug: Separate OS-specific scripts.Keir Fraser2008-11-0432-3705/+1
| | | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: Battery Management virtual firmware and toolstack changesKeir Fraser2008-10-141-0/+8
| | | | Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
* xendomains script: A few bug fixes.Keir Fraser2008-09-111-2/+4
| | | | | Contributed-by: Artur Linhart <AL.LINUX@bcpraha.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* x86, xend: Fix processing of cpuid config parametersKeir Fraser2008-09-102-2/+2
| | | | | | | | | | There is an python indentation issue keeping the full range of syntax for the cpuid config file parameter from working correctly. This patch fixes that. It also fixes some misspelling and a missing 'x' in two of the example config files (must have 32 bits represented for cpuid registers). Signed-off-by: Bruce Rogers <brogers@novell.com>
* xsm, python tools: remove autogenerated xsm.pyKeir Fraser2008-09-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | - The patch does away with the autogenerated xsm.py file and introduces a config parameter in xend-config.sxp to determine the security module. The parameter is (xsm_module_name {acm, dummy, flask}). The default setting/option is dummy. .hgignore is also updated to stop ignoring xsm.py on commits. - The patch has created an xsconstant for XS_POLICY_FLASK and updated the toolchain to check the instance of XS_POLICY_USE. XS_POLICY_USE evalauates to XS_POLICY_FLASK or XS_POLICY_ACM or XS_POLICY_DUMMY depending on configuration. - Flask relies on the current value of ssidref returned by dominfo to ensure that the label to sid mapping is consistent. ssidref had been pop'ed from the dominfo object. The patch addresses this issue. - Flask python module style cleanups. Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
* pv-grub: fix example fileKeir Fraser2008-08-291-27/+1
| | | | | | | | Apparently 64MB is too short for the domain builder. No kernel option should be passed, as they are provided by menu.lst, and would only confuse grub. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: fix documentation file namesKeir Fraser2008-08-061-1/+1
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* xend: Expose persistent domain path in xend conf fileKeir Fraser2008-08-061-0/+4
| | | | | | | | This patch exposes the persistent (aka managed) domain path in xend configuration file. This option is already supported in XendOptions but is not annotated in the configuration file. Signed-off-by: Jim Fehlig <jfehlig@novell.com>
* install more documentation to /usr/share/doc/xen and /etc/xenKeir Fraser2008-08-063-1/+43
| | | | | | Also resync xmexample3 with xmexample1 and 2. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Remove vncconsole from example HVM configs. It's deprecated.Keir Fraser2008-08-052-10/+0
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* PV-GRUB: add sample config fileKeir Fraser2008-08-041-0/+212
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: rename the ioemu-dm domain config file to domainname-dm,Keir Fraser2008-08-042-1/+1
| | | | | | | which is shorter, makes more sense, and sorts better. From: Samuel Thibault <samuel.thibault@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86 hvm: stubdom and hvmloader always live under /usr/lib, never /usr/lib64Keir Fraser2008-07-223-18/+4
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* doc: Fix multi-core amd exampleKeir Fraser2008-07-212-10/+14
| | | | Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
* Check phy: block device existenceKeir Fraser2008-07-181-0/+8
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* pvscsi: Install vscsi script.Keir Fraser2008-07-181-0/+1
| | | | | Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com> Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
* blktap scripts: deletion of double check and permission of using /dev/sdxxKeir Fraser2008-07-181-1/+0
| | | | Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
* stubdom: add example config fileKeir Fraser2008-07-183-2/+348
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Choice of network interface for establishing a bridge on if NFSROOT is usedKeir Fraser2008-07-141-1/+12
| | | | | | | | | | | | | | | | | | | This patch fixes a problem related to machines that are booted using nfsroot ( '/' provided via nfs). Previously the code was assuming that nfsroot would be provided via eth0. Now this additional code checks over which interface the nfsroot is provided after detecting that nfsroot is actually being used. To determine from where nfsroot is mounted I am reading the kernel command line (/proc/cmdline) and filter for an argument starting with 'nfsroot=' and determine the nfs server's IP address by assuming the format 'nfsroot=<ip adddress>:<path to root>' - if there's a better way of doing this, please let me know. After that I determine the interface over which this IP address would be accessed using 'ip route get <address>'. Then I compare that interface against a previously determined default interface and if they are equal return a value that causes an alternative interface to be chosen. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* pvSCSI: xend changesKeir Fraser2008-07-037-0/+116
| | | | | Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com> Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
* vtpm: Add two missing quotes in the vTPM hotplug script.Keir Fraser2008-07-031-2/+2
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xend: improve the rotation of qemu-dm logfiles.Keir Fraser2008-07-011-0/+3
| | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* doc: Describes a generic 686 via the cpuid configure.Keir Fraser2008-06-181-5/+5
| | | | Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
* rools/examples: Fix 'make install'.Keir Fraser2008-05-231-2/+0
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Make ssl relocation server listen on different portKeir Fraser2008-05-231-5/+9
| | | | | | | | | | | | | | | | | | | This patch makes ssl relocation server listen on 8003 if enabled. Whether to start ssl relocation server now controlled by xend-relocation-ssl-server. So ssl and non-ssl relocation server can run simultaneously. You can also only start ssl server or only start non-ssl relocation server. When mix deploy xen 3.2 server (has no ssl support) and 3.3 servers, start ssl and non-ssl relocation server simultaneously can keep backward compatibility. It's also more reasonable to have separate ports for ssl and non-ssl. In this patch, also renames xend-relocation-tls to xend-relocation-ssl. Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
* Remove xend-config-xenapi.sxp and xm-config-xenapi.xmlKeir Fraser2008-05-232-239/+0
| | | | | | | | | The contents of these two files are duplicate of xend-config.sxp and xm-config.xml. They only add maintaining burdens to developers. This patch removes them permanently. Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
* Add extra CPUID config examples to sample HVM config file.Keir Fraser2008-05-131-3/+40
| | | | | From: Jean Guyader <jean.guyader@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Fix xmexamples to reflect new meaning of cpus= config option.Keir Fraser2008-05-125-5/+10
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* Fixed typos in xmexamples.Keir Fraser2008-05-083-3/+3
| | | | Signed-off-by: Hiroya INAKOSHI <inakoshi.hiroya@jp.fujitsu.com>
* Fix xend config typosKeir Fraser2008-05-012-6/+6
| | | | Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
* Add SSL/TLS support to relocationKeir Fraser2008-05-011-0/+9
| | | | | | | | | | | | * SSL/TLS support is disabled by default, as other server did. * If "xend-relocation-server-ssl-key-file" and "xend-relocation-server-ssl-cert-file" exist, SSL/TLS is enabled automatically. * "xend-relocation-tls" is used by relocation client only. Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
* x86, hvm: Guest CPUID configuration.Keir Fraser2008-04-251-0/+25
| | | | | | | | | | | | CPUID's replies are now pre-calculated in libxc and given to the hypervisor via a new domctl. There are two parts to this feature: - We can overwrite cpuid's replies. - We can check that a vm is compatible with a host's processor. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hotplug scripts: Fix sharing check for blktapKeir Fraser2008-04-221-10/+12
| | | | | | | | Run check_blktap_sharing() only when a disk is added to guest with blktap. A check_blktap_sharing() doesn't have to be run when a disk is removed. Signed-off-by: Hirofumi Tsujimura <tsujimura.hirof@jp.fujitsu.com> Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
* Split the meaning of "dom0-min-mem = 0" to a new option.Keir Fraser2008-04-072-8/+14
| | | | | | | | I have written a patch to split the current meaning of "dom0-min-mem = 0" to a new option "enable-dom0-ballooning". Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* ioemu: SDL rendering using OpenGLKeir Fraser2008-03-181-0/+5
| | | | | | | | | | | | | | | | | | Add opengl support for rendering the guest framebuffer in the SDL window. SDL is needed anyway to open the window and handle the events. Opengl rendering is optional and can be turned off at both compile time and in the vm configuration file. Some of the benefits of using opengl are: - faster rendering, less CPU intensive, especially with good graphic cards; - makes the window resizing possible and hardware accelerated, thus very efficient and smooth; - allows other optimizations like sharing directly a buffer in vram with the guest (not yet implemented). Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* vtpm: script function for identifying vTPM by its UUIDKeir Fraser2008-02-262-6/+32
| | | | | | | | I am adding some functions for external tools to call the vTPM scripts. It also contains a fix for the functions that previously used to be called by domain name, but now are using the vTPM's uuid as parameter. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Add 'coredump-destroy' and 'coredump-restart' actions for crashed domains.Keir Fraser2008-02-074-0/+20
| | | | | | | | Xen-API already specifies these actions for the 'on_crash' domain exit event. This patch makes them available for use in traditional domU config files and through the xm tool as well. Signed-off-by: Jim Fehlig <jfehlig@novell.com>
* Fix to Xen NAT network scripts for Debian.Keir Fraser2008-02-021-1/+1
| | | | | | | | | | | Xen recently (changeset 16873:86c32269ba60) started looking for a DHCP defaults file in /etc/sysconfig/dhcpd or /etc/defaults/dhcp. Debian (lenny) puts this file in a different place though: /etc/default/dhcp3-server. I added this location to Xen's search path. From: Michael Abd-El-Malek <mabdelmalek@cmu.edu> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Remove outdated comments concerning Xen API in xend configuration file.Keir Fraser2008-01-251-3/+1
| | | | Signed-off-by: Jim Fehlig <jfehlig@novell.com>
* Fix losetup -r flag when we specify 'w!' for the disk mode.Keir Fraser2008-01-251-1/+1
| | | | | From: Zhigang Wang <zhigang.x.wang@oracle.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* block scripts: use fatal() in xen-hotplug-common.sh if the file does not exist.Keir Fraser2008-01-241-3/+3
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* network-nat: Fix NAT scripts.Keir Fraser2008-01-243-5/+52
| | | | Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
* Revert network-nat script changes introduced by 16739:33dcf04d77152.Keir Fraser2008-01-181-3/+3
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* network scripts: SUSE has sensible use of ifup nowadaysKeir Fraser2008-01-171-16/+1
| | | | | | | | While wading through the patches made to Xen by OpenSUSE in their [s]rpm, I found that they have removed various special casing for ifup on ther distribution. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools/docs: Fix example and default IP addresses.Keir Fraser2008-01-174-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In various places in documentation and code, IP addresses are provided as examples, defaults, or dummy configuration. In general the specific IP addresses used in Xen are not always appropriate. (For example, 1.2.3.4 is used in a few places!) The following addresses should be used: * For examples and documentation, 192.0.2.0/24. (See RFC3330.) * For defaults for private networks, a random network from RFC1918. I have randomly selected 172.30.206.0/24 for this purpose and documented this in at the only registry I know of, www.ucam.org/cam-grin. This network should henceforth be used for default configurations of local bridges, test networks, etc. in Xen tools. The following addresses should NOT be used: * 10.0.*.*, 10.1.*.*, 192.168.0.*, 192.168.1.*, etc. Using these addresses gives greatly increased likelihood of collision, as ignorant network administrators and reckless middlebox vendors often pick networks from the bottom of 10/8 and 192.168/16. * 169.254.*.*. These are reserved for zeroconf (ad-hoc networking) and should not be used for Xen private networks, bridges, etc., etc. Use of these addresses by Xen scripts causes trouble on hosts (eg laptops) which find themselves in ad-hoc networking environments. I think this is not hypothetical (!) since at least one Linux distribution have specific code to detect this case and cause Xen startup to fail iff the host already has an external zeroconf address. * 1.2.3.4. WTF !? I have also used 127.0.255.255 in one place where apparently a dummy address is needed (some Linux kernels won't accept a lack of an NFS server address). If 127.0.255.255 is mistakenly used it is unlikely to do any damage to real traffic even if it does escape into the network at large. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Fix network-bridge shell quoting.Keir Fraser2008-01-101-2/+2
| | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Handle netdev secondary addresses and labelsKeir Fraser2008-01-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the network-bridge logic to correctly transfer secondary IP address from $netdev to $bridge. e.g. if you add an secondary address/label/alias with: $> ip addr add 172.31.0.200/24 dev eth0 label eth0:00 then, "ip addr show dev eth0" gives e.g.: inet 172.31.0.10/24 brd 172.31.0.255 scope global eth0 inet 172.31.0.200/24 scope global secondary eth0:00 and transfer_addrs() tries to execute: ip addr add 172.31.0.10/24 brd 172.31.0.255 scope global dev tmpbridge ip addr add 172.31.0.200/24 scope global secondary dev tmpbridge:00 which causes the sript to fail because: 1) The device tmpbridge:00 doesn't exist 2) The "secondary" flag isn't valid This patch fixes the sed commands to instead give: ip addr add 172.31.0.10/24 brd 172.31.0.255 scope global dev tmpbridge label tmpbridge ip addr add 172.31.0.200/24 scope global dev tmpbridge label tmpbridge:00 Signed-off-by: Mark McLoughlin <markmc@redhat.com>