Skip to main content

Posts

Showing posts from January, 2025

How to convert VMware vmdk VM to KVM qcow2

 Below steps will allow to convert VMware VMs to KVM VMs: Install qemu-img:           apt-get install qemu-img To Convert VMware vmdk to qcow2                qemu-img convert -f vmdk <Source VM .vmdk file path>  -O qcow2 <Target test.qcow2> To convert qcow2 to .vmdk           qemu-img convert -O vmdk < source test.qcow2> <Target test.vmdk>

How to convert an .vmx image to .ovf image using ovf tool

How to convert a VM to OVF using .vmx file? Solution: Use below tool,       Tool used: OVF TOOL Download from : Open Virtualization Format (OVF) Tool Install on a Windows machine and run the below command. it will convert to ovf format for deploying VM Command to run: ovftool <path to .vmx> <.ovf file name>      Example:   ovftool /vms/my_vm.vmx /ovfs/my_vapp.ovf

How to unlink a NIC from an esxi vSwitch

  List the vSwitches from ESXI using CLI:          esxcli network vswitch standard list  output example: vSwitch0    Name: vSwitch0    Class: cswitch    Num Ports: 1234    Used Ports: 7    Configured Ports: 128    MTU: 1500    CDP Status: listen    Beacon Enabled: false    Beacon Interval: 1    Beacon Threshold: 3    Beacon Required By:    Uplinks: vmnic2, vmnic0    Portgroups: VM Network, Now remove the wrong NIC from the switch0: esxcli network vswitch standard uplink remove --uplink-name=vmnic2 --vswitch-name=vSwitch0 To add a new network NIC to vSwitch: esxcli network vswitch standard uplink add --uplink-name=vmnic3 --vswitch-name=vSwitch2