Displaying 20 results from an estimated 30000 matches similar to: "command reference"
2014 Dec 08
2
snapshots and qcow2
Hi,
I ran into a strange behavior with libvirt snapshots. I have some vms
running with thin-provisioned qcow2 disk images (libvirt 1.1.3 with fedora
20).
* When I create a snapshot on the VM, the qcow file suddenly grows big,
somewhat bigger than the maximum size of the disk.
* When I delete the snapshot, the allocated disk space is not freed up, the
qcow image remains the same size. However, if
2014 Nov 20
2
maxvcpus
Hi list,
According to the libvirt documentation [1]
"Show maximum number of virtual CPUs for guest domains on this connection"
This may not be a complete definition.
My first guess from the above was that this returns the number of virtual
CPUs that can exist at the same time on the host, either one or several
VMs. In fact it returned 16 in my fedora 20 desktop running with KVM,
2023 Feb 15
3
[libnbd PATCH v3 04/29] ocaml: rename "sa_u" to "saddr_u"
<signal.h> in POSIX reserves the "sa_" prefix:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_02_02
Let's use "saddr_" instead.
Signed-off-by: Laszlo Ersek <lersek at redhat.com>
---
ocaml/helpers.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ocaml/helpers.c b/ocaml/helpers.c
index
2023 May 02
4
[libnbd PATCH v2 0/2] continue wrapping generated C code harder
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2172516
v1: https://listman.redhat.com/archives/libguestfs/2023-April/031375.html
In v2, move the declaration of the "p" helper variable next to the top
of the function.
Thanks!
Laszlo
Laszlo Ersek (2):
generator/C: print_wrapper: use helper variable for permitted state
check
generator/C: lib/api.c: indent arg list 2
2023 Feb 15
2
[libnbd PATCH v3 11/29] socket activation: fix error message upon asprintf() failure
Correctly report "asprintf" in the error message when asprintf() fails.
Signed-off-by: Laszlo Ersek <lersek at redhat.com>
---
generator/states-connect-socket-activation.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/generator/states-connect-socket-activation.c b/generator/states-connect-socket-activation.c
index 3b621b8be44f..c46a0bf5c0a3 100644
---
2023 Mar 28
1
[nbdkit PATCH 1/2] common/utils: document empty_vector compound literal assignment
We usually zero-initialize vectors like
string_vector names = empty_vector;
Allocating and zeroing separately is frequently useful however. Document
the pattern
string_vector names;
names = (string_vector)empty_vector;
where "(string_vector)empty_vector" is a compound literal.
Link: http://mid.mail-archive.com/20230221183810.vjilfbmj3woqivlj at redhat.com
Suggested-by: Eric
2023 Feb 15
2
[libnbd PATCH v3 02/29] generator/C.ml: use space consistently in func. and func.-like macro calls
Apply the ideas in the previous patch to the C-language bindings
generator.
Signed-off-by: Laszlo Ersek <lersek at redhat.com>
---
generator/C.ml | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/generator/C.ml b/generator/C.ml
index f9171996dde0..07c924c48ccf 100644
--- a/generator/C.ml
+++ b/generator/C.ml
@@ -250,15 +250,15 @@ let
*)
2023 Mar 24
4
[libnbd PATCH v3 19/19] socket activation: set LISTEN_FDNAMES
On 3/23/23 20:27, Eric Blake wrote:
> On Thu, Mar 23, 2023 at 01:10:16PM +0100, Laszlo Ersek wrote:
>> When the user calls nbd_set_socket_activation_name before calling
>> nbd_connect_system_socket_activation, pass the name down to the server
>> through LISTEN_FDNAMES. This has no effect unless the new API has
>> been called to set the socket name to a non-empty string.
2014 Apr 25
1
Deriving VMs from a reference image via scripts
Hi.
I have a reference .vmdk (and .xml) reference VM. I need to instantiate multiple new VM’s from this, but changing various parameters: name, MAC address, network connections, cores, memory size, disk size and backing store, etc. and then start these new VM’s… all via ‘virsh’ et al from a script.
What are the steps to do this? I was looking at the command help and some tutorials but
2023 Mar 28
1
[nbdkit PATCH 2/2] plugins/rust: restrict predicates-{tree, core} to {1.0.7, 1.0.5}
The beautiful world of uncontained dependencies:
- We restrict mockall to 0.11.0, which in practice currently expands to
0.11.4,
- mockall depends on predicates-tree,
- predicates-tree depends on predicates-core,
- approx. two weeks ago, predicates-tree and predicates-core have seen
*PATCHLEVEL* upgrades (1.0.7 -> 1.0.9, and 1.0.5 -> 1.0.6, respectively)
that now require
2023 Feb 20
2
[libnbd PATCH v3 07/29] lib/utils: add async-signal-safe assert()
On 2/15/23 21:57, Eric Blake wrote:
> On Wed, Feb 15, 2023 at 03:11:36PM +0100, Laszlo Ersek wrote:
>> Add an assert() variant that we may call between fork() and exec*().
>>
>> Signed-off-by: Laszlo Ersek <lersek at redhat.com>
>> ---
>>
>
>> +++ b/lib/internal.h
>
>> +
>> +#ifdef NDEBUG
>> +#define
2002 Feb 12
3
Win2K -> Win2K rsync
Has anybody out there set up a rsync environment that allows mirroring
of files between two Windows 2000 servers?
Douglas Hornyak
Senior Systems Architect
Spring Lake Consulting, LLC
2007 Jun 11
5
Recommendation/pointers please - Need to brush up on CentOS/Linux command line tools
Hi all,
I would very much appreciate any suggestions on any online resources, or
even a decent book to purchase with the focus of brushing up on Linux
command line tools. The focus is on troubleshooting type commands,
adding users from command line
and so forth.
While I am reasonably comfortable using the command line, I will be the
first to admit I am slow on some things and have gaps in
2023 Mar 23
1
[libnbd PATCH v3 07/19] socket activation: replace execvp() call with fork-safe variant
Per POSIX, execvp() is not safe to call in a child process forked from a
multi-threaded process. We can now replace the execvp() call in the child
process with a call to our fork-safe (async-signal-safe) variant.
Prepare our internal execvpe context on the parent's construction path,
use the context in the child, and release the context in the parent on the
way out, regardless of whether the
2023 Mar 23
1
[libnbd PATCH v3 14/19] CONNECT_COMMAND.START: plug child process leak on error
A prior patch highlighted the following leak: when any construction step
fails in the parent after fork(), the child process is leaked.
We could plug the leak by inserting a new error handling section for
killing the child process and reaping it with waitpid(). However, it would
raise some new questions (what signal to send, ensure the child not ignore
that signal, hope that whatever process
2014 Mar 10
3
How to get guest's cpu and mem usage with Java APIs
Hi everybody,
I'm using libvirt java api bindings for my thesis. I would like to know if
there is a way to obtain live information about cpu and mem usage of a
domain.
Regards,
Enrico De Maio
Skype: enrico.de.maio
Mobile: +39 338 205 3397
2013 Oct 01
4
Re: Bringing up a guest with network disabled
On Tue, 01 Oct 2013 06:10:46 -0600
Eric Blake <eblake@redhat.com> wrote:
> On 10/01/2013 06:04 AM, James Gibbon wrote:
> >
> >
> > Hello all,
> >
> > I have a KVM guest VM which is a clone of a production machine
> > running on a different physical server, incarnated from an
> > image backup.
>
> Careful. You need to scrub more than
2023 Feb 24
1
[libnbd PATCH v3 07/29] lib/utils: add async-signal-safe assert()
On 2/21/23 07:33, Laszlo Ersek wrote:
> On 2/20/23 19:21, Laszlo Ersek wrote:
>> On 2/15/23 21:57, Eric Blake wrote:
>>> On Wed, Feb 15, 2023 at 03:11:36PM +0100, Laszlo Ersek wrote:
>
>>>> +
>>>> + xwrite (STDERR_FILENO, file, strlen (file));
>>>> + xwrite (STDERR_FILENO, ":", 1);
>>>
>>> Presumably, if our
2023 Mar 25
1
[libnbd PATCH v5 3/4] generator: Add APIs to get/set the socket activation socket name
From: "Richard W.M. Jones" <rjones at redhat.com>
To allow us to name the socket passed down to the NBD server when
calling nbd_connect_systemd_socket_activation(3), we need to add the
field to the handle and add access functions.
[Laszlo's notes:
- Originally posted by Rich at
<https://listman.redhat.com/archives/libguestfs/2023-January/030557.html>
(Message-Id:
2023 Mar 23
1
[libnbd PATCH v3 18/19] generator: Add APIs to get/set the socket activation socket name
From: "Richard W.M. Jones" <rjones at redhat.com>
To allow us to name the socket passed down to the NBD server when
calling nbd_connect_systemd_socket_activation(3), we need to add the
field to the handle and add access functions.
[Laszlo's note: originally posted by Rich at
<https://listman.redhat.com/archives/libguestfs/2023-January/030557.html>.
I've renamed