Skip to contentSkip to conversation

Using Qemu to install Linux in a Windows XP disk image

Qemu-devel Brett Bonfield 3 participants 3 messages Nov 10, 2004 – Nov 11, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

Apologies for making an end-user request rather than posing a developer question or solution, but I'm not sure where else to ask the following. I'm trying to use Qemu (the latest Windows installer) to install and run the latest SimplyMEPIS .iso from a disk image so I can save changes, install software, etc.

The SimplyMEPIS community has provided excellent guidance

http://www.mepis.org/node/view/4066

but I haven't been able to complete what I think are the last few steps, in part because I have a very limited understanding of dd (note: I've been using dd rather than MakeQemuImage because I'd like an image larger than 2GB and because dd offers more documentation) and how it would interact with Qemu under Windows XP.

As near as I can tell, there are three separate branches of dd available to Windows users (all three are open source: there may be others, but who cares, right?):

1. http://unxutils.sourceforge.net/

2. http://uranus.it.swin.edu.au/~jn/linux/rawwrite/dd.htm

3. http://users.erols.com/gmgarner/forensics/
( which requires that msvcr70.dll and getopt.dll from the same distro be in the folder with dd.exe )

I've been creating my disk image with the following command:

dd of=hd.img bs=1024 seek=3000000 count=0

The whole point of this exercise is to install SimplyMEPIS under Qemu without having to partition my hard drive and without damaging my existing install of WinXP. Is this what dd allows? Does Qemu support this goal?

Brett

#1 lore raw

Well, afaict, your dd command is wrong. It should be something like:

dd if=/dev/zero of=hd.img bs=1M count=3000

(for a 3GB image)

I know that Cygwin's dd is capable of reading the emulated /dev/zero device, not sure about John Newbigin's version.

Anyhow, there are blank images of various sizes available on the internet, whch take very little space (I've seen some as small as 5kb), which you could download and use. Google for them. :)

Cheers,
A.

Signature · 2 lines
"A year spent in artificial intelligence is enough to make one believe in God"
Alan J. Perlis
Quoted 41 lines · Brett Bonfield

Hi,

Apologies for making an end-user request rather than posing a developer question or solution, but I'm not sure where else to ask the following. I'm trying to use Qemu (the latest Windows installer) to install and run the latest SimplyMEPIS .iso from a disk image so I can save changes, install software, etc.

The SimplyMEPIS community has provided excellent guidance

http://www.mepis.org/node/view/4066

but I haven't been able to complete what I think are the last few steps, in part because I have a very limited understanding of dd (note: I've been using dd rather than MakeQemuImage because I'd like an image larger than 2GB and because dd offers more documentation) and how it would interact with Qemu under Windows XP.

As near as I can tell, there are three separate branches of dd available to Windows users (all three are open source: there may be others, but who cares, right?):

1. http://unxutils.sourceforge.net/

2. http://uranus.it.swin.edu.au/~jn/linux/rawwrite/dd.htm

3. http://users.erols.com/gmgarner/forensics/
( which requires that msvcr70.dll and getopt.dll from the same distro be in the folder with dd.exe )

I've been creating my disk image with the following command:

dd of=hd.img bs=1024 seek=3000000 count=0

The whole point of this exercise is to install SimplyMEPIS under Qemu without having to partition my hard drive and without damaging my existing install of WinXP. Is this what dd allows? Does Qemu support this goal?

Brett

#2 lore raw
In reply to Brett Bonfield

Hi Brett,

Quoted 9 lines

I've been creating my disk image with the following command:

dd of=hd.img bs=1024 seek=3000000 count=0

The whole point of this exercise is to install SimplyMEPIS under Qemu without having to partition my hard drive and without damaging my existing install of WinXP. Is this what dd allows? Does Qemu support this goal?

have a look at http://www.bablokb.de/bochs-tools. It contains a tool bxtcreate, which allows images greater than 2 gig. I have used it to create an image of 10 gig (bzips down to just 1 KB) and installed MDK 10.1, Kanotix and SuSe in it using qemu.

Hth
hjb