copy vdi (virtualbox) to boot camp partition?

Discussion in 'Windows, Linux & Others on the Mac' started by odoyle81, Dec 3, 2010.

  1. odoyle81 macrumors newbie

    Joined:
    Mar 26, 2008
    #1
    Is it possible to take a virtualbox vdi that is already setup and copy it to a fresh boot camp partition?
     
  2. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #2
    V2P (Virtual to Physical) is possible, but always trickier than the other route.

    Here's one guide that might help. NOTE: It is for advanced users familiar with the command line and if used improperly can result in data loss or damage your system. Proceed with caution.

    http://techokarma.blogspot.com/2008/10/v2p-virtual-to-physical-for-virtualbox.html

    B
     
  3. odoyle81 thread starter macrumors newbie

    Joined:
    Mar 26, 2008
    #3
    hmm..thanks for the idea. I tried this, but couldn't get it to boot..
    after dd the partition was no longer ext4 and no longer recognized.

    I ended up using clonezilla to create and restore an image. Took me most of a day to figure out that:
    A. you can't use USB drive to save the partition in clonezilla via vm, but you can create a network share of the USB to do it
    B. for some reason I needed to go into the expert settings and have clonezilla repair the filesystem (-fsck-src-part)
    C. you can't restore to a diff partition (eg sda1 -> sda4) without renaming the image file (completely stupid, I know!)
     
  4. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #4
    You could have mentioned it was Linux in your OP! That makes a world of difference since it is not as brain dead as Windows when moved to different hardware and doesn't have any silly activation issues. I assumed Windows since this is "Windows on Mac" after all.

    w.r.t. your points

    A, your only had to do that because your USB drive was attached to the host OS not the VM. If you were using an ext4 formatted USB drive and attached it to the VM you would have been fine.

    B fsck is always a good idea.

    C is a weird one. It has been a while since I played with clonezilla, but I'll try to remember that.

    B
     
  5. odoyle81 thread starter macrumors newbie

    Joined:
    Mar 26, 2008
    #5
    Seems like virtualbox / clonezilla should be able to mount a USB regardless of the formatting? It mounts my flash drive (FAT32) fine but I couldn't use that because it was only 16gb..maybe it is something specific to my system. I tried two external usb (one NTFS, one HFS+) and couldn't attach them to the vm.
    In any case, now I have mac/ubuntu dual boot now and I'm happy :)

    Sorry for posting in the windows forum - I don't think there is a "linux on the mac" forum is there??
     

Share This Page