Re: qemu disk images

2007-03-05 Thread Lars D . Noodén
How do you start qemu AFTER the install is completed?  Something like 
this?

   qemu -k fi -hda debian.ext2.dmg -hdb debian.swap.dmg


I can't get that far:  It's not possible to complete the installation 
because the drives used in -hda -hdb cannot be partitioned or mounted by 
the installtion process.  I can mount them manually outside of qemu, 
butI'm not sure how to benefit from that in this task.


I can boot from any of the the install CD images (debian, kubuntu, 
xubuntu) I have tried.



qemu -k fi -cdrom debian-testing-i386-netinst.iso -boot d \
-hda debian.ext2.dmg-hdb debian.swap.dmg


The partitioning tool finds the two images, appears to let me make and 
save a partition table, and format the partition, but cannot seem to 
actually save any changes.


-Lars



Re: qemu disk images -- resolved

2007-03-05 Thread Lars D . Noodén
Ok.  I figured out how to resolve the problem, but through a work-around.

One main difference was I had to use qemu-img instead of dd to create the
disk images.  The other was during the guest system install to make
logical partitions *not* primary partitions.

  qemu-img create -f qcow d4.debian.ext2.qcow 400M
  qemu-img create -f qcow d4.debian.swap.qcow 200M

Then I fire up a vncserver and connect.
Inside the vnc client I could then boot the install CD and go through the
installation:

  qemu -k fi -cdrom debian-testing-i386-netinst.iso -boot d \
 -hda debian2.ext2.dmg-hdb debian.swap.dmg

Once the installation was done, I can then boot the new system
in d4.debian.ext2.qcow :

qemu -k en-us -boot c \
-hda d4.debian.ext2.qcow   \
-hdb d4.debian.swap.qcow   \
-cdrom debian-testing-i386-netinst.iso

I'm not quite sure how to ssh to the guest system, but since I seem to
be able to initiate outbound connections, it should be within reach to
solve that, too.

-Lars
Lars NoodC)n ([EMAIL PROTECTED])
 Ensure access to your data now and in the future
 http://opendocumentfellowship.org/about_us/contribute



qemu disk images

2007-03-04 Thread Lars D . Noodén
How can I create disk images that I can use in qemu on OpenBSD to install 
debian as a guest system?


I've got qemu installed on openbsd and have been trying to install some 
guest systems but there is difficulty mounting any of the disk images. 
The installation process seems to progess nicely, regardless of which 
guest system I start installling, and when it comes to partitioning, the 
partitioning tool can see the images and appears to be able to write a new 
partition map.


I can boot a variety of installer CDs (xubuntu and debian) and get the 
same problem.  Here is how I am firing up qemu:


qemu -k fi -cdrom debian-testing-i386-netinst.iso -boot d \
-hda debian.ext2.dmg-hdb debian.swap.dmg

However, the guest system is unable to mount the images or their 
partitions seemingly regardless of how I create them.


I have tried creating the images on a linux system with an ext2 filesystem 
and a swap filesystem and using them as is.  And I've tried letting the 
install process partition these.  And I have tried using qemu-image and 
letting the install do the partitioning:


qemu-img create -f raw d3.debian.ext2.dmg 300M

They mount manually outside of qemu.


Lars Nooden ([EMAIL PROTECTED])
On the Internet, nobody knows you're a dog ...
... until you start barking.



Re: qemu disk images

2007-03-04 Thread Frank Bax

At 03:16 PM 3/4/07, Lars D. NoodC)n wrote:

I can boot a variety of installer CDs (xubuntu and debian) and get the
same problem.  Here is how I am firing up qemu:

qemu -k fi -cdrom debian-testing-i386-netinst.iso -boot d \
-hda debian.ext2.dmg-hdb debian.swap.dmg

However, the guest system is unable to mount the images or their
partitions seemingly regardless of how I create them.



How do you start qemu AFTER the install is completed?  Something like this?
qemu -k fi -hda debian.ext2.dmg -hdb debian.swap.dmg