Advertisement
jessemoore

ConvertFromOVA2Proxmox

May 3rd, 2022 (edited)
1,117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.13 KB | None | 0 0
  1. # How toconvert OVA to VMX then to QCOW2 for PROXMOX! YAAAA!
  2. Wget https://wwhfjdki.s3.amazonaws.com/DTEv2.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAUDZKW2EZIU7UKDXM/20220502/us-west-1/s3/aws4_request&X-Amz-Date=20220502T045526Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=2608b28a8aff1e982e469cb9b689b4aa787a337d6b6c0e61fb0540c496478d5a
  3.  
  4.  
  5.  
  6. Mv DTEv2<TABCOMPLETE> DTEv2.zip
  7.  
  8. apt -y install p7zip-full
  9.  
  10. 7z e DTEv2.zip
  11.  
  12. 7z e DTEv2.ova
  13.  
  14.  
  15.  
  16. root@cyber:~/defendEnt# ls
  17.  
  18. DTE2  DTE_Reno-disk1.vmdk  DTE_Reno-file1.nvram  DTE_Reno.mf  DTE_Reno.ovf  DTEv2.ova  DTEv2.zip  wget-log
  19.  
  20. root@cyber:~/defendEnt# vmdkfile=$(find . -name *.vmdk)
  21.  
  22. root@cyber:~/defendEnt# qcow2file=$(echo $vmdkfile | sed 's/vmdk/qcow2/g')
  23.  
  24. root@cyber:~/defendEnt# qemu-img convert -f vmdk -O qcow2 $vmdkfile $qcow2file
  25.  
  26.  
  27.  
  28. qm create 333 --memory 8192 --balloon 4096 --cores 2 --name DefEnt --description "Defend Enterprise from prebuilt image" --net0 model=virtio,bridge=vmbr0 --ostype l26 --autostart 1 --startup order=10,up=30,down=30
  29.  
  30. # Under Options in the VM for ProxMox Change the OS Name before turning it on
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement