Re: [one-users] Oca 3 template instantiate
Thank you very much. Greetings, El vie 16 dic 2011 18:37:55 CET, Daniel Molina escribió: Hi Carlos, 2011/12/14 Carlos Fernández Iglesiascigles...@cesga.es: Hello, Is there a way to know the vmid oca.VmTemplate.instantiate(name='name') is going to assign to the virtual machine? In the following link you can find the response from the xmlrpc request which includes the ID assigned to the new vm: http://www.opennebula.org/documentation:rel3.0:api#onetemplateinstantiate And Can you retrieve the content of a template from oca so it can be used in oca.VirtualMachine.allocate(client, template) ? The following method will retrieve the informartion of the template in XML format, therefore you will have to convert it to the template syntax: http://www.opennebula.org/documentation:rel3.0:api#onetemplateinfo If you are using the ruby binding there is a template_to_str method for this task. Kind regards Thank you. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Problem in network from fresh install opennebula 3
Hello, This is the info: -bash-4.1$ onevnet show -x 0 VNET ID0/ID UID0/UID GID0/GID UNAMEoneadmin/UNAME GNAMEoneadmin/GNAME NAME171/NAME TYPE1/TYPE BRIDGEvirbrCLOUD/BRIDGE PUBLIC1/PUBLIC TOTAL_LEASES0/TOTAL_LEASES TEMPLATE BRIDGE![CDATA[virbrCLOUD]]/BRIDGE LEASES IP![CDATA[84.21.173.192]]/IP MAC![CDATA[02:fe:54:15:ad:C0]]/MAC /LEASES LEASES IP![CDATA[84.21.173.194]]/IP MAC![CDATA[02:fe:54:15:ad:C2]]/MAC /LEASES NAME![CDATA[PROBAS]]/NAME TYPE![CDATA[FIXED]]/TYPE /TEMPLATE LEASES/ /VNET Thank you. El vie 25 nov 2011 10:03:27 CET, Ruben S. Montero escribió: hi What is info of onevnet show -x 0 ? Cheers 2011/11/25 Carlos Fernández Iglesiascigles...@cesga.es: I am trying to get the lease also with the oneadmin account, yes. This are the lines in oned.log: Fri Nov 25 09:45:19 2011 [ReM][D]: TemplateInfo method invoked Fri Nov 25 09:45:19 2011 [ReM][D]: TemplateInstantiate method invoked Fri Nov 25 09:45:19 2011 [ONE][E]: Could not get virtual network for VM. Fri Nov 25 09:45:19 2011 [ReM][E]: [TemplateInstantiate] Error allocating a new virtual machine. Could not get virtual network for VM. Thank you. El jue 24 nov 2011 21:02:51 CET, Ruben S. Montero escribió: Are you trying yo get the lease also with the oneadmin account? Any relevant message in oned.log? 2011/11/24 Carlos Fernández Iglesiascigles...@cesga.es: Hello, I have a fresh install with a network configured: ID : 0 USER : oneadmin GROUP : oneadmin PUBLIC : Yes USED LEASES: 0 VIRTUAL NETWORK TEMPLATE BRIDGE=virbrCLOUD LEASES=[ IP=84.21.173.192, MAC=02:fe:54:15:ad:C0 ] LEASES=[ IP=84.21.173.194, MAC=02:fe:54:15:ad:C2 ] NAME=red1 TYPE=FIXED one template that uses it, but onetemplate instantiate gives allways the same error with oneadmin: [TemplateInstantiate] Error allocating a new virtual machine. Could not get virtual network for VM. Does anyone know what i'm doing wrong? Thanks. Machine template: TEMPLATE 0 INFORMATION ID : 0 NAME : Opennebula pruebas migracion USER : oneadmin GROUP : oneadmin REGISTER TIME : 11/24 15:27:05 PUBLIC : Yes TEMPLATE CONTENTS CONTEXT=[ FILES=/var/lib/oneadmin/init.sh, GATEWAY=84.21.173.254, HOSTNAME=$NAME, IP_PRIVATE=192.168.195.1, IP_PUBLIC=84.21.173.194, NODE_CORES=1, ROOT_PASSWD=pass, TARGET=hdd, USER_GID=1000, USER_ID=1000, USER_NAME=user, USER_PASSWD=user ] CPU=1 DISK=[ DRIVER=qcow2, IMAGE_ID=3 ] DISK=[ READONLY=no, SIZE=1024, TARGET=hdc, TYPE=swap ] GRAPHICS=[ KEYMAP=es, LISTEN=0.0.0.0, TYPE=vnc ] MEMORY=1024 NAME=Opennebula pruebas migracion NIC=[ IP=84.21.173.194, MODEL=virtio, NETWORK_ID=0 ] RANK=- RUNNING_VMS REQUIREMENTS=HYPERVISOR=\kvm\TM_MAD=\tm_ssh\ TEMPLATE_ID=0 VCPU=1 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Problem in network from fresh install opennebula 3
Hello, I have a fresh install with a network configured: ID : 0 USER : oneadmin GROUP : oneadmin PUBLIC : Yes USED LEASES: 0 VIRTUAL NETWORK TEMPLATE BRIDGE=virbrCLOUD LEASES=[ IP=84.21.173.192, MAC=02:fe:54:15:ad:C0 ] LEASES=[ IP=84.21.173.194, MAC=02:fe:54:15:ad:C2 ] NAME=red1 TYPE=FIXED one template that uses it, but onetemplate instantiate gives allways the same error with oneadmin: [TemplateInstantiate] Error allocating a new virtual machine. Could not get virtual network for VM. Does anyone know what i'm doing wrong? Thanks. Machine template: TEMPLATE 0 INFORMATION ID : 0 NAME : Opennebula pruebas migracion USER : oneadmin GROUP : oneadmin REGISTER TIME : 11/24 15:27:05 PUBLIC : Yes TEMPLATE CONTENTS CONTEXT=[ FILES=/var/lib/oneadmin/init.sh, GATEWAY=84.21.173.254, HOSTNAME=$NAME, IP_PRIVATE=192.168.195.1, IP_PUBLIC=84.21.173.194, NODE_CORES=1, ROOT_PASSWD=pass, TARGET=hdd, USER_GID=1000, USER_ID=1000, USER_NAME=user, USER_PASSWD=user ] CPU=1 DISK=[ DRIVER=qcow2, IMAGE_ID=3 ] DISK=[ READONLY=no, SIZE=1024, TARGET=hdc, TYPE=swap ] GRAPHICS=[ KEYMAP=es, LISTEN=0.0.0.0, TYPE=vnc ] MEMORY=1024 NAME=Opennebula pruebas migracion NIC=[ IP=84.21.173.194, MODEL=virtio, NETWORK_ID=0 ] RANK=- RUNNING_VMS REQUIREMENTS=HYPERVISOR=\kvm\ TM_MAD=\tm_ssh\ TEMPLATE_ID=0 VCPU=1 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Image repository 3.0
Hello, I would like to know if threre's a way to declare two different directories to be part of the same image repository. We need to migrate all the images to the new repository but it means to stop all the machines and copy them. This would take too much time and we can't afford it, so the answer would be to move one image at a time, so we would need to have two different directories active in the repository. This two directories are nfs. Thank you. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Time when a VM is enqueued scheduler.
El 25/05/11 10:54, Carlos Martín Sánchez escribió: Hi, The VM/STIME element stores the time when the VM is created. Cheers, Carlos. -- Carlos Martín, MSc Project Major Contributor OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org mailto:cmar...@opennebula.org 2011/5/24 Carlos Fernández Iglesias cigles...@cesga.es mailto:cigles...@cesga.es Hello, Does someone know if opennebula stores the time when a VM is enqueued in the scheduler?, not the time when it's executed in the host. Thanks. ___ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org Your help is appreciated. Cheers. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Time when a VM is enqueued scheduler.
Hello, Does someone know if opennebula stores the time when a VM is enqueued in the scheduler?, not the time when it's executed in the host. Thanks. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Keep all the data from host_pool
Hello, I've noticed that when a host is deleted from opennebula it's information is also deleted from the database. This also applies to images, networks and users. For accounting purposes it will be great to have none of the database information erased as you may need that info in some scenario, and it may not be there. Is there some way to prevent this from happening? Thanks. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] HVM xen VM with qcow2
Hello, I'm trying to launch an hvm virtual machine on opennebula with xen under the qcow2 format, but it's not working. The same image works with kvm just fine, but i think my template for xen is wrong. Does someone have a master template for xen hvm and qcow2? Thank you. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Rstime set to 0
Hello, We are having this problem with several vms in our opennebula installation. The 'stime' and 'etime' in the 'vm_pool' table are correct, but 'rstime' in the 'history' table is set to 0 in some vms in what appears to be a random pattern. Does this make any sense to anybody? Thanks! ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] RAW attribute in template
Hello, I'm struggling to add the kvm -net nic,model=virtio in the RAW attribute of the opennebula virtual machine template. This is one of the many ways I've tried and failed: RAW = [ type = kvm, data = devicesinterface type=\network\source network=\default\/target dev=\tap\/model type=\virtio\/driver name\vhost\ txmod=\iothread\//interface/devices ] I can't find the solution In the documentation, ¿does someone know how to do it? Thanks. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org