Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================================
- #===============================================================================
- # create a VirtualBox VDI from a hdd
- # author Bernard Ladenthin (bernard@ladenthin.net)
- #===============================================================================
- #===============================================================================
- #23456789#123456789#123456789#123456789#123456789#123456789#123456789#123456789#
- #########1#########2#########3#########4#########5#########6#########7#########8
- #create a binary image from sda
- dd if=/dev/sda of=/tmp/test.dd bs=1M
- #convert the binary dump to Virtual Disk Image (VDI)
- VBoxManage convertfromraw test.dd test.vdi
- #now you can create a new virtual machine with the VDI
- ######################################################################
- # extras
- ######################################################################
- #convert VDI back to binary image
- VBoxManage internalcommands converttoraw test.vdi test.dd
Add Comment
Please, Sign In to add comment