[ovirt-users] Re: No bootable device

2022-03-28 Thread Richard W.M. Jones
On Sun, Mar 27, 2022 at 10:54:54PM +0300, Nir Soffer wrote:
> On Sun, Mar 27, 2022 at 9:09 PM Richard W.M. Jones  wrote:
> >
> >
> > On Sun, Mar 27, 2022 at 01:18:43PM +0300, Arik Hadas wrote:
> > > That information message is incorrect, both OVAs that are created by
> > > oVirt/RHV and OVAs that are created by VMware are supported It could
> > > work for OVAs that are VMware-compatible though
> >
> > "VMware-compatible" is doing a bit of work there.  Virt-v2v only
> > supports (and more importantly _tests_) OVAs produced by VMware.
> > Anything claiming to be "VMware-compatible" might or might not work.
> >
> > I'm on holiday at the moment but I can have a look at the OVA itself
> > when I get back if someone posts a link.
> 
> The v2v log was from this image:
> https://github.com/brimstone/metasploitable3/releases/download/0.1.4/Metasploitable3-0.1.4.ova

$ tar xf Metasploitable3-0.1.4.ova
$ guestfish --ro -a Metasploitable\ 3-disk001.vmdk -a Metasploitable\ 
3-disk002.vmdk 

Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

Type: ‘help’ for help on commands
  ‘man’ to read the manual
  ‘quit’ to quit the shell

> run
> list-filesystems 
/dev/sda: vfat
/dev/sdb1: ntfs

> mount /dev/sda /
> ll /
total 123719
drwxr-xr-x  2 root root   512 Jan  1  1970 .
drwxr-xr-x 19 root root  4096 Mar 28 08:29 ..
-rwxr-xr-x  1 root root318173 Jul  4  2017 grldr
-rwxr-xr-x  1 root root 122798595 Jul  4  2017 initramfs.gz
-rwxr-xr-x  1 root root   3564944 Jul  4  2017 kernel.gz
-rwxr-xr-x  1 root root   193 Jul  4  2017 menu.lst
> cat /menu.lst 
default 1
timeout 0
color cyan/blue white/blue

title Installer
find --set-root /BOOTMGR && chainloader /BOOTMGR && boot
find --set-root /kernel.gz
kernel /kernel.gz quiet
initrd /initramfs.gz

> umount /

> mount /dev/sdb1 /
> ll /
total 29
drwxrwxrwx  1 root root 4096 Feb 18  2018 .
drwxr-xr-x 19 root root 4096 Mar 28 08:29 ..
-rwxrwxrwx  1 root root 1783 Feb 18  2018 COPYING
-rwxrwxrwx  1 root root 3601 Feb 18  2018 LICENSE
-rwxrwxrwx  1 root root 2900 Feb 18  2018 gitlog.txt
-rwxrwxrwx  1 root root  107 Feb 18  2018 install.cmd
-rwxrwxrwx  1 root root 3316 Feb 18  2018 log.bat
drwxrwxrwx  1 root root 4096 Feb 18  2018 resources
drwxrwxrwx  1 root root0 Feb 18  2018 scripts
-rwxrwxrwx  1 root root   36 Feb 18  2018 variables.txt
drwxrwxrwx  1 root root0 Feb 18  2018 win2k8r2

libguestfs inspection has no idea what to make of this.  I guess it's
some very custom embedded Linux.

Virt-v2v cannot do generalised conversions, it only works for a narrow
range of supported guests:

https://libguestfs.org/virt-v2v-support.1.html

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
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/T4CXOUAP2NK6MUG6NE7XZZ3H77C77QFY/


[ovirt-users] Re: No bootable device

2022-03-27 Thread Richard W.M. Jones

On Sun, Mar 27, 2022 at 01:18:43PM +0300, Arik Hadas wrote:
> That information message is incorrect, both OVAs that are created by
> oVirt/RHV and OVAs that are created by VMware are supported It could
> work for OVAs that are VMware-compatible though

"VMware-compatible" is doing a bit of work there.  Virt-v2v only
supports (and more importantly _tests_) OVAs produced by VMware.
Anything claiming to be "VMware-compatible" might or might not work.

I'm on holiday at the moment but I can have a look at the OVA itself
when I get back if someone posts a link.

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/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/6ECSCDJ7FHXVO37K5E7KVP252XZCXHJA/


[ovirt-users] Re: Unclear how to add local (POSIX) storage

2022-02-04 Thread Richard W.M. Jones
On Fri, Feb 04, 2022 at 04:02:56PM +0200, Nir Soffer wrote:
> On Fri, Feb 4, 2022 at 3:49 PM Richard W.M. Jones  wrote:
> >
> > On Fri, Feb 04, 2022 at 03:47:11PM +0200, Nir Soffer wrote:
> > > Can be fixed with:
> > >
> > > $ sudo chcon -R -t nfs_t mnt
> >
> > Yes that did work, thanks.
> 
> Warning: that this configuration is a trap - if you add another host
> to this system,
> the system will try to mount the same device (/dev/sdb1) on the new
> host. Since the
> other host does not have the same disk, the mount will fail, and the
> other host will
> be deactivated, since it cannot access all storage.

