Bug 904261 - Virt-Sysprep Failure
Summary: Virt-Sysprep Failure
Keywords:
Status: CLOSED DUPLICATE of bug 901439
Alias: None
Product: Fedora
Classification: Fedora
Component: libguestfs
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-25 21:43 UTC by Justin Brown
Modified: 2013-01-25 22:14 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-25 22:14:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Virt-sysprep verbose output (44.49 KB, application/octet-stream)
2013-01-25 21:43 UTC, Justin Brown
no flags Details

Description Justin Brown 2013-01-25 21:43:48 UTC
Created attachment 687684 [details]
Virt-sysprep verbose output

Description of problem:
Trying to sysprep a new KVM virtual machine.

Version-Release number of selected component (if applicable):
1.18.11 (libguestfs-tools)

How reproducible:
Virt-sysprep used to work for me, but no matter what I try now, it always fails.

Steps to Reproduce:
1. Create a master image template VM and power off VM.
2. copy from the template to new image by either
  A. virt-sparsify template.img new.img
  B. cp --sparse=always template.img new.img
3. Run sysprep `virt-sysprep --hostname new -a new.img`
  
Actual results:
Virt-sysprep operation failed: exception: Guestfs.Error("aug_init: Augeas initialization failed")

Expected results:
Virt-sysprep should succeed or provide a more useful error message. 


Additional info:
Verbose output is attached.

Comment 1 Justin Brown 2013-01-25 21:51:25 UTC
Additional detail about the VM and template.

$ file template.img 
template.img: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, boot drive 0x80, 1st sector stage2 0x46800, GRUB version 0.94; partition 1: ID=0x83, active, starthead 32, startsector 2048, 10237952 sectors, code offset 0x48

$ file new.img 
splunk.img: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, boot drive 0x80, 1st sector stage2 0x46800, GRUB version 0.94; partition 1: ID=0x83, active, starthead 32, startsector 2048, 10237952 sectors, code offset 0x48

$ virt-inspector -a template.img 
libguestfs: error: aug_init: Augeas initialization failed
virt-inspector: no operating system could be detected inside this disk image.

This may be because the file is not a disk image, or is not a virtual machine
image, or because the OS type is not understood by libguestfs.

$  virt-inspector -a splunk.img 
libguestfs: error: aug_init: Augeas initialization failed
virt-inspector: no operating system could be detected inside this disk image.

This may be because the file is not a disk image, or is not a virtual machine
image, or because the OS type is not understood by libguestfs.

Both systems are EL6 guests with a single partition (/dev/vda1) and no swap.
$ virt-filesystems -a template.img 
/dev/sda1

Comment 2 Richard W.M. Jones 2013-01-25 22:14:37 UTC
Please try the package from updates-testing.  See also:
https://www.redhat.com/archives/libguestfs/2013-January/msg00041.html

*** This bug has been marked as a duplicate of bug 901439 ***


Note You need to log in before you can comment on or make changes to this bug.