Bug 1261436
| Summary: | No warning shows when convert a win7 guest with AVG AntiVirus installed | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | zhoujunqin <juzhou> | ||||||
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 7.2 | CC: | mxie, mzhan, ptoscano, tzheng, xiaodwan | ||||||
| Target Milestone: | rc | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | V2V | ||||||||
| Fixed In Version: | libguestfs-1.28.1-1.53.el7 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2016-11-03 17:55:02 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
zhoujunqin
2015-09-09 10:29:12 UTC
Created attachment 1071672 [details]
"virt-v2v -v -x" output
Upstream fix: https://github.com/libguestfs/libguestfs/commit/6734fce8c8a1da083cc259d98e088fe78076dd24 https://github.com/libguestfs/libguestfs/commit/d68be534eab585916ec829424d072f3ace5a4060 Try to verify this bug with new build: libvirt-1.2.17-8.el7.x86_64 libguestfs-1.28.1-1.53.el7.x86_64 virt-v2v-1.28.1-1.53.el7.x86_64 qemu-kvm-rhev-2.3.0-22.el7.x86_64 Steps: 1. Use the same guest listed in Comment 0. # virt-inspector kvm-win7-x86_64-qcow2 ... <application> <name>AVG</name> <display_name>AVG 2015</display_name> <version>2015.0.6140</version> <publisher>AVG Technologies</publisher> </application> ... 2. Use virt-2v convert this guest to rhevm. # virt-v2v -o rhev -os 10.66.90.115:/vol/v2v_auto/nfs_export -n rhevm kvm-win7-x86_64-qcow2 -of raw -on win7-AVG [ 0.0] Opening the source -i libvirt kvm-win7-x86_64-qcow2 [ 0.0] Creating an overlay to protect the source from being modified [ 1.0] Opening the overlay [ 3.0] Initializing the target -o rhev -os 10.66.90.115:/vol/v2v_auto/nfs_export virt-v2v: warning: cannot write files to the NFS server as 36:36, even though we appear to be running as root. This probably means the NFS client or idmapd is not configured properly. You will have to chown the files that virt-v2v creates after the run, otherwise RHEV-M will not be able to import the VM. [ 3.0] Inspecting the overlay [ 4.0] Checking for sufficient free disk space in the guest [ 4.0] Estimating space required on target for each disk [ 4.0] Converting Windows 7 Ultimate to run on KVM virt-v2v: warning: this guest has Anti-Virus (AV) software and a new virtio block device driver was installed. In some circumstances, AV may prevent new drivers from working (resulting in a 7B boot error). If this happens, try disabling AV before doing the conversion. virt-v2v: This guest has virtio drivers installed. [ 6.0] Mapping filesystem data to avoid copying unused and blank areas [ 7.0] Closing the overlay [ 7.0] Checking if the guest needs BIOS or UEFI to boot [ 7.0] Copying disk 1/1 to /tmp/v2v.Ncghru/67f39ca5-5198-4da3-aad6-7d05451eee12/images/b706f451-cd06-4e26-a487-8218cd08bf48/e1ffd018-a25b-4a43-b789-3c34c314a898 (raw) (100.00/100%) [ 174.0] Creating output metadata [ 174.0] Finishing off Result: There is good warning message showed to users about guest with AV software installed. And guest can import and boot up successfully on rhevm server. Try to verify this bug with new build:
libvirt-1.3.2-1.el7.x86_64
libguestfs-1.32.3-1.el7.x86_64
virt-v2v-1.32.3-1.el7.x86_64
qemu-kvm-rhev-2.3.0-31.el7.x86_64
Steps:
1. Prepare a win7 guest with AVG AntiVirus installed.
# virt-inspector esx6.0-win7-x86_64-sda
...
<application>
<name>{CEDC1C27-A73A-4779-9121-DB77A8AE2003}</name>
<display_name>AVG Zen</display_name>
<version>1.41.29</version>
<publisher>AVG Technologies</publisher>
<url>http://www.avg.com</url>
</application>
...
2. Use virt-2v convert this guest to rhevm.
# virt-v2v -o rhev -os 10.73.72.63:/home/nfs_export/ -n ovirtmgmt -b ovirtmgmt esx6.0-win7-x86_64 -on win7-AVG
[ 0.0] Opening the source -i libvirt esx6.0-win7-x86_64
[ 0.0] Creating an overlay to protect the source from being modified
[ 0.8] Initializing the target -o rhev -os 10.73.2.1:/home/nfs_export/
virt-v2v: warning: cannot write files to the NFS server as 36:36, even
though we appear to be running as root. This probably means the NFS client
or idmapd is not configured properly.
You will have to chown the files that virt-v2v creates after the run,
otherwise RHEV-M will not be able to import the VM.
[ 1.1] Opening the overlay
[ 5.6] Inspecting the overlay
[ 7.7] Checking for sufficient free disk space in the guest
[ 7.7] Estimating space required on target for each disk
[ 7.7] Converting Windows 7 Ultimate to run on KVM
virt-v2v: warning: this guest has Anti-Virus (AV) software and a new virtio
block device driver was installed. In some circumstances, AV may prevent
new drivers from working (resulting in a 7B boot error). If this happens,
try disabling AV before doing the conversion.
virt-v2v: This guest has virtio drivers installed.
[ 11.3] Mapping filesystem data to avoid copying unused and blank areas
[ 12.6] Closing the overlay
[ 12.8] Checking if the guest needs BIOS or UEFI to boot
[ 12.8] Assigning disks to buses
[ 12.8] Copying disk 1/2 to /tmp/v2v.uE63wQ/7251b570-41cb-4318-a791-7f5bc4708183/images/ea395c6e-0ab1-453f-bcba-8cdd9151f8da/7ac72bed-05dd-4cc3-ac43-813002574704 (raw)
(100.00/100%)
[ 151.9] Copying disk 2/2 to /tmp/v2v.uE63wQ/7251b570-41cb-4318-a791-7f5bc4708183/images/33e76708-ef31-45a6-b0b3-612898e82401/127c5e55-7747-40d3-a6a9-3aaab052d422 (qcow2)
(100.00/100%)
[ 160.9] Creating output metadata
[ 161.0] Finishing off
Result:
There is good warning message showed to users about guest with AV software installed.
And guest can import and boot up successfully on rhevm server.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-2576.html |