[one-users] OpenNebula & Windows VM
Carlos Martín Sánchez
cmartin at opennebula.org
Tue Oct 25 03:39:17 PDT 2011
Hi,
Please reply to the list, you'll get help from more people and others will
benefit from the answers.
About this error line:
[VMM][E]: Error deploying virtual machine: sudo: no tty present and no
askpass program specified
It may be that the sudoers file is not properly configured. Did you follow
the configuration steps for Xen? [1]
Regards.
[1] http://opennebula.org/documentation:rel3.0:xeng#configuration
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org
2011/10/21 Clément Berthelot <mentcle at gmail.com>
> I had done that yesterday, but it didn't work either. Here is my VM
> template now (with kernel hvmloader):
> NAME = vm1
> CPU = 1
> MEMORY = 512
> OS = [ kernel = "/usr/lib/xen/boot/hvmloader" ]
> DISK = [ source = "/var/lib/one/images/winxp/disk1.raw", target ="hda" ]
> GRAPHICS = [type="vnc",listen="0.0.0.0", port="5901"]
> RAW= [type="xen",data="builder='hvm'"]
> RAW= [type="xen",data="device_model='/usr/lib/xen/bin/qemu-dm'"]
> RAW= [type="xen",data="vif=['bridge=br0,model=rtl8139']"]
>
> And I get this error now:
>
> ---------------------------------------------------------------------------
> Fri Oct 21 16:35:08 2011 [DiM][I]: New VM state is ACTIVE.
> Fri Oct 21 16:35:08 2011 [LCM][I]: New VM state is PROLOG.
> Fri Oct 21 16:35:08 2011 [VM][I]: Virtual Machine has no context
> Fri Oct 21 16:41:06 2011 [TM][I]: tm_clone.sh:
> linux-i39e:/var/lib/one/images/winxp/disk1.raw 10.1.1.1:
> /var/lib/one//8/images/disk.0
> Fri Oct 21 16:41:06 2011 [TM][I]: tm_clone.sh: DST:
> /var/lib/one//8/images/disk.0
> Fri Oct 21 16:41:06 2011 [TM][I]: tm_clone.sh: Creating directory
> /var/lib/one//8/images
> Fri Oct 21 16:41:06 2011 [TM][I]: tm_clone.sh: Executed "/usr/bin/ssh
> 10.1.1.1 mkdir -p /var/lib/one//8/images".
> Fri Oct 21 16:41:06 2011 [TM][I]: tm_clone.sh: Cloning
> linux-i39e:/var/lib/one/images/winxp/disk1.raw
> Fri Oct 21 16:41:06 2011 [TM][I]: tm_clone.sh: Executed "/usr/bin/scp
> linux-i39e:/var/lib/one/images/winxp/disk1.raw 10.1.1.1:
> /var/lib/one//8/images/disk.0".
> Fri Oct 21 16:41:06 2011 [TM][I]: tm_clone.sh: Executed "/usr/bin/ssh
> 10.1.1.1 chmod a+rw /var/lib/one//8/images/disk.0".
> Fri Oct 21 16:41:07 2011 [LCM][I]: New VM state is BOOT
> Fri Oct 21 16:41:07 2011 [VMM][I]: Generating deployment file:
> /var/lib/one/8/deployment.0
> Fri Oct 21 16:41:07 2011 [VMM][E]: Error deploying virtual machine: sudo:
> no tty present and no askpass program specified
> Fri Oct 21 16:41:07 2011 [DiM][I]: New VM state is FAILED
> Fri Oct 21 16:41:08 2011 [TM][W]: Ignored: LOG - 8 tm_delete.sh: Deleting
> /var/lib/one//8/images
>
> Fri Oct 21 16:41:08 2011 [TM][W]: Ignored: LOG - 8 tm_delete.sh: Executed
> "/usr/bin/ssh 10.1.1.1 rm -rf /var/lib/one//8/images".
>
> Fri Oct 21 16:41:08 2011 [TM][W]: Ignored: TRANSFER SUCCESS 8 -
> ---------------------------------------------------------------------------
>
> What is that all about ?
>
> Cheers,
>
> Clement
>
> Le 21 oct. 2011 à 15:47, Carlos Martín Sánchez a écrit :
>
> Hi,
>
> You need to set either the KERNEL or the BOOTLOADER attribute in your VM
> template [1]; take a look at the error message:
>
> Fri Oct 21 15:07:39 2011 [VMM][E]: No kernel or bootloader defined and no
> default provided.
> Fri Oct 21 15:07:39 2011 [VMM][E]: deploy_action, error generating
> deployment file: /var/lib/one/5/deployment.0
>
> If I recall correctly, for a windows guest you need to use the hvmloader
> kernel.
>
> Regards.
>
> [1] http://opennebula.org/documentation:rel3.0:template
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org
>
>
> 2011/10/21 Clément Berthelot <mentcle at gmail.com>
>
>> Hi guys,
>>
>> I have trouble creating a Windows XP VM with OnpenNebula 2.2. Here is the
>> VM Template:
>> NAME = vm1
>> CPU = 1
>> MEMORY = 512
>> OS = [boot=hd]
>> DISK = [ source="/var/lib/one/images/winxp/disk1.raw ], clone=yes,
>> target=hda, readonly=no ]
>> NIC = [ network = "Public Network" ]
>> GRAPHICS = [ type="vnc", listen= "127.0.0.1", port="5" ]
>>
>> Disk1.raw is an hard drive I copied from a Xen VM with Windows XP on it.
>> It works perfectly as I managed to create others Xen VM from this disk, just
>> copying it. When i add the image in OpenNebula, I have the following error
>> (log):
>>
>>
>> ------------------------------------------------------------------------------------
>> Fri Oct 21 15:01:41 2011 [DiM][I]: New VM state is ACTIVE.
>> Fri Oct 21 15:01:41 2011 [LCM][I]: New VM state is PROLOG.
>> Fri Oct 21 15:01:41 2011 [VM][I]: Virtual Machine has no context
>> Fri Oct 21 15:07:39 2011 [TM][I]: tm_clone.sh:
>> linux-i39e:/var/lib/one/images/winxp/disk1.raw 10.1.1.1:
>> /var/lib/one//5/images/disk.0
>> Fri Oct 21 15:07:39 2011 [TM][I]: tm_clone.sh: DST:
>> /var/lib/one//5/images/disk.0
>> Fri Oct 21 15:07:39 2011 [TM][I]: tm_clone.sh: Creating directory
>> /var/lib/one//5/images
>> Fri Oct 21 15:07:39 2011 [TM][I]: tm_clone.sh: Executed "/usr/bin/ssh
>> 10.1.1.1 mkdir -p /var/lib/one//5/images".
>> Fri Oct 21 15:07:39 2011 [TM][I]: tm_clone.sh: Cloning
>> linux-i39e:/var/lib/one/images/winxp/disk1.raw
>> Fri Oct 21 15:07:39 2011 [TM][I]: tm_clone.sh: Executed "/usr/bin/scp
>> linux-i39e:/var/lib/one/images/winxp/disk1.raw 10.1.1.1:
>> /var/lib/one//5/images/disk.0".
>> Fri Oct 21 15:07:39 2011 [TM][I]: tm_clone.sh: Executed "/usr/bin/ssh
>> 10.1.1.1 chmod a+rw /var/lib/one//5/images/disk.0".
>> Fri Oct 21 15:07:39 2011 [LCM][I]: New VM state is BOOT
>> Fri Oct 21 15:07:39 2011 [VMM][I]: Generating deployment file:
>> /var/lib/one/5/deployment.0
>> Fri Oct 21 15:07:39 2011 [VMM][E]: No kernel or bootloader defined and no
>> default provided.
>> Fri Oct 21 15:07:39 2011 [VMM][E]: deploy_action, error generating
>> deployment file: /var/lib/one/5/deployment.0
>> Fri Oct 21 15:07:39 2011 [DiM][I]: New VM state is FAILED
>> Fri Oct 21 15:07:40 2011 [TM][W]: Ignored: LOG - 5 tm_delete.sh: Deleting
>> /var/lib/one//5/images
>>
>> Fri Oct 21 15:07:40 2011 [TM][W]: Ignored: LOG - 5 tm_delete.sh: Executed
>> "/usr/bin/ssh 10.1.1.1 rm -rf /var/lib/one//5/images".
>>
>> Fri Oct 21 15:07:40 2011 [TM][W]: Ignored: TRANSFER SUCCESS 5 -
>>
>> Fri Oct 21 15:09:19 2011 [DiM][I]: New VM state is DONE.
>> Fri Oct 21 15:09:20 2011 [HKM][I]: Command execution fail:
>> /usr/share/one/hooks/image.rb 5
>> Fri Oct 21 15:09:20 2011 [HKM][I]: STDERR follows.
>> Fri Oct 21 15:09:20 2011 [HKM][I]: ExitCode: 255
>>
>> ------------------------------------------------------------------------------------
>>
>> Everything on my FrontEnd is working. My node running the Xen Hypervisor
>> was successfully linked on the frontend, and I can monitor it using the
>> onehost list command. Am I missing something here ? Why it's not booting ?
>> _______________________________________________
>> 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/20111025/b935094b/attachment-0002.htm>
More information about the Users
mailing list