Proxmox: Migrasi VDI VirtualBox ke Proxmox: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
Onnowpurbo (talk | contribs)
No edit summary
Line 2: Line 2:




==Find your VM's .vdi file - First we need to locate the VirtualBox hard drive (.vdi) file.==
==Cari .vdi file==


* Open the VirtualBox GUI
* Open the VirtualBox GUI
Line 9: Line 9:
* Mouse over the Hard Disk: dropdown list box and note the path to the .vdi file
* Mouse over the Hard Disk: dropdown list box and note the path to the .vdi file


==Convert the .vdi to .img - Next we need to convert the hard drive to a RAW format for ProxMox==
==Convert .vdi ke .img==


* On the VirtualBox host open a command prompt
* On the VirtualBox host open a command prompt
Line 17: Line 17:
* This may take a while so be patient. Go get some coffee.
* This may take a while so be patient. Go get some coffee.


==Create a new ProxMox VM - Next we need to create a Proxmox VM to hold our drive image.==
==Buat ProxMox VM kosong==


* Open up the Proxmox web interface
* Open up the Proxmox web interface
Line 24: Line 24:
* Note the VMID: number of your new VM (i.e. "106")
* Note the VMID: number of your new VM (i.e. "106")


==Upload the .img file - now we need to upload the new /img file to the Proxmox server.==
==Upload .img file==


* Start your file transfer softare (wither WinSCP or Filezilla are two good ones).
* Start your file transfer softare (wither WinSCP or Filezilla are two good ones).
* Transfer the .img file to the /var/lib/vz/images/106 folder (replace 106 with the number you noted from the VMID: field
* Transfer the .img file to the /var/lib/vz/images/106 folder (replace 106 with the number you noted from the VMID: field


==Rename the .img file - now all we need to do is rename the .img file==
==Rename the .img ke .raw==
* rename the existing .raw file (for instance vm-106-disk-1.raw) to .old
* rename the existing .raw file (for instance vm-106-disk-1.raw) to .old
* rename the .img file to the name of the existing .raw file (for instance vm-106-disk-1.raw)
* rename the .img file to the name of the existing .raw file (for instance vm-106-disk-1.raw)

Revision as of 23:35, 18 May 2017

sumber: https://forum.proxmox.com/threads/migrating-virtualbox-vdi-to-proxmox-ve.9672/


Cari .vdi file

  • Open the VirtualBox GUI
  • Click on the VM we want to migrate and click the Settings button
  • Click on Storage and click the .vdi file listed under IDE Controller
  • Mouse over the Hard Disk: dropdown list box and note the path to the .vdi file

Convert .vdi ke .img

  • On the VirtualBox host open a command prompt
VBoxManage clonehd --format RAW [virtual_harddisk].vdi [virtual_harddisk].img
  • This may take a while so be patient. Go get some coffee.

Buat ProxMox VM kosong

  • Open up the Proxmox web interface
  • Click on Virtual Machines then click the Create tab
  • Leave all of the defaults. My Disk space (GB): was set to 32GB and my original .vdi was 20GB. This seems to have worked OK. I'll edit if there are problems down the road.
  • Note the VMID: number of your new VM (i.e. "106")

Upload .img file

  • Start your file transfer softare (wither WinSCP or Filezilla are two good ones).
  • Transfer the .img file to the /var/lib/vz/images/106 folder (replace 106 with the number you noted from the VMID: field

Rename the .img ke .raw

  • rename the existing .raw file (for instance vm-106-disk-1.raw) to .old
  • rename the .img file to the name of the existing .raw file (for instance vm-106-disk-1.raw)

Boot it up!

Referensi