LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 02-08-2008, 12:30 PM   #1
ronaldv
Member
 
Registered: Sep 2003
Location: Amsterdam
Distribution: Mandrake 10.1/2006
Posts: 54

Rep: Reputation: 16
How to run a partition image in a virtual tool?


Hi,

Is it possible to run a partition image (created with partimage or ghost) inside a virtual tool like qemu, vmware or the like?

The reason I ask is that I have remove the installed vista and installed ubuntu on it. Before doing so I have crated an partition image of the vista install. When I run this image in qemu I get a message like 'Not a bootable disk'.

Cheers, Ronald

Last edited by ronaldv; 02-08-2008 at 12:32 PM.
 
Old 02-08-2008, 01:33 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 110Reputation: 110
I think ghost adds extra headers. I'm not sure about partimage. You might be able to use the QEMU disk conversion utility to help with that.
 
Old 02-08-2008, 02:04 PM   #3
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,262

Rep: Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561
Ghost and partimage will only copy parts of the filesystem that contain data, so it isn't a binary clone of the filesystem that you can mount using a loop device such as you would get using dd (without compression).
 
Old 02-09-2008, 05:29 AM   #4
ronaldv
Member
 
Registered: Sep 2003
Location: Amsterdam
Distribution: Mandrake 10.1/2006
Posts: 54

Original Poster
Rep: Reputation: 16
Thus, if I use dd to copy the partition it would work?
 
Old 02-09-2008, 08:04 AM   #5
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,262

Rep: Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561
You may be able to use the ntfsclone program as well (for backups, not loopback devices).
One danger is if the filesystem on the image becomes corrupt. I don't know how you would repair an ntfs image file. Be sure to create and save an image backup before you use vmware.

Last edited by jschiwal; 03-10-2008 at 07:27 AM. Reason: clarified out of context statement.
 
Old 02-09-2008, 10:29 PM   #6
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,545

Rep: Reputation: 49
Quote:
Originally Posted by ronaldv View Post
Hi,

Is it possible to run a partition image (created with partimage or ghost) inside a virtual tool like qemu, vmware or the like?

The reason I ask is that I have remove the installed vista and installed ubuntu on it. Before doing so I have crated an partition image of the vista install. When I run this image in qemu I get a message like 'Not a bootable disk'.

Cheers, Ronald
You can have bootable iso cdrom containing ghost exe, and you can release your image
(no ?)
 
Old 02-10-2008, 11:13 PM   #7
ComputerGreek
Member
 
Registered: Sep 2007
Posts: 152

Rep: Reputation: 30
Quote:
Originally Posted by ronaldv View Post
The reason I ask is that I have remove the installed vista and installed ubuntu on it. Before doing so I have crated an partition image of the vista install. When I run this image in qemu I get a message like 'Not a bootable disk'.
Vista does not produce valid boot sector information, so partition and format the image, vista.img, with XP or Linux. See:

"QEMU (The Kernel Virtual Machine) and Windows Vista." at:

http://linuxhelp.150m.com/win/qemu-vista.htm

Since you already have an image, you will have to make adjustments to the boot sector. So you need to know what you are doing.
 
Old 02-26-2008, 04:57 PM   #8
ComputerGreek
Member
 
Registered: Sep 2007
Posts: 152

Rep: Reputation: 30
Quote:
Originally Posted by ComputerGreek View Post
Vista does not produce valid boot sector information.
Anyone have more info on this?
 
Old 02-26-2008, 07:13 PM   #9
tyc00n
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Awesome i really like it
 
Old 02-27-2008, 04:28 AM   #10
ronaldv
Member
 
Registered: Sep 2003
Location: Amsterdam
Distribution: Mandrake 10.1/2006
Posts: 54

Original Poster
Rep: Reputation: 16
Hi all,

Just to let you know: I have taken another approach.

I've installed the converter tool from vmware (free, runs on windows only) . This converter can create a 'hot clone', e.g create an vmware-image from a running (!) os.

This image-clone can then be started with either vmware OR virtualbox.

But take care:
1. when using virtualbox to run the image you'll see that windows will fail to boot, due to ide-checls that it performs. See the document 'migrating windows' on the vb-website
2. When cloning an oem-licensed your validation will fail. You'll need to call m$ to set you license.

Cheers, Ronald
 
Old 02-28-2008, 04:25 PM   #11
ComputerGreek
Member
 
Registered: Sep 2007
Posts: 152

Rep: Reputation: 30
Quote:
Originally Posted by ronaldv View Post
I've installed the converter tool from vmware (free, runs on windows only)
vmware runs on linux. You mean that the converter tool only runs on windows?
 
Old 02-29-2008, 04:16 AM   #12
ronaldv
Member
 
Registered: Sep 2003
Location: Amsterdam
Distribution: Mandrake 10.1/2006
Posts: 54

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by ComputerGreek View Post
vmware runs on linux. You mean that the converter tool only runs on windows?
Yes. .
 
Old 03-05-2008, 03:37 PM   #13
ComputerGreek
Member
 
Registered: Sep 2007
Posts: 152

Rep: Reputation: 30
Quote:
Originally Posted by ronaldv View Post
Yes..
Can you compile it to run on Linux?
Is there source code?
 
Old 03-10-2008, 07:20 AM   #14
ComputerGreek
Member
 
Registered: Sep 2007
Posts: 152

Rep: Reputation: 30
It might be possible.
 
  


Reply

Tags
image, qemu, vmware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to know as to which tool/software is the best for Image Matching(.tiff format) deepumnit Linux - Software 1 01-10-2007 03:54 AM
tool to write JFFS2 image on CF newbieMhke Linux - Software 1 07-25-2006 09:03 AM
looking for a linux image & backup tool / offline / RAID zerobane Linux - Software 2 03-17-2006 02:48 PM
Mount an image as virtual disk KnottyBoy Linux - Software 1 10-19-2005 04:24 AM
virtual image file maseby Red Hat 2 11-10-2004 07:06 PM


All times are GMT -5. The time now is 07:16 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration