Commit Graph
1529 Commits
Author SHA1 Message Date
Ewan Mellor a81b06e66a Import the Xend portion of xen-unstable changeset
11839:328606e0705f0341bebda14cdd17962e463868e8.

Use the name of the title of the system to boot into (instead of the
kernel version) to determine where to make the entry into the grub
configuration file.

Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-20 09:32:16 +01:00
Ewan Mellor f652cfbe00 Raise an exception if blkdev_name_to_number fails, to improve the error message.
Fix came from Glauber de Oliveira Costa, and is one half of xen-unstable
11831:f5321161c649fe4f07027250c4a1f3c4b5fc2ed9.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 17:58:00 +01:00
kfraser@localhost.localdomain 6b24e654ee [XM] Fix 'xm help' when called on a command-name prefix.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-10-05 16:17:06 +01:00
Ewan Mellor 56906a3ab2 [XEND] Fix pygrub when run server-side on a domain with blktap disks.
Equivalent fix to xen-unstable 11706:bf0deb09facd847db87ab59ed377db6eb0f5a3ad.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 17:45:43 +01:00
Ewan Mellor 83e445d75e Import the Xend portion of xen-unstable changeset 11704:a95dfbc8dca8ecddcb9be51d78f446b0fa461892.
[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
kaf24@firebug.cl.cam.ac.uk 87779442e9 [XEND] If 'vncused' is set, it won't specify an explicit display num to QEMU.
In the current xen-unstable.hg tree tough, XenD will always pass an
explicit '-vnc <display num>' parameter to qemu-dm, regardless of
whether 'vncunused' is set. So the 'vncunused' bit only takes effect
if the explicitly passed display already has something bound to it.

Consider what happens when the host machine has been up for a while -
the Domain ID's start getting very high. This plays havoc with
firewalls - for example an admin may know that only 10 domains will
ever be running at any time, so they should be able to simply open up
ports 5900 -> 5910.

The correct behaviour should be:

   - If 'vncdisplay' is set, use that explicit display
   - If 'vncunused' is set non-zero, allocate first port about 5900
   - Allocate fixed port based on domain-ID

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-10-04 09:42:41 +01:00
Alastair Tse b4c2b3ae59 [XM] Fix rmlabel filename assignment
The patch fixes a bug in the rmlabel tool.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-03 11:24:48 +01:00
Alastair Tse 2763180650 [XM] Fix missing security check in block-attach
This patch fixes an indentation error in main.py. The effect of this
bug is that block-attach does not check labels if the ACM is
active. This bug slipped in with change set 11572_:_ ad22c711ccb7
<http://xenbits.xensource.com/xen-unstable.hg?cs=ad22c711ccb7>.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-10-03 10:48:07 +01:00
Ewan Mellor c702ebb631 These are the proposed changes to XenD that adapt vTPM handling to the
document and the implementation in the library. It's implementation is
now similar to VIF and VBD. The implementation passes the first 2 tests
in the vTPM- related tests in the xm-test suite.

Minor conflict resolution by Ewan Mellor.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-28 17:12:04 +01:00
Ewan Mellor d9f69f287c The structure fields should be exactly as documented, including case matching.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 12:15:40 +01:00
Ewan Mellor 370c459ec5 Implement new VTPM model.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 12:14:47 +01:00
Alastair Tse 4ec3bd8ed9 Some updates to the README fixing the kernel.hvm devices config 2006-10-27 16:46:27 +01:00
Alastair Tse ece9a51698 [XEND] Fix some missing variables in XendDomain caught by pylint.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-27 16:45:40 +01:00
Alastair Tse 8fa283dfde [XEND] Fix missing SR references in XendAPI
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-27 16:44:15 +01:00
Alastair Tse b6ee4d8a3f A survey of all the supported configuration options in Xend and also
what they map to in the Xen API.
2006-10-26 19:43:11 +01:00
Alastair Tse a5f7c42094 [XEND] Add more API implementations, add sched_id_get to xc.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-26 17:59:49 +01:00
Ewan Mellor 4ed8357baa Import 83:b569bb25a8f08a15381b022ee143d7f205976604 from xen-api.hg, minus the
Makefile patch.

[XEND] Remove blank image file generation for QCOW images.

There is no need for a blank backing store, although this means we
have to find a new way to determine how much virtual disk space is
free in the StorageRepository.

Beginnings to attempt to supoprt HVM guests.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-01 10:12:13 +00:00
Alastair Tse c09512317b [XENAPI] Add shell option for xapi.py so it can remember sessions.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-20 13:35:25 +01:00
Alastair Tse d99b11a197 [XEND] Fix KB allocation in XendStorageRepository
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-20 13:33:55 +01:00
Alastair Tse 9856f07de5 [XEND] Remove mistake of not checking xenstore's name entry for Dom0
Also fix logic with detecting whether devid is an int or not because
xm passes this as a string all the time.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-19 17:48:54 +01:00
Alastair Tse fbd802c6fe [XEND] Add some docstrings about XendAuthSessions
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-19 17:46:54 +01:00
Alastair Tse 4bbf7eafc8 [XM] Fix TypeError in exception handler if there is no res_label.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-19 17:46:08 +01:00
Alastair Tse 03e7cd14f3 [XEND] Switch to PAM authentication for login sessions
[XENAPI] Fix case difference in API for Host.* functions

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-19 15:37:16 +01:00
kfraser@localhost.localdomain 4b1bbbba6c [ACM] Fix the resource representations in the resource_label
file. Without this patch, multiple representations of the same
resource can co-exist in the resource label file and lead to errors
during operation.

Ensures that all resource file names are stored with absolute
path name and are unique. Setting labels of phy-resources, relative
paths will automatically be pre-pended with '/dev/'; labeling
file-resources with relative paths will raise an error.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-10-18 17:54:58 +01:00
Alastair Tse 84b4b812e6 [SOLARIS] Xen daemons are managed separately, so we need a way to start
just xend, and we need to disable xend's self-restarter.

Merged with Xen API Tree.

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-19 11:36:49 +01:00
Alastair Tse d34bce1e08 [SOLARIS] The hotplug scripts live in a different place on Solaris.
Add osdep.py module

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-19 11:35:09 +01:00
Alastair Tse 48254bc2b0 [SOLARIS] The hotplug scripts live in a different place on Solaris.
Merged with Xen API Tree

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-19 11:33:45 +01:00
kfraser@localhost.localdomain 04fee27f12 [SOLARIS] Add the correct machine name for Solaris to arch.py.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 18:23:24 +01:00
kfraser@localhost.localdomain a5d51aa564 [XEND] Check for and fail on non-existent floppy-drive file when starting HVM guest.
The qemu device model hangs when a non-existent floppy file is passed
via 'fda' or 'fdb'. The attached patch checks whether the floppy file
exists and raises an error if it does not.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-15 09:19:26 +01:00
kfraser@localhost.localdomain c139b7ee78 [XEND] Add missing line from changeset 11653:3b7e11cbeb940
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-10 16:02:30 +01:00
Alastair Tse 6da43d0bd8 [XEND] Re-add the tap prefix because it is needed.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-13 18:36:25 +01:00
Alastair Tse 68784417db [XENAPI] Make vm-destroy consistent with API naming. Moved what is
known as xm destroy to vm-shutdown --force.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-13 17:34:13 +01:00
Alastair Tse 819c183415 [XEND] Remove extra tap: prefix for device uname.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-13 17:33:34 +01:00
Alastair Tse f1587234c9 [XEND] Fix bugs in vbd_create logic when handling VDIs
Attempt to handle 'tap' devices as 'vbd' devices even though the
internal configuration has no idea that 'tap' is a subclass of 'vbd'.

Add option parsing to vbd-create and vdi-create so you can override
the configuration file options.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-13 17:17:45 +01:00
Alastair Tse 5b13f3ae06 [XEND] Fix some bad names left behind while converting all storage to
bytes rather than KB.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-13 15:38:13 +01:00
Alastair Tse 5d179b7561 [XEND] XendVDI saves configuration on change.
Added a base class called AutoSaveObject that will attempt to call
save_config() if any attribute in the object changes. It isn't
particularly efficient, but we do not expect VDI to change much.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-13 15:34:01 +01:00
Alastair Tse 76b24ff4e2 [XEND] Updates to SR and VDI implementations
* Moved xenapi transport util method, stringify to xen.util.xmlrpclib2
* XenVDI now preserves configuration to an XML-ish file
* Update Xen API's class names to be all lowercase
* Update get_by_label to get_by_name_label and return sets as the API
  expects.
* Add support for VBD creation with a VDI reference.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-13 15:13:21 +01:00
Alastair Tse 2556368450 [XEND] Adding API stub generation to XendAPI + SR implementation for
Xen API.

Fixed *get_by_label functions to return a Set rather than only one
result.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-12 18:51:17 +01:00
Alastair Tse 6450b246e1 [XEND] Beginnings of the Xend Storage Repository implementation.
Currently it is a basic repository that just creates images on demand
and wraps them as VDIs. Rudimentary support for querying the available
space using 'df'. Creates images via 'qcow-create' after creating an
empty image.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-12 18:01:32 +01:00
Alastair Tse 5f92a12ad6 [XEND] Removing this file from version control as it is now
autogenerated via the distutils build script.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-12 18:00:01 +01:00
Alastair Tse 2f88aa3aa6 [XEND] Fix interpretation of stringified 64 bit ints in
XendConfig. Rename Xen API classes, "Host" and "Host_CPU" to their
lowercase equivalent.

Apparent confusion in the docs as to what they should be named.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-12 12:30:01 +01:00
Alastair Tse a69280ed5e [XEND] Add some sort of rudimentary version embedding into the source
so we can report the Xend version number as opposed to Xen's version
number.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-12 12:27:56 +01:00
Alastair Tse 7d5ba9b430 [XEND] Conform to Xen API XMLRPC Wire Protocol Customisation
1. Int(s) all have to be String(s).
2. Enums are not transmitted as Ints, but as Descriptive Strings.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 22:50:29 +01:00
Alastair Tse 16b57ef12c [XENAPI] Adding some rudimentary documentation about what has changed.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 18:01:08 +01:00
Alastair Tse 1e66d26cbd [XEND] Save device updates to VM configuration via Xen API
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 17:34:49 +01:00
Alastair Tse 4abcfe99ad [XEND] Fix check for whether domain is running.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 16:40:39 +01:00
Alastair Tse fde78b356e [XENAPI] Support for VBD/VIF info listing in vm-list --long
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 16:30:35 +01:00
Alastair Tse 943f4e6d26 [XEND] Proper support for devices with UUID. Removing old workaround
with augmented VM UUIDs with devids.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 16:27:06 +01:00
Alastair Tse e9fce87749 [XENAPI] Add missing function names. Proper sub command help messages.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 12:46:46 +01:00
Alastair Tse 2ebaf7314b [XENAPI] Pretty print error messages, insert simple argument parsing
framework

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 12:31:24 +01:00