Displaying 12 results from an estimated 12 matches for "vir_domain_run".
2013 Sep 24
2
virDomainGetInfo() returns wrong domain state
...=====
enum cidl_vmm_vm_state
vm_libvirt_state_to_vmm_state(unsigned char libvirt_state)
{
enum cidl_vmm_vm_state state;
INFO("%s: state returned is %u\n",__FUNCTION__, libvirt_state); <<<<<<<<<<<<<<<<<<
if (libvirt_state == VIR_DOMAIN_RUNNING) {
state = cidl_vm_state_running;
} else if ((libvirt_state == VIR_DOMAIN_PAUSED) ||
(libvirt_state == VIR_DOMAIN_BLOCKED)) {
state = cidl_vm_state_paused;
} else if (libvirt_state == VIR_DOMAIN_SHUTOFF) {
state = cidl_vm_state_defined;
} else...
2015 Jun 19
0
CPU Usage and Memory Usage for VM and Host
...ot;CPU Usage and Memory Usage for VM " and CPU Usage and Memory Usage for a Host in the KVM environment using libvirt java sdk .
I am using libvirt-0.5.1.jar.
This is the maximum Information I could fetch using the libvirt java API.:
________________________________
vmname:flow-cluster1
state:VIR_DOMAIN_RUNNING
ostype:hvm
guest id :8f0b96e5-1e08-40ce-aea1-9985d80fcabb
Max memory : 8388608
Max cpus : 4
Guest Info-cputime: 58930890000000
Guest Info-maxMem: 8388608
Guest Info-memory: 8388608
Guest Info-nrVirtCpu: 4
MemoryStatistic: 8388608
Autostart :false
________________________________
I tried looking...
2013 Sep 25
0
Re: virDomainGetInfo() returns wrong domain state
...=====
enum cidl_vmm_vm_state
vm_libvirt_state_to_vmm_state(unsigned char libvirt_state)
{
enum cidl_vmm_vm_state state;
INFO("%s: state returned is %u\n",__FUNCTION__, libvirt_state); <<<<<<<<<<<<<<<<<<
if (libvirt_state == VIR_DOMAIN_RUNNING) {
state = cidl_vm_state_running;
} else if ((libvirt_state == VIR_DOMAIN_PAUSED) ||
(libvirt_state == VIR_DOMAIN_BLOCKED)) {
state = cidl_vm_state_paused;
} else if (libvirt_state == VIR_DOMAIN_SHUTOFF) {
state = cidl_vm_state_defined;
} else...
2013 Sep 26
0
Re: [libvirt] virDomainGetInfo() returns wrong domain state
...vmm_state(unsigned char libvirt_state)
>
> {
>
> enum cidl_vmm_vm_state state;
>
> INFO("%s: state returned is %u\n",__FUNCTION__, libvirt_state);
> <<<<<<<<<<<<<<<<<<
>
> if (libvirt_state == VIR_DOMAIN_RUNNING) {
>
> state = cidl_vm_state_running;
>
> } else if ((libvirt_state == VIR_DOMAIN_PAUSED) ||
>
> (libvirt_state == VIR_DOMAIN_BLOCKED)) {
>
> state = cidl_vm_state_paused;
>
> } else if (libvirt_state == VIR_DOMAIN_SHUTOF...
2013 Sep 26
1
Re: [libvirt] virDomainGetInfo() returns wrong domain state
...mm_state(unsigned char libvirt_state)
>
> {
>
> enum cidl_vmm_vm_state state;
>
> INFO("%s: state returned is %u\n",__FUNCTION__, libvirt_state);
> <<<<<<<<<<<<<<<<<<
>
> if (libvirt_state == VIR_DOMAIN_RUNNING) {
>
> state = cidl_vm_state_running;
>
> } else if ((libvirt_state == VIR_DOMAIN_PAUSED) ||
>
> (libvirt_state == VIR_DOMAIN_BLOCKED)) {
>
> state = cidl_vm_state_paused;
>
> } else if (libvirt_state == VIR_DOMAIN_SHUTOF...
2009 Jun 19
0
Re: [libvirt] domain.info() sometimes returns state zero for running machines
...ains using
>>>>
>>>> domain.info()[0]
>>>>
>>>> The domain object is retrieved via connection.lookupByUUIDString(...)
>>>> and stored as a variable called "domain". Usually the running domains
>>>> have the state 1 (VIR_DOMAIN_RUNNING) or 2 (VIR_DOMAIN_BLOCKED), but
>>>> sometimes it happens that 0 (VIR_DOMAIN_NOSTATE) is returned.
>>>> Why does that happen? I don''t think it is an error because then it
>>>> would''ve raised an exception...
>>>>
>>&g...
2019 Apr 08
0
[PATCH v4 3/7] v2v: switch to ocaml-libvirt
...virConnectClose (conn);
- caml_invalid_argument (errmsg);
- }
-
- /* As a side-effect we check that the domain is shut down. Of course
- * this is only appropriate for virt-v2v. (RHBZ#1138586)
- */
- if (!is_test_uri) {
- const int state = get_dom_state (dom);
-
- if (state == VIR_DOMAIN_RUNNING ||
- state == VIR_DOMAIN_BLOCKED ||
- state == VIR_DOMAIN_PAUSED) {
- snprintf (errmsg, sizeof errmsg,
- _("libvirt domain ā%sā is running or paused. It must be shut down in order to perform virt-v2v conversion"),
- domname);
- vi...
2018 Aug 30
8
[PATCH 0/7] RFC: switch v2v to ocaml-libvirt
Hi,
this is a mostly done attempt to switch to ocaml-libvirt, embedding the
latest version of it from git. This way, it is possible to improve the
way v2v connects to libvirt for both input, and output modules, and
interacts with libvirt (e.g. no more virsh calls needed in virt-v2v).
As side effect, virt-v2v now requires libvirt, as keeping it optional
would create too much burden.
I could not
2018 Nov 27
8
[PATCH v2 0/7] RFC: switch v2v to ocaml-libvirt
Hi,
this is a mostly done attempt to switch to ocaml-libvirt, embedding the
latest version of it from git. This way, it is possible to improve the
way v2v connects to libvirt for both input, and output modules, and
interacts with libvirt (e.g. no more virsh calls needed in virt-v2v).
As side effect, virt-v2v now requires libvirt, as keeping it optional
would create too much burden.
I could not
2019 Jan 30
8
[PATCH v3 0/7] RFC: switch v2v to ocaml-libvirt
Hi,
this is a mostly done attempt to switch to ocaml-libvirt, embedding the
latest version of it from git. This way, it is possible to improve the
way v2v connects to libvirt for both input, and output modules, and
interacts with libvirt (e.g. no more virsh calls needed in virt-v2v).
As side effect, virt-v2v now requires libvirt, as keeping it optional
would create too much burden.
I could not
2019 May 20
8
[PATCH v5 0/7] v2v: switch to ocaml-libvirt
Hi,
this series switches virt-2v to ocaml-libvirt, embedding the latest
version of it from git. This way, it is possible to improve the way
v2v connects to libvirt for both input, and output modules, and
interacts with libvirt (e.g. no more virsh calls needed in virt-v2v).
As side effect, virt-v2v now requires libvirt, as keeping it optional
would create too much burden.
I could not test all
2019 Apr 08
12
[PATCH 43 0/7] v2v: switch to ocaml-libvirt
Hi,
this series switches virt-2v to ocaml-libvirt, embedding the latest
version of it from git. This way, it is possible to improve the way
v2v connects to libvirt for both input, and output modules, and
interacts with libvirt (e.g. no more virsh calls needed in virt-v2v).
As side effect, virt-v2v now requires libvirt, as keeping it optional
would create too much burden.
I could not test all