Cum sa convertesti fisier .VDI – VirtualBox pentru KVM/Proxmox tip fisier .img

0

Astazi iti voi explica cum poti converti imaginea unei masini virtuale facute in VirtualBox  in .img pentru a o folosi in KVM sau Proxmox.

1 . Deschide command prompt sau cmd : windows Start>Run si scrii cmd.

Apoi mergi in :

cd C:\Program Files\Oracle\VirtualBox\ , unde introduci urmatoarea comanda :

VBoxManage clonehd –format raw c:\bsd\FreeBSD.vdi c:\bsd\102.img  

In c:\bsd o sa gasim imaginea nou creeata , 102.img .
In cazul in care primesti eroarea :

VBoxManage.exe: error: Cannot register the hard disk ‘c:\bsd\FreeBSD.vdi’ {ba4b0
377-907f-470f-80ae-13e5f27a8137} because a hard disk ‘C:\Documents and Settings\
TEMP\Desktop\FreeBSD 7.1\FreeBSD 7.1.vdi’ with UUID {ba4b0377-907f-470f-80ae-13e
5f27a8137} already exists
VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component Virtua
lBox, interface IVirtualBox, callee IUnknown
Context: „OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadW
rite, fForceNewUuidOnOpen, pMedium.asOutParam())” at line 210 of file VBoxManage
Disk.cpp

Foloseste comanda :
cd C:\Program Files\Oracle\VirtualBox>
VBoxManage.exe internalcommands sethduuid c:\bsd\FreeBSD.vdi

Apoi vei primi un raspuns de forma urmatoare:

UUID changed to: eb2bf90d-1024-4c97-a5fa-ee5dbd6b0a77

Dupa ce ai primit acest raspuns folosesti comanda:

VBoxManage clonehd –format raw c:\bsd\FreeBSD.vdi E:\102.img

O sa iti afiseze urmatoarele linii :

0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%
Clone hard disk created in format ‘raw’. UUID: 6fb694e8-17d2-4577-bc5a-0830ce360
c1c, ceea ce inseamna ca virtualbox converteste fisierul din .vdi in .img pentru a putea fi folosit in KVM sau Proxmox.

Leave A Reply