[one-users] OpenNebula 3.4 + Xen 3.4.4 + CentOS 5.8

Ruben S. Montero rsmontero at opennebula.org
Wed May 2 14:02:17 PDT 2012


Hi,

Just in case you did not find out, initrd, root, and kernel cmd are
not mandatory just use them if you needed.

Cheers

Ruben


On Thu, Apr 26, 2012 at 11:48 PM, Marshall Grillos
<mgrillos at optimalpath.com> wrote:
> Thanks for the quick response Ruben.
>
> When I change to Kernel, One requires "Initrd", "Root", and "Kernel commands" parameters.  These are not needed in my implementation using the hvmloader kernel.  How do I circumvent using them or what would the appropriate values be when using hvmloader?
>
> Thanks,
> Marshall
>
> -----Original Message-----
> From: Ruben S. Montero [mailto:rsmontero at opennebula.org]
> Sent: Thursday, April 26, 2012 4:37 PM
> To: Marshall Grillos
> Cc: users at lists.opennebula.org
> Subject: Re: [one-users] OpenNebula 3.4 + Xen 3.4.4 + CentOS 5.8
>
> There are a couple of difference, that can be set in the opennebula template as:
>
> 1.- Drivers, in your example all the disks are "file:" you can set that in the DISK with DRIVER (DISK=[ DRIVER="file:"...]). Default driver can be set in vmm_exec_xen.conf
>
> 2.- The target using in your file are of type xdva. You can either use TARGET in DISK (DISK=[TARGET="xvda"]) or DEV_PREFIX=xdv in your Image Templates
>
> 3.- In your example you are using kernel and not bootloader, change that in the OS attribute.
>
> 4.- The other missing parameters if needed can be specified with RAW
>
> For further reference check the specific attributes supported for Xen [1], and the general Template definition file [2]
>
> [1]http://www.opennebula.org/documentation:rel3.4:template
> [2]http://www.opennebula.org/documentation:rel3.4:xeng
>
> Good Luck
>
> Ruben
>
> On Thu, Apr 26, 2012 at 11:19 PM, Marshall Grillos <mgrillos at optimalpath.com> wrote:
>> One thing I noticed is the device_model definition - I'm not sure how to configure this in the one templates.  Next it would be network.  In the custom configs I've avoided the network config at this point (I don't seem to have that option in OpenNebula).
>>
>> The enclosed config boots the CentOS LiveCD and a simple xvda image.
>>
>> Here is an example of the local domain config:
>> # cat xen1.example.com.conf
>> import os, re
>> arch = os.uname()[4]
>>
>> kernel = "/usr/lib/xen/boot/hvmloader"
>>
>> builder='hvm'
>>
>> memory = 512
>> shadow_memory = 8
>> name = "xen1.example.com"
>> vif = [ 'type=ioemu, bridge=eth0' ]
>> disk = [ 'file:/home/xen1.example.com.img,xvda,w',
>> 'file:/home/CentOS-6.2-x86_64-LiveCD.iso,xvdc:cdrom,r' ] device_model = '/usr/lib64/xen/bin/qemu-dm'
>> boot="dc"
>>
>> sdl=0
>> vnc=1
>> vnclisten="0.0.0.0"
>> vncconsole=1
>> vncpasswd='howtoforge'
>> stdvga=0
>> serial='pty'
>> usbdevice='tablet'
>>
>> on_poweroff = 'destroy'
>> on_reboot   = 'restart'
>> on_crash    = 'restart'
>>
>> Thanks,
>> Marshall
>>
>> -----Original Message-----
>> From: Ruben S. Montero [mailto:rsmontero at opennebula.org]
>> Sent: Thursday, April 26, 2012 4:13 PM
>> To: Marshall Grillos
>> Cc: users at lists.opennebula.org
>> Subject: Re: [one-users] OpenNebula 3.4 + Xen 3.4.4 + CentOS 5.8
>>
>> Hi,
>>
>> If you are successfully deploying the VMs directly, What are the differences between the domain configuration file you are using and that generated by OpenNebula (deployment.0)?
>>
>> Cheers
>>
>> Ruben
>>
>> On Thu, Apr 26, 2012 at 10:36 PM, Marshall Grillos <mgrillos at optimalpath.com> wrote:
>>> My company recently started the deployment of OpenNebula.  We are
>>> utilizing OpenNebula 3.4+Centos5.8+Xen3.4.4.  Currently we are trying
>>> to mount a Windows 2008R2 installation disk (ISO file), and a simple empty OS disk.
>>> The idea is to boot from the Windows 2008R2 disk, load windows, then
>>> drop the disk after everything is loaded.
>>>
>>>
>>>
>>> Note, we are using the iSCSI/LVM setup and it looks like OpenNebula
>>> is correctly deploying iSCSI targets and that sessions are being
>>> created on the HOSTS.  I've included iscsiadm and tgtadm outputs for reference.
>>>
>>>
>>>
>>> We have no issues deploying Xen DomUs manually.  When incorporating
>>> OpenNebula, something is getting hung.  The VM is created but stays
>>> in a paused state (as visible under "xm list").  OpenNebula shows it
>>> stuck at "BOOT".
>>>
>>>
>>>
>>> I've enclosed some logging details in hopes that someone can point us
>>> in the right direction.  I'm fairly certain this is a configuration
>>> issue with the Images or Templates.
>>>
>>>
>>>
>>> Images:
>>>
>>> BUS="ide"
>>>
>>> DESCRIPTION="First test image"
>>>
>>> DEV_PREFIX="sd"
>>>
>>> DRIVER="file:"
>>>
>>>
>>>
>>> BUS="ide"
>>>
>>> DESCRIPTION="Windows 2008R2 SP1 Install ISO"
>>>
>>> DEV_PREFIX="hd"
>>>
>>>
>>>
>>> Template:
>>>
>>> CPU="2"
>>>
>>> DISK=[
>>>
>>>   BUS="ide",
>>>
>>>   IMAGE="Win2k8R2SP1",
>>>
>>>   IMAGE_UNAME="oneadmin" ]
>>>
>>> DISK=[
>>>
>>>   BUS="ide",
>>>
>>>   IMAGE="Test",
>>>
>>>   IMAGE_UNAME="oneadmin" ]
>>>
>>> FEATURES=[
>>>
>>>   ACPI="yes",
>>>
>>>   PAE="yes" ]
>>>
>>> GRAPHICS=[
>>>
>>>   LISTEN="10.20.30.235",
>>>
>>>   PASSWD="tester",
>>>
>>>   PORT="5900",
>>>
>>>   TYPE="vnc" ]
>>>
>>> MEMORY="2048"
>>>
>>> NAME="Test windows install"
>>>
>>> NIC=[
>>>
>>>   NETWORK="Test",
>>>
>>>   NETWORK_UNAME="oneadmin" ]
>>>
>>> OS=[
>>>
>>>   BOOTLOADER="/usr/lib/xen/boot/hvmloader" ]
>>>
>>> RAW=[
>>>
>>>   TYPE="xen" ]
>>>
>>> TEMPLATE_ID="7"
>>>
>>> VCPU="2"
>>>
>>>
>>>
>>> # xm list
>>>
>>> Name                                        ID   Mem VCPUs      State
>>> Time(s)
>>>
>>> Domain-0                                     0  3500     2     r-----
>>> 621.2
>>>
>>> one-14                                      20  2048     0     --p---
>>> 0.0
>>>
>>>
>>>
>>> VM Log:
>>>
>>> Thu Apr 26 14:38:41 2012 [DiM][I]: New VM state is ACTIVE.
>>>
>>> Thu Apr 26 14:38:41 2012 [LCM][I]: New VM state is PROLOG.
>>>
>>> Thu Apr 26 14:38:41 2012 [VM][I]: Virtual Machine has no context
>>>
>>> Thu Apr 26 14:38:42 2012 [TM][I]: ExitCode: 0
>>>
>>> Thu Apr 26 14:38:45 2012 [TM][I]: ExitCode: 0
>>>
>>> Thu Apr 26 14:38:45 2012 [LCM][I]: New VM state is BOOT
>>>
>>> Thu Apr 26 14:38:45 2012 [VMM][I]: Generating deployment file:
>>> /var/lib/one/14/deployment.0
>>>
>>> Thu Apr 26 14:38:45 2012 [VMM][I]: ExitCode: 0
>>>
>>> Thu Apr 26 14:38:45 2012 [VMM][I]: Successfully execute network
>>> driver
>>> operation: pre.
>>>
>>>
>>>
>>> # cat /var/lib/one/datastores/0/14/deployment.0
>>>
>>> name = 'one-14'
>>>
>>> #O CPU_CREDITS = 512
>>>
>>> memory  = '2048'
>>>
>>> vcpus  = '2'
>>>
>>> bootloader = "/usr/lib/xen/boot/hvmloader"
>>>
>>> disk = [
>>>
>>>     'tap:aio:/var/lib/one//datastores/0/14/disk.0,hdc,r',
>>>
>>>     'file:/var/lib/one//datastores/0/14/disk.1,sda,w',
>>>
>>> ]
>>>
>>> vif = [
>>>
>>>     ' mac=**:**:**:**:**:**,ip=10.20.30.238,bridge=eth0',
>>>
>>> ]
>>>
>>> vfb =
>>> ['type=vnc,vnclisten=10.20.30.235,vncdisplay=0,vncpasswd=tester']
>>>
>>>
>>>
>>> # cat transfer.0.prolog
>>>
>>> LN iscsi iqn.2012-02.org.opennebula:172.25.12.1.cloud_vg.lv-one-6
>>> 10.20.30.235:/var/lib/one//datastores/0/14/disk.0
>>>
>>> LN iscsi iqn.2012-02.org.opennebula:172.25.12.1.cloud_vg.lv-one-3
>>> 10.20.30.235:/var/lib/one//datastores/0/14/disk.1
>>>
>>>
>>>
>>> Xend Logs on Host:
>>>
>>> [2012-04-26 14:38:45 4858] DEBUG (XendDomainInfo:92)
>>> XendDomainInfo.create(['vm', ['name', 'one-14'], ['memory', '2048'],
>>> ['vcpus', '2'], ['on_xend_start', 'ignore'], ['on_xend_stop',
>>> 'ignore'], ['bootloader', '/usr/lib/xen/boot/hvmloader'],
>>> ['bootloader_args', '-q'], ['image', ['linux', ['videoram', 4]]],
>>> ['s3_integrity', 1], ['device', ['tap', ['uname',
>>> 'tap:aio:/var/lib/one//datastores/0/14/disk.0'], ['dev', 'hdc'],
>>> ['mode', 'r']]], ['device', ['vbd', ['uname',
>>> 'file:/var/lib/one//datastores/0/14/disk.1'], ['dev', 'sda'],
>>> ['mode', 'w']]], ['device', ['vif', ['ip', '10.20.30.238'], ['mac',
>>> '**:**:**:**:**:**'], ['bridge', 'eth0']]], ['device', ['vkbd']],
>>> ['device', ['vfb', ['vncpasswd', 'XXXXXXXX'], ['vnc', '1'],
>>> ['vnclisten', '10.20.30.235'], ['vncdisplay', '0'], ['xauthority',
>>> '/var/lib/one/.Xauthority']]]])
>>>
>>> [2012-04-26 14:38:45 4858] DEBUG (XendDomainInfo:2311)
>>> XendDomainInfo.constructDomain
>>>
>>> [2012-04-26 14:38:45 4858] DEBUG (balloon:166) Balloon: 29587420 KiB
>>> free; need 4096; done.
>>>
>>> [2012-04-26 14:38:45 4858] DEBUG (XendDomain:453) Adding Domain: 20
>>>
>>> [2012-04-26 14:38:45 4858] DEBUG (XendDomainInfo:2512)
>>> XendDomainInfo.initDomain: 20 256
>>>
>>> [2012-04-26 14:38:45 32120] DEBUG (XendBootloader:113) Launching
>>> bootloader as ['/usr/lib/xen/boot/hvmloader',
>>> '--output=/var/run/xend/boot/xenbl.7189',
>>> '-q', '/var/lib/one//datastores/0/14/disk.0'].
>>>
>>>
>>>
>>> Storage Controller:
>>>
>>> # tgtadm --lld iscsi --mode target --op show
>>>
>>> Target 4: iqn.2012-02.org.opennebula:172.25.12.1.cloud_vg.lv-one-3
>>>
>>>     System information:
>>>
>>>         Driver: iscsi
>>>
>>>         State: ready
>>>
>>>     I_T nexus information:
>>>
>>>         I_T nexus: 20
>>>
>>>             Initiator: iqn.1994-05.com.redhat:78c65bc38e0
>>>
>>>             Connection: 0
>>>
>>>                 IP Address: 172.25.12.3
>>>
>>>     LUN information:
>>>
>>>         LUN: 0
>>>
>>>             Type: controller
>>>
>>>             SCSI ID: IET     00040000
>>>
>>>             SCSI SN: beaf40
>>>
>>>             Size: 0 MB, Block size: 1
>>>
>>>             Online: Yes
>>>
>>>             Removable media: No
>>>
>>>             Readonly: No
>>>
>>>             Backing store type: null
>>>
>>>             Backing store path: None
>>>
>>>             Backing store flags:
>>>
>>>         LUN: 1
>>>
>>>             Type: disk
>>>
>>>             SCSI ID: IET     00040001
>>>
>>>             SCSI SN: beaf41
>>>
>>>             Size: 85899 MB, Block size: 512
>>>
>>>             Online: Yes
>>>
>>>             Removable media: No
>>>
>>>             Readonly: No
>>>
>>>             Backing store type: rdwr
>>>
>>>             Backing store path: /dev/cloud_vg/lv-one-3
>>>
>>>             Backing store flags:
>>>
>>>     Account information:
>>>
>>>     ACL information:
>>>
>>>         ALL
>>>
>>> Target 7: iqn.2012-02.org.opennebula:172.25.12.1.cloud_vg.lv-one-6
>>>
>>>     System information:
>>>
>>>         Driver: iscsi
>>>
>>>         State: ready
>>>
>>>     I_T nexus information:
>>>
>>>         I_T nexus: 19
>>>
>>>             Initiator: iqn.1994-05.com.redhat:78c65bc38e0
>>>
>>>             Connection: 0
>>>
>>>                 IP Address: 172.25.12.3
>>>
>>>     LUN information:
>>>
>>>         LUN: 0
>>>
>>>             Type: controller
>>>
>>>             SCSI ID: IET     00070000
>>>
>>>             SCSI SN: beaf70
>>>
>>>             Size: 0 MB, Block size: 1
>>>
>>>             Online: Yes
>>>
>>>             Removable media: No
>>>
>>>             Readonly: No
>>>
>>>             Backing store type: null
>>>
>>>             Backing store path: None
>>>
>>>             Backing store flags:
>>>
>>>         LUN: 1
>>>
>>>             Type: disk
>>>
>>>             SCSI ID: IET     00070001
>>>
>>>             SCSI SN: beaf71
>>>
>>>             Size: 3171 MB, Block size: 512
>>>
>>>             Online: Yes
>>>
>>>             Removable media: No
>>>
>>>             Readonly: No
>>>
>>>             Backing store type: rdwr
>>>
>>>             Backing store path: /dev/cloud_vg/lv-one-6
>>>
>>>             Backing store flags:
>>>
>>>     Account information:
>>>
>>>     ACL information:
>>>
>>>         ALL
>>>
>>>
>>>
>>> Please let me know if there is any other config information that could help.
>>>
>>>
>>>
>>> Thanks,
>>>
>>> Marshall
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>
>>
>>
>> --
>> Ruben S. Montero, PhD
>> Project co-Lead and Chief Architect
>> OpenNebula - The Open Source Solution for Data Center Virtualization
>> www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
>>
>>
>
>
>
> --
> Ruben S. Montero, PhD
> Project co-Lead and Chief Architect
> OpenNebula - The Open Source Solution for Data Center Virtualization www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
>
>



-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula



More information about the Users mailing list