[ovirt-users] Re: error importing from VMware, and workaround

2020-08-04 Thread Richard W.M. Jones
On Tue, Aug 04, 2020 at 12:38:33PM +0300, Yedidyah Bar David wrote:
> Hi,
> 
> On Mon, Aug 3, 2020 at 1:52 AM Philip Brown  wrote:
> >
> > more details in my saga of problem imports from VMware/vsphere to ovirt  
> > (4.4.1 node)
> >
> > I had done a couple successfully, but my next one kept failing. Couldnt 
> > figure out why.
> >
> > The only things resembling an error in the import logs, were this:
> > (trimmed a bit)
> >
> > "rpm -e vmware-tools-nox vmware-tools-common"
> > { "message": "libguestfs error: command: error: Failed 
> > dependencies:\n\tvmware-tools-nox = 8.3.19 is needed by (installed) 
> > vmware-tools-8.3.19-1310361.el6.x86_64", "timestamp": 
> > "2020-08-02T21:28:08.797433658+00:00", "type": "error" }
> >
> >
> > I thought to myself.. nah, that couldnt be it. import failed.. because you 
> > couldnt REMOVE a package??? that would be dumb.
> > but that was the problem.
> >
> > I started up the old vm, did a
> >
> > yum remove 'vmware-*'
> >
> > reexported from VMware, and then imported...
> > and this time, the import worked.
> >
> > Please fix that behaviour.
> 
> Thanks for your email. Did you open a bug about this?
> 
> Adding also Richard.

I need to see the full log.  Failure of rpm -e is not a fatal error in
any version of virt-v2v from the last 7 years, so likely the real
error is something else.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/CGZQMLTCO35JLCYEOIULCILMOOYLCFBH/


[ovirt-users] Re: Slow vm transfer speed from vmware esxi 5

2018-09-17 Thread Richard W.M. Jones
On Sun, Sep 16, 2018 at 07:30:09PM +0300, Nir Soffer wrote:
> I used to disable the limit enforcing "sparse" in libguestfs upstream
> source, but lately the simple check at the python plugin level was moved to
> to the ocaml code, and I did not have time to understand it yet.
>
> If you want to remove the limit, try to look here:
> https://github.com/libguestfs/libguestfs/blob/51a9c874d3f0a9c4780f2cd3ee7072180446e685/v2v/output_rhv_upload.ml#L163
> 
> On RHEL, there is no such limit, and you can import vms to any kind of
> storage.
> 
> Richard, can we remove the limit on sparse format? I don't see how this
> limit
> helps anyone.

We already remove it downstream in all RHEL and LP builds.  Here is
the commit which does that:

https://github.com/libguestfs/libguestfs/commit/aa5608a922bd35db28f555e53aea2308361991dd

We could remove it upstream, but AIUI it causes conversions to break
with no easy way for users to understand what -oa modes are supported
by what backends.  To fix it properly we need a way for oVirt /
imageio / whatever to describe what modes are possible for the current
backend.

> oVirt support several combinations:
> 
> file:
> - raw sparse
> - raw preallocated
> - qcow2 sparse (unsupported in v2v)
> 
> block:
> - raw preallocated
> - qcow2 sparse (unsupported in v2v)
> 
> It seems that oVirt SDK is does not have a good way to select the format
> yet, so
> virt-v2v cannot select the format for the user. This means the user need to
> select
> the format.

Right.

There are two open bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1600547
https://bugzilla.redhat.com/show_bug.cgi?id=1574734

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/TP6JXLNGSI7KUKGPUZS3RXMA5MMPV4UZ/


[ovirt-users] Re: [Qemu-block] Libvirt ERROR cannot access backing file after importing VM from OpenStack

2018-07-11 Thread Richard W.M. Jones
On Wed, Jul 11, 2018 at 11:30:19AM +0300, Arik Hadas wrote:
> 4. Mount each reserved place for a disk as a loopback device and convert
> the volume-chain directly to it [1]

nbdkit tar plugin can overwrite a single file inside a tarball, all in
userspace and non-root.

  https://github.com/libguestfs/nbdkit/tree/master/plugins/tar

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/GOESXWCB4JEIMWHQBA2T3CPTDOCDHHD4/


[ovirt-users] Re: Failure to import a VM

2018-06-06 Thread Richard W.M. Jones
On Wed, Jun 06, 2018 at 02:02:55PM +, Aziz wrote:
> Here attached more logs, while importing the OVA file. Thanks

  [  11.4] Converting PanOS release 2 (HDF) to run on KVM

I'm not sure what this is, except it seems to be derived from RHEL or
CentOS, but we don't usually support arbitrary guests, only the ones
listed in the manual:

  http://libguestfs.org/virt-v2v.1.html#support-matrix

If it's not in that list then it's pot luck whether it works.

In this case the actual failure is:

  virt-v2v: error: no bootloader detected

It's looking for a grub configuration file under /boot and doesn't
find one (out of grub.cfg, grub.conf or menu.lst).  We need to find
the bootloader in order to determine what kernel can be booted and
sometimes to change the kernel to one which supports virtio.

You might want to try ovirt-image-uploader instead.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/DWRA7AJZ3O4FSYSYQXVOZCT4N4N7GZV6/


[ovirt-users] Re: Failure to import a VM

2018-06-04 Thread Richard W.M. Jones
On Mon, Jun 04, 2018 at 05:22:44PM +0300, Arik Hadas wrote:
> On Mon, Jun 4, 2018 at 3:51 PM, Aziz  wrote:
> 
> > Hi,
> >
> > It's RedHat x64 ( The system is Palo Alto Firewall VM).
> >
> >
> >
> >
> > Note : I imported the VM to virtualbox and Vmware without any issues, so I
> > can confirm that the OVA file is working.

This is where you're making the mistake.  OVA is not a real standard.

Anyway I need to see the full logs from virt-v2v to say anything more.

  http://libguestfs.org/virt-v2v.1.html#debugging-rhv-m-import-failures

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/GMGEW63SUA3X576UPBKUAIM3QHZCEKQO/


[ovirt-users] Re: Libvirt ERROR cannot access backing file after importing VM from OpenStack

2018-05-30 Thread Richard W.M. Jones
On Wed, May 30, 2018 at 03:35:11PM +0300, Nir Soffer wrote:
> This is not the flow we are looking for. We need a way to read qcow2 data
> from a pipe.

The flow you asked for:

> > > image in any format -> qemu-img -> [qcow2 byte stream] -> imageio http
> > > server -> http client

is exactly what rhv-upload-plugin.py does, except for "-> http client"
at the end which I don't understand.

Can you describe exactly what you're trying to do again?

[...]
> > But in any case you can just use the nbdkit tar plugin which already
> > does all of this.
> >
> 
> Can it work with a tar stream read from stdin, or it requires a tar file?

As above it may help to describe from the start exactly what you're
trying to do.  This email thread has gone on for days and it's hard to
keep track of everything.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/JILUXYB2FPZMUZ347M5CMHR6LOSGZVK3/


[ovirt-users] Re: Libvirt ERROR cannot access backing file after importing VM from OpenStack

2018-05-30 Thread Richard W.M. Jones
On Wed, May 30, 2018 at 12:11:21AM +0300, Nir Soffer wrote:
> Exporting images or ova files:
> 
> image in any format -> qemu-img -> [qcow2 byte stream] -> imageio http
> server -> http client

You can do this with nbdkit + plugin, it's exactly what we do today
for virt-v2v:

https://github.com/libguestfs/libguestfs/blob/master/v2v/rhv-upload-plugin.py

> Importing images or ova files:
> 
> http client -> imageio http server -> [qcow2 byte stream] -> qemu-img ->
> image in any format

Also could be done with nbdkit + plugin, basically the reverse of the
above.

> > If you can create a tar file that reserves space for the image file
> > without actually writing it, a possible workaround today would be using
> > the offset/size runtime options of the raw driver to convert directly
> > into a region inside the tar archive.
> >
> 
> What are the offset/size runtime options? I cannot find anything about
> them in man qemu-img.

See:
https://github.com/libguestfs/libguestfs/blob/dd162d2cd56a2ecf4bcd40a7f463940eaac875b8/v2v/input_ova.ml#L161

But in any case you can just use the nbdkit tar plugin which already
does all of this.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/PXRHKGNW7FTPT27XSGEDFWK7LRPNZMNL/


[ovirt-users] Re: Libvirt ERROR cannot access backing file after importing VM from OpenStack

2018-05-29 Thread Richard W.M. Jones
On Mon, May 28, 2018 at 01:27:21PM +0300, Arik Hadas wrote:
> Let me demonstrate briefly the flow for OVA:
> Let's say that we have a VM that is based on a template and has one disk
> and one snapshot, so its volume-chain would be:
> T -> S -> V
> (V is the volume the VM writes to, S is the backing file of V and T is the
> backing file of S).
> When exporting that VM to an OVA file we want the produced tar file to be
> comprised of:
> (1) OVF configuration
> (2) single disk volume (preferably qcow).
> 
> So we need to collapse T, S, V into a single volume.
> Sure, we can do 'qemu-img convert'. That's what we do now in oVirt 4.2:
> (a) qemu-img convert produces a 'temporary' collapsed volume
> (b) make a tar file of the OVf configuration and that 'temporary' volume
> (c) delete the temporary volume
> 
> But the fact that we produce that 'temporary' volume obviously slows down
> the entire operation.
> It would be much better if we could "open" a stream that we can read from
> the 'collapsed' form of that chain and stream it directly into the
> appropriate tar file entry, without extra writes to the storage device.

A custom nbdkit plugin is possible here.  In fact it's almost possible
using the existing nbdkit-tar-plugin[1], except that it doesn't
support resizing the tarball so you'd need a way to predict the size
of the final qcow2 file.

The main difficulty for modifying nbdkit-tar-plugin is working out how
to resize tar files.  If you can do that then it's likely just a few
lines of code.

Rich.

[1] 
https://manpages.debian.org/testing/nbdkit-plugin-perl/nbdkit-tar-plugin.1.en.html
https://github.com/libguestfs/nbdkit/blob/master/plugins/tar/tar.pl

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/G34UH3QMVSGP4LMPJH7HWHXKNYHZ3D45/


[ovirt-users] Re: [ovirt-devel] Re: Mailing-Lists upgrade

2018-05-11 Thread Richard W.M. Jones
On Fri, May 11, 2018 at 05:55:57PM +0100, Richard W.M. Jones wrote:
> 
> This change has dropped the X-BeenThere header, ie:
> 
> X-BeenThere: de...@ovirt.org
> 
> X-BeenThere: users@ovirt.org
> 
> which means filtering the mails is no longer possible.  There doesn't
> appear to be any other distinguishing header.

Oh wait, List-id ...

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org


[ovirt-users] Re: [ovirt-devel] Re: Mailing-Lists upgrade

2018-05-11 Thread Richard W.M. Jones

This change has dropped the X-BeenThere header, ie:

X-BeenThere: de...@ovirt.org

X-BeenThere: users@ovirt.org

which means filtering the mails is no longer possible.  There doesn't
appear to be any other distinguishing header.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org


Re: [ovirt-users] Unremovable disks created through the API

2018-03-06 Thread Richard W.M. Jones
On Tue, Mar 06, 2018 at 11:14:40PM +0200, Arik Hadas wrote:
> On Tue, Mar 6, 2018 at 9:18 PM, Richard W.M. Jones <rjo...@redhat.com>
> wrote:
> 
> >
> > I've been playing with disk uploads through the API.  As a result
> > I now have lots of disks in the states "Paused by System" and
> > "Paused by User".  They are not attached to any VM, and I'm logged
> > in as admin@internal, but there seems to be no way to use them.
> > Even worse I've now run out of space so can't do anything else.
> >
> > How can I remove them?
> 
> 
> > Screenshot: http://oirase.annexia.org/tmp/ovirt.png
> 
> 
> Hi Richard,
> 
> Selecting Upload->Cancel at that tab will remove such a disk.
> Note that it may take a minute or two.

Yes, that works, thanks.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Unremovable disks created through the API

2018-03-06 Thread Richard W.M. Jones

I've been playing with disk uploads through the API.  As a result
I now have lots of disks in the states "Paused by System" and
"Paused by User".  They are not attached to any VM, and I'm logged
in as admin@internal, but there seems to be no way to use them.
Even worse I've now run out of space so can't do anything else.

How can I remove them?

Screenshot: http://oirase.annexia.org/tmp/ovirt.png

It's a pretty recent engine:

ovirt-engine-4.2.2.2-0.0.master.20180225172203.gitd7cf125.el7.centos.noarch

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] problem importing ova vm

2018-02-22 Thread Richard W.M. Jones
On Thu, Feb 22, 2018 at 01:27:18PM +0100, Jiří Sléžka wrote:
> libvirt needs authentication to connect to libvirt URI qemu:///system
> (see also: http://libvirt.org/auth.html http://libvirt.org/uri.html)

You can set the backend to direct to avoid needing libvirt:

  export LIBGUESTFS_BACKEND=direct

Alternately you can fiddle with the libvirt polkit configuration
to permit access:

  https://libvirt.org/aclpolkit.html

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] problem importing ova vm

2018-02-22 Thread Richard W.M. Jones
On Thu, Feb 22, 2018 at 12:09:56PM +0200, Arik Hadas wrote:
> supermin: failed to find a suitable kernel (host_cpu=x86_64).

Please run ‘libguestfs-test-tool’ and attach the complete output.

> @Richard, this is an OVA of a VM installed with Debian64 as guest OS that
> was exported from VirtualBox, is it supported by virt-v2v?

No, we only support OVAs exported from VMware.  OVF isn't a
real standard, it's a ploy by VMware to pretend that they
conform to standards.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Slow conversion from VMware in 4.1

2018-02-06 Thread Richard W.M. Jones
On Tue, Feb 06, 2018 at 11:11:37AM +0100, Luca 'remix_tj' Lorenzetto wrote:
> Il 6 feb 2018 10:52 AM, "Yaniv Kaul"  ha scritto:
> 
> 
> I assume its network interfaces are also a bottleneck as well. Certainly if
> they are 1g.
> Y.
> 
> 
> That's not the case, vcenter uses 10g and also all the involved hosts.
> 
> We first supposed the culprit was network, but investigations has cleared
> its position. Network usage is under 40% with 4 ongoing migrations.

