Commit Graph
1702 Commits
Author SHA1 Message Date
Alastair Tse ea1248436a [XEND] Reapply fix for ever expanding kernel_args in XendConfig
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-12-01 13:55:28 +00:00
Alastair Tse 2e23acca55 [XEND] Ensure config value types in XendConfig
Add definitions of what we expect the types to be for the values in
XendConfig and apply them when parsing SXP where all values are either
strings or list.

Also fix missing stdvga in HVM config.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-12-01 13:53:04 +00:00
Ewan Mellor 4bdbd7644a Actually return something from bool0.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-01 13:25:33 +00:00
Steven Smith e812bdf5c4 Merge. 2006-12-01 13:12:41 +00:00
Ewan Mellor 7be5d5173c Set localtime, enable_audio, clock_offset, and std_vga back to being bools, not
ints.  This is a recent breakage.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-01 13:08:36 +00:00
Ewan Mellor 2f61385eed Added log message for when a VM is deleted.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-01 13:07:19 +00:00
Ewan Mellor c7a44ef04b Include the rotated xend.log.X in the bug report.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-01 13:06:15 +00:00
Steven Smith e9167464c4 [PVFB][TOOLS] Fix save/restore for domains with PV framebuffers.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-12-01 12:38:41 +00:00
Steven Smith 4ae8d4056e [TOOLS][PVFB] Avoid zombie framebuffer backends.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-12-01 12:20:12 +00:00
Steven Smith f44748c2b6 [TOOLS] Remove some dead code.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-12-01 12:09:10 +00:00
Steven Smith becaa718c2 Merge. 2006-12-01 12:03:38 +00:00
Steven Smith 6bebf0edee [PVFB][TOOLS] Change the configuration syntax for PVFB backends to more
closely match that of other devices.

This involves moving the logic for backend creation out of the image
handlers and in to the device handler, which is a much more sensible
place for it.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-12-01 11:49:30 +00:00
Ewan Mellor eb1eb71059 Tidy up the creation of directories that Xend needs. This avoids potential
races in this creation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-01 11:32:32 +00:00
Alastair Tse bd8806fb71 [XEND] More fixes for HVM device configuration parsing
Removed duplicated acpi option, added missing stdvga option. Do not
output empty configurations in image sxp. Remove bug with vcpus
passing in device model.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-12-01 11:07:22 +00:00
Alastair Tse 515db7a43a [XEND] Fix missing serial and localtime args in device model for HVM
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-12-01 10:47:57 +00:00
Steven Smith a5ae44fcdf This is Anthony Liguori's virtual framebuffer forward ported and
extensively hacked based on feedback from xen-devel.

Its architecture is comparable to the common split device driver
architecture: xenfb and xenkbd modules serve as frontend in domU, and
the user space vncfb or sdlfb process serves as backend in dom0.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2006-12-01 09:48:32 +00:00
Ewan Mellor 6a7c1b4ee0 Fix default for the authentication on the Xen-API server -- the default should
be PAM, not none!

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-30 20:16:54 +00:00
Ewan Mellor f99727ee65 Fix managed domain rebooting by only complaining about a VM name conflict if
the VM UUID conflicts as well.

