search for: list_domains

Displaying 20 results from an estimated 39 matches for "list_domains".

2013 Jul 08
1
python equiv to perl list_domains()
...ying to figure out a way to get a list of the running domains on a dom0. I can get the ID's but I'd prefer the names. We have another script written in perl, but I'm trying to get some other functionality in python as well as work on converting it all to python. It looks like perl has a list_domains() that will, according to the libvirt doc, "Return a list of all running domains currently known to the VMM". And this works for us, but I can't get the same thing in python as listAllDomains doesn't work with the version of libvirt running on RHEL 5.9 >From our machine that w...
2009 Oct 29
1
[PATCH] Enables users to migrate virtual machines between hosts.
...Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301, USA. A copy of the GNU General Public License is +# also available at http://www.gnu.org/copyleft/gpl.html. + +from snack import * +from libvirtworker import LibvirtWorker +from configscreen import * + +LIST_DOMAINS = 1 +SELECT_TARGET = 2 +CONFIRM_PAGE = 3 + +class MigrateDomainConfigScreen(DomainListConfigScreen): + def __init__(self): + DomainListConfigScreen.__init__(self, "Migrate Virtual Machine") + self.__configured = False + + def get_elements_for_page(self, screen, page)...
2012 Nov 20
0
[PATCH 15 of 15] libxl: ocaml: add bindings for libxl_domain_create_new
...2376896ba08 tools/ocaml/test/Makefile --- a/tools/ocaml/test/Makefile Tue Nov 20 17:22:21 2012 +0000 +++ b/tools/ocaml/test/Makefile Tue Nov 20 17:22:21 2012 +0000 @@ -6,9 +6,9 @@ OCAMLINCLUDE += \ -I $(OCAML_TOPLEVEL)/libs/xentoollog \ -I $(OCAML_TOPLEVEL)/libs/xl -OBJS = xtl send_debug_keys list_domains raise_exception +OBJS = xtl send_debug_keys list_domains raise_exception build_domain -PROGRAMS = xtl send_debug_keys list_domains raise_exception +PROGRAMS = xtl send_debug_keys list_domains raise_exception build_domain xtl_LIBS = \ -ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xentoollog $(OCAM...
2012 Dec 11
1
Need help regarding perl sys::virt
...appreciated. bash-3.2$ perl KVM.pl root at 10.238.132.125's password: Unable to open connection to qemu+ssh://root at 10.238.132.125/system?no_verify=1: End of file while reading data: Warning: Perm: Input/output error8.132.125' (RSA) to the list of known hosts. Can't call method "list_domains" on an undefined value at KVM.pl line 21. bash-3.2$ bash-3.2$ cat KVM.pl use strict; use warnings; use Sys::Virt; use Data::Dump qw(dump); my $user = "root"; my $host = <some_host>; my $uri = "qemu+ssh://root\@$host/system?no_verify=1"; my $vmm; eval { $vmm = S...
2010 Apr 27
1
ruby-libvirt equiv of virsh list --all
...te. I have ruby 1.8.5 on CentOS 5.4. I have the basics of it worked out but am a little stuck. Is there a way of retrieving a list of all VM's on a host using ruby-libvirt. ie: virsh list --all ? @conn.list_defined_domains only shows VE's not started (lists VE names) @conn.list_domains only shows VE's running (lists VE id's) What I ultimately would like is to retrieve a full list of the uuid's of all defined VE's(running or not). -- Regards Mick Pollard ( lunix ) ------------------------------------------------ BOFH Excuse of the day: Extraneous Configurat...
2009 Aug 06
18
XCI: can we get to the demo state?
Hello XCI developers, I have a HP6930, downloaded xenclient from the git. And by following the instruction in HOWTO, I could get xenclient boot up fine. I try then to start a guest using xenvm.readme as template and nothing shows on the screen for the guest, although xenops shows 2 doms running. Can you point me to how to start a guest. And also, is the tree downloaded from git enough to arrive
2009 Dec 08
2
Rebased patches, fixed a rebasing problem...
The previous patch set had an error and one development branch's changes showed up twice, and two different change sets. So it was missing the bulk of the configuration work. This patch set fixes that.
2009 Sep 23
2
[PATCH node] Introduces the virtual network administration functions.
...nt in elements: gridform.add(element, 0, current_element) @@ -133,7 +134,7 @@ class DomainListConfigScreen(ConfigScreen): if len(domains) > 0: self.__has_domains = True self.__domain_list = Listbox(0) - for name in self.get_libvirt().list_domains(defined, created): + for name in domains: self.__domain_list.append(name, name) result = [self.__domain_list] else: @@ -148,3 +149,33 @@ class DomainListConfigScreen(ConfigScreen): def has_selectable_domains(self): return self.__has_...
2009 Dec 21
2
[PATCH] Fixed errors when the user selects a different remove libvirt host.
...onn + old_url = self.__url + try: + self.__conn = libvirt.open(url) + self.__url = url + set_default_url(url) + except Exception, error: + self.__conn = old_conn + self.__url = old_url + raise error def list_domains(self, defined = True, started = True): '''Lists all domains.''' -- 1.6.5.2
2009 Nov 17
2
[PATCH 0/2] Two part fix for virt-df on Xen (bug 538041)
This is a two-part fix for: https://bugzilla.redhat.com/show_bug.cgi?id=538041 Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
2010 Aug 13
3
[PATCH] xl: make libxl_uuid2string internal to libxenlight
..., uuid[7], \ + uuid[8], uuid[9], uuid[10], uuid[11], \ + uuid[12], uuid[13], uuid[14], uuid[15] \ #define CHK_ERRNO( call ) ({ \ int chk_errno = (call); \ @@ -2169,10 +2173,8 @@ void list_domains(int verbose, const lib info[i].dying ? ''d'' : ''-'', ((float)info[i].cpu_time / 1e9)); free(domname); - if (verbose) { - char *uuid = libxl_uuid2string(&ctx, info[i].uuid); - printf(" %...
2009 Oct 21
1
[PATCH node] Renamed files and menu items for node administration:
...rt UndefineDomain +from stopdomain import StopDomain +from removedomain import RemoveDomain from listdomains import ListDomains from createuser import CreateUser import utils import logging -DEFINE_DOMAIN = 1 -CREATE_DOMAIN = 2 -DESTROY_DOMAIN = 3 -UNDEFINE_DOMAIN = 4 -LIST_DOMAINS = 5 -CREATE_USER = 6 +ADD_DOMAIN = 1 +CREATE_DOMAIN = 2 +STOP_DOMAIN = 3 +REMOVE_DOMAIN = 4 +LIST_DOMAINS = 5 +CREATE_USER = 6 class NodeMenuScreen(MenuScreen): def __init__(self): MenuScreen.__init__(self, "Node Administration") def get_menu_items...
2009 Aug 31
1
Fixed patch...
This version of the patch includes feedback from jboggs at redhat.com, including fixes to the BuildRequires and Requires in the spec file.
2009 Sep 11
1
Text-based node administration tool
This patch obsoletes any previous ones. This is an upstream candidate, so I'm looking for feedback so we can push this and start using it.
2009 Sep 14
1
Bugfixes...
This version fixes a few bugs found by jboggs. It also includes some logging facilities that need to be fleshed out more.
2009 Sep 16
1
Final push candidate for nodeadmin tool...
This patch is ready for pushing upstream.
2010 Sep 09
2
[PATCH]: add libxl python binding
...-break the build system - fix ocaml binding due to libxl API change - lot''s of tidy-ups too numerous to mention Please consider and apply :) -----8<--------------------------------------------------------------- Introduce python binding for libxl. The binding is not yet complete but list_domains, domid_to_name, domain_shutdown and domain_destroy methods are implemented and tested. These functions provide examples of the two basic patterns that all future methods should follow. About 5,000 lines of boilerplate is automatically generated to wrap and export all relevant libxl structure defin...
2009 Sep 16
1
Replacement that includes utils.py
The previous patch was missing this file. Resending.
2012 Jul 27
1
Bug#682979: xcp-xapi: VM not starting, tasks not cancellable
...vm-start uuid=<uuid>, xe will not finish. xe task-list shows two tasks: VM.start with 0.300 progress, and VBD.unplug (0.000 progress) as a subtask of VM.start, created 16-17 seconds after VM.Start. Both tasks are in the state pending, and can not be cancelled with xe task-cancel force=true. list_domains shows that the domain has been created. After xe-toolstack-restart two independent pending tasks are present: VBD.unplug and VBD.plug, both resist cancelling as well. To get those tasks wiped out, I need to reboot. -- System Information: Debian Release: 6.0.1 APT prefers stable APT policy: (9...
2009 Jul 31
2
RFC: This patch is not being submitted for ACK...
...just looking for some feedback on the direction I'm going. The code won't get all the way to the define stage since I'm in the middle of retrofitting it to use virtinst instead of a home spun node definition.