Point taken!  This is only a test however.

Here's the bug:
https://bugzilla.redhat.com/show_bug.cgi?id=2050721

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/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/5G7FB3DDW77WKVPLS2LL325RQHORG6WY/


[ovirt-users] Re: Unclear how to add local (POSIX) storage

2022-02-04 Thread Richard W.M. Jones
On Fri, Feb 04, 2022 at 03:47:11PM +0200, Nir Soffer wrote:
> Can be fixed with:
> 
> $ sudo chcon -R -t nfs_t mnt

Yes that did work, thanks.

Is this still a bug?

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
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/Q2E35J2MSA36DP3A5TJIKIMWJP4PM52D/


[ovirt-users] Re: Unclear how to add local (POSIX) storage

2022-02-04 Thread Richard W.M. Jones
On Fri, Feb 04, 2022 at 03:09:02PM +0200, Nir Soffer wrote:
> On Fri, Feb 4, 2022 at 11:16 AM Richard W.M. Jones  wrote:
> >
> > On Fri, Feb 04, 2022 at 08:42:08AM +0000, Richard W.M. Jones wrote:
> > > On Thu, Feb 03, 2022 at 06:31:52PM +0200, Nir Soffer wrote:
> > > > This is expected on oVirt, our multipath configuration is intentionally 
> > > > grabbing
> > > > any device that multipath can work with, even if the device only has 
> > > > one path.
> > > > The motivation is to be able to configure a system when only one path is
> > > > available (maybe you have an hba/network/server issue), and once the 
> > > > other
> > > > paths are available the system will use them transparently.
> > > >
> > > > To avoid this issue with local devices, you need to blacklist the 
> > > > device.
> > > >
> > > > Add this file:
> > > >
> > > > $ cat /etc/multipath/conf.d/local.conf
> > > > blacklist {
> > > > wwid "QEMU HARDDISK"
> > > > }
> > >
> > > Thanks - for the mailing list record the syntax that worked for me is:
> > >
> > > # cat /etc/multipath/conf.d/local.conf
> > > blacklist {
> > > wwid ".*QEMU_HARDDISK.*"
> > > }
> > >
> > > > Configuring NFS on some other machine is easy.
> > > >
> > > > I'm using another VM for this, so I can easily test negative flows like 
> > > > stopping
> > > > or restarting the NFS server while it is being used by vms or storage
> > > > operations.
> > > > I'm using 2G alpine vm for this, it works fine even with 1G memory.
> > >
> > > I think I can get local storage working now (I had it working before).
> >
> > Well finally it fails with:
> >
> > 2022-02-04 09:14:55,779Z ERROR 
> > [org.ovirt.engine.core.bll.storage.domain.AddPosixFsStorageDomainCommand] 
> > (default task-2) [25a32edf] Command 
> > 'org.ovirt.engine.core.bll.storage.domain.AddPosixFsStorageDomainCommand' 
> > failed: EngineException: 
> > org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException: 
> > VDSGenericException: VDSErrorException: Failed to CreateStorageDomainVDS, 
> > error = Could not initialize cluster lock: (), code = 701 (Failed with 
> > error unexpected and code 16)
> 
> The error "Could not initialize cluster lock" comes from vdsm. Usually
> engine log is
> not the best way to debug such failures. This is only the starting
> point and you need to
> go to the host and check vdsm and supervdsm logs in /var/log/vdsm/.

I can't really see anything relevant in supervdsm.log, it's all fairly
neutral debug messages.

> Since this error
> comes from sanlock, we also may have useful info in /var/log/sanlock.log.

Interesting:

2022-02-04 13:15:27 16723 [826]: open error -13 EACCES: no permission to open 
/rhev/data-center/mnt/_dev_sdb1/13a731d2-e1d2-4998-9b02-ac46899e3159/dom_md/ids
2022-02-04 13:15:27 16723 [826]: check that daemon user sanlock 179 group 
sanlock 179 has access to disk or file.

I think it's quite likely that the sanlock daemon does not have access
here, since (see below) I choown'd the root of the xfs filesystem to
36:36 (otherwise vdsm complains).

> Can you share instructions on how to reproduce this issue?

I have one engine and one node (both happen to be VMs, but I don't
believe that is relevant here).  It's running Version 4.4.10.6-1.el8.

I added a second disk to the node, and disabled multipath as
previously discussed.  The second disk is /dev/sdb1.  I formatted it
as xfs and chowned the root of the filesystem to 36:36.

