Re: [et-mgmt-tools] VMware/qemu-kvm-?? migration

2009-07-17 Thread Joey Boggs
Gene Czarcinski wrote: On Thursday 16 July 2009 15:42:41 Gene Czarcinski wrote: Is the right SCSI driver available in the initrd? You should be able to find out what driver(s) are in the guest's initrd using virt-inspector. Light bulb lights above head! Yup, yup ... thank you very

[et-mgmt-tools] [patch] virtinst - vmdk disk conversion regression in diskcfg.py

2009-01-22 Thread Joey Boggs
When attempting to convert virt-image format machines into vmware vmdk disk format it errors out. Attached is a patch to correct this. 1. Generating output in vmx format to jboss-as5-appliance/ 2. Converting disk jboss-as5-appliance-sda.raw to type vmdk... 3. Thu, 22 Jan

Re: [et-mgmt-tools] converting full to para

2008-11-10 Thread Joey Boggs
I was using this process a few months back. Most likely what's happening is that it's missing the disk controller modules in the in initrd so it's not able to find your logical volumes. You'll will need to update your /etc/modprobe.conf to use the paravirt modules (xennet/xenblk) then rebuild

Re: [et-mgmt-tools] mounting image

2008-11-10 Thread Joey Boggs
To mount a disk image it's a little different than a regular loopback image. - Setup a loop device to the imagefile losetup /dev/loopX p2v-localhost_localdomain-200811061823-hda.img - Read the partitions kpartx -av /dev/loopX - Mount each partition as required mount /dev/mapper/loopXpX

[et-mgmt-tools] [patch] virtinst - deprecate virt-pack and Unware.py

2008-11-06 Thread Joey Boggs
This removes virt-pack and Unware.py functionality has now been replaced by virt-convert. diff -r 352ef78f5a1f virt-pack --- a/virt-pack Tue Nov 04 13:57:56 2008 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 + @@ -1,142 +0,0 @@ -#!/usr/bin/python -tt -# -# Package and unpackage images for

Re: [et-mgmt-tools] [patch] virt-image verify disk checksum

2008-10-20 Thread Joey Boggs
updated to use corrected method Cole Robinson wrote: Joey Boggs wrote: This patch will make use of the recent disk checksum function for virt-image and verifies prior to importing diff -r 9f45a36d8242 virt-image --- a/virt-imageThu Oct 16 11:18:49 2008 -0400 +++ b

[et-mgmt-tools] [patch] virt-image verify disk checksum

