Home » Questions » Computers [ Ask a new question ]

Can I boot Linux from a VHD?

Can I boot Linux from a VHD?

Is there some way to boot a Linux system from a VHD in Windows 7?

Asked by: Guest | Views: 281
Total answers/comments: 4
Guest [Entry]

You cannot. In Windows VHD support is integrated in boot process and Linux does not offer such support. Additionally, I am not aware that Linux supports booting from any other virtual disk type.
Guest [Entry]

"First Create a bootable Win 7 VHD using this known procedure from Keith Combs.

http://blogs.technet.com/b/keithcombs/archive/2009/05/22/dual-boot-from-vhd-using-windows-7-and-windows-server-2008-r2.aspx

Boot the Win 7 operating system on the VHD.

Go get the free Wubi installer.

http://www.ubuntu.com/download/ubuntu/windows-installer

From Windows 7, install the Ubuntu Wubi installer, but make sure you install files on the Physical HD's primary partition (not VHD's C: windows partition)

Reboot when asked to do so, but don't select Ubuntu yet from the boot menu (it won't work), you need to launch Windows 7 one last time.

Now the important bit:
In Windows 7 make sure you change the Folder view settings to ""Show all files"" and make sure OS files are un-hidden. Once you have done this browse the C: drive. You will see two important files: wubildr and wubildr.mbr

Copy these two files to the root of the Physical Partition (ie, the partition where the Windows7.vhd file is located and the Ubuntu folder that was created when you installed wubi above). Just to be sure you are copying the files to the right partition, make sure you can see that there is a pagefile.sys bootmgr and bootsect.bak file.

Thats it! reboot and select Ubuntu from the Windows bootloader."
Guest [Entry]

"Do you mean running an existing Linux System in a virtual machine?

If yes this might be the answer: http://www.windley.com/archives/2007/08/p2v_how_to_make_a_physical_linux_box_into_a_virtual_machine.shtml"
Guest [Entry]

"You can try converting the VHD into VMDK (for VMWare products), and then try booting from there.

You just need to open the VHD with a VMWare product (even the free VMWare player will work), and VMWare will convert it to VMDK for you.

You might need to tweak the Linux system to operate fully in the new VMWare environment though."