This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| proxmox-various-commands [2020/12/26 06:51] – chotaire | proxmox-various-commands [2024/10/29 17:16] (current) – [Enable Nested Virtualization] chotaire | ||
|---|---|---|---|
| Line 31: | Line 31: | ||
| Careful, don't live-migrate VMs with nested virtualization enabled, I think that wouldn' | Careful, don't live-migrate VMs with nested virtualization enabled, I think that wouldn' | ||
| + | |||
| + | ==== Intel Host CPU ==== | ||
| < | < | ||
| Line 39: | Line 41: | ||
| </ | </ | ||
| + | ==== AMD Host CPU ==== | ||
| + | |||
| + | < | ||
| + | echo " | ||
| + | modprobe -r kvm_amd | ||
| + | modprobe kvm_amd | ||
| + | cat / | ||
| + | </ | ||
| ===== Install and enable KSM (Kernel Samepage Mapping) ===== | ===== Install and enable KSM (Kernel Samepage Mapping) ===== | ||
| Line 123: | Line 133: | ||
| </ | </ | ||
| - | ===== Convert Virtualbox vdi to vmdk ===== | + | ===== Convert Virtualbox vdi using vboxmanage |
| + | |||
| + | This is how to convert a vdi image to vmdk using vboxmanage provided by VirtualBox: | ||
| < | < | ||
| - | vboxmanage clonehd | + | vboxmanage clonehd |
| + | </ | ||
| + | |||
| + | ===== Convert Virtualbox vdi using qemu-img ===== | ||
| + | |||
| + | This example shows how to convert vdi to qcow using qemu-img provided by Proxmox: | ||
| + | |||
| + | < | ||
| + | qemu-img convert -f vdi -O qcow2 whatever.vdi whatever.qcow2 | ||
| + | </ | ||
| + | |||
| + | ===== Convert vmdk and import to thinpool ===== | ||
| + | |||
| + | < | ||
| + | qemu-img convert -f vmdk whatever.vmdk -O qcow2 whatever.qcow2 | ||
| + | qm importdisk 100 whatever.qcow2 local-zfs | ||
| </ | </ | ||
| Line 158: | Line 185: | ||
| < | < | ||
| fstrim -a -v | fstrim -a -v | ||
| - | </ | ||
| - | ===== Convert vmdk and import to thinpool: ===== | ||
| - | |||
| - | < | ||
| - | qemu-img convert -f vmdk whatever.vmdk -O qcow2 whatever.qcow2 | ||
| - | qm importdisk 100 whatever.qcow2 local-zfs | ||
| </ | </ | ||
| Line 333: | Line 354: | ||
| echo "sleep 1" >> / | echo "sleep 1" >> / | ||
| reboot | reboot | ||
| + | </ | ||
| + | |||
| + | ===== Can't login on Web UI when cluster is degraded ===== | ||
| + | |||
| + | Run pvecm expected with the number of still online nodes, e.g. 1. Set back to previous number when done. | ||
| + | |||
| + | < | ||
| + | pvecm expected 1 | ||
| </ | </ | ||