Commit Graph
1656 Commits
Author SHA1 Message Date
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
Ewan Mellor 7a914ac673 When suspending and resuming, look up the managed path using the domain's UUID.
Add a resumed domain to the self.domains list after XendCheckpoint.restore,
to ensure that it does not get recreated immediately afterwards.

Perform domain_resume under the domains_lock, given that the domain needs to
be added.

These fixes together should fix xm suspend and xm resume.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-27 14:52:41 +00:00
Ewan Mellor 283b2fa4e8 Don't send the old state string for halted domains -- it doesn't make any
sense, and we don't want to see state flags linger.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-27 14:48:38 +00:00
Ewan Mellor b12b62c2fd Reset the domain name after the save completes. This is necessary, now that
we have persistent domains.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-27 14:47:23 +00:00
Ewan Mellor b05e41a16b Add xm resume to the commands list.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-27 14:45:44 +00:00
Ewan Mellor ba2055b085 Fix typo.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-27 12:53:40 +00:00
Ewan Mellor 168c198485 Do not bother waiting for the old HttpServer and UnixHttpServer threads when
shutting down -- they don't have exit handling themselves and ought to just
be made daemon threads.

Added some logging to dialog shutdown problems.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-27 12:50:30 +00:00
Ewan Mellor a057ff078b Fix vncdisplay handling.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-24 14:05:59 +00:00
Brendan Cully acc3cc66f7 Add -p/--paused flag to xm restore.
When --paused is specified, the domain is paused after it is loaded.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2006-11-21 18:09:23 -08:00
jfehlig@jfehlig2.provo.novell.com 3206f975b8 The legacy apis return a value of None on success, which was being converted to a value of 'nil' in the xmlrpc response.
The Xen IPI spec states that destroy, hard_shutdown, pause, resume, start, suspend, and unpause return void.  This patch makes it so and permits proper parsing of the response by clients (libxen) that follow the spec.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2006-11-17 16:21:14 -07:00
Ewan Mellor 7b0a6bf9f4 Stop the kernel and ramdisk from being nuked if the kernel_external bootloader
setting is being used.

From Jim Fehlig <jfehlig@novell.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-22 14:01:51 +00:00
Ewan Mellor 3b724073d6 The legacy HTTP entry point for Xend remote access didn't hook the
dump operation for a domain, this patch adds it.

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2006-11-21 17:34:17 +00:00
Ewan Mellor f90beca56e Added an xm console -q flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-21 11:21:20 +00:00
Ewan Mellor 50420def5b This is a refactored version of a previous patch that destroys external
devices' state when a VM configuration file is destroyed. Currently only
the vTPM device's state needs to be explicitly destroyed.
I am also surrounding the saving of the managed domain's configuration
with a try-catch.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-21 10:22:19 +00:00
Ewan Mellor 7443d72fde A small fix to the documentation to reflect recent changes to the
'cfgbootpolicy' command.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-21 10:21:00 +00:00
Ewan Mellor 32562d7bec There is a somewhat trivial issue with XendCheckpoint.py right now in
that it logs everything written to stderr by xc_save and xc_restore as
errors whereas in fact the vast majority of this output is
information/debug (and all actual errors are marked by the string ERROR:
at the start of the message) -- this is confusing to folks looking at
the logs and makes automated log analysis tricky.

Fix is to scan for the ERROR: string and log anything without it using
log.info instead.

Signed-off by: Simon Graham <Simon.Graham@stratus.com>
2006-11-21 10:19:01 +00:00
Ewan Mellor a9df6cf30f Cleanup after the bootloader even if the domain building fails.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-20 16:59:07 +00:00
Alastair Tse edd64e7966 [XEND] Accomodate extra "devices" in SXP that do not have DevControllers
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-17 17:57:49 +00:00
Alastair Tse 13dde37355 [XEND] Revert changes in changeset 12328
Mistakenly reverted some fixes for rebooting, un-reverting.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-17 17:03:59 +00:00
Alastair Tse e1e7aa6e07 [XEND] Fix missing domains on domU reboot.
Fixed regression with rebooting domU caused by the change in handling
syncing state from Xen and Xend.

Added missing implementation for XendDomainInfo.unwatchVm() which
disappeared during a merge.

