[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How to convert Ubuntu physical Machine to Microsoft vhd ?

Posted on 2013-06-11
8
Medium Priority
?
5,992 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 2000 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month14 days, 15 hours left to enroll

649 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