|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-users
[Xen-users] Customising a Debian XGT template.dat file 
| 
Hi,
Does anyone have any documentation of how to create customized XGT files?  
(These are the files are on the Xen host in /opt/xensource/packages/xgt). 
This is what I understand so far - the .xgt extension is really a zip file.  
The debian.xgt is really these three files zipped up together - 
root.tar.bz2, swap.img and template.dat. 
I've created my own root.tar.bz2 by tarring up a customised debian install 
of sarge.  The part I don't understand is the format of the template.dat 
file.  I want three partitions - a root partition, a swap partition and a 
/var partition.  I have a file called var.tar.bz2 that I want extracted to 
the /var partition during installation.  So far it creates the partition, 
but doesn't copy the files.  Has anyone else done this before? 
Here is what my template.dat file looks like:
(xgt
 (xgt-version 4)
 (xgt_restricted 'true')
 (name 'Jons Debian Sarge Guest Template')
 (rootfs-type 'ext3')
 (description 'Jons Debian for XenEnterprise')
 (distrib debian)
 (root-vbd sda1)
 (root-vbd sdc1)
 (boot_params "quiet")
 (filesystem
   (uri 'root.tar.bz2')
   (function root)
   (type tar-wholedisk)
   (vbd sda)
   (total_size 5368709120)
   (used_size 455628081)
 )
 (filesystem
   (uri 'swap.img')
   (function root)
   (type img)
   (vbd sdb)
   (total_size 1073742848)
   (used_size 1073742848)
 )
 (filesystem
   (uri 'var.tar.bz2')
   (function user)
   (type tar-wholedisk)
   (vbd sdc)
   (total_size 10485760000)
   (used_size 10485760000)
 )
)
Thank you,
Jon Eicher
_________________________________________________________________
Type your favorite song.  Get a customized station.  Try MSN Radio powered 
by Pandora. http://radio.msn.com/?icid=T002MSN03A07001 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-users] Customising a Debian XGT template.dat file,
Jon Eicher <=
 |  |  | 
  
    |  |  |