Stuff related to qemu.
- Using
qemu-img convertis a good choice
# -f ... define input format
# -O ... define output format
#
# Common formats: raw, vdi, vhd, vmdk, qcow2, qed
qemu-img convert -f raw -O qcow2 input_image.img output_image.qcow2Stuff related to vmware.
- If exporting a VM as
ovfleaves you with no manfifest file, re-create it
openssl sha256 exported_vm.vmdk exported_vm.nvram exported_vm.ovf > exported_vm.mf- If you need to export a VM from an ESX host directly (maybe you have no vCenter or no needed lics)
# Best is to load them from VMWare directly ---> https://customerconnect.vmware.com/downloads/#all_products
chmod +x VMware-ovftool-4.4.0-15722219-lin.x86_64.bundle
./VMware-ovftool-4.4.0-15722219-lin.x86_64.bundle --extract vmware-ovftool
scp -r vmware-ovftool root@A.B.C.D:/vmfs/volumes/someDatastore/
# Connect to host before
sed -i 's/bash/sh/' /vmfs/volumes/someDatastore/vmware-ovftool/ovftool
chmod +x /vmfs/volumes/someDatastore/vmware-ovftool/ovftool
./ovftool --noSSLVerify vi://A.B.C.D/dir_of_vm_to_export /vmfs/volumes/someDatastore/exported_vm.ova- Want to simulate stuff or just need a virtual
TPM, this might help - Make sure to upgrad to highest possible hardware compatibility if possible
- After doing the following the system should be encrypted and having
vTPMenabled
# Edit vmx file / add to it
managedvm.autoAddVTPM = "software"
vtpm.present = "TRUE"
firmware="efi"- Using a vmxnet3 interface in vm leads to a 10Gbps link displayed inside th vm
- To change this link speed, power off the vm and edit Advanced Parametes of the vm
- Add the following parameter (value of link speed between 10000 and 65000) - e.g. interface 0 and speed 65Gbps
ethernet0.linkspeed 65000- Alternatively the parameter can be added to the vmx file (X - interface index, Y - speed)
ethernetX.linkspeed = "Y"- This does only change the link speed displayed inside the vm, even a 1Gbps displayed ethernet link inside a vm can transfer as much as the physical nic of the esxi host can handle
- This seems to be a recurring problem ... at the moment there are at least two possbile solutions
- One is to enable
Virtualize IOMMUin the CPU settings of the VM - The other one is adding the following to the VMs
vmxfile
keyboard.vusb.enable = "TRUE"
Stuff related to proxmox.
- If you need to import an ova or vmdk and be able to take snapshots
# Create vm in proxmox without harddisk before and take a note of the vmid (= target_vm_id)
# Transfer vm to porxmox and extract
tar xvf vm_to_import.ova
# Import and convert
qm importdisk target_vm_id vm_to_import_disk.vmdk local -format qcow2