I've created a vhd using 'debootstrap' and 'xe vid-create / xe vdi-import'.

Is there a way that I can manually add my vhd to secondary storage
without using the admin UI?

My secondary storage looks like this:

/opt/storage/secondary/template/
└── tmpl
    ├── 1
    │   ├── 1
    │   │   ├── 774D7C32-EF42-48E5-A963-4C30C70C12F6.vhd
    │   │   └── template.properties
    │   ├── 2
    │   │   ├── ae73e20a-0ec1-3fa2-a19d-f28268211bdc.vhd
    │   │   └── template.properties
    └── 2
        ├── 202
        │   ├── 202-2-c447d7ca-7303-3211-9dd4-8a64a6dc8e67.iso
        │   └── template.properties

What is the naming convention for the sub-folders of tmpl?
What do x and y represent in 'tmpl/x/y'?  At a guess x=1 is vhd's, x=2
is iso's  - is this correct? What about values for y - how are they
allocated?

For the template.properties - is there a definition somewhere for this
file, or do I need to look at some code to figure out how the values
are populated (e.g. checksum algorithm)?

   filename=29838623-89b9-350c-a03d-4da2cacdb5ae.vhd
   vhd=true
   id=5
   vhd.filename=29838623-89b9-350c-a03d-4da2cacdb5ae.vhd
   public=true
   uniquename=tiny Linux
   vhd.virtualsize=52428800
   virtualsize=52428800
   checksum=046e134e642e6d344b34648223ba4bc1
   hvm=false
   description=tiny Linux
   vhd.size=50430464
   size=50430464

Many thanks in advance,

Chris

Reply via email to