Re: [one-users] VM Templates
Can you check libvirt logs of host. Generally the below message comes when there is address already in use(vnc port). error: monitor socket did not show up.: Connection refused If change the vncport and try. On Thu, Nov 18, 2010 at 2:15 PM, Ruben Diez rd...@cesga.es wrote: Try to comment the GRAPHICS stuff Do it works for this case?? Regards Luca Lorenzini escribió: I've some problems to create the exact vm template for any distribution different from Ubuntu. I want to try OpenSuse for my vm's images but or i get status failed [1] o if I delete the KERNEL variable in the template I get No bootable device. the image isnt corrupted, infact i can use it using kvm from console (kvm -hda /public/images/osuse.qcow2 -m 1024). Some suggestions? PS: It's possible to add in the website some tested and working templates? [1] ~~~ vm.log ~ Wed Nov 17 17:29:15 2010 [VMM][I]: Generating deployment file: /var/lib/one/26/deployment.0 Wed Nov 17 17:29:47 2010 [VMM][I]: Command execution fail: /tmp/one/vmm/kvm/deploy /var/lib/one//26/images/deployment.0 Wed Nov 17 17:29:47 2010 [VMM][I]: STDERR follows. Wed Nov 17 17:29:47 2010 [VMM][I]: error: Failed to create domain from /var/lib/one//26/images/deployment.0 Wed Nov 17 17:29:47 2010 [VMM][I]: error: monitor socket did not show up.: Connection refused Wed Nov 17 17:29:47 2010 [VMM][I]: ExitCode: 255 Wed Nov 17 17:29:47 2010 [VMM][E]: Error deploying virtual machine Wed Nov 17 17:29:48 2010 [DiM][I]: New VM state is FAILED ~~~ vm template ~ NAME = osuse test MEMORY =1024 CPU=1 OS = [ BOOT=hd, KERNEL=/vmlinuz, # i made a link on / pointing at /boot/kernel-file INITRD=/initrd, #i made a link on / pointing at /boot/initrd-image-file ROOT=sda2 #mount execution on the vm states /dev/sda2 on / type ext4 ] DISK = [ SOURCE = /public/images/osuse.qcow2, TARGET = sda, CLONE = no, SAVE = no, DRIVER = qcow2 ] INPUT = [ type = tablet, bus = usb ] GRAPHICS = [TYPE = vnc, LISTEN = localhost] FEATURES=[ acpi=no ] ~~~ generated deployment ~ domain type='kvm' nameone-26/name memory524288/memory os typehvm/type kernel/vmlinuz/kernel initrd/initrd/initrd cmdlineroot=/dev/sda2 /cmdline boot dev='hd'/ /os devices emulator/usr/bin/kvm/emulator disk type='file' device='disk' source file='/var/lib/one//26/images/disk.0'/ target dev='sda'/ /disk graphics type='vnc' listen='localhost' port='5926' / input type='tablet' bus='usb'/ /devices /domain ___ 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 -- Thanks and Regards, Upendra.M ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Match-making scheduler question
Hi, I'm writing a survey on Clouds for research purposes. I have some questions related to the match-making scheduler that OpenNebula uses: 1. it's not clear for me if the placement policies can be configured per VM type or per VM instance, could you clarify this? 2. are the placement policies configurable per cloud client or for the whole cloud platform? 3. is it possible to configure the policies in such a way as to distribute a client's VMs across the physical hosts in such a way as to reduce the probability of platform failure as a result of hardware failure? Is this do-able without modifying the source code of OpenNebula? Thanks very much, Adrian Muresan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Match-making scheduler question
Hi I'm writing a survey on Clouds for research purposes. I have some questions related to the match-making scheduler that OpenNebula uses: 1. it's not clear for me if the placement policies can be configured per VM type or per VM instance, could you clarify this? The Requirements and rank expressions are given in the VM description file (template), so they can be configured per VM instance. However when using a cloud interface, the user can not specify these attributes and so are defined by the cloud administrator per VM type. 2. are the placement policies configurable per cloud client or for the whole cloud platform? Both scenarios can be implemented. 3. is it possible to configure the policies in such a way as to distribute a client's VMs across the physical hosts in such a way as to reduce the probability of platform failure as a result of hardware failure? Is this do-able without modifying the source code of OpenNebula? Yes Cheers Thanks very much, Adrian Muresan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Ignacio M. Llorente, Full Professor (Catedratico): http://dsa-research.org/llorente DSA Research Group: web http://dsa-research.org and blog http://blog.dsa-research.org OpenNebula Open Source Toolkit for Cloud Computing: http://www.OpenNebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Virtual Machine Static IP Address
Hy, Is there any method of assigning a fixed/static IP to a virtual machine? I have tried anything, even creating a virtual network with only one IP as lease like below and assign this network to the virtual machine in the vm template. NAME = VM2_net TYPE = FIXED BRIDGE = virbr0 LEASES = [IP=192.168.122.23] Nomather what i try, the virtual machine will always get a random IP located in the subnet of the virbr0 bridge. Although using onevm show, the IP i have requested is reported as assigned, inside the virtual machine things are different. Can there be issues regarding the host/guest OS? I am running CentOS as host and currently experimenting with Ubuntu JeOs and Desktop editions as guest systems.The network configuration inside the hosts states that the IP is assigned by DHCP. P.S. And just of curiosity(i am new to bridging/networking) how difficult it is to perform some bridging or connection in order to be able to ping the virtual machine from any opennebula node or client, not just from the current host of the virtual machine? Thank you, Daniel ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Virtual Machine Static IP Address
Hi, I'm new to this so I might be wrong, but I'm going to try to give a few answers below... hopefully someone will correct me if needed. El 18/11/10 17:27, daniel.moldo...@cs.utcluj.ro escribió: Hy, Is there any method of assigning a fixed/static IP to a virtual machine? I have tried anything, even creating a virtual network with only one IP as lease like below and assign this network to the virtual machine in the vm template. NAME = VM2_net TYPE = FIXED BRIDGE = virbr0 LEASES = [IP=192.168.122.23] I guess you have tried including the ip in the NIC section of the VM template? And had a look to http://opennebula.org/documentation:rel2.0:vgg NIC = [ network = name_of_the_virtual_network, #Optional, XEN, KVM ip = ip_address,#Optional, XEN, KVM bridge = name_of_bridge_to_bind_if, #Optional, XEN, KVM target = device_name_to_map_if, #Optional, KVM mac = HW_address,#Optional, XEN, KVM script = path_to_script_to_bring_up_if] #Optional, KVM You might need to use the contextualization feature as well: http://opennebula.org/documentation:rel2.0:cong Nomather what i try, the virtual machine will always get a random IP located in the subnet of the virbr0 bridge. Although using onevm show, the IP i have requested is reported as assigned, inside the virtual machine things are different. Can there be issues regarding the host/guest OS? I am running CentOS as host and currently experimenting with Ubuntu JeOs and Desktop editions as guest systems.The network configuration inside the hosts states that the IP is assigned by DHCP. Another way may be to configure your guests directly with the fixed IP address you want, but this is not so elegant as letting opennebula do it for you, of course. P.S. And just of curiosity(i am new to bridging/networking) how difficult it is to perform some bridging or connection in order to be able to ping the virtual machine from any opennebula node or client, not just from the current host of the virtual machine? Not too difficult but it can get tricky the first time. You may need to look on http://wiki.libvirt.org/page/Networking if you're using kvm, to check that libvirt is correctly setup for that. Good luck, Hector Thank you, Daniel ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Hector ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Source RPM package
Hello, for what distribution do you want the source package? regards, Jaime On Thu, Nov 18, 2010 at 1:03 PM, Pham Kim Long lon...@fpt.net wrote: Hi Is there a source RPM package available for ONE 2.0? I looked at http://dev.opennebula.org/projects/packages/files and found only 2.0 beta source. Thanks OpenNebula team for the great work. Long ___ 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] Source RPM package
Hi Jaime, It's for CentOS 5.5. Thanks Long From: j.me...@gmail.com [mailto:j.me...@gmail.com] On Behalf Of Jaime Melis Sent: Friday, November 19, 2010 12:38 AM To: Phạm Kim Long Cc: users@lists.opennebula.org Subject: Re: [one-users] Source RPM package Hello, for what distribution do you want the source package? regards, Jaime On Thu, Nov 18, 2010 at 1:03 PM, Pham Kim Long lon...@fpt.netmailto:lon...@fpt.net wrote: Hi Is there a source RPM package available for ONE 2.0? I looked at http://dev.opennebula.org/projects/packages/files and found only 2.0 beta source. Thanks OpenNebula team for the great work. Long ___ Users mailing list Users@lists.opennebula.orgmailto: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] VM Templates
Hi Luca, DRIVER attribute is not included in the last release of OpenNebula 2.0 It is in the one-2.0 branch. You can download it form the fir repo, the fix will be distributed in the next maintenance release (at the end of this month) Cheers Ruben On Thu, Nov 18, 2010 at 6:05 PM, Luca Lorenzini lorenzini.l...@gmail.comwrote: @Upendra Moturi: the setting of the vnc port is based on the VMID and it's unique. Also i havent any other applications or vms using vnc. I think i found the problem: I'm using qcow2 image format to save disk space and I noticed that the DRIVER attribute is discarded in deployment file creation and i'm not able to use qcow2 format for my images. Without this i cant use images created with backing_file either. I put the driver name='qemu' type='qcow2' / by hand in the deployment file and deploy it manually and the image boot. To do this i left my not-booting-vm running so the link to the image wasnt deleted, i change few things in the deployment.0 file (the name, the vnc port, and i've add the driver tag) and used virsh create deployment.0 command. The vm works fine and use the image with backing_file option. I hope this feature will be fixed asap! Here my template, deployment file generated by opennebula, the correct one, and the virsh dumpxml output. Luca VM TEMPLATE FILE ~ NAME = ubuntu.qcow2 MEMORY = 512 CPU=0.5 OS = [ BOOT=hd, ROOT=hda ] DISK = [ TYPE= disk, DRIVER=qcow2, SOURCE = /public/luca/ubuntu10.qcow2, TARGET = hda, CLONE = no, SAVE = no ] INPUT = [ type = tablet, bus = usb ] GRAPHICS = [TYPE = vnc, LISTEN = localhost, port=5901] NIC= [ NETWORK = private ] FEATURES=[ acpi=no ] DEPLOYMENT FILE ~ domain type='kvm' nameone-61/name memory524288/memory os typehvm/type boot dev='hd'/ /os devices emulator/usr/bin/kvm/emulator disk type='file' device='disk' source file='/var/lib/one//61/images/disk.0'/ target dev='hda'/ /disk interface type='bridge' source bridge='virbr0'/ mac address='02:00:c0:a8:7a:09'/ /interface graphics type='vnc' listen='localhost' port='5961'/ input type='tablet' bus='usb'/ /devices features acpi/ /features /domain WORKING DEPLOYMENT FILE ~~ domain type='kvm' nameone-test/name #Changed the name memory524288/memory os typehvm/type boot dev='hd'/ /os devices emulator/usr/bin/kvm/emulator disk type='file' device='disk' driver name='qemu' type='qcow2'/ #Added this line source file='/var/lib/one//61/images/disk.0'/ target dev='hda'/ /disk interface type='bridge' source bridge='virbr0'/ mac address='02:00:c0:a8:7a:09'/ /interface graphics type='vnc' listen='localhost' port='5901'/ #Changed vnc port input type='tablet' bus='usb'/ /devices features acpi/ /features /domain VIRSH DUMPXML # ~~~ ** domain type='kvm' id='70' nameone-test/name uuid98cbf252-5f3c-005a-1b29-a66fad8882d9/uuid memory524288/memory currentMemory524288/currentMemory vcpu1/vcpu os type arch='i686' machine='pc-0.12'hvm/type boot dev='hd'/ /os features acpi/ /features clock offset='utc'/ on_poweroffdestroy/on_poweroff on_rebootrestart/on_reboot on_crashdestroy/on_crash devices emulator/usr/bin/kvm/emulator disk type='file' device='disk' driver name='qemu' type='qcow2'/ source file='/var/lib/one//61/images/disk.0'/ target dev='hda' bus='ide'/ /disk interface type='bridge' mac address='02:00:c0:a8:7a:09'/ source bridge='virbr0'/ target dev='vnet2'/ /interface input type='tablet' bus='usb'/ input type='mouse' bus='ps2'/ graphics type='vnc' port='5901' autoport='no' listen='localhost'/ video model type='cirrus' vram='9216' heads='1'/ /video /devices seclabel type='dynamic' model='apparmor' labellibvirt-98cbf252-5f3c-005a-1b29-a66fad8882d9/label imagelabellibvirt-98cbf252-5f3c-005a-1b29-a66fad8882d9/imagelabel /seclabel /domain On Thu, Nov 18, 2010 at 9:56 AM, Upendra Moturi upendr...@hexagrid.comwrote: Can you check libvirt logs of host. Generally the below message comes when there is address already in use(vnc port). error: monitor socket did not show up.: Connection refused If change the vncport and try. On Thu, Nov 18, 2010 at 2:15 PM, Ruben Diez rd...@cesga.es wrote: Try to comment the GRAPHICS stuff Do it works for this case?? Regards Luca Lorenzini escribió: I've some problems to create the exact vm template for any
Re: [one-users] Source RPM package
Extracted from Opennebula express installer( the CentOs install file) http://dev.opennebula.org/attachments/download/222/opennebula-2.0-1.x86_64.rpm http://dev.opennebula.org/attachments/download/223/opennebula-2.0-1.i386.rpm În Joi, Noiembrie 18, 2010 9:31 pm, Pham Kim Long a scris: Hi Jaime, It's for CentOS 5.5. Thanks Long From: j.me...@gmail.com [mailto:j.me...@gmail.com] On Behalf Of Jaime Melis Sent: Friday, November 19, 2010 12:38 AM To: Phạm Kim Long Cc: users@lists.opennebula.org Subject: Re: [one-users] Source RPM package Hello, for what distribution do you want the source package? regards, Jaime On Thu, Nov 18, 2010 at 1:03 PM, Pham Kim Long lon...@fpt.netmailto:lon...@fpt.net wrote: Hi Is there a source RPM package available for ONE 2.0? I looked at http://dev.opennebula.org/projects/packages/files and found only 2.0 beta source. Thanks OpenNebula team for the great work. Long ___ Users mailing list Users@lists.opennebula.orgmailto: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
Re: [one-users] Source RPM package
Actually I was asking for the source package, as I need to fix some issues I found with the VMware driver. Thanks Long -Original Message- From: daniel.moldo...@cs.utcluj.ro [mailto:daniel.moldo...@cs.utcluj.ro] Sent: Friday, November 19, 2010 4:11 AM To: Phạm Kim Long Cc: users@lists.opennebula.org Subject: Re: [one-users] Source RPM package Extracted from Opennebula express installer( the CentOs install file) http://dev.opennebula.org/attachments/download/222/opennebula-2.0-1.x86_64.rpm http://dev.opennebula.org/attachments/download/223/opennebula-2.0-1.i386.rpm În Joi, Noiembrie 18, 2010 9:31 pm, Pham Kim Long a scris: Hi Jaime, It's for CentOS 5.5. Thanks Long From: j.me...@gmail.com [mailto:j.me...@gmail.com] On Behalf Of Jaime Melis Sent: Friday, November 19, 2010 12:38 AM To: Phạm Kim Long Cc: users@lists.opennebula.org Subject: Re: [one-users] Source RPM package Hello, for what distribution do you want the source package? regards, Jaime On Thu, Nov 18, 2010 at 1:03 PM, Pham Kim Long lon...@fpt.netmailto:lon...@fpt.net wrote: Hi Is there a source RPM package available for ONE 2.0? I looked at http://dev.opennebula.org/projects/packages/files and found only 2.0 beta source. Thanks OpenNebula team for the great work. Long ___ Users mailing list Users@lists.opennebula.orgmailto: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] [Fwd: Re: Opennebula development question]
Thanks to all for the answers. And i have a question for opennebula developement. Why in /one/tm_commands/ssh/tm_context.sh, the temporary directory is TMP_DIR=$ONE_LOCATION/var/$DST_HASH ? Should not be /tmp/$DST_HASH? Because usually oneadmin does not have access to create folders in var in the case opennebula is installed system wide as in my case(as a result from express install). Regards, Daniel Hi, I'm new to this so I might be wrong, but I'm going to try to give a few answers below... hopefully someone will correct me if needed. El 18/11/10 17:27, daniel.moldo...@cs.utcluj.ro escribió: Hy, Is there any method of assigning a fixed/static IP to a virtual machine? I have tried anything, even creating a virtual network with only one IP as lease like below and assign this network to the virtual machine in the vm template. NAME = VM2_net TYPE = FIXED BRIDGE = virbr0 LEASES = [IP=192.168.122.23] I guess you have tried including the ip in the NIC section of the VM template? And had a look to http://opennebula.org/documentation:rel2.0:vgg NIC = [ network = name_of_the_virtual_network, #Optional, XEN, KVM ip = ip_address,#Optional, XEN, KVM bridge = name_of_bridge_to_bind_if, #Optional, XEN, KVM target = device_name_to_map_if, #Optional, KVM mac = HW_address,#Optional, XEN, KVM script = path_to_script_to_bring_up_if] #Optional, KVM You might need to use the contextualization feature as well: http://opennebula.org/documentation:rel2.0:cong Nomather what i try, the virtual machine will always get a random IP located in the subnet of the virbr0 bridge. Although using onevm show, the IP i have requested is reported as assigned, inside the virtual machine things are different. Can there be issues regarding the host/guest OS? I am running CentOS as host and currently experimenting with Ubuntu JeOs and Desktop editions as guest systems.The network configuration inside the hosts states that the IP is assigned by DHCP. Another way may be to configure your guests directly with the fixed IP address you want, but this is not so elegant as letting opennebula do it for you, of course. P.S. And just of curiosity(i am new to bridging/networking) how difficult it is to perform some bridging or connection in order to be able to ping the virtual machine from any opennebula node or client, not just from the current host of the virtual machine? Not too difficult but it can get tricky the first time. You may need to look on http://wiki.libvirt.org/page/Networking if you're using kvm, to check that libvirt is correctly setup for that. Good luck, Hector Thank you, Daniel ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Hector ___ 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