Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

odoyle81

macrumors newbie
Original poster
Mar 26, 2008
21
0
Is it possible to take a virtualbox vdi that is already setup and copy it to a fresh boot camp partition?
 
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!)
 
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!)

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
 
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??
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.