In the admin portal, Storage -> Domains -> New domain

Storage type: Posix compliant fs

Name: ovirt-data

Path: /dev/sdb1

VFS type: xfs

Hit OK ->
Error while executing action AddPosixFsStorageDomain: Unexpected exception



> > I think this feature (local storage) no longer works.
> 
> This is not local storage, local storage is a storage domain using a
> local directory
> on a host. This works only when creating a local data center,
> basically each host
> has its own data center.
> 
> Nir

-- 
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/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/CSKCHQVWWD7EW3A4HPA37RJTKACFATO6/


[ovirt-users] Re: Unclear how to add local (POSIX) storage

2022-02-04 Thread Richard W.M. Jones
On Fri, Feb 04, 2022 at 08:42:08AM +, Richard W.M. Jones wrote:
> On Thu, Feb 03, 2022 at 06:31:52PM +0200, Nir Soffer wrote:
> > This is expected on oVirt, our multipath configuration is intentionally 
> > grabbing
> > any device that multipath can work with, even if the device only has one 
> > path.
> > The motivation is to be able to configure a system when only one path is
> > available (maybe you have an hba/network/server issue), and once the other
> > paths are available the system will use them transparently.
> > 
> > To avoid this issue with local devices, you need to blacklist the device.
> > 
> > Add this file:
> > 
> > $ cat /etc/multipath/conf.d/local.conf
> > blacklist {
> > wwid "QEMU HARDDISK"
> > }
> 
> Thanks - for the mailing list record the syntax that worked for me is:
> 
> # cat /etc/multipath/conf.d/local.conf
> blacklist {
> wwid ".*QEMU_HARDDISK.*"
> }
> 
> > Configuring NFS on some other machine is easy.
> > 
> > I'm using another VM for this, so I can easily test negative flows like 
> > stopping
> > or restarting the NFS server while it is being used by vms or storage
> > operations.
> > I'm using 2G alpine vm for this, it works fine even with 1G memory.
> 
> I think I can get local storage working now (I had it working before).

Well finally it fails with:

2022-02-04 09:14:55,779Z ERROR 
[org.ovirt.engine.core.bll.storage.domain.AddPosixFsStorageDomainCommand] 
(default task-2) [25a32edf] Command 
'org.ovirt.engine.core.bll.storage.domain.AddPosixFsStorageDomainCommand' 
failed: EngineException: 
org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException: 
VDSGenericException: VDSErrorException: Failed to CreateStorageDomainVDS, error 
= Could not initialize cluster lock: (), code = 701 (Failed with error 
unexpected and code 16)

I think this feature (local storage) no longer works.

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
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/OD43QV4C5HCQGDQVTA72QQBTTU7T6N45/


[ovirt-users] Re: Unclear how to add local (POSIX) storage

2022-02-04 Thread Richard W.M. Jones
On Thu, Feb 03, 2022 at 06:31:52PM +0200, Nir Soffer wrote:
> This is expected on oVirt, our multipath configuration is intentionally 
> grabbing
> any device that multipath can work with, even if the device only has one path.
> The motivation is to be able to configure a system when only one path is
> available (maybe you have an hba/network/server issue), and once the other
> paths are available the system will use them transparently.
> 
> To avoid this issue with local devices, you need to blacklist the device.
> 
> Add this file:
> 
> $ cat /etc/multipath/conf.d/local.conf
> blacklist {
> wwid "QEMU HARDDISK"
> }

Thanks - for the mailing list record the syntax that worked for me is:

# cat /etc/multipath/conf.d/local.conf
blacklist {
wwid ".*QEMU_HARDDISK.*"
}

> Configuring NFS on some other machine is easy.
> 
> I'm using another VM for this, so I can easily test negative flows like 
> stopping
> or restarting the NFS server while it is being used by vms or storage
> operations.
> I'm using 2G alpine vm for this, it works fine even with 1G memory.

I think I can get local storage working now (I had it working before).

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
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/AU5UUXFNGPMBGETPZI3R445FFWESUGXK/


[ovirt-users] Re: Unclear how to add local (POSIX) storage

2022-02-03 Thread Richard W.M. Jones
On Thu, Feb 03, 2022 at 03:07:20PM +0200, Nir Soffer wrote:
> On Thu, Feb 3, 2022 at 2:30 PM Richard W.M. Jones  wrote:
> >
> >
> > I'm following the instructions here:
> > https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.2/html/administration_guide/sect-preparing_and_adding_posix_compliant_file_system_storage
> >
> > I've also added an extra virtual disk to my host node which appears as
> > /dev/sdb.  Although the disk is partitioned, /dev/sdb1 is not created.
> > Is udev broken in oVirt node?
> >
> > I cannot see anywhere in the dialog where you specify the name of the
> > device (eg. "/dev/sdb1").  So how's it supposed to work?
> >
> > It doesn't work, giving an information-free error message:
> >
> >   Error while executing action Add Storage Connection: Problem while trying 
> > to mount target
> 
> You can find more info on the failure in:
> /var/log/vdsm/supervdsmd.log

