tp-libvirt
tp-libvirt copied to clipboard
NFS shared storage configured unattended_install.import.import.default_install.aio_native fails
For the First time everything goes fine, if I re-run unattended_install.import.import.default_install.aio_native, guest doesn't boots as it creates rhel72-ppc64le.qcow2 image file in /var/lib/libvirt/images/sharing which is corrupted, and remains even after NFS is unmounted.
Everything works fine if I am not configuring NFS shared storage in base.cfg as it takes image from avocado/data/avocado-vt/images/rhel72-ppc64le.qcow2
avocado run --vt-type libvirt --vt-config /var/lib/libvirt/images/avocado/data/avocado-vt/backends/libvirt/cfg/boot.cfg --vt-only-filter 'scsi RHEL.7.2.ppc64le qcow2' --vt-no-filter 'macvtap user network'
image: /var/lib/libvirt/images/sharing/rhel72-ppc64le.qcow2 file format: qcow2 virtual size: 10G (10737418240 bytes) disk size: 1.8M cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: true refcount bits: 16 corrupt: false
base.cfg:
Nfs support related params. Please fill them depends on your environment
For both nfs and local export nfs, following parammeters should be set:
storage_type = nfs nfs_mount_dir = /var/lib/libvirt/images/sharing nfs_mount_options = rw
For nfs you also need set this one:
For nfs export in local these options need be set:
export_dir = /var/lib/libvirt/images/NFS
nfs_mount_src: the nfs resource you use
nfs_mount_src = /var/lib/libvirt/images/NFS
At least one of the above parameters should be set. And id export_dir is
set, it will cover the value set in nfs_mount_src.
export_ip: optional.
export_options: optional.
boot.cfg:
File reserved for test runner (./run) use, don't modify.
include tests-shared.cfg
virt_install_binary = /usr/bin/virt-install qemu_img_binary = /usr/bin/qemu-img hvm_or_pv = hvm
Allow os_type + os_variant to choose this automatically
machine_type = pseries use_os_variant = yes use_os_type = yes only qcow2
only bridge
only scsi
only spapr-vlan
only virtio_net
only virtio_blk
only smp2 only no_9p_export only no_virtio_rng only no_pci_assignable only (image_backend=filesystem) only smallpages
variants: - boot_guest: only unattended_install.import.import.default_install.aio_native