The problem is two-fold and is common to all vCenter transformations:

(1) A single https connection is used and each block of data that is
requested is processed serially.

(2) vCenter has to forward each request to the ESXi hypervisor.

(1) + (2) => most time is spent waiting on the lengthy round trips for
each requested block of data.

This is why overlapping multiple parallel conversions works and
(although each conversion is just as slow) improves throughput,
because you're filling in the long idle gaps by serving other
conversions.

This is also why other methods perform so much better.  VMX over SSH
uses a single connection but connects directly to the ESXi hypervisor,
so cause (2) is eliminated.  VMX over NFS eliminates VMware servers
entirely and can make multiple parallel requests, eliminating (1) and
(2).  VDDK [in ideal circumstances] can mount the FC storage directly
on the conversion host meaning the ordinary network is not even used
and all requests travel over the SAN.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Slow conversion from VMware in 4.1

2018-02-05 Thread Richard W.M. Jones
On Mon, Feb 05, 2018 at 10:57:58PM +0100, Luca 'remix_tj' Lorenzetto wrote:
> On Fri, Feb 2, 2018 at 12:52 PM, Richard W.M. Jones <rjo...@redhat.com> wrote:
> > There is a section about this in the virt-v2v man page.  I'm on
> > a train at the moment but you should be able to find it.  Try to
> > run many conversions, at least 4 or 8 would be good places to start.
> 
> Hello Richard,
> 
> read the man but found nothing explicit about resource usage. Anyway,
> digging on our setup i found out that vcenter when on low cpu usage is
> 95%.
> I think our windows admins should take care of this.

http://libguestfs.org/virt-v2v.1.html#vmware-vcenter-resources

You should be able to run multiple conversions in parallel
to improve throughput.

The only long-term solution is to use a different method such as VMX
over SSH.  vCenter is just fundamentally bad.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Slow conversion from VMware in 4.1

2018-02-02 Thread Richard W.M. Jones
On Fri, Feb 02, 2018 at 12:20:14PM +0100, Luca 'remix_tj' Lorenzetto wrote:
> Hello Richard,
> 
> unfortunately upgrading virt-v2v is not an option. Would be nice, but
> integration with vdsm is not yet ready for that options.
> 
> On Thu, Jan 25, 2018 at 11:06 AM, Richard W.M. Jones <rjo...@redhat.com> 
> wrote:
> [cut]
> > I don't know why it slowed down, but I'm pretty sure it's got nothing
> > to do with the version of oVirt/RHV.  Especially in the initial phase
> > where it's virt-v2v reading the guest from vCenter.  Something must
> > have changed or be different in the test and production environments.
> >
> 
> > Are you converting the same guests?  virt-v2v is data-driven, so
> > different guests require different operations, and those can take
> > different amount of time to run.
> >
> 
> I'm not migrating the same guests, i'm migrating different guest, but
> most of them share the same os baseline.
> Most of these vms are from the same RHEL 7 template and have little
> data difference (few gigs).
> 
> Do you know which is the performance impact on vcenter? I'd like to
> tune as best as possible the vcenter to improve the migration time.

There is a section about this in the virt-v2v man page.  I'm on
a train at the moment but you should be able to find it.  Try to
run many conversions, at least 4 or 8 would be good places to start.

> We have to migrate ~300 guests, and our maintenance window is very
> short. We don't want continue the migration for months.

SSH or VDDK method would be far faster but if you can't upgrade
you're stuck with https to vCenter.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Slow conversion from VMware in 4.1

2018-01-25 Thread Richard W.M. Jones
On Thu, Jan 25, 2018 at 10:53:28AM +0100, Luca 'remix_tj' Lorenzetto wrote:
> On Thu, Jan 25, 2018 at 10:08 AM, Richard W.M. Jones <rjo...@redhat.com> 
> wrote:
> > There's got to be some difference between your staging environment and
> > your production environment, and I'm pretty sure it has nothing to do
> > with the version of oVirt.
> >
> > Are you running virt-v2v inside a virtual machine, and previously you
> > ran it on bare-metal?  Or did you disable nested KVM?  That seems like
> > the most likely explanation for the difference (although I'm surprised
> > that the difference is so large).
> >
> > Rich.
> >
> 
> Hello Rich,
> 
> i'm running virt-v2v throught the import option of oVirt.

Unfortunately the ‘-i vmx’ method is not yet supported when using the
oVirt UI.  However it will work from the command line[0] if you just
upgrade virt-v2v using the RHEL 7.5 preview repo I linked to before.

‘-i vmx’ will be by far the fastest way to transfer guests available
currently, (unless you want to get into VDDK which currently requires
a lot of fiddly setup[1]).

> [root@kvm01 ~]# rpm -qa virt-v2v
> virt-v2v-1.36.3-6.el7_4.3.x86_64
> [root@kvm01 ~]# rpm -qa libguestfs
> libguestfs-1.36.3-6.el7_4.3.x86_64
> [root@kvm01 ~]# rpm -qa "redhat-virtualization-host-image-update*"
> redhat-virtualization-host-image-update-placeholder-4.1-8.1.el7.noarch
> redhat-virtualization-host-image-update-4.1-20171207.0.el7_4.noarch
> 
> (yes, i'm running RHV, but i think this shouldn't change the behaviour)
> 
> I don't set anything in the commandline or whatever, i set only the
> source and destination throught the API. So virt-v2v is coordinated
> via vdsm and runs on the bare-metal host.
> 
> The network distance is "0", because vcenter, source vmware hosts, kvm
> hosts and ovirt hosts lies in the same network. The only annotation is
> that also vCenter is a VM, running on esx environment.
> 
> Network interfaces both on source and destination are 10Gbit, but
> there may be a little slowdown on vcenter side because has to get the
> data from esx's datastore and forward to the ovirt host.

I don't know why it slowed down, but I'm pretty sure it's got nothing
to do with the version of oVirt/RHV.  Especially in the initial phase
where it's virt-v2v reading the guest from vCenter.  Something must
have changed or be different in the test and production environments.

Are you converting the same guests?  virt-v2v is data-driven, so
different guests require different operations, and those can take
different amount of time to run.

Rich.

[0] http://libguestfs.org/virt-v2v.1.html#input-from-vmware-vmx
[1] http://libguestfs.org/virt-v2v.1.html#input-from-vddk

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Slow conversion from VMware in 4.1

2018-01-25 Thread Richard W.M. Jones
On Thu, Jan 25, 2018 at 09:08:49AM +, Richard W.M. Jones wrote:
> On Wed, Jan 24, 2018 at 11:49:13PM +0100, Luca 'remix_tj' Lorenzetto wrote:
> > Hello,
> > 
> > i've started my migrations from vmware today. I had successfully
> > migrated over 200 VM from vmware to another cluster based on 4.0 using
> > our home-made scripts interacting with the API's. All the migrated vms
> > are running RHEL 6 or 7, with no SELinux.
> > 
> > We understood a lot about the necessities and we recorded also some
> > metrics about migration times. In July, with 4.0 as destination, we
> > were migrating ~30gb vm in ~40 mins.
> > It was an acceptable time, considering that about 50% of our vms stand
> > around that size.
> > 
> > Today we started migrating to the production cluster, that is,
> > instead, running 4.1.8. With the same scripts, the same api calls, and
> > a vm of about 50gb we were supposing that we will have the vm running
> > in the new cluster after 70 minutes, more or less.
> > 
> > Instead, the migration is taking more than 2 hours, and this not
> > because of the slow conversion time by qemu-img given that we're
> > transferring an entire disk via http.
> > Looking at the log, seems that activities executed before qemu-img
> > took more than 2000 seconds. As example, appears to me that dracut
> > took more than 14 minutes, which is in my opinion a bit long.
> 
> There's got to be some difference between your staging environment and
> your production environment, and I'm pretty sure it has nothing to do
> with the version of oVirt.
> 
> Are you running virt-v2v inside a virtual machine, and previously you
> ran it on bare-metal?  Or did you disable nested KVM?  That seems like
> the most likely explanation for the difference (although I'm surprised
> that the difference is so large).

Another factor would be the network "distance" between virt-v2v and
VMware.  More hops?  Slower network interfaces?

Also you don't mention which version of virt-v2v you're using, but if
it's new enough then you should use ‘-i vmx’ conversions, either
directly from NFS, or over SSH from the ESXi hypervisor.  That will be
far quicker than conversions over HTTPS from vCenter (I mean, orders
of magnitude quicker).

The RHEL 7.5 preview repo which supports this is:

  https://www.redhat.com/archives/libguestfs/2017-November/msg6.html

Rich.

