Virtualisation notes
Nvidia driversEdit
lspci -nn | egrep -i "3d|display|vga"
apt-get install nvidia-detect
apt-get install nvidia-driver
How to administer KVM / QEMUEdit
https://www.cyberciti.biz/faq/how-to-create-create-snapshot-in-linux-kvm-vmdomain/
https://www.linuxtechi.com/create-revert-delete-kvm-virtual-machine-snapshot-virsh-command/ https://unix.stackexchange.com/questions/570414/understanding-how-libvirt-snapshots-are-stored
Convert vdi to qcow2[1]Edit
qemu-img convert -f vdi -O qcow2 Windows10.vdi Windows10.qcow2
Convert qcow2 to vmdkEdit
qemu-img convert -f qcow2 -O vmdk originalfile.qcow2 convertedfile.vmdk
Delete snapshots[1]Edit
qemu-img snapshot -d snapshot1 debian.qcow2
Combine multiple vmdks to a single vmdkEdit
C:\Program Files (x86)\VMware\VMware Workstation
C:\Program Files (x86)\VMware\VMware Workstation\vmware-vdiskmanager.exe -r vmdk-primary.vmdk -t 0 combinedImage.vmdk
The vmware-vdiskmanager.exe
lives with VMWare Player
(or your chosen VMWare product).
- Once done, you will still have the original files.
- You will have to rename the
combinedImage.vmdk
file to the original file namevmdk-primary.vmdk
. - Once you are happy with the new image, you can delete the old files, just make sure it works first.
- Note that the file you specify is the one with the original filename without the suffix -0001 etc.
VMWareEdit
vmrun -T ws start "C:\VMs\Linux.vmx"
vmrun -T ws stop "C:\VMs\Linux.vmx"
vmrun -T ws suspend "C:\VMs\Linux.vmx"