Skip to content

Commit

Permalink
MTV-1864 | Add luks to virt-v2v-inspector
Browse files Browse the repository at this point in the history
Issue:
When migrating VM with luks from vmware the migration fails on the
virt-v2v-inspector step.

Fix:
Add common vmware args to the inspector. This contains the luks key args,
root on which we want to do the conversion etc.

Ref: https://issues.redhat.com/browse/MTV-1864

Signed-off-by: Martin Necas <mnecas@redhat.com>
  • Loading branch information
mnecas committed Jan 7, 2025
1 parent ee15130 commit 36e55c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions virt-v2v/cmd/entrypoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ func main() {

func runVirtV2VInspection(disks []string) error {
args := []string{"-v", "-x", "-if", "raw", "-i", "disk", "-O", global.INSPECTION}
args, err := addCommonArgs(args)
if err != nil {
return err
}
args = append(args, disks...)
fmt.Println("Running the virt-v2v-inspector with args: ", args)
v2vCmd := exec.Command("virt-v2v-inspector", args...)
Expand Down

0 comments on commit 36e55c6

Please sign in to comment.