[one-users] can't import image with oneimage

Wojciech Giel wojciech.giel at cimr.cam.ac.uk
Tue Oct 22 05:45:24 PDT 2013


Hi,
that was it. I can now  import with oneimage.
thanks
Wojciech
On 22/10/13 10:41, Carlos Martín Sánchez wrote:
> HI,
>
> On Tue, Oct 22, 2013 at 11:32 AM, Wojciech Giel 
> <wojciech.giel at cimr.cam.ac.uk 
> <mailto:wojciech.giel at cimr.cam.ac.uk>> wrote:
>
>     I have created img images with kvm (linux and windows). Just want
>     them and cd iso's to import to opennebula
>
>
> Ok, so templates/windows7.img is the image, not the template. Then I 
> think the problem is that you need to use the --path option, like so:
>
> oneimage create -d 1 --name windows7 --type OS --driver raw 
> --description "A OS plain installation" *--path* templates/windows7.img
>
> Regards
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org <http://www.OpenNebula.org> | 
> cmartin at opennebula.org <mailto:cmartin at opennebula.org> | @OpenNebula 
> <http://twitter.com/opennebula>
>
>
> On Tue, Oct 22, 2013 at 11:32 AM, Wojciech Giel 
> <wojciech.giel at cimr.cam.ac.uk <mailto:wojciech.giel at cimr.cam.ac.uk>> 
> wrote:
>
>     Hi,
>     I have created img images with kvm (linux and windows). Just want
>     them and cd iso's to import to opennebula but
>     with oneimage getting:
>     Connection reset by peer
>     with sunstone:
>
>     failed: Hash does not match
>
>     with oneimage no error in logs with sunstone getting error about hash.
>     cheers
>     Wojciech
>
>         Hi,
>
>         Is templates/windows7.img the image file, or an OpenNebula
>         template text file?
>
>         Regards
>
>         --
>         Carlos Martín, MSc
>         Project Engineer
>         OpenNebula - Flexible Enterprise Cloud Made Simple
>         www.OpenNebula.org <http://www.OpenNebula.org>
>         <http://www.OpenNebula.org> | cmartin at opennebula.org
>         <mailto:cmartin at opennebula.org> <mailto:cmartin at opennebula.org
>         <mailto:cmartin at opennebula.org>> | @OpenNebula
>         <http://twitter.com/opennebula>
>
>
>
>         On Mon, Oct 21, 2013 at 4:50 PM, Wojciech Giel
>         <wojciech.giel at cimr.cam.ac.uk
>         <mailto:wojciech.giel at cimr.cam.ac.uk>
>         <mailto:wojciech.giel at cimr.cam.ac.uk
>         <mailto:wojciech.giel at cimr.cam.ac.uk>>> wrote:
>
>             Hello,
>
>             I'm running opennebula 4.2 on centos 6.4 installed from rpm. I
>             have small problem I trying to sort out.
>             when I try to import vm image with oneimage I'm getting:
>
>             [oneadmin at gamma ~]$ oneimage create -d 1 --name windows7
>         --type OS
>             --driver raw --description "A OS plain installation"
>             templates/windows7.img
>             Connection reset by peer
>             [oneadmin at gamma ~]$
>
>
>             when I trying upload with sunstone getting error about hash:
>             Error copying image in the datastore: Error copying
>             /var/tmp/thin-body20131021-2353-1sluvsm-0 to
>             /var/lib/one/datastores/1/d39ed100c4786d223d0a347fe7f510b1
>
>             Mon Oct 21 15:03:51 2013 [ReM][D]: Req:3744 UID:0
>         ImageInfo result
>             SUCCESS, "<IMAGE><ID>4</ID><UI..."
>             Mon Oct 21 15:03:51 2013 [ImM][I]: Command execution fail:
>             /var/lib/one/remotes/datastore/fs/cp
>            
>         PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjQ8L0lEPjxVSUQ+MDwvVUlEPjxHSUQ+MDwvR0lEPjxVTkFNRT5vbmVhZG1pbjwvVU5BTUU+PEdOQU1FPm9uZWFkbWluPC9HTkFNRT48TkFNRT5YdWJ1bnR1IDEyLjA0LjEgTFRTPC9OQU1FPjxQRVJNSVNTSU9OUz48T1dORVJfVT4xPC9PV05FUl9VPjxPV05FUl9NPjE8L09XTkVSX00+PE9XTkVSX0E+MDwvT1dORVJfQT48R1JPVVBfVT4wPC9HUk9VUF9VPjxHUk9VUF9NPjA8L0dST1VQX00+PEdST1VQX0E+MDwvR1JPVVBfQT48T1RIRVJfVT4wPC9PVEhFUl9VPjxPVEhFUl9NPjA8L09USEVSX00+PE9USEVSX0E+MDwvT1RIRVJfQT48L1BFUk1JU1NJT05TPjxUWVBFPjE8L1RZUEU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1U+PE9USEVSX00+MDwvT1RIRVJfTT48T1RIRVJfQT4wPC9PVEhFUl9BPjwvUEVSTUlTU0lPTlM+PERTX01BRD5mczwvRFNfTUFEPjxUTV9NQUQ+c2hhcmVkPC9UTV9NQUQ+PEJBU0VfUEFUSD4vdmFyL2xpYi9vbmUvZGF0YXN0b3Jlcy8xPC9CQVNFX1BBVEg+PFRZUEU+MDwvVFlQRT48RElTS19UWVBFPjA8L0RJU0tfVFlQRT48Q0xVU1RFUl9JRD4xMDA8L0NMVVNURVJfSUQ+PENMVVNURVI+ZGlsPC9DTFVTVEVSPjxUT1RBTF9NQj4yMDM4NDU2PC9UT1RBTF9NQj48RlJFRV9NQj4xODk3NzU3PC9GUkVFX01CPjxVU0VEX01CPjI5NzM3PC9VU0VEX01CPjxJTUFHRVM+PElEPjA8L0lEPjxJRD4
>            
>         xPC9JRD48SUQ+MjwvSUQ+PElEPjM8L0lEPjwvSU1BR0VTPjxURU1QTEFURT48RFNfTUFEPjwhW0NEQVRBW2ZzXV0+PC9EU19NQUQ+PFRNX01BRD48IVtDREFUQVtzaGFyZWRdXT48L1RNX01BRD48VFlQRT48IVtDREFUQVtJTUFHRV9EU11dPjwvVFlQRT48L1RFTVBMQVRFPjwvREFUQVNUT1JFPjwvRFNfRFJJVkVSX0FDVElPTl9EQVRBPg==
>             4
>             Mon Oct 21 15:03:51 2013 [ImM][I]: cp: Copying local image
>             /var/tmp/thin-body20131021-2353-1sluvsm-0 to the image
>         repository
>             Mon Oct 21 15:03:51 2013 [ImM][E]: cp: Command
>             "/var/lib/one/remotes/datastore/fs/../downloader.sh --md5
>             c339ea467ea35eec0d8af6f826c1644a
>             /var/tmp/thin-body20131021-2353-1sluvsm-0
>             /var/lib/one/datastores/1/d39ed100c4786d223d0a347fe7f510b1"
>             failed: Hash does not match
>             Mon Oct 21 15:03:51 2013 [ImM][E]: Error copying
>             /var/tmp/thin-body20131021-2353-1sluvsm-0 to
>             /var/lib/one/datastores/1/d39ed100c4786d223d0a347fe7f510b1
>             Mon Oct 21 15:03:51 2013 [ImM][I]: ExitCode: 255
>             Mon Oct 21 15:03:51 2013 [ImM][E]: Error copying image in the
>             datastore: Error copying
>         /var/tmp/thin-body20131021-2353-1sluvsm-0
>             to /var/lib/one/datastores/1/d39ed100c4786d223d0a347fe7f510b1
>             Mon Oct 21 15:03:51 2013 [InM][I]: Monitoring datastore
>         default (1)
>             Mon Oct 21 15:03:51 2013 [ImM][I]: Datastore default (1)
>             successfully monitored.
>
>             what might be a proble and how to fix it.
>             thanks
>             Wojciech
>
>             _______________________________________________
>             Users mailing list
>         Users at lists.opennebula.org <mailto:Users at lists.opennebula.org>
>         <mailto:Users at lists.opennebula.org
>         <mailto:Users at lists.opennebula.org>>
>         http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
>     -- 
>     Wojciech Giel
>     University of Cambridge
>     JDRF/WT Diabetes and Inflammation Laboratory
>     Cambridge Institute for Medical Research
>     Wellcome Trust/MRC Building
>     Addenbrooke's Hospital, Cambridge, CB2 0XY
>     Tel: 44 (0) 1223 763228
>
>
>

-- 
Wojciech Giel
University of Cambridge
JDRF/WT Diabetes and Inflammation Laboratory
Cambridge Institute for Medical Research
Wellcome Trust/MRC Building
Addenbrooke's Hospital, Cambridge, CB2 0XY
Tel: 44 (0) 1223 763228





More information about the Users mailing list