This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| proxmox-various-commands [2020/11/28 14:36] – [Boot Fedora/CentOS/RedHat VirtualBox/VMware VM using virtio-scsi:] 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 68: | Line 78: | ||
| update-grub | update-grub | ||
| reboot | reboot | ||
| + | </ | ||
| + | |||
| + | ===== Proxmox installed from Hetzner image causes postfix to bounce mail ===== | ||
| + | |||
| + | This problem doesn' | ||
| + | |||
| + | < | ||
| + | dpkg-reconfigure postfix | ||
| </ | </ | ||
| Line 109: | Line 127: | ||
| </ | </ | ||
| - | ===== Convert Virtualbox vdi to vmdk ===== | + | ===== Can't SSH into Fedora 33 using pubkey authentication |
| < | < | ||
| - | vboxmanage clonehd palau.vdi palau.vmdk | + | update-crypto-policies --set LEGACY |
| </ | </ | ||
| - | ===== Boot Fedora/ | + | ===== Convert Virtualbox vdi using vboxmanage |
| + | This is how to convert a vdi image to vmdk using vboxmanage provided by VirtualBox: | ||
| + | |||
| + | < | ||
| + | vboxmanage clonehd whatever.vdi whatever.vmdk --format VMDK | ||
| + | </ | ||
| + | |||
| + | ===== 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 | ||
| + | </ | ||
| + | |||
| + | ===== Convert Fedora/ | ||
| + | |||
| + | While still running on VMware/ | ||
| < | < | ||
| dnf install dracut-config-generic | dnf install dracut-config-generic | ||
| Line 124: | Line 166: | ||
| </ | </ | ||
| - | After booting with virtio-scsi, | + | After booting |
| < | < | ||
| Line 139: | Line 181: | ||
| </ | </ | ||
| - | Remember to remove VirtualBox/ | + | Remember to remove VirtualBox/ |
| < | < | ||
| fstrim -a -v | fstrim -a -v | ||
| </ | </ | ||
| - | ===== Convert/ | ||
| - | < | + | ===== Replacing a failed drive on a Proxmox |
| - | qemu-img convert -f vmdk whatever.vmdk -O qcow2 whatever.qcow2 | + | |
| - | qm importdisk 100 whatever.qcow2 local-zfs | + | |
| - | </ | + | |
| - | + | ||
| - | ===== Replacing a failed drive on a Proxmox system booting from ZFS ===== | + | |
| - | On EFI systems booting from two ZFS drives (RAID1), take backup from partition layouts of both drives while they are working: | + | Since the [[https:// |
| < | < | ||
| Line 266: | Line 302: | ||
| </ | </ | ||
| - | ===== Fedora | + | ===== Fedora |
| < | < | ||
| Line 272: | Line 308: | ||
| 14c14 | 14c14 | ||
| - | < die " | + | < die " |
| --- | --- | ||
| - | > die " | + | > die " |
| </ | </ | ||
| Line 318: | 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 | ||
| </ | </ | ||