Also, remove the previous_restart_time node when explicitly rebooting a guest --
the user ought to be able to drive reboots faster than the safety catch.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-30 20:07:58 +00:00
Ewan Mellor be61b6ee05 Fix registration on managed domains on xend restart.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-30 19:11:51 +00:00
Ewan Mellor 69f4bf70a0 Fix HVM shutdown when xend is restarted.
Added a recreate call to ImageHandler, allowing the subclasses of that to
hook into the code that runs when xend restarts.  This allows us in particular
to reregister the watches for HVM shutdown, and read the PID of qemu-dm from
the store.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-30 18:08:34 +00:00
Ewan Mellor 9523b51469 Fix-up reference to name_label.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-30 18:05:19 +00:00
Ewan Mellor ac5ea23a6d Reinstate the reboot-feature code that was accidentally lost as part of the
merge in changeset 12189.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-30 17:28:51 +00:00
kfraser@localhost.localdomain 9cac7135b1 [LIBXC] Fix Solaris build: Use XC_PAGE_SIZE not PAGE_SIZE.
Signed-off-by: John Levon <john.levon@sun.com>
2006-11-30 17:36:03 +00:00
Alastair Tse c016f643db [XEND] Fix HVM configuration parsing typo for certain cfg values.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 15:41:35 +00:00
Alastair Tse 16651e108b [XEND] Catch TypeErrors when unexpected SXP is encountered.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 15:19:01 +00:00
Alastair Tse 50453c47bc [XEND] Fix Xen API attribute access to be robust to missing keys.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 14:53:14 +00:00
Alastair Tse 4b08ed154c [XEND] Checks to make sure the image type is valid in configuration
The 'builder' (eg. image type) should either be 'hvm' or 'linux' as
image.py only supports these at the moment.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 14:51:46 +00:00
Alastair Tse 3c8100f8d9 [XENAPI] Update debugging scripts to support vbd_list
Add function to list all vbds attached to a VM.
Update VM config builder to specify the default as 'linux'

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 14:50:27 +00:00
Alastair Tse 75753a5ac9 [XEND] Rename Xen API methods to match case of the API documentation
Get rid of the case skewing in XendAPI.
Remove _to_xml methods because it has been removed from the latest API
docs.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 14:48:42 +00:00
Alastair Tse 71710a8321 [XEND] Fix hidden vcpu state when calling xm-list
Stores the vcpus number in xenstore so it is preserved on xend
restart.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 14:46:45 +00:00
Alastair Tse 7dc9afed06 [XEND] Remove SXP from most parts of Xend.
Attempt to get rid of most SXP dependency in Xend except in
configuration parsing and certain places where it is
required.

XendConfig now stores configuration options similar to Xen API VM
and devices attributes but exports an SXP version to certain things
like xm and XendCheckpoint. All access to VM and device attributes
should now use Python dictionaries rather than the SXP parser.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 14:44:58 +00:00
Ewan Mellor 001bc372b4 Fix xm new -F -- this fix was recently introduced for xm create.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 12:16:19 +00:00
Ewan Mellor dcf51b3413 Move the assert under the protection of the in_transaction flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 12:15:45 +00:00
Ewan Mellor 26c7d28635 Silence log message when trying to unregister a watch that's already been
unregistered -- this is not a problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 12:14:45 +00:00
Ewan Mellor bf9423a1fd Diagnose a failure to open the xend-debug.log, and make the /var/log/xen
directory on startup, which was the most common reason to fail.
Closes bug #823.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 10:56:02 +00:00
Ewan Mellor b496644a2b A trivial fix. login_unconditionally needs to be called with
self.login_unconditionally to avoid  "global name
'login_unconditionally' is not defined"

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-28 18:41:42 +00:00
Ewan Mellor ea3b5838d8 Wait for device-bringup inside domain_start, outside the scope of the
domains_lock.  This makes the VM.start call blocking, but allows xm list to
work while it is blocked.  Move the handling of start_paused out of
XendDomainInfo.start as part of this.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 18:00:45 +00:00
Ewan Mellor 592da6d9ee Plumb the "start_paused" flag through for VM.start and VM.resume. Do not
unpause the VM on start by default.  This should fix problems seen recently
whereby devices are not attached to the VM by the time they boot, as
xm create was expecting to be able to wait for the devices before unpausing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 17:28:43 +00:00
jfehlig@jfehlig2.provo.novell.com f7bd1801f8 Fix casing of various functions in XendAPI class.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2006-11-14 15:36:41 -07:00
Ewan Mellor caf550ed59 Dummy implementation of get_platform_keymap, so that the API layer doesn't
complain.  This is going to change soon, I expect.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 16:23:05 +00:00
Ewan Mellor 44755869f7 Bump xend_config_format to 3, to indicate that the lifecycle patches are
available.

Better version mechanisms will be forthcoming!

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 14:24:20 +00:00
Ewan Mellor a6878f4ab4 Added xm list --state option, to select VMs with a particular state. Make
this handled by a new message (xend.domains_with_state) and make xend.domains
equivalent to xend.domains_with_state(running).  This restores the Xen 3.0.3
semantics of xend.domains.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 13:34:15 +00:00
Ewan Mellor 8cff4a9583 Do not display -1 as the domid when a VM is not running -- simply leave the
column blank.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 13:32:07 +00:00
Ewan Mellor dcce57e533 Fix missing import.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 11:43:43 +00:00
Ewan Mellor 8e37e2b661 Don't bail if the VM renaming at the end of saving doesn't succeed -- we
expect a failure if this is a localhost migration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 11:35:10 +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 46873848fb Fix log message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 10:24:52 +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
Ewan Mellor 1c06df3dbb Cope with non-integer domids (i.e. None) in the error message surrounding
save/restore.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-27 20:04:20 +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