VirtualBox vboxmanage modifymedium VS modifyvdi VS modifyhd

참조URL : https://docs.oracle.com/cd/E97728_01/E97727/html/vboxmanage-modifyvdi.html

VirtualBox 를 사용하다보면 GuestOS 의 드라이브 파일크기가 실제 사용하는 용량에 비해 커지게 마련이다.

이럴경우
sdelete (윈도우OS의 경우)
vboxmanage
명령을 사용하게 되는데

인터넷에서 쉽게 vboxmanage 명령어의 옵션을 사용하는 사례를 찾아볼 수 있다…
하지만!


vboxmanage modifymedium --compact guestosname.vdi
vboxmanage modifyhd --compact guestosname.vdi
vboxmanage modifyvdi --compact guestosname.vdi

대략 이렇게 3가지 경우를 볼 수 있을듯 (대체 뭘 써야 하는거냐…)

참조URL에 설명된것을 찾아보니

For compatibility with earlier versions of Oracle VM VirtualBox, the modifyvdi and modifyhd commands are also supported and mapped internally to the modifymedium command.

VirtualBox 가 버전업되면서 옵션이름이 변경된것으로 보여진다.
정확한 히스토리야 내가 확인하기도 귀챦으니 ㅎ

 

결론

vboxmanage modifymedium –compact guestosname.vdi

사용하면 된다!

About KENNETH 19688 Articles
지락문화예술공작단

Be the first to comment

Leave a Reply

Your email address will not be published.


*


이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.