> > Is there any option to get a quicker conversion? Also some tasks to
> > run in the guests before the conversion are accepted.
> > 
> > We have to migrate ~300 vms in 2.5 months, and we're only at 11 after
> > 7 hours (and today an exception that allowed us to start 4 hours in
> > advance, but usually our maintenance time is significantly lower).
> > 
> > This is a filtered out log reporting only the rows were we can
> > understand how much time has passed:
> > 
> > [   0.0] Opening the source -i libvirt -ic
> > vpx://vmwareuser%40domain@vcenter/DC/Cluster/Host?no_verify=1
> > vmtoconvert
> > [   6.1] Creating an overlay to protect the source from being modified
> > [   7.4] Initializing the target -o vdsm -os
> > /rhev/data-center/e8263fb4-114d-4706-b1c0-5defcd15d16b/a118578a-4cf2-4e0c-ac47-20e9f0321da1
> > --vdsm-image-uuid 1a93e503-ce57-4631-8dd2-eeeae45866ca --vdsm-vol-uuid
> > 88d92582-0f53-43b0-89ff-af1c17ea8618 --vdsm-vm-uuid
> > 1434e14f-e228-41c1-b769-dcf48b258b12 --vdsm-ovf-output
> > /var/run/vdsm/v2v
> > [   7.4] Opening the overlay
> > [00034ms] /usr/libexec/qemu-kvm \
> > [0.00] Initializing cgroup subsys cpu
> > [0.00] Initializing cgroup subsys cpuacct
> > [0.00] Linux version 3.10.0-693.11.1.el7.x86_64
> > (mockbu...@x86-041.build.eng.bos.redhat.com) (gcc version 4.8.5
> > 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Fri Oct 27 05:39:05 EDT
> > 2017
> > [0.00] Command line: panic=1 console=ttyS0 edd=off
> > udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1
> > cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable
> > 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1
> > guestfs_network=1 TERM=linux guestfs_identifier=v2v
> > [0.00] e820: BIOS-provided physical RAM map:
> > [0.00] BIOS-e820: [mem 0x-0x0009f7ff] usable
> > [0.00] BIOS-e820: [mem 0x0009f800-0x0009] 
> > reserved
> > [0.00] BIOS-e820: [mem 0x000f-0x000f] 
> > reserved
> > [0.00] BIOS-e820: [mem 0x0010-0x7cfddfff] usable
> > [0.00] BIOS-e820: [mem 0x7cfde000-0x

Re: [ovirt-users] Slow conversion from VMware in 4.1

2018-01-25 Thread Richard W.M. Jones
On Wed, Jan 24, 2018 at 11:49:13PM +0100, Luca 'remix_tj' Lorenzetto wrote:
> Hello,
> 
> i've started my migrations from vmware today. I had successfully
> migrated over 200 VM from vmware to another cluster based on 4.0 using
> our home-made scripts interacting with the API's. All the migrated vms
> are running RHEL 6 or 7, with no SELinux.
> 
> We understood a lot about the necessities and we recorded also some
> metrics about migration times. In July, with 4.0 as destination, we
> were migrating ~30gb vm in ~40 mins.
> It was an acceptable time, considering that about 50% of our vms stand
> around that size.
> 
> Today we started migrating to the production cluster, that is,
> instead, running 4.1.8. With the same scripts, the same api calls, and
> a vm of about 50gb we were supposing that we will have the vm running
> in the new cluster after 70 minutes, more or less.
> 
> Instead, the migration is taking more than 2 hours, and this not
> because of the slow conversion time by qemu-img given that we're
> transferring an entire disk via http.
> Looking at the log, seems that activities executed before qemu-img
> took more than 2000 seconds. As example, appears to me that dracut
> took more than 14 minutes, which is in my opinion a bit long.

There's got to be some difference between your staging environment and
your production environment, and I'm pretty sure it has nothing to do
with the version of oVirt.

Are you running virt-v2v inside a virtual machine, and previously you
ran it on bare-metal?  Or did you disable nested KVM?  That seems like
the most likely explanation for the difference (although I'm surprised
that the difference is so large).

Rich.

> Is there any option to get a quicker conversion? Also some tasks to
> run in the guests before the conversion are accepted.
> 
> We have to migrate ~300 vms in 2.5 months, and we're only at 11 after
> 7 hours (and today an exception that allowed us to start 4 hours in
> advance, but usually our maintenance time is significantly lower).
> 
> This is a filtered out log reporting only the rows were we can
> understand how much time has passed:
> 
> [   0.0] Opening the source -i libvirt -ic
> vpx://vmwareuser%40domain@vcenter/DC/Cluster/Host?no_verify=1
> vmtoconvert
> [   6.1] Creating an overlay to protect the source from being modified
> [   7.4] Initializing the target -o vdsm -os
> /rhev/data-center/e8263fb4-114d-4706-b1c0-5defcd15d16b/a118578a-4cf2-4e0c-ac47-20e9f0321da1
> --vdsm-image-uuid 1a93e503-ce57-4631-8dd2-eeeae45866ca --vdsm-vol-uuid
> 88d92582-0f53-43b0-89ff-af1c17ea8618 --vdsm-vm-uuid
> 1434e14f-e228-41c1-b769-dcf48b258b12 --vdsm-ovf-output
> /var/run/vdsm/v2v
> [   7.4] Opening the overlay
> [00034ms] /usr/libexec/qemu-kvm \
> [0.00] Initializing cgroup subsys cpu
> [0.00] Initializing cgroup subsys cpuacct
> [0.00] Linux version 3.10.0-693.11.1.el7.x86_64
> (mockbu...@x86-041.build.eng.bos.redhat.com) (gcc version 4.8.5
> 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Fri Oct 27 05:39:05 EDT
> 2017
> [0.00] Command line: panic=1 console=ttyS0 edd=off
> udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1
> cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable
> 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1
> guestfs_network=1 TERM=linux guestfs_identifier=v2v
> [0.00] e820: BIOS-provided physical RAM map:
> [0.00] BIOS-e820: [mem 0x-0x0009f7ff] usable
> [0.00] BIOS-e820: [mem 0x0009f800-0x0009] reserved
> [0.00] BIOS-e820: [mem 0x000f-0x000f] reserved
> [0.00] BIOS-e820: [mem 0x0010-0x7cfddfff] usable
> [0.00] BIOS-e820: [mem 0x7cfde000-0x7cff] reserved
> [0.00] BIOS-e820: [mem 0xfeffc000-0xfeff] reserved
> [0.00] BIOS-e820: [mem 0xfffc-0x] reserved
> [0.00] NX (Execute Disable) protection: active
> [0.00] SMBIOS 2.8 present.
> [0.00] Hypervisor detected: KVM
> [0.00] e820: last_pfn = 0x7cfde max_arch_pfn = 0x4
> [0.00] x86 PAT enabled: cpu 0, old 0x7040600070406, new 
> 0x7010600070106
> [0.00] found SMP MP-table at [mem 0x000f72f0-0x000f72ff]
> mapped at [880f72f0]
> [0.00] Using GB pages for direct mapping
> [0.00] RAMDISK: [mem 0x7ccb2000-0x7cfc]
> [0.00] Early table checksum verification disabled
> [0.00] ACPI: RSDP 000f70d0 00014 (v00 BOCHS )
> [0.00] ACPI: RSDT 7cfe14d5 0002C (v01 BOCHS  BXPCRSDT
> 0001 BXPC 0001)
> [0.00] ACPI: FACP 7cfe13e9 00074 (v01 BOCHS  BXPCFACP
> 0001 BXPC 0001)
> [0.00] ACPI: DSDT 7cfe0040 013A9 (v01 BOCHS  BXPCDSDT
> 0001 BXPC 0001)
> [0.00] ACPI: FACS 7cfe 00040
> [0.00] ACPI: APIC 7cfe145d 00078 (v01 

Re: [ovirt-users] [Libguestfs] virt-v2v import from KVM without storage-pool ?

2017-07-07 Thread Richard W.M. Jones
On Fri, Jul 07, 2017 at 01:31:38PM +0200, Tomáš Golembiovský wrote:
> Hi,
> 
> yes it is an issue in VDSM. We count on the disks being in storage pool
> (except for block devices).
> 
> Can you open a BZ bug for that please.

Is this the same thing?

https://bugzilla.redhat.com/show_bug.cgi?id=1468509

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [Libguestfs] virt-v2v import from KVM without storage-pool ?

2017-07-05 Thread Richard W.M. Jones
On Wed, Jul 05, 2017 at 11:14:09AM +0200, Matthias Leopold wrote:
> hi,
> 
> i'm trying to import a VM in oVirt from a KVM host that doesn't use
> storage pools. this fails with the following message in
> /var/log/vdsm/vdsm.log:
> 
> 2017-07-05 09:34:20,513+0200 ERROR (jsonrpc/5) [root] Error getting
> disk size (v2v:1089)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 1078, in
> _get_disk_info
> vol = conn.storageVolLookupByPath(disk['alias'])
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4770,
> in storageVolLookupByPath
> if ret is None:raise libvirtError('virStorageVolLookupByPath()
> failed', conn=self)
> libvirtError: Storage volume not found: no storage vol with matching path
> 
> the disks in the origin VM are defined as
> 
> 
>   
>   
> 
> 
>   
>   
> 
> is this a virt-v2v or oVirt problem?

Well the stack trace is in the oVirt code, so I guess it's an oVirt
problem.  Adding ovirt-users mailing list.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Feature: enhanced OVA support

2017-05-15 Thread Richard W.M. Jones
On Sun, May 14, 2017 at 04:56:56PM +0300, Arik Hadas wrote:
> Hi everyone,
> 
> We would like to share our plan for extending the currently provided
> support for OVA files with:
> 1. Support for uploading OVA.
> 2. Support for exporting a VM/template as OVA.
> 3. Support for importing OVA that was generated by oVirt (today, we only
> support those that are VMware-compatible).
> 4. Support for downloading OVA.
> 
> This can be found on the feature page
> 
> .
> 
> Your feedback and cooperation will be highly appreciated.

The plan as stated seems fine, but I have some reservations which I
don't think are answered by the page:

(1) How will oVirt know the difference between an OVA generated
by oVirt and one generated by VMware (or indeed other sources)?
A VMware OVF has an XML comment:



but not any official metadata that I could see.

(By the way, I don't think importing via virt-v2v vs directly will be
any quicker.  The v2v conversion / device installation takes only a
fraction of the time.  Most of the time is consumed doing the format
conversion from VMDK to qcow2.  However you are correct that when you
know that the source is oVirt/KVM, you should not run virt-v2v.)

(2) I think you're going to have a lot of fun generating OVAs which
work on VMware.  As Yaniv says, the devices aren't the same so you'd
be having to do some virt-v2v -like driver installation / registry
modification.  Plus the OVF file is essentially a VMware data dump
encoded as XML.  OVF isn't a real standard.  I bet there are a million
strange corner cases.  Even writing VMDK files is full of pitfalls.

VMware has a reasonable V2V import tool (actually their P2V tooling is
very decent).  Of course it's proprietary, but then so is their
hypervisor.  Maybe oVirt can drive their tools?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [Libguestfs] OVA import of FC21 VM hangs during virt-v2v conversion?

2016-11-17 Thread Richard W.M. Jones

The bug is:
https://bugzilla.redhat.com/show_bug.cgi?id=1396297

Let's continue discussion there, if needed.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [Libguestfs] OVA import of FC21 VM hangs during virt-v2v conversion?

2016-11-17 Thread Richard W.M. Jones
On Thu, Nov 17, 2016 at 11:06:48AM -0500, Derek Atkins wrote:
> Would you like a copy of the VMDK?  If so I can figure out how to make it
> available to you (privately).

I can certainly have a go.  Can you post it on a website somewhere?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [Libguestfs] OVA import of FC21 VM hangs during virt-v2v conversion?

2016-11-17 Thread Richard W.M. Jones
On Thu, Nov 17, 2016 at 09:57:47AM -0500, Derek Atkins wrote:
> Hi,
> 
> On Thu, November 17, 2016 4:11 am, Richard W.M. Jones wrote:
> > On Wed, Nov 16, 2016 at 08:07:15PM -0500, Derek Atkins wrote:
> >> I found the disk image for the running VM, created a symlink, and then
> >> ran
> >> the command above.  It took a while:
> >>
> >> # time LIBGUESTFS_BACKEND=direct guestfish --ro -a fc21-64.qcow2 -i
> >> selinux-relabel /etc/selinux/targeted/contexts/files/file_contexts /
> >> force:true
> >>
> >> real   114m17.757s
> >> user   114m16.476s
> >> sys0m6.042s
> >
> > That certainly demonstrates the bug.  I'm unclear why it would be
> > happening, but perhaps you can run the following commands and send me
> > the results:
> >
> > LIBGUESTFS_BACKEND=direct guestfish --ro -a fc21-64.qcow2 -i find / >
> > files
> >
> > LIBGUESTFS_BACKEND=direct virt-cat -a fc21-64.qcow2
> > /etc/selinux/targeted/contexts/files/file_contexts / > file_contexts
> 
> See attached..  There are 184,431 entries in the file list.
> 
> > rpm -qf /usr/sbin/setfiles > setfiles.version
> 
> Did you want this on the host or in the guest?  On the host I get:
> policycoreutils-2.2.5-20.el7.x86_64

This is the same version I have.

> There's really nothing private in the list of files on this machine.  It's
> an openafs build slave.  :)

Indeed there's a large number of .ccache files (over 5).

However even recreating this directory structure locally and using the
same version of setfiles, I wasn't able to reproduce the problem.
Runs of setfiles never took more than about 15 seconds.

So, I don't know ..

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [Libguestfs] OVA import of FC21 VM hangs during virt-v2v conversion?

2016-11-16 Thread Richard W.M. Jones
On Wed, Nov 16, 2016 at 05:30:55PM -0500, Derek Atkins wrote:
> Hi,
> 
> On Wed, November 16, 2016 5:15 pm, Richard W.M. Jones wrote:
> > On Wed, Nov 16, 2016 at 05:09:56PM -0500, Derek Atkins wrote:
> >
> > I'll try to reproduce the issue here, but you can also do
> > the following command directly on the guest disk image if you
> > want to test something:
> >
> >   time LIBGUESTFS_BACKEND=direct guestfish --ro -a fc21-64.qcow2 -i
> > selinux-relabel /etc/selinux/targeted/contexts/files/file_contexts /
> > force:true
> >
> > As long as you make sure you use the '--ro' flag, this will not make
> > any changes to the disk image.
> 
> The OVA has a .vmdk file inside it.  I have no idea where ovirt put the
> .qcow2 file.  I suppose I would need to track it down through the VM GUID?

Safest and easiest would be to run the command on the .vmdk file.  The
command creates an overlay and works in roughly the same was as
virt-v2v itself does.

> Can I run this command on the disk image of a running VM that's already
> been imported?

As long as you use --ro it's safe to use.  However I'd suggest running
it on the source .vmdk to be as close as possible to what virt-v2v was
doing.

[...]
> So noted.  Like I said, I can supply you the ova file if you think it
> would help.  It's only 1.7GB  ;)

Let's see if this command takes a long time first.  It could be the
cause is elsewhere.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [Libguestfs] OVA import of FC21 VM hangs during virt-v2v conversion?

2016-11-16 Thread Richard W.M. Jones
On Wed, Nov 16, 2016 at 04:49:46PM -0500, Derek Atkins wrote:
> I suppose there could be a bug.  I just verified that it's absolutely
> setfiles:
> 
> 14:06:20 I: Started virt-v2v -v -x -i ova /ovirt/import/fc21-64.ova -of
> raw -o null
> 14:06:20 O: [   0.0] Opening the source -i ova /ovirt/import/fc21-64.ova
> [snip]
> 14:07:25 E: libguestfs: trace: v2v: aug_get = "targeted"
> 14:07:25 E: libguestfs: trace: v2v: aug_close
> 14:07:25 E: guestfsd: main_loop: new request, len 0x28
> 14:07:25 E: guestfsd: main_loop: proc 26 (aug_close) took 0.03 seconds
> 14:07:25 E: libguestfs: trace: v2v: aug_close = 0
> 14:07:25 E: libguestfs: trace: v2v: selinux_relabel
> "/etc/selinux/targeted/contexts/files/file_contexts" "/" "force:true"
> 14:07:25 E: guestfsd: main_loop: new request, len 0x6c
> 14:07:25 E: commandrvf: stdout=n stderr=y flags=0x0
> 14:07:25 E: commandrvf: setfiles -F -e /sysroot/dev -e /sysroot/proc -e
> /sysroot/selinux -e /sysroot/sys -r /sysroot -q
> /sysroot/etc/selinux/targeted/contexts/files/file_contexts /sysroot/
> 14:07:25 E: Can't stat exclude path "/sysroot/selinux", No such file or
> directory - ignoring.
> 
> [ Spacing Emphasis Mine -- there is no break (except time) here ]
> 
> 16:00:42 E: libguestfs: trace: v2v: selinux_relabel = 0

Yes, this is conclusive.

The guest is Fedora 21?  Does it have an unusually large number of
files in the filesystem?  Is the host RHEL or Fedora and which
version?

I will see if I can reproduce it.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [Libguestfs] OVA import of FC21 VM hangs during virt-v2v conversion?

2016-11-16 Thread Richard W.M. Jones

On Wed, Nov 16, 2016 at 10:56:39AM -0500, Derek Atkins wrote:
> "Richard W.M. Jones" <rjo...@redhat.com> writes:
> 
> > On Wed, Nov 16, 2016 at 09:06:29AM +0200, Michal Skrivanek wrote:
> >> 
> >> > On 7 Nov 2016, at 22:16, Derek Atkins <de...@ihtfp.com> wrote:
> >> > 
> >> > Hi,
> >> > 
> >> > My last VM imported in 2 minutes.  This one has been sitting for three
> >> > hours.  I think this is a bug.
> >> 
> >> well, some time it does take a long time. Are you sure it was hung?
> >> No I/O going on?
> >> 
> >> adding libguestfs list 
> >
> > The most likely reason for virt-v2v to hang (actually it's qemu which
> > is hanging) is that you've run out of disk space.  Most probably in
> > /var/tmp but best to check all your host filesystems.
> 
> No, the filesystem had plenty of space.
> 
> It eventually did complete, after several hours.  But I don't understand
> why this particular VM took so long when others (with similar disk
> sizes/usages/configurations) completed in only 1-2 minutes.  Each VM is
> effectively exactly the same (it's a build slave), so it's just the
> basic installation of the particular Fedora release, the build tools,
> and the build slave configuration.  Beyond the underlying fedora release
> version, the systems are configured exactly the same.
> 
> I migrated four similar VMs.  Three of them completed almost
> immediately.  The last too much longer.  The ONLY thing different about
> the one that took longer was that I decided to pack the disk first, so I
> ran:
> 
>   vmware-toolbox-cmd disk shrink /

I'm not familiar with this command.  In general terms, conversions
take a time proportional to the amount of disk space in use by the
guest.

Running `virt-v2v -v -x ...' and observing the output will give you a
good idea of what precisely it was doing for those hours.

Rich.

> in the VM prior to packaging it up as an OVA.  All the OVA files are
> relatively small and similar in size:
> 
> -rw--- 1 warlord warlord  1959553024 Nov  7 10:40 fc20-64.ova
> -rw--- 1 warlord warlord  1794907648 Nov  7 12:27 fc21-64.ova
> -rw--- 1 warlord warlord  2023595520 Nov  6 10:04 fc22-64.ova
> -rw--- 1 warlord warlord  3381622272 Nov  5 16:18 fc23-64.ova
> 
> The FC23 and FC22 migrations took the least amount of time, even though
> they were the largest.
> 
> > Rich.
> 
> -derek
> 
> -- 
>Derek Atkins 617-623-3745
>de...@ihtfp.com www.ihtfp.com
>Computer and Internet Security Consultant

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [Libguestfs] OVA import of FC21 VM hangs during virt-v2v conversion?

2016-11-16 Thread Richard W.M. Jones
On Wed, Nov 16, 2016 at 09:06:29AM +0200, Michal Skrivanek wrote:
> 
> > On 7 Nov 2016, at 22:16, Derek Atkins  wrote:
> > 
> > Hi,
> > 
> > My last VM imported in 2 minutes.  This one has been sitting for three
> > hours.  I think this is a bug.
> 
> well, some time it does take a long time. Are you sure it was hung?
> No I/O going on?
> 
> adding libguestfs list 

The most likely reason for virt-v2v to hang (actually it's qemu which
is hanging) is that you've run out of disk space.  Most probably in
/var/tmp but best to check all your host filesystems.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import of OVA fails in 4.0.4

2016-11-06 Thread Richard W.M. Jones
On Sun, Nov 06, 2016 at 10:11:43PM +0100, Tomáš Golembiovský wrote:
> Hi,
> 
> On Sat, 5 Nov 2016 17:34:25 -0400
> "Derek Atkins"  wrote:
> 
> > Hi again,
> > 
> > After a bit more research I found this message in libguestfs[0] that seems
> > to imply the issue is related to Fedora 23 in that dracut was moved from
> > /sbin to /usr/bin.  Apparently this was fixed in libguestfs on January 28,
> > 2016 by a change to convert_linux.ml [1].  But apparently this change
> > isn't in the centos-7.2/ovirt-4.0.4 packages?
> 
> Yes you're right. That change was not back-ported to the version of
> virt-v2v on CentOS 7.2. But if I understand things correctly it should
> appear in CentOS 7.3. Is waiting for Centos 7.3 an option for you?
> 
> 
> > I just looked through my ovirt host and canot find "convert_linux.ml"
> > anywhere, so I have no idea how to actually apply this patch locally.
> 
> You can't just patch the code localy (it's not Python). You'd need to
> recompile the virt-v2v binary.
> 
> 
> > Short term I suppose I can fix this by adding a symlink in the VM and
> > repackage the OVA, but it would be nice to actually get this bugfix
> > propagated; it's been almost a year?
> 
> Adding Richard to the loop.

I need the additional information as described here:

https://bugzilla.redhat.com/show_bug.cgi?id=1392228

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Importing VM from Xen Server 6.5

2016-08-10 Thread Richard W.M. Jones
On Wed, Aug 10, 2016 at 09:45:52AM +0300, Shahar Havivi wrote:
> On 10.08.16 06:45, Anantha Raghava wrote:
> > Hi,
> > 
> > I even attempted to run command virsh -c xen+ssh://root@xenhost and I get
> > error "/*error: End of file reading data: sh: nc: command not found:
> > Input/output error"*/
> First you need to be able to login via virsh (before trying to import via
> oVirt).
> 
> I never encounter this error before,
> I guess that nc is netcat...,
> try to install nmap-ncat:
> $ dnf info nmap-ncat
> 
> Adding Richard which may have more input.

Yes, you need to install 'nc' on the *target* (Xen) machine.

This is because libvirt's ssh transport uses nc:
https://libvirt.org/guide/html/Application_Development_Guide-Architecture-Transports.html

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import of ova failed

2016-07-20 Thread Richard W.M. Jones
On Wed, Jul 20, 2016 at 07:16:32PM +0100, Cam Mac wrote:
> >
> > The import doesn't happen automatically, you have to do the final step
> > manually (when using the command line).  See:
> >
> > http://libguestfs.org/virt-v2v.1.html#output-to-rhev
> >
> > However that error shouldn't happen.  It looks like the name is the
> > same as the name of an existing VM.  From virt-v2v you can do the
> > whole conversion/import over again, this time adding the `-on
> > new_name' option to the command line (obviously choosing a name which
> > is not otherwise being used).
> >
> > I don't know if there's a way to get oVirt to change the name when
> > importing from the export domain.  As far as I know you have to start
> > the import from scratch.
> >
> >
> There's no existing VM with that name that I can see. It may have come from
> one of my earlier import attempts,
> though that earlier attempt did not show up in the GUI, it did write files
> to the export domain.
> 
> I re-ran the conversion again with a rename but it failed to import it
> again, with the same error.
> 
> Could there be a record in the DB somewhere, or does it look at the files
> alone? Just trying to work out where the conflict is.

I had a look at the ovirt-engine code where
ACTION_TYPE_FAILED_NAME_ALREADY_USED is raised and it appears to come
from a database check.  However I'm not really familiar enough with
the code to be sure.  Probably best to ask an oVirt developer, or try
dumping the database to see if "wvm2" appears in a column anywhere.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import of ova failed

2016-07-20 Thread Richard W.M. Jones
On Wed, Jul 20, 2016 at 06:37:38PM +0100, Cam Mac wrote:
> It did show up in the list of importable VMs
> under the 'Import VM' tab under
> the export domain. I tried importing it from there but it gave me:
> 
> 2016-07-20 18:27:24,518 INFO
>  [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (default
> task-317) [27b3ad4b] Lock freed to object
> 'EngineLock:{exclusiveLocks='[wvm2= ACTION_TYPE_FAILED_NAME_ALREADY_USED>,
> 7d40eaee-2f3f-4a4e-8254-4c2c3312ce5c= ACTION_TYPE_FAILED_VM_IS_BEING_IMPORTED$VmName wvm2>]',
> sharedLocks='[7d40eaee-2f3f-4a4e-8254-4c2c3312ce5c= ACTION_TYPE_FAILED_VM_IS_BEING_IMPORTED$VmName wvm2>]'}'
> 
> So I guess it is doing the import still.

The import doesn't happen automatically, you have to do the final step
manually (when using the command line).  See:

http://libguestfs.org/virt-v2v.1.html#output-to-rhev

However that error shouldn't happen.  It looks like the name is the
same as the name of an existing VM.  From virt-v2v you can do the
whole conversion/import over again, this time adding the `-on
new_name' option to the command line (obviously choosing a name which
is not otherwise being used).

I don't know if there's a way to get oVirt to change the name when
importing from the export domain.  As far as I know you have to start
the import from scratch.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import of ova failed

2016-07-20 Thread Richard W.M. Jones
On Wed, Jul 20, 2016 at 03:40:16PM +0100, Cam Mac wrote:
> Hi Rich,
> 
> 
> > > >
> > >
> > > I can try this but I'm not quite sure how to go about it. The ovf I
> > created
> > > via guest-image-ovf-creator is on an NFS mount

Originally you were trying to import OVAs from VMware, which is the
only source of OVAs we actually test.  If you're trying to import from
VMware, get VMware to create the OVAs for you using the vSphere Export
GUI or ovftool:

  http://libguestfs.org/virt-v2v.1.html#ova:-create-ova

> I'm using 'virt-v2v -v -i ova wvm2.ovf -o rhev -os
> ovirt-engine:/mnt/export-vm' (my export domain), though unfortunately it
> fails
> 
> Error is:
> 
> [root@kvm-ldn-01 tmp]# virt-v2v -v -x -i ova wvm2.ovf -o rhev -os
> ovirt-engine:/mnt/export-vm
> virt-v2v: libguestfs 1.28.1 (x86_64)
> [   0.0] Opening the source -i ova wvm2.ovf
> tar -xzf 'wvm2.ovf' -C '/var/tmp/ova.dEFSqi'
> virt-v2v: error: could not parse ovf:Name from OVF document

I had a look at guest-image-ovf-creator.py anyway and the problem is
that this script doesn't put any  section into the OVF
document at all.  I couldn't keep my eyes open long enough while
reading the turgid DTMF OVF standards document to find out if this
section is required or not, but virt-v2v certainly expects it.  (That
is just the first failure, there may be more.)

Anyway, use an OVA generated by VMware.

> BTW: is there a way of specifying the extraction directory? My first
> attempt filled up /var/tmp until I found another host
> that luckily had a big enough partition.

Yes, you can set TMPDIR as mentioned in the manual.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import of ova failed

2016-07-19 Thread Richard W.M. Jones
And I suppose it's worth saying that recent oVirt can import from
VMware using the oVirt GUI (which works via virt-v2v, but automates
everything for you).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import of ova failed

2016-07-19 Thread Richard W.M. Jones
On Tue, Jul 19, 2016 at 07:02:24PM +0100, Cam Mac wrote:
> > Try to run virt-v2v -i ova -o local to import the ova to local disk (see
> > the
> > virt-v2v man page for more options) and see if that pass - the errors can
> > be
> > more detailed there (it suppose to reflect the same error that you get in
> > vdsm
> > log)., another options you can do is run virt-v2v in verbose mode (virt-v2v
> > -v).
> >
> 
> I can try this but I'm not quite sure how to go about it. The ovf I created
> via guest-image-ovf-creator is on an NFS mount
> on the engine: do I need to run virt-v2v on one of the nodes? If so, I
> assume I need to set the output to an export domain.
> Does '-o local' stick it on the node's VM storage?

Yes, don't use -o local.

virt-v2v has an -o rhev option which will import directly from VMware
to RHEV or oVirt.  Please see the manual:

http://libguestfs.org/virt-v2v.1.html#convert-from-vmware-to-rhev-m-ovirt
http://libguestfs.org/virt-v2v.1.html#output-to-rhev

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Issues importing VMs in oVirt

2016-06-16 Thread Richard W.M. Jones
> -- Forwarded message --
> From: Cam Mac 
> Date: Thu, Jun 9, 2016 at 8:28 PM
> Subject: [ovirt-users] Issues importing VMs in oVirt
> To: users 
> 
> 
> So the final URI is constructed as:
> 
> vpx:// 
> 
> The error I get is:
> 
> # virt-v2v -v -x -ic
> vpx://ARDA%5ccam@nssesxi-mgmt/Systems/North%20Sutton%20Street/nssesxi04-mgmt?no_verify=1
> wvm2
> virt-v2v: libguestfs 1.28.1 (x86_64)
> [   0.0] Opening the source -i libvirt -ic
> vpx://ARDA%5ccam@nssesxi-mgmt/Systems/North%20Sutton%20Street/nssesxi04-mgmt?no_verify=1
> wvm2
> input_libvirt_vcenter_https: source: scheme vpx server nssesxi-mgmt
> Enter ARDA\cam's password for nssesxi-mgmt:
> libvirt: ESX Driver error : internal error: Could not find compute resource
> specified in '/Systems/North Sutton Street/nssesxi04-mgmt'
> virt-v2v: error: internal error: invalid argument: cannot open libvirt
> connection
> 'vpx://ARDA%5ccam@nssesxi-mgmt
> /Systems/North%20Sutton%20Street/nssesxi04-mgmt?no_verify=1'
> 
> If reporting bugs, run virt-v2v with debugging enabled and include the
> complete output:
> 
>   virt-v2v -v -x [...]
> #
> 
> 
> # virsh -c 
> 'vpx://ARDA%5ccam@nssesxi-mgmt/Systems/North%20Sutton%20Street/nssesxi04-mgmt?no_verify=1'
> list --all
> Enter ARDA\cam's password for nssesxi-mgmt:
> error: failed to connect to the hypervisor
> error: internal error: Could not find compute resource specified in
> '/Systems/North Sutton Street/nssesxi04-mgmt'

I'm not sure what the problem is, although you are going about
diagnosing the problem in the right way.

I would try not escaping the spaces, double escaping them (%2520), and
also removing elements from the path (especially "/Systems" which does
not seem to be necessary) until you can get a URL that works.

An alternative approach entirely is to use an OVA export:

  http://libguestfs.org/virt-v2v.1.html#input-from-vmware-ova

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] gluster VM disk permissions

2016-05-24 Thread Richard W.M. Jones
As it says in the error message:

> Try running qemu directly without libvirt using this environment variable:
> export LIBGUESTFS_BACKEND=direct

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] gluster VM disk permissions

2016-05-23 Thread Richard W.M. Jones
On Mon, May 23, 2016 at 09:00:48AM -0700, Bill James wrote:
> thank you very much for the reply.
> My main question now is does it required to use "user = root" in
> qemu.conf for the import script to work?

I haven't knowingly modified qemu.conf in my life, so likely the
answer is no.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] gluster VM disk permissions

2016-05-21 Thread Richard W.M. Jones
On Fri, May 20, 2016 at 02:53:02PM -0700, Bill James wrote:
> maybe the other doc is old but it says:
> "And a feature I intentionally removed in RHEL 7 was importing KVM → KVM"
> which is what I am doing. raw disk KVM to ovirt.
> 
> Yes I can copy the disk image over the top of a ovirt disk image,
> but the import script seemed cleaner.
> 
> Does virt-v2v try to convert the KVM image to KVM image or does it
> just import it?

Virt-v2v will now refuse to do this at all (except if you "trick" it
as I did in my blog posting), but if we allowed it then it would make
all kinds of modifications inside the guest which you don't need and
have at least the potential to break things.

The import-to-ovirt.pl script is/was intended as a simple import
script which you should use instead in the case where guests already
run on KVM and therefore don't need driver etc conversion/
installation.

As Nir said in the other reply, oVirt 4.0 has native import
functionality and the import script is not needed at all for KVM ->
oVirt imports.

Virt-v2v should only be used for foreign hypervisor imports, such as
VMware, Xen or Hyper-V to oVirt.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] virt-v2v converting multi-disk

2016-03-05 Thread Richard W.M. Jones
Hi - let's keep all replies on the mailing list so the information
benefits everyone.

On Sat, Mar 05, 2016 at 12:21:51PM -0600, Clint Boggio wrote:
> 2. Ran your tool on the disk image with a destination of "." And
> your tool put it directly in without having to use network
> bandwidth.

The tool in this case is "import-to-ovirt", I guess (since they
already run on KVM it must be)?

> This procedure works the best as the legacy KVM environment is
> Ubuntu based and permissions problems keep me from massaging the
> disk images while they live in the firm grip of sudo hell that is
> Ubuntu.

> How will your import tool react to my procedure, in terms of the
> three disk images ?

import-to-ovirt can handle multiple disk images.  If the disk images
are part of a single guest, then you should specify them all in one
command line run, ie:

  sudo ./import-to-ovirt.pl disk1 disk2 disk3 mountpoint

If the disk images are independent guests then you must run
import-to-ovirt three times.

> Will I have to run it on all three images ?
>
> Will the tool "see" that the second and third images are siblings of
> the main first image I import and put them in the same place,
> perhaps appending them to each other as one big disk ?

No, you need to specify it by running import-to-ovirt once per guest.

> Or will I have to run the tool on the first disk, then somehow add
> the second two disks to the newly imported machine through the GUI ?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] virt-v2v converting multi-disk

2016-03-01 Thread Richard W.M. Jones
On Mon, Feb 29, 2016 at 06:31:31PM -0600, Clint Boggio wrote:
>
> I've tried the -i libvirtxml method and it fails and I suspect it's
> because the legacy KVM environment is Ubuntu based. Any tricks or
> pointers would be appreciated.

Run `virt-v2v -v -x -i libvirtxml [...]' and capture the
complete output and post it somewhere.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] virt-v2v converting multi-disk

2016-02-29 Thread Richard W.M. Jones
On Mon, Feb 29, 2016 at 01:44:19PM +0200, Moran Goldboim wrote:
> +Richard, v2v maintainer.
> 
> On Sat, Feb 27, 2016 at 8:45 PM, Clint Boggio  wrote:
> 
> > I'm in the process of migrating a series of VM's from  KVM environment, to
> > an OVirt environment. I've used virt-v2v to convert quite a few M$ and
> > Linux machines with great success.

You don't really need to use virt-v2v when the guest already runs on
KVM.  The latest oVirt supports direct import of disk images, and
there is also my import script for older versions of oVirt which
didn't have this feature:

http://git.annexia.org/?p=import-to-ovirt.git;a=summary

--

Nevertheless I'll answer the rest of these questions because it's an
interesting topic for people importing from other hypervisors ...

> > Coming up I've got to convert a Linux VM that has 3 virtual disks. Inside
> > that VM, the three disks are part of an LVM volume.
> >
> > 1. How will virt-v2v handle these three virtual disks ?

Should just work.

> > 2. On which disk image will I run virt-v2v ?

On all 3 :-)  Are you using `-i disk' input mode?  That only supports a
single disk, but you can use `-i libvirtxml' mode instead, and then
you can specify as many input disks as you want:

http://libguestfs.org/virt-v2v.1.html#minimal-xml-for--i-libvirtxml-option

> > 3. Will virt-v2v "follow" the three images and convert the machine or will
> > I have to somehow tell it to include all three disks ?

You always have to tell virt-v2v.

> > 4. Shall I have all three images together in the same directory when I run
> > the tool ?

With `-i libvirtxml' it doesn't matter.  You specify the XML file, and
that contains references to the disks.

> > 5. Is this the appropriate forum for this question ?

Yup.

Rich.

> > As of the writing of this question I'll be using OVirt 3.6 updated on a 4
> > node cluster running CentOS 7 , and the most recent version of virt-v2v as
> > is available on Fedora 23.
> >
> > ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> >

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import KVM/libvirt VMs to oVirt

2015-12-20 Thread Richard W.M. Jones
On Sun, Dec 20, 2015 at 02:05:30PM +0100, ov...@timmi.org wrote:
> >>>./import-to-ovirt.pl: no operating system was found on the disk

Looks like you need to install either libguestfs-winsupport (assuming
the host is RHEL/CentOS), because this is required to process any
Windows disk images.

libguestfs-winsupport can be found here for RHEL < 7.2:

  https://people.redhat.com/~rjones/libguestfs-winsupport/

and is included in the base OS in RHEL >= 7.2.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import KVM/libvirt VMs to oVirt

2015-12-20 Thread Richard W.M. Jones
On Sun, Dec 20, 2015 at 12:24:08PM +0200, Yedidyah Bar David wrote:
> On Sun, Dec 20, 2015 at 12:13 PM,   wrote:
> > Hi list,
> >
> > finally I managed to install oVirt on my new server and so far it is really
> > great.
> >
> > The next step on my side it to migrate VMs from another server
> > (KVM/libvirtd/virt-manager) to oVirt.
> > I was trying to find something in the documentation but so far no luck.
> >
> > Google was pointing me to tow options:
> >
> > - virt-v2v
> > - import-to-ovirt.pl (script from Richard WM Jones)
> >
> >
> > Currently I'm trying to migrate a Win7 VM (with VirtIO) with import_to_ovirt
> > bzt I receive the following error message:
> > ./import-to-ovirt.pl: no operating system was found on the disk

The error means libguestfs doesn't think there is anything on your
source disk (disk.img), eg it is blank or there is no detectable
operating system on it.

Do:

  export LIBGUESTFS_DEBUG=1
  export LIBGUESTFS_TRACE=1
  ./import-to-ovirt.pl []

and capture the full output.  From that output it is possible to work
out why inspection of the source disk failed.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import KVM/libvirt VMs to oVirt

2015-12-20 Thread Richard W.M. Jones
On Sun, Dec 20, 2015 at 02:15:21PM +0100, ov...@timmi.org wrote:
> Hi Rich,
> 
> the host is a CentOS (latest).
> 
> libguestfs-winsupport
> 
> root@lxedna import-to-ovirt-7edfc4e]# rpm -qa | grep -i
> libguestfs-winsupport
> libguestfs-winsupport-7.2-1.el7.x86_64

Right, sorry, that's a bug in import-to-ovirt.  I've just pushed
a fix to the git repo.

Thanks for your patience!

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Importing a Windows Guest in oVirt

2015-12-10 Thread Richard W.M. Jones
On Thu, Dec 10, 2015 at 09:14:46AM +0200, Shahar Havivi wrote:
> On 30.11.15 19:09, David Lo Bascio wrote:
> > Hi everyone,
> > 
> > I migrated several Linux guest this way:
> > /virt-v2v -ic qemu+ssh://root@/system -o rhev -os :
> > --network  /
> > 
> > Now, I have some Windows guest running on KVM managed by libvirt and I would
> > like to import them in oVirt through virt-v2v in a similar way.
> > Can you help me?
> Hi,
> virt-v2v is not supporting "converting" kvm to kvm since there is no
> real conversion going on.
> However we do work on importing kvm VMs managed by libvirt and hopefully it
> will be available in a month or two.

In the meantime,

http://git.annexia.org/?p=import-to-ovirt.git;a=summary

Note that it's not supported.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hyper-V in a guest

2015-09-27 Thread Richard W.M. Jones
On Sat, Sep 26, 2015 at 11:15:49PM -0700, Alan Murrell wrote:
> As a followup to my last e-mail, I grepped the
> '/var/log/vdsm/vdsm.log' file for the name of my VM so I could see
> what CPU options (and options in general) were being passed, and I
> definitely see that "hyperVenable" is being set to "true"

I don't think hyperVenable is anything to do with this.

> I could try a full reboot of my host, in case the "kvm_intel" module
> didn't get properly (re-)loaded with the "nested" option?

You can check if the nested option is enabled by doing:

$ cat /sys/module/kvm*/parameters/nested

The output will be either '1' or 'Y' if nested virt is enabled.

A reboot of the host may help.  I don't think it's possible to change
the nested flag without reloading the module, and that is impossible
without stopping all KVM guests.

BTW nested on Intel and AMD works completely differently (and on Intel
at least details depend on the precise CPU too).  It was definitely
broken on Intel with the RHEL 7.0 kernel, but I think Paolo fixed the
major bugs in 7.1.  On all hardware, nested can be pot luck - it may
cause host crashes.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Importing disk images with import-to-ovirt.pl = Authentication Error

2015-09-25 Thread Richard W.M. Jones
On Fri, Sep 25, 2015 at 10:08:48AM -0500, Adrian Garay wrote:
> |libvirt needs authentication to connect to libvirt URI qemu:///system
> ||libvirt: XML-RPC error : authentication failed: authentication failed
> ||could not connect to libvirt (URI = qemu:///system):
> authentication failed: authentication failed at ./import-to-ovirt.pl
> line 230.
> |
> I understand that diagnosing this script is well outside of the
> context of this mailing list, but this is clearly just an
> authentication problem.

For the mailing list record, Adrian's solution was to set

  export LIBGUESTFS_BACKEND=direct

which causes libguestfs to run qemu directly instead of trying
to use libvirt.

Thanks,

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Password getting failed while Conversion

2015-09-23 Thread Richard W.M. Jones
On Wed, Sep 23, 2015 at 12:14:02PM -0400, Douglas Schilling Landgraf wrote:
> 
> On 09/22/2015 12:27 AM, Budur Nagaraju wrote:
> >Below is the format I have updated ,
> >but still am facing the same issues.

To: Budur Nagaraju

Please keep all your replies on the mailing list, as the mailing list
archives are there to help others who may have the same problem in
future.  If you prefer to have personal help, you can pay for a
Red Hat subscription.

Please also update to the new virt-v2v version, as described in my
previous email.  The old version is unmaintained, and may not even
work with oVirt (I don't know -- no one has tried it for about 3
years).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Password getting failed while Conversion

2015-09-21 Thread Richard W.M. Jones
On Mon, Sep 21, 2015 at 02:51:32PM -0400, Douglas Schilling Landgraf wrote:
> Hi Budur,
> 
> On 09/21/2015 03:39 AM, Budur Nagaraju wrote:
> >Hi
> >
> >While converting vwware to ovirt getting below error ,can someone help me ?

Which version of virt-v2v?

The latest version can be found by reading the instructions here:

https://www.redhat.com/archives/libguestfs/2015-April/msg00038.html
https://www.redhat.com/archives/libguestfs/2015-April/msg00039.html

Please don't use the old (0.9) version.

> >I have given the passowd in the file " $HOME/.netrc" ,
> >
> >[root@cstnfs ~]# virt-v2v -ic esx://10.206.68.57?no_verify=1
> > -o rhev -os
> >10.204.206.10:/cst/secondary --network perfmgt vm
> >virt-v2v: Failed to connect to esx://10.206.68.57?no_verify=1
> >: libvirt error code: 45, message:
> >authentication failed: Password request failed
> 
> Have you used the below format in the .netrc?
> machine esx.example.com login root password s3cr3t
> 
> Additionally, have you set 0600 as permission to .netrc?
> chmod 600 ~/.netrc

The new version of virt-v2v does not use '.netrc' at all.  Instead
there is a '--password-file' option.  Best to read the manual page:

http://libguestfs.org/virt-v2v.1.html

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Can and How to move a VM from VMware to oVirt

2014-12-12 Thread Richard W.M. Jones
On Fri, Dec 12, 2014 at 08:01:03AM -0500, Itamar Heim wrote:
 On 12/09/2014 04:59 AM, zhangjian2011 wrote:
 Hi,
 
 I want to move a windows VM(managed by VMware Player in Windows7 host)
 to oVirt, can and how can i do it?
 
 Thanks.
 
 
 virt-v2v in general. the new version should support pointing to a
 file, so no need for an ESX server. it outputs the results into the
 ovirt export domain, then you can import it.
 very active work (patches in gerrit) to make this available from the
 GUI for 3.6.

Exactly as Itamar says.

(1) Export it to an OVA file.

(2) You will need RHEL or CentOS 7.0 (even a VM), and then to follow
the instructions here:

  http://libguestfs.org/virt-v2v.1.html#resource-requirements
  https://www.redhat.com/archives/libguestfs/2014-May/msg00090.html

(3) Run virt-v2v by following these instructions:

  http://libguestfs.org/virt-v2v.1.html#output-to-rhev

  $ virt-v2v -i ova /path/to/your.ova -o rhev -os server:/esd

(4) Coming soon: point and click import via the GUI.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] OVA imports into virt-v2v (was: Re: [ovirt-devel] virt-v2v integration feature)

2014-11-27 Thread Richard W.M. Jones
On Thu, Jul 10, 2014 at 10:11:24AM +0100, Richard W.M. Jones wrote:
 On Thu, Jul 10, 2014 at 10:41:16AM +0300, Itamar Heim wrote:
  On 07/10/2014 10:29 AM, Sven Kieske wrote:
  
  
  Am 09.07.2014 20:30, schrieb Arik Hadas:
  Hi All,
  
  The proposed feature will introduce a new process of import virtual 
  machines from external systems using virt-v2v in oVirt.
  I've created a wiki page that contains initial thoughts and design for it:
  http://www.ovirt.org/Features/virt-v2v_Integration
  
  You are more than welcome to share your thoughts and insights.
  
  Thanks,
  Arik
  
  Am I right that this still involves a full operational e.g. esxi host
  to import vmware vms?
  
  There is a huge user demand on a simpler process for just converting and
  importing an vmware disk image. This feature will not solve this
  use case, will it?
  
  I agree it should. need to check if virt-v2v can cover this. if not,
  need to fix it so it will...
 
 From live ESX, yes.
 
 Offline VMware images (OVAs), not yet.  However patches are welcome.
 We quite literally have no one available to implement this.

Just catching up on this ..

virt-v2v now supports OVA imports, and it works pretty well.  Please
make sure you use the new version, available here:

https://www.redhat.com/archives/libguestfs/2014-May/msg00090.html

or in Fedora = 21 or Debian experimental.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM File System expansion

2014-09-05 Thread Richard W.M. Jones
Please answer the question I asked:

  If you used virt-resize, what precise commands did you type and
  what exact errors did you see?

otherwise I cannot help you.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM File System expansion

2014-09-04 Thread Richard W.M. Jones
On Thu, Sep 04, 2014 at 09:51:53AM +0800, Punit Dambiwal wrote:
 Hi,
 
 I read this article and found that we can expand the VM disk online but it
 doesn't expand the filesystem of the VM.

Which article?

virt-resize can only be used for offline expansion of disks.

If you used virt-resize, what precise commands did you type and
what exact errors did you see?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Need to import a template in OVA format

2014-08-31 Thread Richard W.M. Jones
On Sun, Aug 31, 2014 at 06:07:47PM +0300, Itamar Heim wrote:
 On 08/29/2014 06:38 PM, Bob Doolittle wrote:
 I have a template designed for VMware VMs, in OVA format.
 
 Is there a way I can import this template to oVirt, in order to create
 an oVirt VM from it?
 
 virt-v2v seems designed to import VMs, not templates, and it whines
 about no storage devices in the Guest (when using -i ova -o rhev -os
 NFS_PATH_TO_EXPORT_DOMAIN).

I guess we're talking about old virt-v2v here?
Shahar is writing a new OVA importer at the moment.

 Thanks,
  Bob
 
 P.S. If of interest, the OVA tarball contains foo.ovf, foo.mf, and
 system.vmdk.
 
 how is a tempalte different than a VM in VMWare land?
 in ovirt its:
 - not having snapshots
 - a notation on the ovf

Matt any idea?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Need to import a template in OVA format

2014-08-31 Thread Richard W.M. Jones
On Sun, Aug 31, 2014 at 04:19:20PM -0400, Bob Doolittle wrote:
 The version I am running is virt-v2v-0.9.0-5.fc20.x86_64

The new version is 1.27.x and it is available in Fedora 21 and above.
HOWEVER it doesn't support OVA yet -- still being written.

I'm also providing preview RPMs for RHEL 7  CentOS 7:

https://www.redhat.com/archives/libguestfs/2014-May/msg00090.html

(also without OVA import support right now, but will have it
real soon)

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [ovirt-devel] virt-v2v integration feature

2014-07-10 Thread Richard W.M. Jones
On Thu, Jul 10, 2014 at 10:41:16AM +0300, Itamar Heim wrote:
 On 07/10/2014 10:29 AM, Sven Kieske wrote:
 
 
 Am 09.07.2014 20:30, schrieb Arik Hadas:
 Hi All,
 
 The proposed feature will introduce a new process of import virtual 
 machines from external systems using virt-v2v in oVirt.
 I've created a wiki page that contains initial thoughts and design for it:
 http://www.ovirt.org/Features/virt-v2v_Integration
 
 You are more than welcome to share your thoughts and insights.
 
 Thanks,
 Arik
 
 Am I right that this still involves a full operational e.g. esxi host
 to import vmware vms?
 
 There is a huge user demand on a simpler process for just converting and
 importing an vmware disk image. This feature will not solve this
 use case, will it?
 
 I agree it should. need to check if virt-v2v can cover this. if not,
 need to fix it so it will...

From live ESX, yes.

Offline VMware images (OVAs), not yet.  However patches are welcome.
We quite literally have no one available to implement this.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] converting windows guests with v2v, where to put the iso?

2014-04-22 Thread Richard W.M. Jones
On Thu, Apr 17, 2014 at 09:31:51AM -0500, Jeremiah Jahn wrote:
 I'm getting the following error. RedHat seems to thin the answer is to
 use their virtio-win rpm. As far as I can tell, this is not available
 anywhere, So I've just got to go and get the iso that it installs from
 kvm.org. Ok, done. now that I have said iso, where the heck do I put
 it, since it doesn't seem to align with the structure that v2v is
 looking for.
 
 virt-v2v: Installation failed because the following files referenced
 in the configuration file are required, but missing:
 /usr/share/virtio-win/drivers/i386/WinXP

Matt, do we have any documentation about where to put this ISO?
I believe it's got something to do with the contents of the file
/etc/virt-v2v.conf ...

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v

2014-03-03 Thread Richard W.M. Jones
On Fri, Feb 28, 2014 at 02:41:16PM -0500, Maurice James wrote:
 I ran
 LIBGUESTFS_TRACE=1 LIBGUESTFS_DEBUG=1 virt-v2v -ic 
 esx://172.16.10.200/?no_verify=1 -o rhev -osd 
 host.domain.com:/storage/exports --network ovirtmgmt Tester 21 | tee 
 virt-v2v.log
 The contents of virt-v2v.log is:
 virt-v2v: Didn't receive full volume. Received 1139880072 of 21474836480 
 bytes.virt-v2v: Transferring storage volume Tester_Tester: 21474836480 bytes

This is, unfortunately, a known bug in virt-v2v which we've never been
able to reproduce here, and so have never been able to diagnose.
There is no known fix or workaround.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Making v2v easier?

2014-01-20 Thread Richard W.M. Jones
On Fri, Jan 17, 2014 at 05:06:13PM +0100, Sander Grendelman wrote:
 On Fri, Jan 17, 2014 at 4:19 PM, Itamar Heim ih...@redhat.com wrote:
  I see a lot of threads about v2v pains (mostly from ESX?)
 
  I'm interested to see if we can make this simpler/easier.
 hear hear!
 
 
  if you have experience with this, please describe the steps you are using
  (also the source platform),
 
 Sources:
 - Existing KVM (virt-manager/libvirt) platform
 - ESX
 - ova/ovf templates from several sources
 
 Methods:
 - KVM:
   virt-v2v with libvirtxml option, works reasonably well, most issues
 are with windows guests where virt-v2v needs libguestfs-winsupport and
 virtio-win (RHEL only)
 - ESX:
   virt-v2v which works reasonably well _if_ the right packages
 (libguestfs-winsupport virtio-win) are installed.
   virt-v2v can be used directly from ESX/ESX host (configure .netrc
 first) but this is quite slow
   another option is to export the VM as an OVA and then import it with 
 virt-v2v
 - ova/ovf templates:
   hit and miss with virt-v2v, especially if they contain something
 that is not a regular windows/linux guest.
   Another option is to do a direct copy of the disks on a pre-created
 VM, clumsy.
 
  and how you would like to see this make simpler
  (I'm assuming that would start from somewhere in the webadmin probably).
 
 Webadmin would be nice, but better behaviour from existing tools would be
 a nice start too.
 
 For example: the flow with virt-v2v is
 1) Analyze source, look for disks
 2) Convert/copy disks to ovirt export domain
 3) Try to add virtio stuff to the copied disks on the export domain
 
 If step 3 fails ( which happens a LOT), the copied disks are removed.
 This is very frustrating if you just waited a couple of hours for a large
 VM (e.g. 200GB) to be copied :(

 Some kind of graceful abort/resume would be VERY welcome.

The above basically come down to the fact that currently virt-v2v does
the copy first and the v2v step second.  It was my understanding
[Matt?] that guestconv is supposed to do the v2v step first followed
by the copy, which should solve all of that.

 Another issue with virt-v2v is that it _always_ tries to add virtio
 drivers.  I have a virtual appliance that contains some kind of
 proprietary embedded OS: adding drivers will always fail, give me
 some option to override that and configure simple ide / e1000
 hardware for the VM

I suspect in this case what you really should be doing is just copying
the source disk image, without using virt-v2v at all.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v: too many IDE bus:

2014-01-20 Thread Richard W.M. Jones
On Sun, Jan 19, 2014 at 02:07:20PM +, Markus Stockhausen wrote:
 Hello,
 
 we are currently encountering the above error during virt-v2v
 migration. There was an older post about it here:
 http://lists.ovirt.org/pipermail/users/2013-December/018379.html
 
 The answers suggest that this is already fixed upstream
 and that you only need virt-v2v for OS disks. Could someone,
 explain
 
 - how to migrate only the OS disk and to dd the data disks.
 - if there exist any offical patches to fix the bug.

Matt can answer these better than I could.

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://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v: invalid backend appliance

2014-01-20 Thread Richard W.M. Jones
On Sun, Jan 19, 2014 at 07:56:22PM +, Markus Stockhausen wrote:
 Hello,
 
 just tried to run virt-v2v on Fedora 20. Disk conversion works
 flawlessly but in the end the process fails with:
 
 libguestfs: create: flags = 0, handle = 0x4fe26a0, program = perl
 invalid backend: appliance at 
 /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 83.
 libguestfs: closing guestfs handle 0x4fe26a0 (state 0)
 
 I'm using the same scripts  configuration files with Fedora 19.
 No problems there.
 
 Any ideas what is going wrong?

This is a bug in libguestfs:

https://bugzilla.redhat.com/show_bug.cgi?id=1055452

A workaround is to edit the virt-v2v source (one of the *.pm files)
and change s/appliance/direct/.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] issue with conversion of ESXi 5 centos VM to fedora19 ovirt host

2014-01-12 Thread Richard W.M. Jones

Matt, I had a thought on the preceding discussion: Does virt-v2v still
try to setuid itself to some non-root user when it runs, and if so
does it do that only before launch, or before adding drives?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] issue with conversion of ESXi 5 centos VM to fedora19 ovirt host

2014-01-12 Thread Richard W.M. Jones
On Sat, Jan 11, 2014 at 08:57:33AM -0500, Madhav V Diwan wrote:
 setting up a physical /tmp with 1777 permissions did not work ..
 
  and i see ovirt/vdsm is making a temporary nfsV4 mount of the target
 export domain to /tmp on the ovirt server 
 (what i thought was a hard link is actually a nfs mount for the duration
 of the conversion) 
 
 so if the issue is not permissions on /tmp or the fact that we normally
 use  tmpfs , what is left?

I don't know, but you could strace virt-v2v which should show
what is really going on.

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://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] issue with conversion of ESXi 5 centos VM to fedora19 ovirt host

2014-01-10 Thread Richard W.M. Jones
On Thu, Jan 09, 2014 at 09:49:25PM -0500, Madhav V Diwan wrote:
 
 Hello everybody! I seem to be having a problem similar to 
 
 the posting from 
 
  importing VM from ESXI 
 posted by 
 emi...@gmail.com
 on25.09.2013 21:10 UTC
  I'm not being able to import a VM from ESXI:  
 
 
 In my case i have a bit more of a trace on the permission issue  but not
 much more
 
  virt-v2v: Transferring storage volume razDC_razDC: 107374182400 bytes
  libguestfs: trace: set_verbose true
  libguestfs: trace: set_verbose = 0
  libguestfs: create: flags = 0, handle = 0x4725420, program = perl
  libguestfs: trace: set_attach_method appliance
  libguestfs: trace: set_backend appliance
  libguestfs: trace: set_backend = 0
  libguestfs: trace: set_attach_method = 0
  libguestfs: trace: add_drive 
  /tmp/a7SyYhkkeX/8eff2927-3bff-4b15-bdd0-8c4e0f40652d/v2v.z_Lv0fTf/81388ffb-6aed-4ae4-bed8-6b1999e78907/2cc85d68-d343-4961-9a28-58e4c695d78f
   format:raw iface:ide name:sda
  libguestfs: trace: add_drive = -1 (error)
  /tmp/a7SyYhkkeX/8eff2927-3bff-4b15-bdd0-8c4e0f40652d/v2v.z_Lv0fTf/81388ffb-6aed-4ae4-bed8-6b1999e78907/2cc85d68-d343-4961-9a28-58e4c695d78f:
   Permission denied at /usr/lib64/perl5/vendor_perl/Sys/Guestfs.pm line 670.
  libguestfs: trace: close
  libguestfs: closing guestfs handle 0x4725420 (state 0)
 
  
 Has this issue been solved ? if so how  as i do not see the resolution
 on the archives.  Else  would you all help me resolve it please?
 
  It is very annoying to have a hundred gig disk copied over to your NFS
 export and then deleted because qemu or libguestfs has a permissions
 issue in opening it.
 
 
 
  this is an issue with Ovirt Version 3.3.2-1.fc19 
 
 virt-v2v version is 
 
 virt-v2v --version
 0.9.0
 
 and libguestfs version and qemu version are :
 
 libguestfs-1.22.7-4.fc19.x86_64
 
 QEMU emulator version 1.4.2

Are you running virt-v2v as root?  If so my guess is that it's this
libvirt bug:

  https://bugzilla.redhat.com/show_bug.cgi?id=1045069
  https://bugzilla.redhat.com/show_bug.cgi?id=1045039

The easiest thing is to disable libvirt by doing:

  sudo bash
  export LIBGUESTFS_BACKEND=direct
  virt-v2v [..etc..]

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] issue with conversion of ESXi 5 centos VM to fedora19 ovirt host

2014-01-10 Thread Richard W.M. Jones
On Fri, Jan 10, 2014 at 10:38:41AM -0500, Madhav V Diwan wrote:
 yes unfortunately i am running as root.. hate doing that but
 
  what account SHOULD i use? myself? VDSM? 
 
 sudo -u who
 
 interesting idea.. Ill try it now on a smaller vm.

Root is fine, except that libvirt has a bug (see my previous email for
specifics).  If you set the environment variable it should work.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] issue with conversion of ESXi 5 centos VM to fedora19 ovirt host

2014-01-10 Thread Richard W.M. Jones
On Fri, Jan 10, 2014 at 03:50:48PM +, Matthew Booth wrote:
 You MUST run virt-v2v as root for conversions to oVirt. It needs to both
 mount an nfs volume and setuid.

Matt, it's probably a good idea to add something along the lines of:

  if ($g-get_backend () =~ /^libvirt/) {
$g-set_backend (direct);
  }

to virt-v2v, since libguestfs as root w/ libvirt is going to cause
problems for the foreseeable future.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] issue with conversion of ESXi 5 centos VM to fedora19 ovirt host

2014-01-10 Thread Richard W.M. Jones
On Fri, Jan 10, 2014 at 12:48:43PM -0500, Madhav V Diwan wrote:
 
 Sorry richard 
 
 seems that it failed even when i tried to set that variable
 
 Maybe i set up the command incorrectly?
 
 here is what i ran
 
 
 [root@server3 ~]# cat convrtesxhost.sh
 
 #!/bin/bash
 
 export LIBGUESTFS_TRACE=1 
 export LIBGUESTFS_DEBUG=1
 export LIBGUESTFS_BACKEND=direct
 
 virt-v2v -ic esx://ESX.decllc.biz/?no_verify=1 -o rhev -os
 server3.decllc.biz:/localstorage/nfs --network ovirtmgmt razDC  21 |
 tee /var/log/virt-v2v.log 

It looks like this is correctly setting the environment variable:

 [root@server3 ~]# ./convrtesxhost.sh 
 virt-v2v: Transferring storage volume razDC_razDC: 107374182400 bytes
 libguestfs: trace: set_verbose true
 libguestfs: trace: set_verbose = 0
 libguestfs: trace: set_backend direct
 libguestfs: trace: set_backend = 0

^ see that it's set correctly here.

[...]
 libguestfs: trace: add_drive
 /tmp/dgsXFuqz0X/8eff2927-3bff-4b15-bdd0-8c4e0f40652d/v2v.nCJ17ysL/e1660d18-b67b-4002-9835-10c654e7ee0e/a7afe4c5-ece8-4022-a8ec-964984a8db17
  format:raw iface:ide name:sda
 libguestfs: trace: add_drive = -1 (error)
 /tmp/dgsXFuqz0X/8eff2927-3bff-4b15-bdd0-8c4e0f40652d/v2v.nCJ17ysL/e1660d18-b67b-4002-9835-10c654e7ee0e/a7afe4c5-ece8-4022-a8ec-964984a8db17:
  Permission denied at /usr/lib64/perl5/vendor_perl/Sys/Guestfs.pm line 670.

So this is not the bug I was thinking of.

(In fact it's obvious now I look closer.  This has nothing to do with
libvirt, and the error message is being generated by libguestfs
earlier on)

Is there some other reason that libguestfs would not be able to open
that file in /tmp?  Perhaps there is an SELinux AVC?  Or /tmp has
strange permissions ...?  Is /tmp a tmpfs mount?

I believe the actual code path you're hitting is this one:

https://github.com/libguestfs/libguestfs/blob/stable-1.22/src/drives.c#L660

I'm not exactly sure why that fails.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] qemu: too many ide bus during v2v migration

2013-12-03 Thread Richard W.M. Jones
On Tue, Dec 03, 2013 at 03:00:37PM +0100, Stefan Wendler wrote:
 Hi,
 
 we're currently migrating over from esxi to ovirt. V2v is pretty smooth, up 
 until I try to migrate a vm with more than 3 SCSI disks.
 The disks are exported from esxi as IDE and after the disks have been copied 
 over, the process fails with qemu: Too many IDE bus
 Is there a practical way to fix this?

You only need to use virt-v2v on operating system disks.  Any data
disks can just be 'dd'-ed over.

Of course this may not be helpful if you have 3 or more OS disks, but
we have fixed this upstream so at least it won't be broken in the next
version ...

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v windows 2003 migration issue

2013-11-20 Thread Richard W.M. Jones

On Fri, Nov 15, 2013 at 07:25:16PM +0100, Jakub Bittner wrote:
 Hello,
 
 I've been trying to convert libvirtd managed kvm guest which runs
 windows 2003 (with virtio driver installed), but it failed in the
 end.
 
 Command:
 
 virt-v2v -i libvirt -ic qemu+ssh://u...@node.example.com/system -o
 rhev -os 10.50.98.15:/backup_nfs -of qcow2 -oa sparse -n ovirtmgmt
 windows2003
 
 Error reported
 
 virt-v2v: No app in config matches os='windows' name='virtio'
 distro='windows' major='5' minor='2' arch='i386'

FWIW this corresponds to Windows Server 2003 R2 as you said above.  So
I guess that your /var/lib/virt-v2v/virt-v2v.db or /etc/virt-v2v.conf
doesn't contain an OS matching this.

However my copy of virt-v2v.db certainly *does* have it:

  app os='windows' major='5' minor='2' arch='x86_64' name='virtio'
path/usr/share/virtio-win/drivers/amd64/Win2003/path
  /app

I can't remember how this is added.  Maybe you need to install the
virtio-win drivers?

 Iam running virt-v2v on Fedora 19. OVirt is 3.3.0 version..

You probably want to ask Matt Booth about this ...

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] VM import from ESXi

2013-10-17 Thread Richard W.M. Jones
On Tue, Oct 15, 2013 at 06:29:39PM -0200, emi...@gmail.com wrote:
 Hi,
 
 I've imported a Windows VM from an ESXi to an export domain using virt-v2v.
 It didn't return me any error wen it finished (i think), but when attached
 the export domain I get the following advertising and the vm doesn't appear
 in the list to be imported:
 
 Failed to read VM '[Empty Name]' OVF, it may be corrupted
 
 Could you give me some hint to fix this, or what it could be the problem?

This seems like a bug in virt-v2v, but it's hard to say.

You should enable debugging in virt-v2v and then we should be
able to see exactly what's going on.

  export LIBGUESTFS_TRACE=1
  virt-v2v [...etc...]

Remember to capture the complete, unedited output.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] vmware disks

2013-10-17 Thread Richard W.M. Jones

On Thu, Oct 17, 2013 at 10:14:11AM +0100, supo...@logicworks.pt wrote:
 Hi, it's possible to import a vmware disk into ovirt? 

It depends.

If you're using an ESX server, then yes, pretty easily with
virt-v2v.

If it's just a disk image, that's more difficult.  I think the
latest virt-v2v can do it.  (Matt?)

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://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] importing VM from ESXI

2013-09-26 Thread Richard W.M. Jones

On Wed, Sep 25, 2013 at 06:10:00PM -0300, emi...@gmail.com wrote:
 could not open disk image
 /tmp/KxIoJI50Pc/2872ac3e-7340-4dfa-9801-0a1bd052b3a3/v2v._ApSlRZG/387a5113-bbc2-45a2-9c55-5dc3dade31a9/01c899de-131e-4407-a16c-8c5484ccb8bd:
 Permission denied

The error comes from qemu and indicates qemu cannot open this
temporary disk image.  I've no idea why it cannot open it, but
possibilities include: SELinux, file permissions (eg on /tmp), setting
of TMPDIR, relative path to a backing file, and more ...

I'd suggest that you 'strace -f' the whole set of processes to see
what precise system call fails.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] importing VM from ESXI

2013-09-26 Thread Richard W.M. Jones
On Thu, Sep 26, 2013 at 09:35:13AM -0300, emi...@gmail.com wrote:
 Thanks Richard!
 
 SELinux is set as Permissive, the tmp directory has permission as 777
 root:root. What do you mean with the setting of TMPDIR?, I'm going to start
 the process again using the strace  as you tell me but I'm not sure if I'm
 going to be able to deduce where is the issue with the output of that
 command.

Pastebin the whole strace somewhere and post a link to this mailing list.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v import needs saslauth credentials

2013-08-13 Thread Richard W.M. Jones
On Mon, Aug 12, 2013 at 04:49:02PM -0400, Jim Kinney wrote:
 I need to convert a vmdk to ovirt use. I have a qcow2 formatted image and
 it's corresponding xml. I'm trying to run virt-v2v to put things into the
 proper formats/places for ovirt but I need to use my proper credentials to
 access the qemu:///system space.
 
 Where/how do I do this? man pages have no suggestions on virt-v2v. I have a
 user/passwd combo in saslauth that works for virsh.
 
 virt-v2v -i libvirtxml -o libvirt -os export --vmtype server -n ovirtmgmt
 /var/lib/exports/exports/5eb89069-b750-4d32-b7d3-432fd77202d1/images/test/test.xml
 virt-v2v: Failed to connect to qemu:///system: libvirt error code: 45,
 message: authentication failed: Failed to step SASL negotiation: -7
 (SASL(-7): invalid parameter supplied: Unexpectedly missing a prompt result)

This is really a libvirt question, to which I don't know the answer.

Complex libvirt authentication (such as SASL) may ask the user a
series of questions, such as username and password.  Are you running
virt-v2v interactively at a terminal?

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 KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v import needs saslauth credentials

2013-08-13 Thread Richard W.M. Jones
On Mon, Aug 12, 2013 at 05:26:54PM -0400, Jim Kinney wrote:
 On trying the import in ovirt after the completion of the conversion using
 -o rhev -os ip:/var/lib/exports/exports ..., I found an error in the
 vdsm.log:
 
 Thread-199989::ERROR::2013-08-12
 15:10:57,371::task::833::TaskManager.Task::(_setError)
 Task=`6fa2a23e-0194-4f67-b157-a3f831780d12`::Unexpected error
 Traceback (most recent call last):
   File /usr/share/vdsm/storage/task.py, line 840, in _run
 return fn(*args, **kargs)
   File /usr/share/vdsm/logUtils.py, line 42, in wrapper
 res = f(*args, **kwargs)
   File /usr/share/vdsm/storage/hsm.py, line 2891, in getVolumeInfo
 imgUUID=imgUUID, volUUID=volUUID).getInfo()
   File /usr/share/vdsm/storage/fileSD.py, line 250, in produceVolume
 return fileVolume.FileVolume(repoPath, self.sdUUID, imgUUID, volUUID)
   File /usr/share/vdsm/storage/fileVolume.py, line 71, in __init__
 volume.Volume.__init__(self, repoPath, sdUUID, imgUUID, volUUID)
   File /usr/share/vdsm/storage/volume.py, line 128, in __init__
 self.validate()
   File /usr/share/vdsm/storage/volume.py, line 140, in validate
 self.validateImagePath()
   File /usr/share/vdsm/storage/fileVolume.py, line 522, in
 validateImagePath
 raise se.ImagePathError(imageDir)
 ImagePathError: Image path does not exist or cannot be accessed/created:
 ('/rhev/data-center/6ff1a3cb-06b9-4a4f-a2ec-053cc45ac7c6/5eb89069-b750-4d32-b7d3-432fd77202d1/images/1e43cdf3-bf3b-4f28-a755-b5fb8a67543b',)

What happens if you do:

qemu-img info 
/rhev/data-center/6ff1a3cb-06b9-4a4f-a2ec-053cc45ac7c6/5eb89069-b750-4d32-b7d3-432fd77202d1/images/1e43cdf3-bf3b-4f28-a755-b5fb8a67543b

Rich.

 I have setenforce=0 with same result.
 So the 5eb89069-b750-4d32-b7d3-432fd77202d1 is a valid ovirt domain number
 for the entire process in exports. The 1e43cdf3-bf3b-4f28-a755-b5fb8a67543b
 was the name of the dir created from the virt-v2v process.
 
 The ovirt import gui provides this error:
 Error while executing action: Cannot import VM. VM's Image does not exist.
 
 I've tried with a qcow2 image, a raw image, vmdk (fails with unsupported
 format error).
 
 
 
 On Mon, Aug 12, 2013 at 4:49 PM, Jim Kinney jim.kin...@gmail.com wrote:
 
  I need to convert a vmdk to ovirt use. I have a qcow2 formatted image and
  it's corresponding xml. I'm trying to run virt-v2v to put things into the
  proper formats/places for ovirt but I need to use my proper credentials to
  access the qemu:///system space.
 
  Where/how do I do this? man pages have no suggestions on virt-v2v. I have
  a user/passwd combo in saslauth that works for virsh.
 
  virt-v2v -i libvirtxml -o libvirt -os export --vmtype server -n ovirtmgmt
  /var/lib/exports/exports/5eb89069-b750-4d32-b7d3-432fd77202d1/images/test/test.xml
  virt-v2v: Failed to connect to qemu:///system: libvirt error code: 45,
  message: authentication failed: Failed to step SASL negotiation: -7
  (SASL(-7): invalid parameter supplied: Unexpectedly missing a prompt result)
 
  --
  --
  James P. Kinney III
  *
  *Every time you stop a school, you will have to build a jail. What you
  gain at one end you lose at the other. It's like feeding a dog on his own
  tail. It won't fatten the dog.
  - Speech 11/23/1900 Mark Twain
  *
  http://heretothereideas.blogspot.com/
  *
 
 
 
 
 -- 
 -- 
 James P. Kinney III
 *
 *Every time you stop a school, you will have to build a jail. What you gain
 at one end you lose at the other. It's like feeding a dog on his own tail.
 It won't fatten the dog.
 - Speech 11/23/1900 Mark Twain
 *
 http://heretothereideas.blogspot.com/
 *

 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users


-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v import needs saslauth credentials

2013-08-13 Thread Richard W.M. Jones
On Tue, Aug 13, 2013 at 05:50:38PM +0100, Daniel P. Berrange wrote:
 More importantly does virt-v2v use the virConnectOpenAuth() method
 which enables callbacks to be provided to prompt for auth ? If not,
 then it'll need to be updated to support authentication.

Yes it does:

https://git.fedorahosted.org/cgit/virt-v2v.git/tree/lib/Sys/VirtConvert/Connection/LibVirt.pm#n101

That code seems to answer the original question, although it doesn't
seem to be documented.  It looks as if the username comes from the
libvirt URI (ie. -oc option, I'm not sure exactly how it's encoded)
and the password comes from ~/.netrc (must be mode 0600).

Probably best to ask Matt about this one.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] p2v Import error

2013-07-16 Thread Richard W.M. Jones
On Tue, Jul 16, 2013 at 09:17:35AM -0300, Carlo Turco wrote:
 Hi guys
 
 I´m having some problems, using p2v with ovirt. I´ve tryed with
 success exporting a physical machine, with CentOS 6 using virt-p2v.
 The image is on my export Storage at ovirt, but when I try to
 restore it using another area it failed.
 
 I google it and saw some bug reports, telling to change the network
 name and set an UUID, tried both and nothing.
 
 The log error is on the link below.
 
 http://pastebin.com/4RbrhQnC

Looks like the real error is:

2013-07-15 19:40:26,610 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(pool-3-thread-42) [10827d3c] Try to add duplicate values with same name. Type: 
UNASSIGNED. Value: vmname

Are you trying to import a VM which has the same name as an existing
VM?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Importing VMware ova to ovirt 3.2

2013-05-20 Thread Richard W.M. Jones
On Mon, May 20, 2013 at 09:00:02AM +0200, Jakub Bittner wrote:
 Hello,
 
 I am trying to convert and import VMware ovf image by virt-v2v (on
 Fedora 18) but I can not make it. I took a look to man pages and
 there is option ova for converting, but if I try it, it fails.
 
 The command is :
 
 virt-v2v -i ova -o rhev -os export.example.cz:/data/col1/virt
 --network ovirtmgmt /home/zca-8.0.3.0-1043216_OVF10.ova
 
 and it throws:
 
 virt-v2v: Guest doesn't define any storage devices

Current virt-v2v doesn't support ova files.  It can only import from
live ESX instances.

The new version (under development) will be able to do this.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] trouble with imported windows VM

2013-04-30 Thread Richard W.M. Jones
On Tue, Apr 30, 2013 at 02:27:16PM +, Jonathan Horne wrote:
 I did try to create a new VM and add the 2 disks that were
 originally imported, but still no go.  The vm refuses to boot.

You need to be much more specific about how it refuses to boot.

 I was also unable to import just the D drive attached to a VM, it
 gave me the error  virt-v2v: No root device found in this operating
 system image. 

As explained earlier, data disks don't need any conversion.  There is
nothing that virt-v2v could do with them, and it isn't able to operate
on data disks, only on operating systems.

 Right now I am trying to consolidate the KVM virtual machine down to
 1 disk partitioned to the necessary C and D drives, and ill try an
 import like that (since it was previously successful coming from KVM
 with just the one disk).

A word of caution: Don't use Windows logical disks.  Use regular
partitions.  Although we now support LDM upstream, that support is not
in RHEL 6.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] trouble with imported windows VM

2013-04-24 Thread Richard W.M. Jones

On Wed, Apr 24, 2013 at 05:14:50PM +, Jonathan Horne wrote:
 This is my current gotcha.  If I import it with a single disk from KVM (C 
 drive only), its successful.  If I add the 2nd disk to KVM and import it, it 
 will import both disks, but I get the error at the beginning of this thread.  
 If I detach the 2nd imported disk, it boots again.
 
 Now, I made another VM on kvm that contained only my D drive, and imported 
 that.  After the import, I got this:
 
 [root@d0lppc021 ~]# virt-v2v -i libvirt -ic qemu+ssh://root@rnd8/system -o 
 rhev -os d0lppc021.skopos.me:/opt/nfs -of qcow2 -oa sparse -n ovirtmgmt 
 ws08-svr-3Donly
 ws08-svr-03-0_copy.raw: 100% 
 [=]D
  4h09m19s
 virt-v2v: No root device found in this operating system image.

 
 The D drive contains only things like SQL db files and other related data.  
 Am I using virt-v2v incorrectly for this 2nd disk (in either scenario, a 
 single VM with 2 disks, or even on a standalone (and albeit unbootable) VM 
 with just the D drive)?

The bad news is that virt-v2v won't work on a data disk.  It has to be
presented with either just the operating system disk, or all disks at
once.

The good news is that you don't need to convert data disks!  virt-v2v
knows nothing about them, and would do nothing to them.  Simply copy
the data disk over to the export domain using 'scp' or 'dd' or whatever.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v

2013-04-23 Thread Richard W.M. Jones
On Thu, Apr 18, 2013 at 10:25:50AM +0100, supo...@logicworks.pt wrote:
 Yes, that's right, but the problem was with the syntax. 
 After running the command, at the end I get this error message: 
 
 virt-v2v: Failed to launch guestfs appliance. Try running again with 
 LIBGUESTFS_DEBUG=1 for more information 
 
 Any idea? 

Run it again with LIBGUESTFS_DEBUG=1 ..?

More here:
http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] oVirt 3.2.1 - virt-v2v import problem

2013-04-23 Thread Richard W.M. Jones

On Fri, Apr 12, 2013 at 12:34:04PM +0200, Piotr Szubiakowski wrote:
 Hi,
 I have problem with virt-v2v tool. I'm trying to import XEN image.
 On oVirt 3.0 the import works well. On oVirt 3.2.1 there is an
 error:
 
 virt-v2v -i libvirtxml -o rhev -os localhost:/var/ovirt/export api.xml
 arch-dev.img: 100% 
 [==]D
 0h02m53s
 Please enter your authentication name: vdsm@rhevh
 Please enter your password:
 could not connect to libvirt (URI = NULL): authentication failed:
 authentication failed [code=45 domain=7] at
 /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line
 96.
 
 It looks like after image upload, virt-v2v ties to connect to
 libvirtd. The vdsm@rhevh login with shibboleth password doesn't
 work. The oVirt is installed on Fedora 18. Engine and vdsmd runs on
 the same host. Is there any difference between authentication to
 libvirt on oVirt 3.0 and oVirt 3.2? Could I ask you for help with
 this problem?

virt-v2v is known to be broken on Fedora 18 at the moment.

If you contact us upstream there is a complex workaround that
can be done.

Really it does need to be fixed properly however.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] re-thin a disk

2013-03-15 Thread Richard W.M. Jones
On Wed, Mar 13, 2013 at 09:23:04PM +, Jonathan Horne wrote:
 I have a virtual machine with a 500GB thin-provisioned disk, and on
 it is about 2GB of data.  Due to a pvmove operation I am running,
 the 500GB disk with 2GB of data is growing and growing and is
 currently 180GB in size, and im sure it will go all the way to the
 500GB before it stops.

 When this process is finished, is there a way to re-thin the disk
 back down to the proper size again?  What about the export/import
 process?  Would that export it to the data size, not the block size?

There's not a way to do this in-place currently, although we're
working on it.

If you can accept a copy, then 'qemu-img convert' will automatically
sparsify disks, although it only works if there is no left-over data
in the blocks.

Also requiring a copy, virt-sparsify can fully sparsify a disk even if
it has left-over but unused data blocks.

See also:

  http://libguestfs.org/virt-sparsify.1.html
  
http://libguestfs.org/guestfs-faq.1.html#why-doesnt-virt-sparsify-work-on-the-disk-image-in-place-

 - - -

Your question also made me wonder if there was a tool to do an
in-place sparsification of a thin provisioned DM device, but there
doesn't seem to be anything for that.  *If* such a tool did exist,
then you could use it in conjunction with the following guestfish
command:

  http://libguestfs.org/guestfish.1.html#zero-free-space

ie. something like:

  guestfish -a /dev/vg/guest
  fs run
  fs list-filesystems
  # for each filesystem do:
  fs mount /dev/XXX /
  fs zero-free-space /
  fs umount /

followed by running the non-existent thinning tool.

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 KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Move single vmdk (or else) disk into oVirt/RHEV

2013-02-14 Thread Richard W.M. Jones
On Mon, Feb 11, 2013 at 04:14:38PM +0100, Nicolas Ecarnot wrote:
 Hi,
 
 I find it hard to find any information about the way I have to
 follow to convert/import a vmdk/qcow/raw/etc... single disk into an
 oVirt disks list.
 
 I know how to use virt-v2v to import complete VMs (disk AND config),
 but don't know how to handle a single data disk.

Assuming it's a data disk with no operating system on it, then it's
very likely the internal filesystem requires no conversion at all, so
it's outside the scope of virt-v2v.

However the disk format might need to be converted, eg. from VMDK to
qcow2.  You can do this using 'qemu-img convert' or VMware's
vdiskmanager program.

I'm not sure about how you would import a disk into oVirt.  I guess
that copying it onto the Export Storage Domain won't work because
oVirt will expect a full guest config.

Do you intend to attach this data disk to some existing VM?

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 KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v fail - GuestfsHandle.pm error + Redhat.pm error

2013-02-09 Thread Richard W.M. Jones

On Sat, Feb 09, 2013 at 11:26:32AM +0100, Nicolas Ecarnot wrote:
 Am I missing some more packages for the perl scripts to work correctly?

virt-v2v should depend on everything it needs, and there was no error
message indicating that anything was missing.  AFAIK RHEL 3 should
work (for v2v), but we'll see what Matt says.

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://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v iface parameter is not supported

2013-02-09 Thread Richard W.M. Jones
On Fri, Feb 08, 2013 at 10:21:41AM -0500, Chris Noffsinger wrote:
 So I am getting this error on Fed18 virt-v2v trying to convert libvirtxml
 to Rhev 3.1 NFS Export domain:
 
 'iface' parameter is not supported by the libvirt attach-method at
 /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 96.
 
 Which is mentioned in this bug:
 
 https://bugzilla.redhat.com/show_bug.cgi?id=895898
 
 and this one:
 
 https://bugzilla.redhat.com/show_bug.cgi?id=892272
 
 Is there a work-around way for me to manipulate my xml to get it to
 convert?  Or am I not hitting a bug at all and just have the wrong hardware
 specified somewhere?
 
 domain type='kvm'
   nameXP/name
   uuid46683b8c-6638-9eed-b1a4-7b72c2080c9f/uuid
   memory unit='KiB'2097152/memory
   currentMemory unit='KiB'2097152/currentMemory
   vcpu placement='static'1/vcpu
   os
 type arch='i686' machine='pc-1.2'hvm/type
 boot dev='hd'/
   /os
   features
 acpi/
 apic/
 pae/
   /features
   clock offset='localtime'/
   on_poweroffdestroy/on_poweroff
   on_rebootrestart/on_reboot
   on_crashrestart/on_crash
   devices
 emulator/usr/bin/qemu-kvm/emulator
 disk type='file' device='disk'
   driver name='qemu' type='raw'/
   source file='/500gig/xp.raw'/
   target dev='hda' bus='ide'/
   address type='drive' controller='0' bus='0' target='0' unit='0'/
 /disk
 controller type='usb' index='0'
   address type='pci' domain='0x' bus='0x00' slot='0x01'
 function='0x2'/
 /controller
 controller type='ide' index='0'
   address type='pci' domain='0x' bus='0x00' slot='0x01'
 function='0x1'/
 /controller
 controller type='virtio-serial' index='0'
   address type='pci' domain='0x' bus='0x00' slot='0x04'
 function='0x0'/
 /controller
 serial type='pty'
   target port='0'/
 /serial
 console type='pty'
   target type='serial' port='0'/
 /console
 channel type='spicevmc'
   target type='virtio' name='com.redhat.spice.0'/
   address type='virtio-serial' controller='0' bus='0' port='1'/
 /channel
 input type='tablet' bus='usb'/
 input type='mouse' bus='ps2'/
 graphics type='spice' autoport='yes'/
 sound model='ich6'
   address type='pci' domain='0x' bus='0x00' slot='0x03'
 function='0x0'/
 /sound
 video
   model type='qxl' vram='65536' heads='1'/
   address type='pci' domain='0x' bus='0x00' slot='0x02'
 function='0x0'/
 /video
 memballoon model='virtio'
   address type='pci' domain='0x' bus='0x00' slot='0x05'
 function='0x0'/
 /memballoon
   /devices
 /domain

For the benefits of the archives, this question is answered here:

https://www.redhat.com/archives/libguestfs/2013-February/thread.html#00056

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v fail - GuestfsHandle.pm error + Redhat.pm error

2013-02-08 Thread Richard W.M. Jones
On Thu, Feb 07, 2013 at 04:48:13PM +0100, Nicolas Ecarnot wrote:
 Hi,
 
 After having successfully migrated Debian, XP, 2003, 2008 VMs, I'm
 stuck with a migration I was expecting to be easy : RHAS3.
 
 Here is the error log I get :
 
 # virt-v2v -i libvirt -ic qemu+ssh://@/system -o rhev -os 
 :/data/vmexport -of qcow2 -oa sparse -n ovirtmgmt serv-rhas3-vm1
 serv-rhas3-vm1_copy.raw: 100% 
 [=]D
  0h10m14s
 virt-v2v: Pas de capability dans la configuration correspondant à os='linux' 
 name='virtio' distro='rhel' major='3' minor='0'
 virt-v2v: Pas de capability dans la configuration correspondant à os='linux' 
 name='cirrus' distro='rhel' major='3' minor='0'
 virt-v2v: WARNING: Le pilote d'affichage a été modifié en cirrus, mais il 
 est impossible d'installer le pilote cirrus. X pourrait ne pas fonctionner 
 correctement
 virt-v2v: WARNING: /boot/grub/device.map fait référence à un périphérique 
 /dev/fd0 inconnu. Cette entrée doit être corrigée manuellement après la 
 conversion.
 virt-v2v: WARNING: /boot/grub/device.map fait référence à un périphérique 
 /dev/sda inconnu. Cette entrée doit être corrigée manuellement après la 
 conversion.
 sh: sh:  at /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm 
 line 200.
  at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 
  2321
 
 I don't mind the warnings and I also had such errors I was able to
 correct manually.
 
 But here, the last two lines are lethal.
 
 It seems oVirt tries to guess which OS is imported, and tries to do
 specific actions, and do them bad.
 Either there's a way o prevent oVirt from guessing, either there's a
 way to correct the actions oVirt is failing to do...
 
 Googling was not that helpful about this issue.

I'm not totally clear what RHAS 3 is, but you're correct that
virt-v2v has to detect[1] the type of operating system in the guest in
order to determine what operations it has to perform on that guest.

It uses the configuration file /etc/virt-v2v.conf to map the guest
type into drivers that have to be installed, but some of this is also
hard-coded inside the program.

Matt (CC'd) might have some more suggestions.

Rich.

[1] You can find out what virt-v2v (actually, what libguestfs) thinks
is in your guest by doing:

  virt-inspector serv-rhas3-vm1

(virt-inspector2 if this is RHEL 6).

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] oVirt 3.0 - importing OVF

2012-09-28 Thread Richard W.M. Jones
On Fri, Sep 28, 2012 at 03:15:20PM +0200, Itamar Heim wrote:
 On 09/28/2012 01:21 PM, Piotr Szubiakowski wrote:
 Hi,
 I have VM files from VMWare ESX 3.5. I converted this VM to OVF format.
 Is it possible to import this VM to oVirt. Should I use the
 import/export storage and virt-v2v tool?
 
 Best regards,
 Piotr
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
 use virt-v2v for ovirt target to convert it and place it into the
 export domain, then import it to the system.
 though i remember something about v2v being sensitive to source
 being esx directly or vcenter.

As Itamar says, currently you can only convert from live ESX servers.
It's in the RHEL 7 schedule to be able to import from OVF/OVA.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Possible to migrate from an existing KVM/Libvirt VM (installed in an LVM) ?

2012-02-14 Thread Richard W.M. Jones
From:   Morgan Cox morganco...@gmail.com
 Can an existing KVM/Libvirt VM (installed in an LVM) ever be migrated to
 an Ovirt node (offline migration is ok.) ?

[Sorry this isn't threaded -- I wasn't subscribed to the list until now]

The answer is that virt-v2v ought to work with oVirt.  It was
developed originally against RHEV-M 2.2 and, later, 3.0.

Of course KVM guest images should require only minimal changes, since
they should already support virtio etc., certainly for Linux guests.
So in many cases virt-v2v would be a no-op, and simply copying the
disk image may work.

Matt ...?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users