The idea is simple, but how to achieve isn't. The reason is because VMWare Fusion is not official support booting form external drive. I mean, at least, you ain't able to find this option from its UI interface. The idea is doable through VirtualBox so I think it should be also possible with a much powerful virtualization solution. After I googled for a while, the answer is YES. And here is a mini how-to.
- Create a virtual machine in VMWare Fusion. You can only choose using virtual drive. It is okay because we will not this virtual drive anyways. (We use "Ubuntu 64-bit" as the name of the virtual machine)
- Plug your external drive to your MAC. Find out the disk number in "Disk Utility", say it's /dev/disk2.
- Create a "vmdk" to represent this disk: sudo ./vmware-rawdiskCreator create /dev/disk2 "fullDevice" ~/dev/ubuntu-usb ide
- Correct the permission of the newly created vmdk file (it is /dev/ubuntu-usb.vmdk in this example): chown
~/dev/ubuntu-usb.vmdk - edit vmx file of the virtual machine (it should be "Ubuntu 64-bit.vmx" in ~/Document/Virtual Machines.localized/Ubuntu 64-bit.vmwarevm in this example): vim Ubuntu\ 64-bit.vmx
- remove lines with scsi0.*
- add lines:
- ide0:0.present = "TRUE"
- ide0:0.fileName = "~/dev/ubuntu-usb.vmdk"
- Launch the virtual machine, it should work.
沒有留言:
張貼留言