From 3a9643834c540c7a762743fc34d9878933a597b2 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 10 Feb 2016 10:43:09 +0000 Subject: [PATCH] docs: Alphabetize headings in guestfs-recipes(1). No change, just reorder a section so they are in alphabetical order. --- docs/guestfs-recipes.pod | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/guestfs-recipes.pod b/docs/guestfs-recipes.pod index 3703d8473..f958ed062 100644 --- a/docs/guestfs-recipes.pod +++ b/docs/guestfs-recipes.pod @@ -285,6 +285,23 @@ Although it sounds tempting, this is usually not a reliable way to get a backup from a running guest. See the entry in the FAQ: L +=head1 Export external kernel and initramfs (initrd) + +If a Linux guest doesn't have a boot loader or it is broken, then you +can usually boot it using an external kernel and initramfs. In this +configuration, the hypervisor acts like a bootloader, loading the +kernel from the host disk into guest memory and jumping straight into +the kernel. + +However you may wonder how to get the right kernel corresponding to +the disk image you have. Since libguestfs E 1.24 +L can get the latest kernel and corresponding +initramfs for you: + + mkdir outputdir + virt-builder --get-kernel disk.img -o outputdir + ls -lh outputdir + =head1 Find out which user is using the most space This simple script examines a Linux guest to find out which user is @@ -307,23 +324,6 @@ using the most space in their home directory: guestfish --remote exit -=head1 Export external kernel and initramfs (initrd) - -If a Linux guest doesn't have a boot loader or it is broken, then you -can usually boot it using an external kernel and initramfs. In this -configuration, the hypervisor acts like a bootloader, loading the -kernel from the host disk into guest memory and jumping straight into -the kernel. - -However you may wonder how to get the right kernel corresponding to -the disk image you have. Since libguestfs E 1.24 -L can get the latest kernel and corresponding -initramfs for you: - - mkdir outputdir - virt-builder --get-kernel disk.img -o outputdir - ls -lh outputdir - =head1 Get DHCP address from a VM The link below explains the many different possible techniques for