Guest User

Untitled

a guest
Oct 21st, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. #===============================================================================
  2. #===============================================================================
  3. # create a VirtualBox VDI from a hdd
  4. # author Bernard Ladenthin (bernard@ladenthin.net)
  5. #===============================================================================
  6. #===============================================================================
  7. #23456789#123456789#123456789#123456789#123456789#123456789#123456789#123456789#
  8. #########1#########2#########3#########4#########5#########6#########7#########8
  9.  
  10. #create a binary image from sda
  11. dd if=/dev/sda of=/tmp/test.dd bs=1M
  12.  
  13. #convert the binary dump to Virtual Disk Image (VDI)
  14. VBoxManage convertfromraw test.dd test.vdi
  15.  
  16. #now you can create a new virtual machine with the VDI
  17.  
  18. ######################################################################
  19. # extras
  20. ######################################################################
  21.  
  22. #convert VDI back to binary image
  23. VBoxManage internalcommands converttoraw test.vdi test.dd
Add Comment
Please, Sign In to add comment