Chotaire Wiki

Stuff you didn't know

User Tools

Site Tools


proxmox-various-commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
proxmox-various-commands [2020/12/26 06:51] chotaireproxmox-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't work. Nested Virtualization is rather something for your standalone hypervisors. Careful, don't live-migrate VMs with nested virtualization enabled, I think that wouldn't work. Nested Virtualization is rather something for your standalone hypervisors.
 +
 +==== Intel Host CPU ====
  
 <code> <code>
Line 39: Line 41:
 </code> </code>
  
 +==== AMD Host CPU ====
 +
 +<code>
 +echo "options kvm-amd nested=1" > /etc/modprobe.d/kvm-amd.conf
 +modprobe -r kvm_amd
 +modprobe kvm_amd
 +cat /sys/module/kvm_amd/parameters/nested
 +</code>
 ===== Install and enable KSM (Kernel Samepage Mapping) ===== ===== Install and enable KSM (Kernel Samepage Mapping) =====
  
Line 123: Line 133:
 </code> </code>
  
-===== 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:
  
 <code> <code>
-vboxmanage clonehd palau.vdi palau.vmdk --format VMDK+vboxmanage clonehd whatever.vdi whatever.vmdk --format VMDK 
 +</code> 
 + 
 +===== Convert Virtualbox vdi using qemu-img ===== 
 + 
 +This example shows how to convert vdi to qcow using qemu-img provided by Proxmox: 
 + 
 +<code> 
 +qemu-img convert -f vdi -O qcow2 whatever.vdi whatever.qcow2  
 +</code> 
 + 
 +===== Convert vmdk and import to thinpool ===== 
 + 
 +<code> 
 +qemu-img convert -f vmdk whatever.vmdk -O qcow2 whatever.qcow2 
 +qm importdisk 100 whatever.qcow2 local-zfs
 </code> </code>
  
Line 158: Line 185:
 <code> <code>
 fstrim -a -v fstrim -a -v
-</code> 
-===== Convert vmdk and import to thinpool: ===== 
- 
-<code> 
-qemu-img convert -f vmdk whatever.vmdk -O qcow2 whatever.qcow2 
-qm importdisk 100 whatever.qcow2 local-zfs 
 </code> </code>
  
Line 333: Line 354:
 echo "sleep 1" >> /etc/default/qemu-guest-agent echo "sleep 1" >> /etc/default/qemu-guest-agent
 reboot reboot
 +</code>
 +
 +===== 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.
 +
 +<code>
 +pvecm expected 1
 </code> </code>
  
proxmox-various-commands.1608961869.txt.gz · Last modified: by chotaire