[XENAPI] Example tools to create/destroy/shutdown VMs

Example Session:

xapi.py vm-list
xapi.py host-info
xapi.py vm-create xapi.domcfg.py
xapi.py vbd-create GentooAPI xapi.vbdcfg.py
xapi.py vif-create GentooAPI xapi.vifcfg.py
xapi.py vm-start GentooAPI
xapi.py vm-shutdown GentooAPI
xapi.py vm-delete xapi.py

signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
Alastair Tse committed 2006-10-06 11:48:21 +01:00
1 parent ad6aa72b7f
commit 3dae87e5fa
4 files changed
+268

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
#
# VM Configuration for Xen API
#
name_label = 'GentooAPI'
name_description = 'Gentoo VM via API'
user_version = 1
is_a_template = False
memory_static_max = 32
memory_dynamic_max = 32
memory_dynamic_min = 32
memory_static_min = 32
VCPUs_policy = ''
VCPUs_params = ''
VCPUS_features_required = ''
VCPUs_features_can_use = ''
VCPUs_features_force_on = ''
VCPUs_features_force_off = ''
actions_after_shutdown = 'destroy'
actions_after_reboot = 'restart'
actions_after_suspend = 'destroy'
actions_after_crash = 'restart'
TPM_instance = ''
TPM_backend = ''
bios_boot = ''
platform_std_VGA = False
platform_serial = ''
platform_localtime = False
platform_clock_offset = False
platform_enable_audio = False
builder = ''
boot_method = '' # this will remove the kernel/initrd ??
kernel_kernel = '/boot/vmlinuz-2.6.16.29-xen'
kernel_initrd = '/root/initrd.img-2.6.16.29-xen.ramfs'
kernel_args = 'root=/dev/sda1 ro'
grub_cmdline = ''
PCI_bus = ''
other_config = ''
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.