WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] How to install an HVM linux guest without bootcd?

Hi all,

thanks for answering. My goal to partitionate a file is to be flexible
in setting up a new virtual machine.

My steps in mind are so far...

1.A. Create an Image with "dd"
1.B. Partitionate it
1.C. Copy a bootloader into the MBR with "dd"

2.A Create an second Image with a size which is exactly the size of
image from 1.A MINUS 63 sectors.
2.B Format the image
2.C Install everything what is needed with debootstrap into Image
2.D Configure Image
2.E Overwrite Image from 1.A from sector 63 to end WITH image from 2.C

I hope it'll work

Thanks

Am Mittwoch, den 13.06.2007, 20:54 +0100 schrieb Daniel P. Berrange:
> On Wed, Jun 13, 2007 at 09:46:50PM +0200, Goran Vukoman wrote:
> > 
> > > [...]
> > > Why do want to avoid using a boot cd?  The best solution probably
> > > depends on why you want to do that.
> > > [...]
> > 
> > I want to write a program which creates, starts and stops virtual
> > machines on demand.
> > 
> > To start and stop is no problem but to create one.
> > 
> > I've started to work with files but I can't partitionate a file with
> > fdisk. 
> 
> Sure you can. Just setup a loop device pointing do the file while
> you are partitioning.
> 
>   losetup myfile.img
>   fdisk /dev/loop0
>   loseutp -d /dev/loop0
> 
> Though you probably also need to tell fdisk geometry 
> 
> Dan.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users