Forum Stats

  • 3,758,595 Users
  • 2,251,417 Discussions
  • 7,870,258 Comments

Discussions

Migrate VMware vSphere to Oracle Linux KVM

«1

Comments

  • 4292210
    4292210 Member Posts: 1

    Hi,

    i'm trying to migrate my vm from vmware to olvm. but i could not understand that part "migration process from VMware Vsphere"

    # virsh -c vpx:// vsphere-domain>%5c<vsphere-user>@&lt;vsphere-host>/Datacenter//<vsphere-datacenter-name>?no_verify=1 list --all

    can help to explain below:

    vsphere-domain :
    Datacenter :
    vsphere-datacenter-name:
     

    thanks and regards

  • Simon Coter-Oracle
    Simon Coter-Oracle Member Posts: 68 Employee

    Hi,

    i'm trying to migrate my vm from vmware to olvm. but i could not understand that part "migration process from VMware Vsphere"

    # virsh -c vpx:// vsphere-domain>%5c<vsphere-user>@&lt;vsphere-host>/Datacenter//<vsphere-datacenter-name>?no_verify=1 list --all

    can help to explain below:

    vsphere-domain :
    Datacenter :
    vsphere-datacenter-name:
     

    thanks and regards

    vSphere Domain Name, VMware Datacenter Name are values that have to be leveraged on VMware.

    The URL above have to be built by pointing to your own VMware environment.

  • User_CVCQ1
    User_CVCQ1 Member Posts: 3 Red Ribbon

    Hi ,

    Is it possible to migrate Microsoft Windows Virtual machine from VMware vSphere to Oracle Linux KVM host.

    virt-v2v in Oracle linux KVM is unable to read NTFS partition ."No root device found in this operating system image"

  • Aditya Agarwal-Oracle
    Aditya Agarwal-Oracle Member Posts: 21 Employee

    Hi ,

    Is it possible to migrate Microsoft Windows Virtual machine from VMware vSphere to Oracle Linux KVM host.

    virt-v2v in Oracle linux KVM is unable to read NTFS partition ."No root device found in this operating system image"

    Hi,

    It appears that inspection failed because libguestfs couldn't read the NTFS filesystem.

    Can you check if you have "libguestfs-winsupport" package installed on the KVM Host where you are trying to import the Windows VM via virt-v2v?

    If not, please install it using command and retry Windows VM import:

    # yum install libguestfs-winsupport

    Make sure you have following repositories: ol7_latest and (ovirt-4.2 , ovirt-4.2-extra) Or (ovirt-4.3 , ovirt-4.3-extra) enabled for installing the package with all required dependencies.

    Let us know the outcome.

    Regards,

    Aditya Agarwal

    Oracle Technical Analyst

  • Hi there,

    Excellent article! Thank you Simon.

    When I follow your procedure I bump into the following error:

    qemu-img Unknown driver 'https'

    Can't really figure out what's going wrong. I'm new to Oracle Linux KVM. Any help would be greatly appreciated!

    Kind regards

    Kristof

  • User_CVCQ1
    User_CVCQ1 Member Posts: 3 Red Ribbon

    Hi,

    It appears that inspection failed because libguestfs couldn't read the NTFS filesystem.

    Can you check if you have "libguestfs-winsupport" package installed on the KVM Host where you are trying to import the Windows VM via virt-v2v?

    If not, please install it using command and retry Windows VM import:

    # yum install libguestfs-winsupport

    Make sure you have following repositories: ol7_latest and (ovirt-4.2 , ovirt-4.2-extra) Or (ovirt-4.3 , ovirt-4.3-extra) enabled for installing the package with all required dependencies.

    Let us know the outcome.

    Regards,

    Aditya Agarwal

    Oracle Technical Analyst

    Hi Aditya ,

    I have already installed the required packages for Windows VM import but still same issue.

    [[email protected] ~]# yum install libguestfs-winsupport

    Loaded plugins: ulninfo, vdsmupgrade

    Package libguestfs-winsupport-7.2-3.el7.x86_64 already installed and latest vers           ion

    Nothing to do

    [[email protected] ~]# yum repolist

    Loaded plugins: ulninfo, vdsmupgrade

    repo id                        repo name                                             status

    ol7_UEKR5/x86_64               Latest Unbreakable Enterprise Kernel Release 5 for Or    250

    ol7_developer/x86_64           Oracle Linux 7Server Development Packages (x86_64)     1,429

    ol7_developer_kvm_utils/x86_64 Oracle Linux 7Server KVM Utilities for Development an      2

    ol7_gluster6/x86_64            Oracle Linux 7Server Gluster 6 Packages (x86_64)          61

    ol7_kvm_utils/x86_64           Oracle Linux 7Server KVM Utilities (x86_64)              542

    ol7_latest/x86_64              Oracle Linux 7Server Latest (x86_64)                  19,388

    ol7_optional_latest/x86_64     Oracle Linux 7Server Optional Latest (x86_64)         14,158

    ovirt-4.2/x86_64               Latest oVirt 4.2 Release (x86_64)                        326

    ovirt-4.2-extra/x86_64         oVirt 4.2 Extra (x86_64)                                 245

    ovirt-4.3/x86_64               Latest oVirt 4.3 Release (x86_64)                        196

    ovirt-4.3-extra/x86_64         oVirt 4.3 Extra (x86_64)                                 160

    repolist: 36,757

    [[email protected] ~]#

  • Do you intend to document using virt-p2v to boot and convert a physical server?

    I attempted to follow the docs and hit two dead ends:

    https://libguestfs.org/virt-p2v.1.html

    https://libguestfs.org/virt-p2v-make-kickstart.1.html

    I couldn't find any Oracle Linux package for livecd-creator.

    https://libguestfs.org/virt-p2v-make-disk.1.html

    [[email protected] v2v]# virt-p2v-make-disk --inject-ssh-identity id_rsa -o p2v.img

    virt-p2v-make-disk: internal error: could not work out the Linux distro from 'ol-7.8'

  • PaulSG
    PaulSG Member Posts: 7 Green Ribbon

    Due to dependencie errors, installation of qemu-block-curl is not possible with the limitation of the developer_kvm_utils package as described in the very first link:

    Fehler: Paket: 15:qemu-block-curl-4.2.1-3.el7.x86_64 (ol7_developer_kvm_utils)

          Benötigt: qemu-common(x86-64) = 15:4.2.1-3.el7

          Installiert: 15:qemu-common-3.1.0-7.el7.x86_64 (@ol7_kvm_utils)

            qemu-common(x86-64) = 15:3.1.0-7.el7

          Verfügbar: 12:qemu-common-2.9.0-10.el7.x86_64 (ol7_kvm_utils)

            qemu-common(x86-64) = 12:2.9.0-10.el7

          Verfügbar: 12:qemu-common-2.9.0-11.1.el7.x86_64 (ol7_kvm_utils)

            qemu-common(x86-64) = 12:2.9.0-11.1.el7

          Verfügbar: 12:qemu-common-2.9.0-17.el7.x86_64 (ol7_kvm_utils)

            qemu-common(x86-64) = 12:2.9.0-17.el7

          Verfügbar: 12:qemu-common-2.9.0-18.el7.x86_64 (ol7_kvm_utils)

            qemu-common(x86-64) = 12:2.9.0-18.el7

          Verfügbar: 12:qemu-common-2.9.0-19.el7.x86_64 (ol7_kvm_utils)

            qemu-common(x86-64) = 12:2.9.0-19.el7

          Verfügbar: 12:qemu-common-2.9.0-20.el7.x86_64 (ol7_kvm_utils)

            qemu-common(x86-64) = 12:2.9.0-20.el7

          Verfügbar: 12:qemu-common-2.9.0-21.el7.x86_64 (ol7_kvm_utils)

            qemu-common(x86-64) = 12:2.9.0-21.el7

          Verfügbar: 15:qemu-common-3.0.0-1.el7.x86_64 (ol7_kvm_utils)

            qemu-common(x86-64) = 15:3.0.0-1.el7

          Verfügbar: 15:qemu-common-3.0.0-3.el7.x86_64 (ol7_kvm_utils)

            qemu-common(x86-64) = 15:3.0.0-3.el7

          Verfügbar: 15:qemu-common-3.0.0-4.el7.x86_64 (ol7_kvm_utils)

            qemu-common(x86-64) = 15:3.0.0-4.el7

          Verfügbar: 15:qemu-common-3.1.0-3.el7.x86_64 (ol7_kvm_utils)

            qemu-common(x86-64) = 15:3.1.0-3.el7

          Verfügbar: 15:qemu-common-3.1.0-5.el7.x86_64 (ol7_kvm_utils)

            qemu-common(x86-64) = 15:3.1.0-5.el7


    To successful install you will need these packets, too:

     qemu-common         x86_64     15:4.2.1-3.el7        ol7_developer_kvm_utils     1.7 M

     qemu-kvm           x86_64     15:4.2.1-3.el7        ol7_developer_kvm_utils     9.4 k

     qemu-system-x86       x86_64     15:4.2.1-3.el7        ol7_developer_kvm_utils     9.8 k

     qemu-system-x86-core     x86_64     15:4.2.1-3.el7        ol7_developer_kvm_utils


    What do you think about the support situation? Can we install these packets safely? Because if not, the mmigration seems to be unusable...

  • Simon Coter-Oracle
    Simon Coter-Oracle Member Posts: 68 Employee
    edited Dec 3, 2020 1:47PM

    QEMU packages are leveraged by Production "kvm_utils" Yum channel that, by default, is enabled on Oracle Linux KVM hosts.

  • PaulSG
    PaulSG Member Posts: 7 Green Ribbon

    yes, that is true, but not not in the right version, as you can see in above examples.