2008-10-17 Thread Joey Boggs
This patch will make use of the recent disk checksum function for virt-image and verifies prior to importing diff -r 9f45a36d8242 virt-image --- a/virt-image Thu Oct 16 11:18:49 2008 -0400 +++ b/virt-image Fri Oct 17 16:12:16 2008 -0400 @@ -145,6 +145,8 @@ parser.add_option(,

Re: [et-mgmt-tools] [patch] virt-image / ImageParser disk signature verification function

2008-10-16 Thread Joey Boggs
Better integrated into the Disk class and runs when a Disk object is created Cole Robinson wrote: Joey Boggs wrote: Cole Robinson wrote: Joey Boggs wrote: This adds a new function to the virtinst.ImageParser.Disk class to verify disk signatures and runs by default when

Re: [et-mgmt-tools] [patch] virt-image / ImageParser disk signature verification function

2008-10-16 Thread Joey Boggs
Cole, That's fine I'll take a look after it's commited and write that down for future reference. Cole Robinson wrote: Joey Boggs wrote: Better integrated into the Disk class and runs when a Disk object is created diff -r db5d9aeca590 virtinst/ImageParser.py --- a/virtinst/ImageParser.py

Re: [et-mgmt-tools] [patch] virt-image / ImageParser disk signature verification function

2008-10-15 Thread Joey Boggs
Cole Robinson wrote: Joey Boggs wrote: This adds a new function to the virtinst.ImageParser.Disk class to verify disk signatures and runs by default when using virt-image. The next patch will wrap up loose ends in the ImageParser.Disk class to weed out unsupported checksum types. For now

[et-mgmt-tools] [patch] virt-image / ImageParser disk signature verification function

2008-10-14 Thread Joey Boggs
This adds a new function to the virtinst.ImageParser.Disk class to verify disk signatures and runs by default when using virt-image. The next patch will wrap up loose ends in the ImageParser.Disk class to weed out unsupported checksum types. For now, if the checksum type is not matched it

Re: [et-mgmt-tools] [patch] virt-convert - disk signature support - patch 1

2008-10-09 Thread Joey Boggs
Corrected spacing and removed md5 Cole Robinson wrote: Daniel P. Berrange wrote: On Wed, Oct 08, 2008 at 12:22:05PM -0400, Joey Boggs wrote: This adds the underlying support for disk signatures into virt-convert disk class for each disk. Additional changes to follow in completing

Re: [et-mgmt-tools] [patch] virt-convert - disk signature support - patch 1

2008-10-09 Thread Joey Boggs
Did some more testing and made some syntax changes, should work now Joey Boggs wrote: Corrected spacing and removed md5 Cole Robinson wrote: Daniel P. Berrange wrote: On Wed, Oct 08, 2008 at 12:22:05PM -0400, Joey Boggs wrote: This adds the underlying support for disk signatures

[et-mgmt-tools] [patch] virtinst - ImageParser support disk checksum parsing, patch 2 of disk checksum feature

2008-10-09 Thread Joey Boggs
Adds support to parse disk signature values from ImageParser, updates image.rng schema as well. diff -r 3e2e7db24cb5 doc/image.rng --- a/doc/image.rng Thu Oct 09 12:35:25 2008 -0400 +++ b/doc/image.rng Thu Oct 09 16:27:28 2008 -0400 @@ -197,6 +197,15 @@ /choice /attribute

[et-mgmt-tools] [patch] virt-convert - disk signature support - patch 1

2008-10-08 Thread Joey Boggs
This adds the underlying support for disk signatures into virt-convert disk class for each disk. Additional changes to follow in completing implementation diff -r 2aba69a1a16c virtconv/diskcfg.py --- a/virtconv/diskcfg.py Mon Oct 06 12:21:17 2008 -0400 +++ b/virtconv/diskcfg.py Wed Oct 08

Re: [et-mgmt-tools] [patch] virt-convert add disk signature into virt-image format export

2008-10-03 Thread Joey Boggs
diff -r 58a909b4f71c virt-convert --- a/virt-convert Mon Sep 22 11:32:11 2008 -0400 +++ b/virt-convert Wed Oct 01 17:12:45 2008 -0400 @@ -64,6 +64,8 @@ opts.add_option(, --os-variant, type=string, dest=os_variant, action=callback,

Re: [et-mgmt-tools] [PATCH] virtinst - virt-convert vmware output

2008-10-03 Thread Joey Boggs
Made those few cleanups Cole Robinson wrote: Joey Boggs wrote: Got it all figured out now, its set to raise an exception rather than fail() Also changed the bus to ide rather than scsi. This looks mostly ready, just a few small pieces. diff -r 58a909b4f71c virt-convert

Re: [et-mgmt-tools] [PATCH] virtinst - virt-convert vmware output

2008-10-03 Thread Joey Boggs
The only functionality missing was the zip file function. I'll work on adding compression types in there shortly. We can remove virt-pack and Unware.py if you think it's time to do so now. Cole Robinson wrote: Joey Boggs wrote: Made those few cleanups Thanks, applied now

Re: [et-mgmt-tools] [patch] virt-convert add disk signature into virt-image format export

2008-10-01 Thread Joey Boggs
:39:13PM -0400, Joey Boggs wrote: Here's a sample that works, just want to verify it's alright. Is 64MB too much/too little to read at one time? f = open(test.raw,r) m = sha.new() while 1: chunk = f.read(65536) if not chunk: break m.update(chunk) print m.hexdigest

Re: [et-mgmt-tools] [patch] virt-convert add disk signature into virt-image format export

2008-10-01 Thread Joey Boggs
at 10:37:17AM -0400, Joey Boggs wrote: I'm done creating a sha256 hash setup should I offer more than just sha256for now? and checksum generation is off by default Here's a preview. Not sure how to catch the module import failure for hashlib though If we go for doing a compulsory md5

Re: [et-mgmt-tools] [patch] virt-convert add disk signature into virt-image format export

2008-10-01 Thread Joey Boggs
Here's what I've got, moved the hexdigest() out of the loop, cleanup and more testing to verify each scenario outputs the right xml configuration data. Hope this is the final revision :) Joey Boggs wrote: That's one thing I forgot to move out of the loop before I sent it. I was still

Re: [et-mgmt-tools] [PATCH] virtinst adding in disk signature support

2008-09-30 Thread Joey Boggs
I reworked the else condition to raise an exception in ImageParser.py rather than fail() Joey Boggs wrote: new patch, should have everything corrected below - md5 option in image.rng - broke up long lines - new image.xml example w/ md5 - using builtin python sha/md5 support Cole Robinson

Re: [et-mgmt-tools] [PATCH] virtinst - virt-convert vmware output

2008-09-30 Thread Joey Boggs
Yep that's why I returned as false, if we log it, it will need to be not recognized as a virt-image file, continuing or similiar John Levon wrote: On Tue, Sep 30, 2008 at 01:19:57PM -0400, Cole Robinson wrote: @staticmethod def identify_file(input_file):

Re: [et-mgmt-tools] [patch] virt-convert add disk signature into virt-image format export

2008-09-30 Thread Joey Boggs
Here's a sample that works, just want to verify it's alright. Is 64MB too much/too little to read at one time? f = open(test.raw,r) m = sha.new() while 1: chunk = f.read(65536) if not chunk: break m.update(chunk) print m.hexdigest() Cole Robinson wrote: Joey Boggs wrote

Re: [et-mgmt-tools] [patch] virt-convert add disk signature into virt-image format export

2008-09-30 Thread Joey Boggs
hehe yeah i realized that a sec ago but didnt want to waste an email correcting myself. Cole Robinson wrote: Joey Boggs wrote: Here's a sample that works, just want to verify it's alright. Is 64MB too much/too little to read at one time? 64MB certainly would be too much

Re: [et-mgmt-tools] [PATCH] virtinst - virt-convert vmware output

2008-09-29 Thread Joey Boggs
Made all suggested changes and cleaned up the extra whitespace Cole Robinson wrote: Joseph Boggs wrote: virt-pack was creating a wrapper file for each disk rather than converting it. If we were to convert an image once and then try to reconvert that image to another format it will

Re: [et-mgmt-tools] [PATCH] virtinst - virt-convert vmware output

2008-09-29 Thread Joey Boggs
comments inline, all issues addressed other than vmdk/scsi John Levon wrote: On Mon, Sep 29, 2008 at 07:19:26AM -0400, Joey Boggs wrote: Made all suggested changes and cleaned up the extra whitespace Cool beans. Some comments: diff -r 58a909b4f71c virt-convert --- a/virt-convert

Re: [et-mgmt-tools] [PATCH] virtinst - virt-convert vmware output

2008-09-29 Thread Joey Boggs
Got it all figured out now, its set to raise an exception rather than fail() Also changed the bus to ide rather than scsi. Cole Robinson wrote: Joey Boggs wrote: John Levon wrote: On Mon, Sep 29, 2008 at 03:28:04PM -0400, Joey Boggs wrote: +import virtinst.ImageParser

[et-mgmt-tools] [patch] virt-convert add disk signature into virt-image format export

2008-09-26 Thread Joey Boggs
Adds disk signatures into virt-convert for virt-image format virtual machines diff -r 58a909b4f71c virtconv/parsers/virtimage.py --- a/virtconv/parsers/virtimage.py Mon Sep 22 11:32:11 2008 -0400 +++ b/virtconv/parsers/virtimage.py Fri Sep 26 15:58:29 2008 -0400 @@ -22,7 +22,7 @@ import

Re: [et-mgmt-tools] [PATCH] virtinst adding in disk signature support

2008-09-24 Thread Joey Boggs
new patch, should have everything corrected below - md5 option in image.rng - broke up long lines - new image.xml example w/ md5 - using builtin python sha/md5 support Cole Robinson wrote: Joey Boggs wrote: Just to make sure, if I move that logic for either sha1/md5 and not None

[et-mgmt-tools] [patch] virtinst--devel - virt-convert error

2008-09-12 Thread Joey Boggs
Look like the release after .300 had OS_TYPES renamed to _OS_TYPES in FullVirtGuest.py creating this error for virt-convert ['(VMDK) image open: flags=0x2 filename=/home/jboggs/vmware/OSX/OSX-0.vmdk\n'] ERRORtype object 'FullVirtGuest' has no attribute 'OS_TYPES' Traceback (most recent

[et-mgmt-tools] [patch] virt-convert python-virtinst.spec.in update

2008-07-03 Thread Joey Boggs
Couldn't build due to unpackaged error: --- virtinst--devel.orig/python-virtinst.spec.in2008-07-03 10:25:46.0 -0400 +++ virtinst--devel/python-virtinst.spec.in2008-07-03 10:23:58.0 -0400 @@ -70,6 +70,7 @@ %{_bindir}/virt-clone %{_bindir}/virt-image

Re: [et-mgmt-tools] [PATCH] modular virt-convert

2008-07-03 Thread Joey Boggs
I'm more than happy with it, surprised it took off so fast actually :) Thanks for you contributions John Cole Robinson wrote: John Levon wrote: This is merged with current tip and now installs properly. thanks john Create config parser plugin system Start a plugin system for config

Re: [et-mgmt-tools] [PATCH] Check result of qemu-img

2008-07-01 Thread Joey Boggs
You might need to specify the -f option, I know there's an older qemu-img version on Fedora 8 that does not autodetect the file format. qemu-img -f file.vmdk John Levon wrote: On Tue, Jul 01, 2008 at 08:24:36PM +0100, John Levon wrote: Check result of qemu-img If qemu-img convert

Re: [et-mgmt-tools] [PATCH] convert vmware machines to virt-image xml format

2008-06-30 Thread Joey Boggs
been used a bit to beat out any potential bugs. David Lutterkort wrote: On Tue, 2008-07-01 at 03:32 +0100, John Levon wrote: On Thu, Jun 26, 2008 at 10:32:11AM -0400, Joey Boggs wrote: --- virtinst--devel.orig/virt-unpack1969-12-31 19:00:00.0 -0500 +++ virtinst--devel/virt

[et-mgmt-tools] [PATCH] convert vmware machines to virt-image xml format

2008-06-26 Thread Joey Boggs
a VMware(tm) virtual machine into an XML image description +# +# Copyright 2008 Red Hat, Inc. +# Joey Boggs [EMAIL PROTECTED] +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software

Re: [et-mgmt-tools] [PATCH] convert vmware machines to virt-image xml format

2008-06-26 Thread Joey Boggs
Forgot to merge back changes into the tree before running the latest patch, updated patch file Joey Boggs wrote: These patches provide the virt-unpack command which converts vmware format machines into virt-image xml format hvm/paravirt runnable instances. Next revision will contain libvirt

Re: [et-mgmt-tools] [PATCH] virt-inst Package an image for VMware distribution

2008-06-10 Thread Joey Boggs
Some of my changes hadn't saved, not sure why. I made them again and renamed dict to vmdk_dict Cole Robinson wrote: Joey Boggs wrote: Updated virt-pack and Unware.py per suggestions Comments inline: diff -Naur virtinst--devel.orig/virtinst/UnWare.py virtinst--devel/virtinst

Re: [et-mgmt-tools] [PATCH] virt-inst Package an image for VMware distribution

2008-06-10 Thread Joey Boggs
Made more updates based on comments. Cole Robinson wrote: Joey Boggs wrote: Updated virt-pack and Unware.py per suggestions Comments inline: diff -Naur virtinst--devel.orig/virtinst/UnWare.py virtinst--devel/virtinst/UnWare.py --- virtinst--devel.orig/virtinst/UnWare.py

[et-mgmt-tools] [PATCH] virt-inst Package an image for VMware distribution

2008-05-30 Thread Joey Boggs
+ +++ b/virtinst/UnWare.py Wed Dec 12 17:53:53 2007 -0800 @@ -0,0 +1,291 @@ +# +# Processing of VMWare(tm) .vmx files +# +# Copyright 2007 Red Hat, Inc. +# David Lutterkort [EMAIL PROTECTED] +# Joey Boggs [EMAIL PROTECTED] +# +# This program is free software; you can redistribute it and/or modify