Added protection for console/vnc-port reading for managed domains.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-17 15:53:29 +00:00
Alastair Tse 90dfddafb5 [XEND] Fix PCI configuration parsing and SXP output
PCI configuration is formatted differently from other device
configurations because of the requirement that all pci devices need to
be present when it is initialised.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-16 13:49:05 +00:00
kasai.takanori@jp.fujitsu.com 654de638ac Add to select keyboard layout
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
2006-11-16 13:13:55 +00:00
kasai.takanori@jp.fujitsu.com 6ed32fb898 Fix of floppy disk configuration check
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
2006-11-16 10:50:21 +00:00
Ewan Mellor d5548a599e This patch improves an usage message about xm dump-core command.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-11-16 10:44:23 +00:00
Ewan Mellor 51c072044f Fix cpu_cap option.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-11-16 10:28:26 +00:00
Ewan Mellor 54e573d0af Improve error message when trying to pause / unpause domain 0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-11-16 10:26:20 +00:00
Ewan Mellor 016e7e1c8c Fix xm migrate error message when trying to migrate domain 0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-11-16 10:25:23 +00:00
Ewan Mellor 563e6b4690 Add the VNC port to the output of xm list --long, if the value has been written
to xenstore by QEMU.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-15 09:44:12 +00:00
Andrew Warfield 650e610eda Fix breakage of blktap device strings from cset 63d1b02dad347e8feb845d8a8b482e251a478164.
Signed-off-by: Andrew Warfield <andy@xensource.com>
2006-11-14 11:20:45 -08:00
Ewan Mellor cbe35a1196 Fix xm block-configure, by allowing the device ID to be unspecified inside
device_configure (in which case it will be specified by the incoming config).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-14 18:52:58 +00:00
jfehlig@jfehlig2.provo.novell.com dedbb36558 Add uuid to host record returned by host_get_record. libxen fails to parse the host record with this field missing.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2006-11-13 17:23:49 -07:00
john.levon@sun.com 335af9950f Parsing 'df' output is extremely non-portable. Replace with a direct statvfs().
Signed-off-by: John Levon <john.levon@sun.com>
2006-11-09 15:03:51 -08:00
Alastair Tse 069672061c [XEND] Add missing parameter and import from XendAPI and XendCheckpoint.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-10 13:09:01 +00:00
Alastair Tse 7bab7df15b [XEND] Make clear the distinction between backendPath and backendRoot
in DevController.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-10 12:49:22 +00:00
Alastair Tse 555e555de8 [XEND][XM] Fix sched-sedf to return the domid to correspond with xc.c
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-10 12:48:18 +00:00
Alastair Tse 16d155c8c6 [XEND] Add missing implementation for host_set_name_{label,description}.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-10 12:46:25 +00:00
Alastair Tse 9f1731ecc0 [XENAPI] Make xapi.py work with modules in /usr/lib/python.
Also Add host_set_name command.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-10 12:44:47 +00:00
Ewan Mellor d53bdf0f83 Server-side capitalisation fixes.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-09 15:43:24 +00:00
Ewan Mellor e5c3d644cd The attached patch implements more of the Xen-API functionality related
to the vTPM.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-09 15:27:32 +00:00
Alastair Tse 361ad9ae8b [XEND] Ignore dying domains when refreshing list of domains.
Also cleanup stored configuration if managed domain is deleted.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-09 16:05:00 +00:00
Alastair Tse 4b7d8cd407 Merge 2006-11-09 13:18:58 +00:00
Alastair Tse 1d5686b8ac [XEND] Fix bug with managed domains not having their state updated.
Also added some protection against corrupted sxp configuration files.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-09 13:16:55 +00:00
Alastair Tse d3b8d73b44 [XEND] Fix domain_lookup_nr to check managed_domains too.
Bug introduced when moving managed domains out of self.domains caused
domain_lookup_nr ignoring managed domains.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-09 12:38:12 +00:00
Alastair Tse c4a7eda6cd [XEND][XM] Move system memory reporting to XendConfig rather than getSysMem.
Remove the additional XMLRPC calls per domain just to get system
memory and instead make sure we update that value and return it via
the SXP that gets returned when xm list is called.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-09 12:36:20 +00:00
kfraser@localhost.localdomain de083f6648 [BLK] Expand number of fake-SCSI VBD volumes supported to 120.
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
2006-11-09 12:07:28 +00:00
Ewan Mellor 218f1a9dc5 Write the /local/domain/<domid>/vm node early in the startup process
(immediately after the domain is created).  QEMU needs this in place when it
starts up, in order to find the VNC password.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-08 18:29:16 +00:00
Ewan Mellor 27c39debdc Ignore dying domains on recreate, and log the fact.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-08 18:27:31 +00:00