Salut, acest post iti va explica cum poti converti imaginea de hdd a unei masini virtuale facute cu Virtualbox pentru ca fisierul sa fie convertit pentru KVM sau Proxmox tip fisier .img
1 . deschideti command prompt sau cmd: din windowsul dvs de la Start > Run... scrieti acolo cmd.
apoi mergeti in :
cd C:\Program Files\Oracle\VirtualBox\
acolo scrieti comanda:
VBoxManage clonehd --format raw c:\bsd\FreeBSD.vdi c:\bsd\102.img
c:\bsd acolo se afla locatia folderului dvs \FreeBSD.vdi se numeste fisierul dvs , apoi urmat de locatia cum se va numi si unde se va salva noul fisier.
in cazul in care primiti eroare:
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
folositi comanda:
cd C:\Program Files\Oracle\VirtualBox>
VBoxManage.exe internalcommands sethduuid c:\bsd\FreeBSD.vdi
Apoi veti primi un raspuns gen:
UUID changed to: eb2bf90d-1024-4c97-a5fa-ee5dbd6b0a77
Dupa ce am primit acest raspuns folosim comanda:
VBoxManage clonehd --format raw c:\bsd\FreeBSD.vdi E:\102.img
Veti primi un raspuns gen:
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 pentru KVM sau Proxmox.
Ən məşhur məqalələr
[Linux] Calcularea si stocarea recordului pentru UPTIME
Calcularea recordului de uptime. "Scriptul urmator va trebui plasat in crontab astfel incat sa...
[Ubuntu 16.04] Cum se instalează in Linux, Nginx, MySQL, PHP (stack LEMP)
The LEMP stack configured in these documents is established in contrast to the popular LAMP Stack...
[Ubuntu 16.04] Let's Encrypt for Nginx including IPv6, HTTP/2
Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s...
[Cent0S 7.1] Cum instalez Asterisk?
Asterisk is an open source framework for building communications applications. Asterisk turns...
[Ubuntu] Cum se instalează Ruby cu Rails
In this article we will provide basic steps on how to install Ruby on Rails onto Ubuntu based...