Bug 1884978 - [v2v][Doc][VMware to CNV VM import API] VM import creation: Add details on source VM ID/name
Summary: [v2v][Doc][VMware to CNV VM import API] VM import creation: Add details on so...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: V2V
Version: 2.5.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 2.5.2
Assignee: Sam Lucidi
QA Contact: Ilanit Stein
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-04 09:14 UTC by Ilanit Stein
Modified: 2020-12-16 00:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-16 00:16:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:5560 0 None None None 2020-12-16 00:17:06 UTC

Description Ilanit Stein 2020-10-04 09:14:59 UTC
Description of problem:
1. Please provide details on how to fetch VM Id, required for the VM import creation yaml.
2. Please provide details on the option to provide VM name instead of id.

VM import create
----------------
cat <<EOF | oc create -f -
apiVersion: v2v.kubevirt.io/v1beta1
kind: VirtualMachineImport
metadata:
  name: vmware-import-1
  namespace: default
spec:
  providerCredentialsSecret:
    name: vmw-secret
    namespace: default # optional, if not specified, use CR's namespace
  resourceMapping:
    name: example-vmware-resourcemappings
    namespace: default
  targetVmName: vmw-import
  startVm: false
  source:
    vmware:
      vm:
        id: 42037aff-4d6f-cf89-7979-e98cbc406c0e  <===== VM ID
EOF

Version-Release number of selected component (if applicable):
CNv-2.5

Additional info:
For 1:
VM "id" is the VM UUID. You can find that in the vCenter flash client. 
Find the host with the VM you want, choose the VMs tab, 
and then right click on the columns to "show/hide columns". 
Check the box for "UUID".

For 2:
You don't need to provide the cluster as part of the source. You just need to use the name of the VM. If the name is ambiguous, you can provide the full inventory path but you probably won't need to.

Comment 1 Fabien Dupont 2020-10-07 07:19:56 UTC
Finding the UUID is pretty much out of scope. A VMware administrator should be able to help.

The VDDK nbdkit plugin documentation, points to this VMware blog post: https://blogs.vmware.com/vsphere/2012/02/uniquely-identifying-virtual-machines-in-vsphere-and-vcloud-part-2-technical.html
And the blog post points to this VMware communities article: https://communities.vmware.com/docs/DOC-18525
And the article has this Perl script attached: https://communities.vmware.com/servlet/JiveServlet/download/18525-1-82893/vmMoRefFinder.pl

I would simply point to the blog post. The problem with the Flash client is that it's deprecated.

And the MTV UI will remove the need for finding the UUID. That's why I've set the priority to medium.

Comment 2 Fabien Dupont 2020-10-13 13:23:17 UTC
Moving to CNV 2.5.1 as it's medium priority.

Comment 10 errata-xmlrpc 2020-12-16 00:16:58 UTC
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 (OpenShift Virtualization 2.5.2 Images), 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://access.redhat.com/errata/RHEA-2020:5560


Note You need to log in before you can comment on or make changes to this bug.