Commit Graph
465 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain f0a8a3f3fb [VTPM] Make vTPM hotplug scripts use the UUID of the vTPM instance
Make the vTPM hotplug script use the UUID of the vTPM instance for
associating it with its instance number rather than the name of the
domain.
Also change the cleanup in the xm test to use the atexit mechanism
rather than explicitly calling a function to clean up.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-17 10:33:26 +01:00
kfraser@localhost.localdomain c4d1247d00 hvm: Add global default keymap setting
Add global default keymap setting to be used when a VM does not have
a keymap configuration set.

Signed-off-by: Pat Campbell <plc@novell.com>
2007-07-06 16:16:57 +01:00
kfraser@localhost.localdomain 9848d66b4e xendomains: Better sanity checking of potetntial save records.
Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
2007-07-03 10:12:22 +01:00
Keir Fraser 1b3a517175 Make network-bridge fail on NFS or iscsi root.
Since setting up bridging involves bringing down the network interface,
bridging clearly isn't compatible with the likes of NFS or iSCSI root.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-07-01 22:20:46 +01:00
Keir Fraser caa6c26fb3 xendomains: Ignore 'lost+found' when finding saved dom images.
Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
2007-07-01 22:16:41 +01:00
kfraser@localhost.localdomain 477ac069bc tools: Allow xendomains to handle domain names >16 characters
The xendomains init script parses the output of "xm list", and
since xm list restricts the length of domains to 16 characters the
xendomain script cannot handle long domain names.

This patch makesit parse the output of "xm list -l" instead.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-06-19 16:29:22 +01:00
kfraser@localhost.localdomain fbb49d2b0d Synchronise xend-config file comments w.r.t. networking.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-05 17:05:13 +01:00
kfraser@localhost.localdomain 06809a93ad [NET] Remove netloop from network bridge init scripts.
The scripts are partly based on work by Daniel P. Berrange.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2007-06-04 11:01:46 +01:00
Ewan Mellor 1b0a8bb57e Added xeninfo.pl, a script for collecting statistics from Xen hosts using the
Xen-API.  This also serves as a good example of the use of XML::RPC::Client
with the Xen-API.

By Ingard Mevåg <ingard [at] mevaag [dot] no>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-05-16 23:12:16 +01:00
kfraser@localhost.localdomain 07f8d1fdbf Fix TPM support in HVM domains
Signed-off-by:  Joseph Cihula <joseph.cihula@intel.com>
Signed-off-by:  Peter Yang <peisen.yang@intel.com>
2007-05-15 10:50:09 +01:00
kfraser@localhost.localdomain 96a333869f Add INIT INFO block to example init.d/xend file.
Without it SuSE (and others?) will start xend before the
network.
Signed-off-by: Robert Valentan <R.Valentan@solid-soft.at>
2007-04-27 16:21:20 +01:00
kfraser@localhost.localdomain 40bb2e5fea HVM: Allow qemu monitor to be configured in domain config file.
From: Yongkang You <yongkang.you@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-12 13:21:26 +01:00
Christian Limpach 58fcf598b5 [setup] Fix old style bridge setup.
Also only warn that we ran out of veth interfaces if we have any at all.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-04-11 19:04:10 +01:00
Christian Limpach 2bdbd3e193 [hvm] Keep track of time offset between domain time and dom0 time.
On each rtc time update from the hvm domain, we send an ioreq request
to qemu which then updates the time offset xenstore entry.  The time
offset is preserved across reboot and can be set on domain creation
by setting the rtc_timeoffset variable in a config file.

From: Andrei Petrov <andrei.petrov@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-04-03 13:22:37 +01:00
Tom Wilkie c3df8d6442 Add config files for testing xm via XendAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-30 11:55:34 +01:00
Ewan Mellor b843dd7af8 Added HTTPS support to Xend. There are new configuration options for the
Xen-API and legacy XML-RPC servers to set key and certificate files, and
xm simply needs to be configured use an https rather than an http URL.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 23:23:01 +01:00
kfraser@localhost.localdomain 4092caa643 Fix init.d/xendomains startup script so log_error and log_success
will also work on redhat-based distributions before RHEL 5. See
discussion "xendomains init script" about a year ago on xen-devel.

