Ewan Mellor
bd16434c05
Document existing PIF.create_VLAN, and remove PIF.create (PIFs are implicitly
...
created from the physical host configuration).
Change PIF.name to PIF.device, for consistency with other uses, and make
PIF.VLAN an int.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-01-28 13:40:07 +00:00
kfraser@localhost.localdomain
d0ee673709
Fix 'xm create' and 'xm start' when SEDF scheduler is used.
...
If the Xen is running with the sedf scheduler, the following functions
do not call the domain_sched_credit_set().
- domain_create()
- domain_create_from_dict()
- domain_start()
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com >
2007-01-29 10:55:20 +00:00
kaf24@localhost.localdomain
ab8a76bc76
To avoid problems (hang) when doing migration, the Console Controller
...
needs to implement a (dummy) migrate method.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com >
2007-01-28 09:47:22 +00:00
kaf24@localhost.localdomain
455ce559c5
Allow 'xm create' to set scheduling parameters.
...
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com >
2007-01-28 09:37:18 +00:00
kaf24@localhost.localdomain
4e109e6d68
Reject xm sched-* comands for other than the in-use scheduler.
...
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com >
2007-01-28 09:35:00 +00:00
Alastair Tse
247a0089e5
[XEND] Hook in utilisation statistics into Xen API calls.
...
Change PIF to be indexed by device name rather than the interface
number.
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-26 15:45:51 +00:00
Alastair Tse
68da406e51
[XEND] Floats for not need to be stringified in Xen API.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-26 15:44:41 +00:00
Alastair Tse
f3ada9be62
[XENAPI] Add an example to start HVM guests via the Xen API.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-26 15:42:21 +00:00
Alastair Tse
de2d2231bf
[XENAPI] Make server uri easily configurable via ENV or CLI opts.
...
Add a vm-stat command that just polls a vm for instantaneous statistics.
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-26 15:41:16 +00:00
Alastair Tse
418a137077
[XEND] Add missing ConsoleController.py
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-26 02:44:35 +00:00
Alastair Tse
690dd07a38
[XEND] Preliminary console support in Xen API
...
Made serial/vnc consoles a 'fake' device so that we can take advantage
of storing state information in xenstore.
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-25 18:54:25 +00:00
Alastair Tse
4b3c5bc127
[XEND] Fix HVM guest creation via Xen API
...
Fixed some of the type declarations for HVM devices, add better
handling for type mismatch errors.
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-25 18:50:08 +00:00
Alastair Tse
b41243501b
[XEND] Fix bad patch merge for XendMonitor
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-25 17:00:18 +00:00
Alastair Tse
2f8bdad823
[XEND] Ignore socket.shutdown() exceptions
...
Add further comments about why that shutdown() exists.
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-25 14:52:36 +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
Ewan Mellor
a5ae2bb063
Have the sxp parsing cope when the cpus field is a list, which can happen
...
after a reboot.
From Daniele Palumbo <daniele@retaggio.net >.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-01-25 10:34:17 +00:00
Alastair Tse
f3dac803d3
[XEND] Remove usage of set() in XendMonitor as it is a py2.4+ feature
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-25 10:29:33 +00:00
Alastair Tse
ba01378600
[XEND] Fix typo in XendNode
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 18:06:14 +00:00
Ewan Mellor
787ef778e4
Fix device reordering that occurs when the config gets read into dictionaries.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-01-24 16:48:41 +00:00
Alastair Tse
16324b1aff
[XEND] Add debug class to Xen API plus non-standard debug.wait().
...
debug.wait(seconds) will just do a time.sleep() so the task progress
support can be tested.
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 15:59:09 +00:00
Alastair Tse
7d65668740
[XEND] Move decorate() to XendAPI.__new__ and have a static flag to
...
ensure it only runs at instantiation time, and only once per Xend
instance. Otherwise, decorate() runs on every invocation of
/usr/sbin/xend, even if it is xend stop.
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 15:57:10 +00:00
Alastair Tse
2478f46117
[XENAPI] Make test script attempt to login with blank credentials
...
before prompting for passwords.
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 15:52:26 +00:00
Alastair Tse
64444f844e
[XEND] Cleanup old domains in statistics monitor.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 15:50:58 +00:00
Alastair Tse
673b964755
[XENAPI] Add vif-list to xapi.py script
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 15:50:02 +00:00
Alastair Tse
464ed488c6
[XEND] Output exception to log files if XendAPI fails to instantiate.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 15:49:32 +00:00
Alastair Tse
b712f9023e
[XENAPI] Update test scripts to move from VBD.image to creating VDI's
...
with the uri attribute.
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 15:48:58 +00:00
Alastair Tse
d3cc627bf9
[XEND] Add support for multiple storage repositories.
...
Splits XendStorageRepository into a helper class and
XendQCowStorageRepo as the QCoW File backed repository. This gives us
the opportunity to introduce a pseudo storage repository to represent
the old way of specifying block devices. This is the
XendLocalStorageRepo.
Note that this still introduces a non-Xen API 'uri' attribute to VDIs
in order to support querying VDIs for their actual location relative
to the Xen host.
The QCoW backed repository is now named QCoW, and the pseudo-SR is
named Local.
This removes the 'image' attribute backwards-compat hack in VBDs in
the Xen API.
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 15:47:31 +00:00
Alastair Tse
cd402c7539
[XEND] Add missing Xen API methods
...
* Added session.get_all, task.get_by_name_label,
host.get_by_name_label, VM.add_to_otherConfig,
VM.remove_from_otherConfig
* Added implementations for VM.get_VCPUs_policy,
VM.get_platform_std_vga, VM.get_vm_by_uuid,
VM.get_platform_localtime, VM.get_platform_clock_offset,
VM.get_platform_enable_audio, VM.get_platform_keymap,
VM.get_otherConfig, VM.set_actions_after_shutdown,
VM.set_actions_after_reboot, VM.set_actions_after_suspend,
VM.set_actions_after_crash, VM.set_platform_std_VGA,
VM.set_platform_serial, VM.set_platform_keymap,
VM.set_platform_localtime, VM.set_platform_clock_offset,
VM.set_platform_enable_audio, VM.set_otherConfig, VBD.destroy,
VBD.get_io_read_kbs, VBD.get_io_write_kbs, VBD.get_all, VIF.destroy,
VIF.get_VM, VIF.get_name, VIF.get_MTU, VIF.get_MAC, VIF.get_type,
VIF.get_device, VIF.get_io_read_kbs, VIF.get_io_write_kbs,
VIF.get_all, VTPM.destroy, VTPM.get_all
* Save devid of a device on creation in XendDomainInfo
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 14:25:21 +00:00
Alastair Tse
e5e2ccbed4
[XEND] Make sure UUID in state store are not stored as unicode
...
objects.
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 13:58:06 +00:00
Alastair Tse
697a75a8dd
[XEND] Prevent invalid arguments for destroy event channels.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 13:54:37 +00:00
Alastair Tse
ffe6776819
Test scripts for Xen API updated to support Async support
2007-01-24 13:49:25 +00:00
Alastair Tse
c7cac39d2d
[XEND] Add Task support in Xen API implementation.
...
Added progress tracking to some common methods like VM.start so the
progress during async invocation.
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 13:26:26 +00:00
Alastair Tse
d3774c5c93
[XEND] Add missing XendMonitor.py
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 12:26:19 +00:00
Alastair Tse
a19ccaa253
[XEND] Add simple VCPUs, VBDs, VIFs statistics monitoring
...
Keep track of xentop like statistics to expose through the Xen API
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 12:09:41 +00:00
Alastair Tse
e8d1d26031
[XEND] Strip suffix from device name and add support for 'VBD.type'
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-24 12:07:54 +00:00
Alastair Tse
dc59dbf327
[XEND] Save model attribute for HVM VIFs
...
This solves the problem of HVM VIFs forgetting their model config on
reboot.
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=867
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-22 17:31:15 +00:00
Alastair Tse
c1e978c7cf
[XEND] Fix get_dev_property_by_uuid
...
This patch replaces calls to get_dev_property() by calls to
get_dev_property_by_uuid() in XenAPI.py and fixes the implementation
of get_dev_property_by_uuid.
I am adding a test case to the xapi grouptests to verify the fixes.
There's a FIXME note in the test case which should be looked at.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com >
2007-01-22 17:23:53 +00:00
kfraser@localhost.localdomain
efa2dca17a
Fix failure to localise xm by preventing cd from writing to stdout
...
which gets incorrectly captured as a value for the bash for loop.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-01-22 17:07:16 +00:00
kfraser@localhost.localdomain
11f063545a
[PVFB] Set keyboard layout of PVFB from configuration file.
...
For example:
keymap = "ja"
Default remains en-us.
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com >
Signed-off-by: Tomohiro Takahashi <takatom@tokyo.ssg.fujitsu.com >
Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com >
2007-01-22 16:27:03 +00:00
kfraser@localhost.localdomain
f4e8a7e419
Implement clean return from save/restore failure (so that original
...
domain can continue execution).
Signed-off-by: Andrei Petrov <andrei.petrov@xensource.com >
2007-01-22 15:15:32 +00:00
Tim Deegan
7f39243d68
[PYGRUB] Plumb bootloader I/O through xenconsole.
...
- xend forwards console traffic between the running bootloader and a pty
which it writes to the store so the xenconsole client can see it.
- the xenconsole client handles the domain's console pty changing.
- xm create no longer runs the bootloader.
- pygrub gets '-i' option to explicitly request an interactive session.
- xend unlocks the domain list during bootloading so that "xm console"
can see the domain and attach to its console pty.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2007-01-22 11:49:14 +00:00
kfraser@localhost.localdomain
115209d91b
[XEN] New event-channel reset operation.
...
Plumbed through libxenctrl to python.
From: Andrei Petrov <andrei.petrov@xensource.com >
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-01-19 17:20:57 +00:00
kfraser@localhost.localdomain
b686a7d235
xenstore: add XS_RESUME command; export it to xend.
...
This clears the shutdown flag for a domain in xenstore, allowing
subsequent shutdowns of the same domain to fire the appropriate
watches.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca >
2007-01-19 15:28:34 +00:00
kfraser@localhost.localdomain
e105919b01
Add resumedomain domctl to resume a domain after checkpoint.
...
Export resumedomain domctl to libxc, xend.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca >
2007-01-19 15:23:41 +00:00
Ewan Mellor
61a18d9c54
Tidy up the restore path following HVM save/restore patches.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-01-19 10:12:39 +00:00
kfraser@localhost.localdomain
0511df5aec
Merge with xen-ia64-unstable.hg
2007-01-18 18:25:04 +00:00
Ewan Mellor
ca662595dc
Allow vcpu_avail to be specified in the configuration file. Rationalise our
...
use of online_vcpus and max_vcpu_id, keeping track of the configured value in
vcpus_number.
Fix HVM SMP configuration to use the XendDomainInfo.getVCpuCount() call that
is used everywhere else, rather than parsing it out of the device config.
Fix xm list to show the configured VCPU count when the VM is down.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-01-18 17:48:59 +00:00
Alastair Tse
b8a73ce6fe
Fix get_config_value fix
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2007-01-18 17:24:40 +00:00
Ewan Mellor
1ab8a4153b
Fix get_config_value call.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-01-18 17:01:44 +00:00
awilliam@xenbuild2.aw
9b7ae1d44f
merge with xen-unstable.hg
2007-01-17 21:31:22 -07:00