[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



On Wed, Nov 16, 2016 at 05:09:56PM -0500, Derek Atkins wrote:
> Guest is Fedora 21.  Host is CentOS 7.2
> 
> Guest not have an unusual number of files.  At least looking at the number
> of inodes used:
> Filesystem      Inodes  IUsed   IFree IUse% Mounted on
> /dev/vda3      2894304 164989 2729315    6% /
> 
> So... 165,000 files?  My F23 system which imported in 2 minutes has
> 174,442 inodes used, albeit significantly more free:
> 
> Filesystem       Inodes  IUsed    IFree IUse% Mounted on
> /dev/vda3      23080448 174442 22906006    1% /
> 
> Another difference is ext4 (F21) vs xfs (F23).

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.

For me that command only takes ~15 seconds to run on a Fedora 21 disk
image with minimal (@Core) packages installed.  I'm using a
RHEL 7.3 host.

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/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]