Giter Club home page Giter Club logo

xenserver_to_xen's Introduction

xenserver_to_xen

This project is for migrating from xenserver *.xva image to xen *.img image.

Quickstart

  1. Untar your xenserver image {{image}} with the command: tar -xvf {image}.xva. There are Ref:XX folder and ova.xml, where Ref:XX which contains 1MB size chunks of the image disk and ova.xml represents image spec.

  2. Then grab this handy utility and run it on your untared data, as an example:

python xenmigrate.py โ€“-convert=Ref:XX {image}.img

  1. If you'd like to convert {image}.img to {image}.qcow2, you can run the command:

qemu-img convert -f raw -O qcow2 {image}.img {image}.qcow2

xenserver_to_xen's People

Contributors

derekjhyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xenserver_to_xen's Issues

Convert Invalid literal for int()

Hello,

When i execute this command :

python xenmigrate.py --debug --convert=Ref:4/ apache-01.img

and i have this error.

traceback (most recent call last):
File "xenmigrate.py", line 502, in
reftoraw(opts.convert,args[0],opts.gz)
File "xenmigrate.py", line 319, in reftoraw
numfiles=int(refdirlist[-2])
ValueError: invalid literal for int() with base 10: '00003808.checksum'

Could you help me to correct his ?

Regards.

Script not compatible with python3

Not sure how to suggest a update to the code. So I made a fork and placed the updated python3 supported code. See link below.
https://github.com/davidasexton/xenserver_to_xen/blob/Update-code-python3/xenmigrate.py

Cannot convert xva file

I just create a xva file from a xenserver 6.2 untared it and execute:

python2 xenmigrate_new.py  -c Ref\:32/ test.img

Bit I get the error message:

xenmigrate 0.7.4 -- 2011.09.13
(c)2011 Jolokia Networks and Mark Pace -- jolokianetworks.com

convert ref dir   : Ref:32/
to raw file       : test.img
last file         : 40986
disk image size   : 40 GB

RW notification every: 1.0GB
Converting:
Traceback (most recent call last):
  File "xenmigrate_new.py", line 508, in <module>
    reftoraw(opts.convert,args[0],opts.gz)
  File "xenmigrate_new.py", line 358, in reftoraw
    source.close()
UnboundLocalError: local variable 'source' referenced before assignment

Doesn't work

doesn't work anymore, prints out

xenmigrate 0.7.4 -- 2011.09.13
(c)2011 Jolokia Networks and Mark Pace -- jolokianetworks.com

after execution in ubuntu.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.