image store missing in xenman

Bug #152623 reported by Nicklas Svanteson
4
Affects Status Importance Assigned to Milestone
xenman (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: xenman

I'm not sure if this is a bug or if I'm missing something...

However, after installing xenman I get an empty image store. It's supposed to be created in /var/cache/xenman/.
The directory is there but it's empty...

Revision history for this message
DeeKey (privateinf) wrote :

This is a packaging bug. If you need to add images you need to extract them from xenman 0.6 xenman tarball. See xenman's forum for details.

Changed in xenman:
status: New → Confirmed
Revision history for this message
DeeKey (privateinf) wrote :

here is workaround:

1)Download xenman tarball 0.6 and untar it.

2)Modify the file named “mk_image_store”:

Replace
#!/bin/sh
with
#!/bin/bash

3) Edit the xenman’s configuration file

$ sudo nano /etc/xenman.cfg

Modify according to your needs:
a) snapshot_dir
b) disks_dir
c) anaconda_install = update the link to the most recent kernel of fedora or just comment the line (better).

4) Run mk_image_store script from the tarball (with sudo)
If all right, you should see “Image store created at /var/cache/xenman”

5) No it is time to modify image provision templates.
Edit the vm_conf.template files located at /var/cache/xenman/image_store/ in provision dirs.
I strongly advice to edit default “disk” variable:

Edit the “file” path which points to /tmp/ because after the reboot the /tmp dir will be cleared. You can point the image file to your custom dir in home folder for example.

Edit the “phy” path to point to your cdrom/DVD device.
Save your edits and quit.
For Windows image template set apic and acpi to “1”.

Modify provision.sh file:
replace
#!/bin/sh
with
#!/bin/bash

Do the same trick for the Linux image (but not for Fedora install).

6) No lets add some links to the ubuntu gutsy system.

$ sudo ln -s /usr/lib/xen-ioemu-3.1/boot/ /usr/lib/xen/
$ sudo ln -s /usr/lib/xen-ioemu-3.1/bin/qemu-dm /usr/lib/xen/bin/
$ sudo ln -s /usr/lib/xen-ioemu-3.1/bin/qemu-dm.debug /usr/lib/xen/bin/

7) Now lets configure xen networking
$ sudo nano /etc/xen/xend-config.sxp

comment the line
# (network-script network-dummy)

And uncomment either
(network-script network-bridge)
or
(network-script 'network-bridge netdev=eth1')

Save the file and restart xend service:
$ sudo /etc/init.d/xend restart

Now provision and run the image using xenman.

Hope it will work :)

Revision history for this message
Jd (jd-jedi) wrote :

Thanks for detailed instructions.

These fall in 3 categories.
1. Bugs that needs to be fixed in xenman :
    e.g. Fix the #!/bin/sh ==> #!bin/bash

    Can this be fixed before packaging.. or a patch is required from XenMan ?

2.Packaging updates.
   Creating links etc.
   Get 0.6 tarball and include missing files. refer to packaging guide.

3. Customization for your local environment. (Or choosing better defaults )
    -- Using eth1 (I am assuming eth1 is specific to a machine and not distribution)
    -- location of creating disks. : Default is /tmp should be changed by the user to some appropriate location with enough space.
    -- cdrom device specific to a machine.

 I think 1 and 2 should be handled in the packaging..
 3 should be driven through documentation (README)

Revision history for this message
DeeKey (privateinf) wrote :

Also it will be great to include some icon for xenman. I don't know whether it exists or not...

Xenman is included in the xen virtualisation package for Gutsy. Xenman is the only program with GUI from the whole xen package.

That is why it will be good if Xenman will run out of the box...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.