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
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
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
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
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
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
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(,
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
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
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
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
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
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
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
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
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,
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
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
: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
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
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
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
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):
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
+
+++ 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
40 matches
Mail list logo