Signed-off-by: Florian Kirstein <ray@ray.net>
2007-02-28 18:06:56 +00:00
kfraser@localhost.localdomain a8d5290171 Improve hotplug script error reporting via xenstore.
Use this to detect and report up-front in vif-bridge script whether
the bridge device exists or not.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-02-07 16:22:55 +00:00
Tim Deegan b364d04f1d Revert 13805: losetup -r is not portable
which breaks CD support on Debian Sarge, FC4, probably others.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-07 12:25:18 +00:00
Ewan Mellor 85a6129e55 Pass the -r flag to losetup for read-only devices.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-02-06 15:35:18 +00:00
Alastair Tse a68b530fa7 [XEND] Allow TCP XMLRPC address:port to be configured, if enabled.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-25 11:58:00 +00:00
kfraser@localhost.localdomain 91421c3cf0 Fix error message in network-bridge script.
From: Luke Crawford <lsc@prgmr.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-24 10:22:06 +00:00
kfraser@localhost.localdomain 39a368aba9 VTPM_TOOLS: Added support for QEMU to communicate with vTPM over UNIX
socket for HVM guests.

Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
2007-01-22 15:59:41 +00:00
kfraser@localhost.localdomain 8c338f84ea [LINUX] ipv6: Disable addrconf on Xen bridge device
The ipv6-no-autoconf patch didn't disable IPv6 addrconf completely.
This means that the Xen bridge device still interfered with normal
IPv6 operation by engaging the IPv6 network with a bogus MAC address.

For details please refer to
        https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=200360

The following patch completely disables IPv6 on the Xen bridge device
by temporarily setting the MTU to a value less than the minimum
allowed for IPv6.

Upstream will provide a cleaner way to disable IPv6 addrconf in
future, possibly in the form of a proc sysctl.  Of course if the Xen
loopback device is removed it would render this change unnecessary.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2007-01-12 15:23:07 +00:00
kfraser@localhost.localdomain 8c8d60ad1a Add vfb config examples.
From: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-12 14:43:50 +00:00
Ewan Mellor 2b1f4094a6 Source a file called 'vtpm-impl.alt' if it exists.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-11 18:55:18 +00:00
Alastair Tse b2bfd9596f Switch hotplug scripts to use /bin/bash rather than /bin/sh.
Hotplug scripts include certain bash-isms that are not supported under
some distros' default shell (eg. Ubuntu 6.10's use of dash)

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-04 14:25:58 +00:00
Ewan Mellor 6e43af518c Copy the xm configuration file into the distribution. Comment-out the Xen-API
configuration therein, preserving the default behaviour.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-27 16:16:10 +00:00
Tim Deegan 6f7ff73d57 [HVM] Add Etherboot option ROM, for network-booting HVM guests.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-12-20 11:59:54 +00:00
kfraser@localhost.localdomain 2267ec4e4a Fix typos in the external-device migrate script. 2006-12-14 10:01:17 +00:00
Ewan Mellor a1aafcf306 This patch checks the contents of XENDOMAINS_SAVE before the restore
process begins, and prevents xendomains from attempting to start any
domain that appears there, whether the domain started successfully or
not.

Signed off by: Hugh Brock <hbrock@redhat.com>
2006-12-07 12:23:35 +00:00
Ewan Mellor 8edc7b1c06 Added support for configuration file for xm, and use that to specify
contact and authentication details for the Xen-API server.

The default behaviour is still to use the existing legacy XML-RPC server.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 11:02:32 +00:00
Ewan Mellor d529c3d93b Added rudimentary "xend reload" functionality. This allows you to reconfigure
the services offered by Xend, without restarting the daemon itself.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-04 13:37:53 +00:00
kfraser@localhost.localdomain b83e447099 Fix for network routing setup. Enables proxy arp on dom0's externally visible interface.
Signed-off-by: H. Andres Lagar-Cavilla <andreslc@cs.toronto.edu>
2006-11-29 10:57:30 +00:00
Ewan Mellor 2e873d3d17 Added configuration for authentication through Xen-API -- it can now be set
to use PAM, or to be turned off entirely, on a listener by listener basis.