vdsm.storage.mount.MountError: Command ['/usr/bin/mount', '-t', 'xfs', '/srv', 
'/rhev/data-center/mnt/_srv'] failed with rc=32 out=b'' err=b'mount: 
/rhev/data-center/mnt/_srv: /srv is not a block device.\n'

I suppose it expects the name of the block device (ie. /dev/sdb)
rather than the mount point there.

It also turns out the new device has been "captured" by multipathd:

# multipath -ll
0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-1 dm-0 QEMU,QEMU HARDDISK
size=100G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
  `- 0:0:0:1 sdb 8:16 active ready running

I've so far not found a way to disable multipathd effectively.  Even
stopping and disabling the service and rebooting doesn't help so I
guess something starts it up.

> Posix compliant is basically NFS without some mount options:
> https://github.com/oVirt/vdsm/blob/878407297cb7dc892110ae5d6b0403ca97249247/lib/vdsm/storage/storageServer.py#L174
> 
> Using a local device on a host is less tested path, I'm not QE is testing
> this (Avihai, please correct me if you do).
> 
> If you have multiple hosts, this will break if the local device does not have
> the same name on all hosts (so using /dev/sdb1 is very fragile). If you have
> one host it can be fine.
> 
> Any reason to add a device to the vm, instead of using an NFS server?
>
> I guess that your purpose is testing virt-v2v with oVirt, so you want to test
> a common configuration; NFS is very common for oVirt users.

I don't have an NFS server to use for 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
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/TXOKEW3KY3IEB32SMK2OFRORN6WRSYY3/


[ovirt-users] Unclear how to add local (POSIX) storage

2022-02-03 Thread Richard W.M. Jones

I'm following the instructions here:
https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.2/html/administration_guide/sect-preparing_and_adding_posix_compliant_file_system_storage

I've also added an extra virtual disk to my host node which appears as
/dev/sdb.  Although the disk is partitioned, /dev/sdb1 is not created.
Is udev broken in oVirt node?

I cannot see anywhere in the dialog where you specify the name of the
device (eg. "/dev/sdb1").  So how's it supposed to work?

It doesn't work, giving an information-free error message:

  Error while executing action Add Storage Connection: Problem while trying to 
mount target

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
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/TBRERXNEEUYEFW2FAZUWVLF5TFODFGKM/


[ovirt-users] Re: Ignore CPU_TYPE_UNSUPPORTED_IN_THIS_CLUSTER_VERSION ?

2022-02-03 Thread Richard W.M. Jones
On Thu, Feb 03, 2022 at 06:08:55AM +, Strahil Nikolov wrote:
> Host-passthrough & nested virtualization are mandatory.

Yes indeed.  I don't know if I missed this in the docs, but it wasn't
obvious.  However using host-passthrough fixed it.

Rich.

> Best Regards,
> Strahil Nikolov
> 
> 
> On Wed, Feb 2, 2022 at 18:54, Richard W.M. Jones
>  wrote:
> On Wed, Feb 02, 2022 at 05:42:33PM +0200, Juhani Rautiainen wrote:
> > Hi!
> >
> > Maybe you have to modify qemu VM CPU settings? I mean that usually if
> > you don't see the svm flag on AMD CPU, virtualization is not
> > available. This page suggests changes to qemu CPU model:
> > https://techviewleo.com/how-to-enable-nested-virtualization-on-kvm-qemu/
> >
> > I think that the "host-passthrough" setting should let all the CPU
> > flags go through to the VM
> > (https://wiki.openstack.org/wiki/LibvirtXMLCPUModel).
> 
> Yes, thank you, you are absolutely right.
> 
> I had the CPU model set to "host-model" (where libvirt tries to create
> a model approximating the host).  Changing it to "host-passthrough"
> (ie. same as qemu -cpu host) fixed it and allowed me to install oVirt
> node in the guest and activate 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
> 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/
> W4434OIVOGS2KCGVISROD6Y7JPLP6MNS/
>
> 

-- 
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/FIR2NPU2FVCNMXVJSEJ27I3ONPVWTB7K/


[ovirt-users] Re: Ignore CPU_TYPE_UNSUPPORTED_IN_THIS_CLUSTER_VERSION ?

2022-02-02 Thread Richard W.M. Jones
On Wed, Feb 02, 2022 at 05:42:33PM +0200, Juhani Rautiainen wrote:
> Hi!
> 
> Maybe you have to modify qemu VM CPU settings? I mean that usually if
> you don't see the svm flag on AMD CPU, virtualization is not
> available. This page suggests changes to qemu CPU model:
> https://techviewleo.com/how-to-enable-nested-virtualization-on-kvm-qemu/
> 
> I think that the "host-passthrough" setting should let all the CPU
> flags go through to the VM
> (https://wiki.openstack.org/wiki/LibvirtXMLCPUModel).

Yes, thank you, you are absolutely right.

I had the CPU model set to "host-model" (where libvirt tries to create
a model approximating the host).  Changing it to "host-passthrough"
(ie. same as qemu -cpu host) fixed it and allowed me to install oVirt
node in the guest and activate 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
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/W4434OIVOGS2KCGVISROD6Y7JPLP6MNS/


[ovirt-users] Re: Ignore CPU_TYPE_UNSUPPORTED_IN_THIS_CLUSTER_VERSION ?

2022-02-02 Thread Richard W.M. Jones
On Wed, Feb 02, 2022 at 04:09:00PM +0200, Juhani Rautiainen wrote:
> Hi!
> 
> You are running oVirt nested inside KVM? Have you enabled nested
> virtualization in KVM? Didn't see any mention of that in the thread.
> That might explain the missing svm flag.
> 
> https://docs.fedoraproject.org/en-US/quick-docs/using-nested-virtualization-in-kvm/

I think so (I thought nested was always enabled on AMD), but let me check ...

This is on the host:

  $ cat /sys/module/kvm_amd/parameters/nested
  1

I believe that means yes.

Inside the guest (the oVirt node):

  $ cat /sys/module/kvm_amd/parameters/nested
  cat: /sys/module/kvm_amd/parameters/nested: No such file or directory

but I believe that's correct since we're not trying to do double
nesting with KVM.  TBH I don't care at all if the VMs run slowly (with
TCG) or even not at all.  This is just for testing.  I just want a way
to ignore the error and bring up the host.

Rich.

> -Juhani
> 
> On Wed, Feb 2, 2022 at 3:47 PM Richard W.M. Jones  wrote:
> >
> > On Wed, Feb 02, 2022 at 01:06:40PM +, Richard W.M. Jones wrote:
> > > On Wed, Feb 02, 2022 at 01:32:14PM +0100, Lucia Jelinkova wrote:
> > > > Hi,
> > > >
> > > > The list should contain more items. Could you please try to create a
> > > > new cluster using UI, set the compatibility level to 4.6,
> > > > architecture to x86_64 and check the CPU Type dropdown again?
> > >
> > > I created a new DC "Custom", checked compat level is 4.6.
> > >
> > > Within that, created a new Cluster "Custom", arch is x86_64, and ..
> > > you're right!  It was a UI issue of some kind because now I see the
> > > scrollbar on the right and there are many more machine types.
> > >
> > > I selected AMD EPYC, so let's see how it goes creating a host.
> >
> > Sadly that didn't fix the problem, I'm still getting:
> >
> >   Host ovirt4410 moved to Non-Operational state as host CPU type is not 
> > supported in this cluster compatibility version or is not supported at all
> >
> > and in engine.log:
> >
> >   2022-02-02 13:35:01,713Z ERROR 
> > [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
> > (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-44) 
> > [310af602] EVENT_ID: CPU_TYPE_UNSUPPORTED_IN_THIS_CLUSTER_VERSION(156), 
> > Host ovirt4410-host moved to Non-Operational state as host CPU type is not 
> > supported in this cluster compatibility version or is not supported at all
> >
> > Mousing over the status, it says it's missing 'model_EPYC' and 'svm'
> > flags.  The first one is weird because the emulated model in the guest
> > is:
> >
> > model name  : AMD EPYC-Rome Processor
> >
> > The second one is correct because I guess KVM is masking this flag
> > from the guest:
> >
> > flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
> > pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb 
> > rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq 
> > ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes 
> > xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a 
> > misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibpb stibp vmmcall 
> > fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb 
> > sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr wbnoinvd arat umip 
> > rdpid arch_capabilities
> >
> > Is there not any way to ignore this stuff?  I really don't care that
> > this node which is only going to be used for testing won't run VMs
> > optimally.  For comparison VMware ESXi 7 also raised minimum CPU types
> > substantially, but offers a simple (unsupported) opt out.
> >
> > 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
> > 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/S2Q3M46GUGN5OZZ2TJN6R7RLPPKVCOAJ/

-- 
Richard J

[ovirt-users] Re: Ignore CPU_TYPE_UNSUPPORTED_IN_THIS_CLUSTER_VERSION ?

2022-02-02 Thread Richard W.M. Jones
On Wed, Feb 02, 2022 at 01:06:40PM +, Richard W.M. Jones wrote:
> On Wed, Feb 02, 2022 at 01:32:14PM +0100, Lucia Jelinkova wrote:
> > Hi,
> >
> > The list should contain more items. Could you please try to create a
> > new cluster using UI, set the compatibility level to 4.6,
> > architecture to x86_64 and check the CPU Type dropdown again?
> 
> I created a new DC "Custom", checked compat level is 4.6.
> 
> Within that, created a new Cluster "Custom", arch is x86_64, and ..
> you're right!  It was a UI issue of some kind because now I see the
> scrollbar on the right and there are many more machine types.
> 
> I selected AMD EPYC, so let's see how it goes creating a host.

Sadly that didn't fix the problem, I'm still getting:

  Host ovirt4410 moved to Non-Operational state as host CPU type is not 
supported in this cluster compatibility version or is not supported at all

and in engine.log:

  2022-02-02 13:35:01,713Z ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-44) 
[310af602] EVENT_ID: CPU_TYPE_UNSUPPORTED_IN_THIS_CLUSTER_VERSION(156), Host 
ovirt4410-host moved to Non-Operational state as host CPU type is not supported 
in this cluster compatibility version or is not supported at all

Mousing over the status, it says it's missing 'model_EPYC' and 'svm'
flags.  The first one is weird because the emulated model in the guest
is:

model name  : AMD EPYC-Rome Processor

The second one is correct because I guess KVM is masking this flag
from the guest:

flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat 
pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 
rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 
sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand 
hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch 
osvw topoext perfctr_core ssbd ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 
smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves 
clzero xsaveerptr wbnoinvd arat umip rdpid arch_capabilities

Is there not any way to ignore this stuff?  I really don't care that
this node which is only going to be used for testing won't run VMs
optimally.  For comparison VMware ESXi 7 also raised minimum CPU types
substantially, but offers a simple (unsupported) opt out.

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
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/S2Q3M46GUGN5OZZ2TJN6R7RLPPKVCOAJ/


[ovirt-users] Re: Ignore CPU_TYPE_UNSUPPORTED_IN_THIS_CLUSTER_VERSION ?

2022-02-02 Thread Richard W.M. Jones
On Wed, Feb 02, 2022 at 01:32:14PM +0100, Lucia Jelinkova wrote:
> Hi,
>
> The list should contain more items. Could you please try to create a
> new cluster using UI, set the compatibility level to 4.6,
> architecture to x86_64 and check the CPU Type dropdown again?

I created a new DC "Custom", checked compat level is 4.6.

Within that, created a new Cluster "Custom", arch is x86_64, and ..
you're right!  It was a UI issue of some kind because now I see the
scrollbar on the right and there are many more machine types.

I selected AMD EPYC, so let's see how it goes creating a host.

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
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/TTZM36TCF7BGX2ORJLFLQTX4NVHPRAW7/


[ovirt-users] Re: Ignore CPU_TYPE_UNSUPPORTED_IN_THIS_CLUSTER_VERSION ?

2022-02-02 Thread Richard W.M. Jones
On Wed, Feb 02, 2022 at 11:07:21AM +0100, Martin Perina wrote:
> You cannot mix AMD and Intel processors in a cluster. So if you have an AMD
> based host, then you need to add it to AMD cluster only

I have two VMs - one for engine and one for node.  They are both
running on the same physical host (using KVM).

> AMD EPYC support is available from 4.3 cluster level, so it should definitely
> be available in the latest 4.6 CL

I'm more confused here.  I'm running what I believe to be the latest
oVirt engine (4.4.10.6-1.el8).

There are no AMD CPUs offered for cluster CPU type, only Intel CPUs:

Intel Nehalem Family
Secure Intel Nehalem Family
Intel Westmere Family
Secure Intel Westmere Family
Intel Sandybridge Family

(that's the complete list)

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/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/UVSXH2TVBHYHJIGR5FDG5JHFPA7UASVN/


[ovirt-users] Re: Installing oVirt on RHEL vs CentOS Stream, Alma or Rocky Linux

2022-02-02 Thread Richard W.M. Jones
On Wed, Feb 02, 2022 at 08:31:17AM +0200, Yedidyah Bar David wrote:
> On Tue, Feb 1, 2022 at 7:55 PM Richard W.M. Jones  wrote:
> >
> > On Tue, Feb 01, 2022 at 12:14:37PM -0500, Neal Gompa wrote:
> > > On Tue, Feb 1, 2022 at 12:00 PM Richard W.M. Jones  
> > > wrote:
> > > >
> > > > I'm still struggling to get oVirt installed.  It absolutely will not
> > > > install on RHEL 8, the documentation here is flat out wrong:
> > > >
> > > > https://www.ovirt.org/documentation/installing_ovirt_as_a_standalone_manager_with_local_databases/index.html#Enabling_the_Red_Hat_Virtualization_Manager_Repositories_install_RHVM
> > > >
> > > > javapackages-tools is not a module that exists in RHEL 8.  Apparently
> > > > it's a CentOS PowerTools module.
> > > >
> > >
> > > It should exist in the RHEL 8 CodeReady Builder repository.
> >
> > That did in fact work, thanks.
> 
> Would you like to file a doc bug about this?

https://github.com/oVirt/ovirt-site/issues/2709

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
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/SDOSVBG6AZY75RAPWWYKIGYPV2RXYYWF/


[ovirt-users] Re: Ignore CPU_TYPE_UNSUPPORTED_IN_THIS_CLUSTER_VERSION ?

2022-02-02 Thread Richard W.M. Jones
On Tue, Feb 01, 2022 at 08:45:51PM +0100, Martin Perina wrote:
> 
> 
> On Tue, Feb 1, 2022 at 8:27 PM Richard W.M. Jones  wrote:
> 
> 
> 2022-02-01 19:05:01,952Z ERROR
> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
> (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-19)
> [330886aa] EVENT_ID: CPU_TYPE_UNSUPPORTED_IN_THIS_CLUSTER_VERSION(156),
> Host ovirt4410-host moved to Non-Operational state as host CPU type is not
> supported in this cluster compatibility version or is not supported at all
> 
> The host is a nested VM running on old hardware.  I don't care that
> it's not supported - this is just for testing copying and it'll
> literally never even need to run a VM.
> 
> Is there a way to ignore this and continue?
> 
> 
> Hi,
>
> You need to create a custom DC and a cluster with lower
> compatibility level to be able to use older CPUs.
>
> You can take a look at supported CPUs for each cluster level using
> ServerCPUList config option:
> 
> https://github.com/oVirt/ovirt-engine/blob/master/packaging/dbscripts/upgrade/pre_upgrade/_config.sql#L1125

OK that operation is underway.  I selected CPU type "Nehalem", that
being an ancient Intel CPU.  The hardware is AMD and there were no AMD
options.  I'll see if it installs anyway.

> What is your hypervisor CPU?

The oVirt host is a VM with an interesting choice of guest CPU now I
look at it:

processor : 0
vendor_id : AuthenticAMD
cpu family  : 23
model : 49
model name: AMD EPYC-Rome Processor
stepping  : 0
microcode : 0x165
cpu MHz : 3792.872
cache size  : 512 KB
physical id : 0
siblings : 1
core id: 0
cpu cores  : 1
apicid   : 0
initial apicid : 0
fpu: yes
fpu_exception  : yes
cpuid level: 13
wp : yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb 
rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 
fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx 
f16c rdrand hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 
3dnowprefetch osvw topoext perfctr_core ssbd ibpb stibp vmmcall fsgsbase 
tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt 
xsavec xgetbv1 xsaves clzero xsaveerptr wbnoinvd arat umip rdpid 
arch_capabilities
bugs   : sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass
bogomips   : 7585.74
TLB size   : 1024 4K pages
clflush size   : 64
cache_alignment: 64
address sizes  : 40 bits physical, 48 bits virtual
power management:

--- and hypervisor CPU:

processor  : 23
vendor_id  : AuthenticAMD
cpu family : 23
model: 113
model name   : AMD Ryzen 9 3900X 12-Core Processor
stepping : 0
microcode: 0x8701013
cpu MHz: 2200.000
cache size : 512 KB
physical id: 0
siblings : 24
core id: 14
cpu cores  : 12
apicid   : 29
initial apicid : 29
fpu: yes
fpu_exception  : yes
cpuid level: 16
wp : yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb 
rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf 
rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave 
avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 
3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext 
perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall 
fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni 
xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total 
cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock 
nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter 
pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov 
succor smca sme sev sev_es
bugs   : sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass
bogomips   : 7585.86
TLB size   : 3072 4K pages
clflush size   : 64
cache_alignment: 64
address sizes  : 43 bits physical, 48 bits virtual
power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]

Rich.

> Regards,
> Martin
> 
> 
> 
> 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
> __

[ovirt-users] Ignore CPU_TYPE_UNSUPPORTED_IN_THIS_CLUSTER_VERSION ?

2022-02-01 Thread Richard W.M. Jones

2022-02-01 19:05:01,952Z ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-19) 
[330886aa] EVENT_ID: CPU_TYPE_UNSUPPORTED_IN_THIS_CLUSTER_VERSION(156), Host 
ovirt4410-host moved to Non-Operational state as host CPU type is not supported 
in this cluster compatibility version or is not supported at all

The host is a nested VM running on old hardware.  I don't care that
it's not supported - this is just for testing copying and it'll
literally never even need to run a VM.

Is there a way to ignore this and continue?

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
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/NOLWZUDPZMEAJYMNOV75QKQ42BQRQV4B/


[ovirt-users] Re: Installing oVirt on RHEL vs CentOS Stream, Alma or Rocky Linux

2022-02-01 Thread Richard W.M. Jones
On Tue, Feb 01, 2022 at 12:14:37PM -0500, Neal Gompa wrote:
> On Tue, Feb 1, 2022 at 12:00 PM Richard W.M. Jones  wrote:
> >
> > I'm still struggling to get oVirt installed.  It absolutely will not
> > install on RHEL 8, the documentation here is flat out wrong:
> >
> > https://www.ovirt.org/documentation/installing_ovirt_as_a_standalone_manager_with_local_databases/index.html#Enabling_the_Red_Hat_Virtualization_Manager_Repositories_install_RHVM
> >
> > javapackages-tools is not a module that exists in RHEL 8.  Apparently
> > it's a CentOS PowerTools module.
> >
> 
> It should exist in the RHEL 8 CodeReady Builder repository.

That did in fact work, thanks.

> > Since original CentOS no longer really exists either, does anyone have
> > any opinions or experience with installing oVirt on any of:
> >
> >  - CentOS Stream 8
> >
> >  - Alma Linux 8.5
> >
> >  - Rocky Linux
> >
> > Alma in particular looks like a straight replacement for old CentOS.
> >
> 
> I've used CentOS Stream 8 reasonably okay for this, but AlmaLinux
> would work too.

I didn't actually try Alma, but I suspect we might have problems with
ansible playbooks / random scripts which match "centos".

I did build an alma-8.5 virt-builder template today though.

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/FQBOJ7POBVXSSZF5EGNYEMABUACDHEEE/


[ovirt-users] Installing oVirt on RHEL vs CentOS Stream, Alma or Rocky Linux

2022-02-01 Thread Richard W.M. Jones
I'm still struggling to get oVirt installed.  It absolutely will not
install on RHEL 8, the documentation here is flat out wrong:

https://www.ovirt.org/documentation/installing_ovirt_as_a_standalone_manager_with_local_databases/index.html#Enabling_the_Red_Hat_Virtualization_Manager_Repositories_install_RHVM

javapackages-tools is not a module that exists in RHEL 8.  Apparently
it's a CentOS PowerTools module.

Since original CentOS no longer really exists either, does anyone have
any opinions or experience with installing oVirt on any of:

 - CentOS Stream 8

 - Alma Linux 8.5

 - Rocky Linux

Alma in particular looks like a straight replacement for old CentOS.

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/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/D6YHIIBEABPLK3Q54O7WGDGKC2J5LPSN/


[ovirt-users] Re: What happened to oVirt engine-setup?

2022-01-25 Thread Richard W.M. Jones
On Tue, Jan 25, 2022 at 06:37:24PM +0200, Nir Soffer wrote:
> On Tue, Jan 25, 2022 at 5:46 PM Richard W.M. Jones  wrote:
> >
> > A while back I had oVirt 4.4.7 installed which I used for testing.
> > For some reason that installation has died in some way, so I'm trying
> > to install a fresh new oVirt 4.4.10.
> >
> > Last time I installed ovirt, it was very easy - I provisioned a couple
> > of machines, ran engine-setup in one, answered a few questions and
> > after a few minutes the engine was installed.
> >
> > Somehow this has changed and now it's really far more complicated,
> > involving some ansible things and wanting to create VMs and ssh
> > everywhere.
> >
> > Can I go back to the old/easy way of installing oVirt engine?  And if
> > so, what happened to the instructions for that?
> 
> engine-setup still works, maybe you can give move details on what went wrong?

So I managed to dnf install /usr/bin/engine-setup.  When I ran it, it
wanted to connect to an external PostgreSQL server.  I'm pretty sure
that never happened last time.

TBH I'm also going to erase everything and start again because I've
been round several loops here already.

Do we recommend RHEL or CentOS as the initial OS?

> When working with the current development version, sometimes
> upgrading engine fails and requires manual steps, or dropping
> reinstalling. But since you use a stable version it should always
> work.

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
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/62B632U24FAL7JNKXFT6NABEWDPYBJ5X/


[ovirt-users] What happened to oVirt engine-setup?

2022-01-25 Thread Richard W.M. Jones
A while back I had oVirt 4.4.7 installed which I used for testing.
For some reason that installation has died in some way, so I'm trying
to install a fresh new oVirt 4.4.10.

Last time I installed ovirt, it was very easy - I provisioned a couple
of machines, ran engine-setup in one, answered a few questions and
after a few minutes the engine was installed.

Somehow this has changed and now it's really far more complicated,
involving some ansible things and wanting to create VMs and ssh
everywhere.

Can I go back to the old/easy way of installing oVirt engine?  And if
so, what happened to the instructions for that?

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
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/JRF5MCC3VBZA7775XVH7PEOV5Z5SUUC4/


[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


  1   2   >