mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
17 lines
383 B
Bash
17 lines
383 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
echo "o NOTE .vmdk must be removed from VM 1st!!"
|
||
|
|
||
|
# REF: https://nfolamp.wordpress.com/2010/06/10/converting-vmdk-files-to-vdi-using-vboxmanage/
|
||
|
|
||
|
#VBoxManage clonehd --format VDI myserver.vmdk \
|
||
|
# VirtualBox/HardDisks/myserver.vdi
|
||
|
|
||
|
outdir=/Volumes/tmpdel/vmdisks
|
||
|
mkdir -pv $outdir
|
||
|
|
||
|
time VBoxManage clonehd --format VDI "$1" $outdir/"$1.to.vdi"
|
||
|
ls -alh $outdir/*
|
||
|
date
|
||
|
|