[one-users] Hyper-v drivers for OpenNebula 3.6.0?
Poul Kristensen
bcc5226 at gmail.com
Fri Jul 20 05:28:10 PDT 2012
Hello.
FYI!
Experienced from Vmware4.* I have been told that Windows servers do not work
after having been cloned. That is the case for the new vm.
Regards
Poul
2012/7/20 Javier Fontan <jfontan at opennebula.org>
> Hello,
>
> The drivers changed quite a bit from 3.2 to 3.4. Moreover the way
> images are managed are very different with the inclusion of the
> datastores. We still have to change the drivers to make them
> compatible with the new versions.
>
> If you want to take a look to the tm drivers they are heavily based on
> the shared driver. The clone scripts is modified so the destination
> path is rewritten with the SMB share path:
>
> DST_PATH=${DST_PATH/$ONE_LOCAL_VAR/$SMB_MOUNT}
>
> Also the destination disk have the extension .vhd added to make hyperv
> recognize the files as images, for example:
>
> exec_and_log "cp -r $SRC_PATH $DST_PATH.vhd"
>
> Cheers
>
> On Fri, Jul 20, 2012 at 6:23 AM, cloud.b.lab <cloud.b.lab at zoho.com> wrote:
> >
> > All,
> >
> > Do we have Hyper-V drivers for OpenNebula 3.4 or 3,6 .
> > With one-hyperv-3.2.0.tar.gz in OpenNebula 3.6.0, I am able register a
> > Hyper-V host. However clone and deploy scripts are not working as
> expected.
> >
> > TM_MAD : ssh
> >
> > 1. clone: Cloning
> > onehost:/var/lib/one/var/datastores/101/65f9f8d9980ec937e498f705eb1c2bcd
> in
> > /var/lib/one/var/datastores/0/113/disk.0
> > issue: The folder and file /var/lib/one/var/datastores/0/113/disk.0 are
> not
> > actually created.
> > 2. context: Generating context block device at
> > HYPER-V1:/var/lib/one/var//datastores/0/113/disk.1
> > issue : disk.1 note created.
> >
> >
> > Log:
> > Fri Jul 20 09:33:24 2012 [DiM][I]: New VM state is ACTIVE.
> > Fri Jul 20 09:33:24 2012 [LCM][I]: New VM state is PROLOG.
> > Fri Jul 20 09:33:40 2012 [TM][I]: clone: Cloning
> > onehost:/var/lib/one/var/datastores/101/65f9f8d9980ec937e498f705eb1c2bcd
> in
> > /var/lib/one/var/datastores/0/113/disk.0
> > Fri Jul 20 09:33:40 2012 [TM][I]: ExitCode: 0
> > Fri Jul 20 09:33:57 2012 [TM][I]: context: Generating context block
> device
> > at HYPER-V1:/var/lib/one/var//datastores/0/113/disk.1
> > Fri Jul 20 09:33:57 2012 [TM][I]: ExitCode: 0
> > Fri Jul 20 09:33:57 2012 [LCM][I]: New VM state is BOOT
> > Fri Jul 20 09:33:57 2012 [VMM][I]: Generating deployment file:
> > /var/lib/one/var/113/deployment.0
> > Fri Jul 20 09:33:57 2012 [VMM][I]: ExitCode: 0
> > Fri Jul 20 09:33:57 2012 [VMM][I]: Successfully execute network driver
> > operation: pre.
> > Fri Jul 20 09:34:00 2012 [VMM][I]: Command execution fail:
> > /var/lib/one/var/remotes/vmm/hyperv/deploy
> /var/lib/one/var/113/deployment.0
> > HYPER-V1 113 HYPER-V1
> > Fri Jul 20 09:34:00 2012 [VMM][I]: Copying disks
> > Fri Jul 20 09:34:00 2012 [VMM][I]: command: mkdir C:\var\113\images
> > Fri Jul 20 09:34:00 2012 [VMM][I]: command: copy
> > \\HYPER-V1\images\113\images\* C:\var\113\images
> > Fri Jul 20 09:34:00 2012 [VMM][E]: Error copying VM images
> > Fri Jul 20 09:34:00 2012 [VMM][I]: {:stdout=>"", :stderr=>"#<
> > CLIXML\r\n<Objs Version=\"1.1.0.1\"
> > xmlns=\"http://schemas.microsoft.com/powershell/2004/04\"><S
> > S=\"Error\">Copy-Item : An object at the specified path
> > \\\\HYPER-V1\\images\\113\\images does n_x000D__x000A_</S><S
> S=\"Error\">ot
> > exist._x000D__x000A_</S><S S=\"Error\">At line:1
> char:5_x000D__x000A_</S><S
> > S=\"Error\">+ copy <<<< \\\\HYPER-V1\\images\\113\\images\\*
> > C:\\var\\113\\images_x000D__x000A_</S><S S=\"Error\"> + CategoryInfo
> > : ObjectNotFound: (\\\\HYPER-V1\\images\\113\\images:St
> _x000D__x000A_</S><S
> > S=\"Error\"> ring) [Copy-Item], IOException_x000D__x000A_</S><S
> > S=\"Error\"> + FullyQualifiedErrorId :
> > ItemDoesNotExist,Microsoft.PowerShell.Commands.C _x000D__x000A_</S><S
> > S=\"Error\"> opyItemCommand_x000D__x000A_</S><S S=\"Error\">
> > _x000D__x000A_</S></Objs>", :exitcode=>1}
> > Fri Jul 20 09:34:00 2012 [VMM][I]: ExitCode: 255
> > Fri Jul 20 09:34:00 2012 [VMM][I]: Failed to execute virtualization
> driver
> > operation: deploy.
> > Fri Jul 20 09:34:00 2012 [VMM][E]: Error deploying virtual machine: Error
> > copying VM images
> > Fri Jul 20 09:34:00 2012 [DiM][I]: New VM state is FAILED
> >
> > Other required data:
> > 1. //192.168.1.4/images on /var/lib/one/mountpoint type cifs (rw)
> > 2. hyperv.conf
> > :vmdir: "\\\\HYPER-V1\\images"
> > :local_vmdir: "C:\\var"
> > :user: "oneadmin"
> > :password: "Redhat123456"
> > 3. ~/etc/tm_hyperv/tm_hypervrc
> > SMB_MOUNT=/var/lib/one/mountpoint
> > 4. ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM
> AMEM
> > STAT
> > 10 HYPER-V1 - 0 800 800 800 8G
> > 6.7G 8G on
> >
> > If you have updated scripts , kindly pass it one. Else if I am doing
> > something wrong, kindly en-light.
> >
> > Regards,
> > Anil.
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
>
>
>
> --
> Javier Fontán Muiños
> Project Engineer
> OpenNebula - The Open Source Toolkit for Data Center Virtualization
> www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120720/32207faf/attachment-0003.htm>
More information about the Users
mailing list