Listen on a different unix domain socket for the Xen-API server, so that it
can co-exist with the others.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 11:31:46 +00:00
Ewan Mellor 027a790317 Implement an "allowed hosts" mechanism for the XML-RPC server layer, using
code from the relocation protocol handling and some plumbing.  Add a new
configuration entry for the Xen-API server, including use of this mechanism.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 10:23:34 +00:00
kfraser@localhost.localdomain da38d1f64b [HVM] Re-introduce the 'apic' configuration option, default to 1.
Also simplify the HVM builder interface by doing more work in
the python wrapper, and fix mapping of shared_info page after the
change to map foreign pages by GMFN rather than MFN.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-27 17:49:41 +00:00
Ewan Mellor 2dd30a7333 Fix iptable handling when multiple addresses have been specified.
From Adrian Chadd <adrian@creative.net.au>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-21 15:03:09 +00:00
kasai.takanori@jp.fujitsu.com 1dea421011 Add example of keyboard layout
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
2006-11-21 09:26:43 +00:00
kfraser@localhost.localdomain d857ed522c [BLKTAP] Fix hotplug script to check if specified file exists.
Now users will see the following error:

[root@bebop ~]# xm create -c 128
Using config file "/etc/xen/128".
Error: Device 51713 (tap) could not be connected.
/tmp/128.img does not exist

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2006-11-09 13:43:21 +00:00
Ewan Mellor ed5bb56602 Replace uses of [ ... == ... ] with the POSIX-legal single-equals. Tidy up
external-device-migrate script in its handling of parameters.

Patch from Roland Illig <roland.illig@gmx.de>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-08 13:22:08 +00:00
kaf24@localhost.localdomain 6bc01e4efd [XEN] Replace hvm_setup_platform() with hvm_domain_initialise()
and extra code in hvm_vcpu_initialise(). Remove 'apic' config
option -- HVM CPUs will always have an APIC (which should be
set up in virtual wire mode for backward compatibility, just as
in a real system).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-05 20:17:40 +00:00
Ewan Mellor 343c821d10 Fix comment.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 15:56:22 +00:00
kfraser@localhost.localdomain 6c96f33316 [HVM] Implement password authentication of VNC connections.
The specification is as mentioned at
http://lists.xensource.com/archives/html/xen-devel/2006-09/msg00666.html
(However, password came to describe plain text)

The difference is follows.
- protocol_authtype() without the necessity was deleted.
- The check on the protocol version was added.
- And, some small modification.

Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
2006-10-20 09:50:09 +01:00
kfraser@localhost.localdomain 1370e6c9e0 [TPM] Check the existence of the xenstore path before trying to read from it.
This prevents an error from being logged. Use the wrapped command for
reading from the xenstore instead of the native one.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-18 18:37:18 +01:00
kfraser@localhost.localdomain 6311dc03da Clean up duplication of 'install' macros in the Makefiles.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 15:57:05 +01:00
Christian Limpach 15a8e33ac2 [xend/hotplug] Remove happy gun logging.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-10-10 13:48:34 +01:00
Christian Limpach 56525bb669 [HVM/vncserver] Implement a 'vnclisten' option to limit the interface
that the VNC server from qemu listens on. 

Defaults to only listen on 127.0.0.1

The old behaviour (listen on all interfaces) can be restored, by
- changing the system-wide default in /etc/xen/xend-config.sxp by adding:
(vnc-listen '0.0.0.0')
- changing individual domain config files by adding:
vnclisten="0.0.0.0"

Also allows specifying the hostname associated with an interface to limit
to that interface.

Signed-off-by:  Daniel P. Berrange <berrange@redhat.com>
2006-10-05 14:53:29 +01:00
Alastair Tse a1abe891a5 [TOOLS] Fix xendomains init.d script DOG PIG confusion.
Fix typos in xendomains where we actually mean WDOG_PID.
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=754

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-29 11:25:25 +01:00
Andrew Warfield 1c0ee21d44 [BLKTAP] have udev create the device for blktap
This patch makes blktap Do The Right Thing(TM).  It allows udev to
create the /dev/xen/blktap[0-9] devices.

It creates a sysfs class called "xen".  This part may later be placed
someplace else, but currently blktap is the only user so it is placed in
the blktap code.

When blktap is initialized, a blktap0 sysfs class device is made.  The
other devices blktapX (X > 0) are made when the BLKTAP_IOCTL_NEWINTF
ioctl is called.  This way we don't flood the sysfs and /dev/xen with
unnecessary devices.

I added a rule in the xen-backend.rules to allow for udev to create the
blktap devices.


With this, we can really remove the code to search and create the
/dev/xen/blktap[0-9]*, but I'll leave it in for now. With the use of
udev, we really should remove that code as well as the code for creating
the evtchn device.  udev works for both of these now.  But that removal
will have to be in another patch.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
2006-09-28 13:44:00 -07:00