Solved

How to convert Ubuntu physical Machine to Microsoft vhd ?

Posted on 2013-06-11
8
4,565 Views
Last Modified: 2013-07-04
Dear Experts,
I want to convert Ubuntu Physical machine to Microsoft Virtual machine. Please provide proper steps.
Regards.
0
Comment
Question by:ibu1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 12

Author Comment

by:ibu1
ID: 39239281
0
 
LVL 21

Accepted Solution

by:
Mazdajai earned 500 total points
ID: 39240912
Do you mean hyperv? It's a 4 step process:
1. boot to the live cd, mount a windows share. This will be the share storing the Ubuntu image.
mount –t cifs –o username=guest password=guest //server/share /tmp/smb

2. Use dd and clone the disk.
dd if=/dev/sda of=/tmp/smb/ub1.img

3. Login to a windows box with access to hyperv. Use vhdtool to convert the image.
vhdtool.exe /convert ub1.img
http://archive.msdn.microsoft.com/vhdtool

4. Import the vhd file into hyperv. Install integration tool.
0
 
LVL 12

Author Comment

by:ibu1
ID: 39243583
Hello Mazdajai,
I will try this today and also please send steps to make virtual machine into physical.
Thanks.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 12

Author Comment

by:ibu1
ID: 39253865
Hello Mazdajai,
I am still waiting for the way to convert physical to virtual.
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39253898
ibu1,

It is step 1. Have you tried it?
0
 
LVL 12

Author Comment

by:ibu1
ID: 39266689
Yes,I tried step 1 and completed the first part to take the image but did not convert it to vhd file.
0
 
LVL 12

Author Comment

by:ibu1
ID: 39286611
Hello,
I tried to convert the image from my external hard to windows xp machine and below is the output.But it did not create any vhd file.Is this tool is only compatible with the machine where hyper-v is installed or can it be run from windows xp machine as well? The image is 74.5 GB and the below command just finishes in a second.
O:\ubuntu>VhdTool.exe /convert ub1.img
        Status: Converting "ub1.img" to a fixed format VHD.
        Status: Attempting to open file "ub1.img"
        Status: File opened, current size is 80026362880
        Status: VHD footer generated
        Status: VHD footer written to file.
        Status: Complete
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39301195
Do you have enough space on the O-Drive?
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question