[REPOST] guestfsd core capture, and virt-rescue clean shutdown
by Matthew Booth
This is a repost of a previously posted set. It's been updated following review
comments.
[PATCH 1/4] Add a core_pattern debug command
Added missing return statements.
[PATCH 2/4] Call sync after guestfsd exits
Remove redundant sleep 1; sync
[PATCH 3/4] Shut down the appliance cleanly
[PATCH 4/4] Ignore launch() error in virt-rescue
These were previously 2 patches. They are otherwise unchanged.
14 years, 3 months
[PATCH] Fix build failure caused by 4b753c62
by Matthew Booth
4b753c62089be663ac722e4a875bb061d259e87d missed a couple of uses of
print_timestamped_message in launch.c.
---
src/launch.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/launch.c b/src/launch.c
index 9deb0cf..07a89ec 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -927,7 +927,7 @@ build_supermin_appliance (guestfs_h *g, const char *path,
int r, len;
if (g->verbose)
- print_timestamped_message (g, "begin building supermin appliance");
+ guestfs___print_timestamped_message (g, "begin building supermin appliance");
len = strlen (g->tmpdir);
*kernel = safe_malloc (g, len + 8);
@@ -950,7 +950,7 @@ build_supermin_appliance (guestfs_h *g, const char *path,
path,
*kernel, *initrd);
if (g->verbose)
- print_timestamped_message (g, "%s", cmd);
+ guestfs___print_timestamped_message (g, "%s", cmd);
r = system (cmd);
if (r == -1 || WEXITSTATUS(r) != 0) {
@@ -962,7 +962,7 @@ build_supermin_appliance (guestfs_h *g, const char *path,
}
if (g->verbose)
- print_timestamped_message (g, "finished building supermin appliance");
+ guestfs___print_timestamped_message (g, "finished building supermin appliance");
return 0;
}
--
1.7.2.2
14 years, 3 months
[PATCH] Use virtio-serial, remove other vmchannel methods.
by Richard W.M. Jones
Notes:
(1) Tis doesn't completely remove legacy serial ports yet. I couldn't
work out how to make the Linux kernel see the virtconsole, so that is
still using a serial port.
(2) The guest network is completely unavailable if you apply this
patch. We will need to add this back, possibly as an optional
feature.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
14 years, 3 months
[PATCH] Change to using ext2-based, cached supermin appliance.
by Richard W.M. Jones
This patch changes libguestfs to use the ext2-based appliance, cached
if possible.
I've tested this with the alpha version of febootstrap from here:
http://koji.fedoraproject.org/koji/buildinfo?buildID=191338
and it at least passes the tests.
There are some hacky bits right now:
(1) We add the root -drive option last on the command line, then (in
the initrd) reverse-search through the block devices, mounting the
first one we find. Dan pointed out that we could name the drive using
the qemu '-drive file=..,serial=LIBGUESTFSROOT' option, which would
allow unambiguous identification. However there are other issues with
this.
(2) We take steps to ignore the new device from the point of view of
the user, but I haven't rigorously gone through the whole API to check
that the device is truly hidden everywhere.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
14 years, 3 months
Proposed new file apis
by Matthew Booth
I've attached a patch to generator.ml for the proposed new file apis.
Note that hread, hpread, hwrite and hpwrite are slightly different to
the apis I proposed previously. I've also added hallocate for good measure.
Matt
--
Matthew Booth, RHCA, RHCSS
Red Hat Engineering, Virtualisation Team
GPG ID: D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
14 years, 3 months