Comment 2 for bug 152623

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 :)