Re: [one-users] Bug in 4.6,2?
Hi, What can I do to fix this in a database that is already at 4.6.2? I do not really want to go back to my 4.4 backup... Greetings Wilma 2014-07-03 11:09 GMT+02:00 Carlos Martín Sánchez cmar...@opennebula.org: Hi, On Thu, Jul 3, 2014 at 2:04 AM, Grzegorz Kocur gko...@ux.pl wrote: Hi, Last night I upgraded opennebula 4.4 to newest stable version - 4.6.2. The upgrade went smoothly, but after starting oned I met strange problem: user with given id could list template with the same id (with no rights to this template). For example: user with id 80 running onetemplate list gets template with id 80, user with id 81 gets template id 81 etc. I had to revert to opennebula 4.4, this is critical for us. It looks like a bug. Can anyone of you confirm this? Yes, it's a bug that was reported recently. We just updated the documentation [1] with the workaround: There is a known issue (#3006) in the database upgrade scripts shipped with OpenNebula 4.6.2. To fix it, download the lastest code from the repo: sudo wget https://raw.githubusercontent.com/OpenNebula/one/one-4.6/src/onedb/shared/4.4.1_to_4.5.80.rb -O /usr/lib/one/ruby/onedb/shared/4.4.1_to_4.5.80.rb Regards [1] http://docs.opennebula.org/4.6/release_notes/release_notes/upgrade_44.html -- Carlos Martín, MSc Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org | @OpenNebula http://twitter.com/opennebula cmar...@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] Bug in 4.6,2?
You can force the core to rewrite the ownership and permissions, they are OK inside the body. To do this, create an empty file called empty and as oneadmin you have to execute: $ onetemplate list | awk '{print $1}' | grep -v ID | xargs -L1 -ixxx onetemplate update -av xxx empty Make a backup of the database before executing it. We have tested the command but having a failsafe is always good. On Tue, Jul 8, 2014 at 10:42 AM, Wilma Hermann wilma.herm...@gmail.com wrote: Hi, What can I do to fix this in a database that is already at 4.6.2? I do not really want to go back to my 4.4 backup... Greetings Wilma 2014-07-03 11:09 GMT+02:00 Carlos Martín Sánchez cmar...@opennebula.org: Hi, On Thu, Jul 3, 2014 at 2:04 AM, Grzegorz Kocur gko...@ux.pl wrote: Hi, Last night I upgraded opennebula 4.4 to newest stable version - 4.6.2. The upgrade went smoothly, but after starting oned I met strange problem: user with given id could list template with the same id (with no rights to this template). For example: user with id 80 running onetemplate list gets template with id 80, user with id 81 gets template id 81 etc. I had to revert to opennebula 4.4, this is critical for us. It looks like a bug. Can anyone of you confirm this? Yes, it's a bug that was reported recently. We just updated the documentation [1] with the workaround: There is a known issue (#3006) in the database upgrade scripts shipped with OpenNebula 4.6.2. To fix it, download the lastest code from the repo: sudo wget https://raw.githubusercontent.com/OpenNebula/one/one-4.6/src/onedb/shared/4.4.1_to_4.5.80.rb -O /usr/lib/one/ruby/onedb/shared/4.4.1_to_4.5.80.rb Regards [1] http://docs.opennebula.org/4.6/release_notes/release_notes/upgrade_44.html -- Carlos Martín, MSc Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | cmar...@opennebula.org | @OpenNebula ___ 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 -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] VM Failed with Windows OS
Dear Sir, I have been trying to install Windows-7 64bit in OpenNebula. Our target is to create a VM with Windows as OS. Below are the steps that I followed. But not able to runn the VM. SeLinux is Disabled in both servers. [root@front ~]# getenforce-- Frontend Disabled [root@nc1 ~]# getenforce -- Worker Node Disabled [oneadmin@front ~]$ cd /var/lib/libvirt/images/ [oneadmin@front images]$ qemu-img create -f qcow2 -o preallocation=metadata /storage/local/images/winserv1.qcow2 8G Formatting '/var/lib/libvirt/images/win7.qow2', fmt=qcow2 size=8589934592 encryption=off cluster_size=65536 preallocation='metadata' [oneadmin@front images]$ ls -lrth total 5.0G -rw--- 1 oneadmin oneadmin 8.0G Jul 8 18:23 win7.qcow2 [oneadmin@front images]$ exit [root@front ~]# virt-install --prompt What is the name of your virtual machine? myvm7 How much RAM should be allocated (in megabytes)? 1024 What would you like to use as the disk (file path)? /var/lib/libvirt/images/win7.qcow2 How large would you like the disk (/var/lib/libvirt/images/win7.qcow2) to be (in gigabytes)? 8 What is the install CD-ROM/ISO or URL? /home/Windows-7-x86.iso Starting install... Allocating 'win7.qcow2' | 8.0 GB 00:00 Creating domain... |0 B 00:00 (virt-viewer:24972): virt-viewer-DEBUG: Couldn't load configuration: File is empty [oneadmin@front ~]$ oneimage create --name win7-x86_64 --path /var/lib/libvirt/images/win7.qcow2 --driver qcow2 --datastore default ID: 12 [oneadmin@front ~]$ oneimage list ID USER GROUP NAMEDATASTORE SIZE TYPE PER STAT RVMS 3 oneadmin oneadmin Ubuntu-14.04_x8 default 287M OSNo used1 12 oneadmin oneadmin win7-x86_64 default 8G OSNo rdy 0 [oneadmin@front ~]$ onetemplate create --name win7 --cpu 1 --vcpu 1 --memory 512 --arch x86_64 --disk win7-x86_64 --nic private --vnc --ssh ID: 11 [oneadmin@front ~]$ onetemplate list ID USERGROUP NAME REGTIME 2 oneadminoneadminUbuntu-14.04 06/27 02:11:28 11 oneadminoneadminwin7 07/08 18:30:39 [oneadmin@front ~]$ onetemplate instantiate win7 --name myvm8 VM ID: 36 [oneadmin@front ~]$ onevm list ID USER GROUPNAMESTAT UCPUUMEM HOST TIME 25 oneadmin oneadmin myvm2 runn0512M nc1 11d 16h14 36 oneadmin oneadmin myvm8 fail0 0K 0d 00h00 ERROR from log file. [oneadmin@front ~]$ tail -f /var/log/one/36.log Tue Jul 8 18:31:48 2014 [DiM][I]: New VM state is ACTIVE. Tue Jul 8 18:31:48 2014 [LCM][I]: New VM state is PROLOG. Tue Jul 8 18:35:30 2014 [LCM][I]: New VM state is BOOT Tue Jul 8 18:35:30 2014 [VMM][I]: Generating deployment file: /var/lib/one/vms/36/deployment.0 Tue Jul 8 18:35:31 2014 [VMM][I]: ExitCode: 0 Tue Jul 8 18:35:31 2014 [VMM][I]: Successfully execute network driver operation: pre. Tue Jul 8 18:35:32 2014 [VMM][I]: Command execution fail: cat EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one/datastores/0/36/deployment.0' 'nc1' 36 nc1 Tue Jul 8 18:35:32 2014 [VMM][I]: error: Failed to create domain from /var/lib/one/datastores/0/36/deployment.0 Tue Jul 8 18:35:32 2014 [VMM][I]: error: internal error process exited while connecting to monitor: qemu-kvm: -drive file=/var/lib/one/datastores/0/36/disk.0,if=none,id=drive-ide0-0-0,format=qcow2: could not open disk image /var/lib/one/datastores/0/36/disk.0: Invalid argument Tue Jul 8 18:35:32 2014 [VMM][I]: Tue Jul 8 18:35:32 2014 [VMM][E]: Could not create domain from /var/lib/one/datastores/0/36/deployment.0 Tue Jul 8 18:35:32 2014 [VMM][I]: ExitCode: 255 Tue Jul 8 18:35:32 2014 [VMM][I]: Failed to execute virtualization driver operation: deploy. Tue Jul 8 18:35:32 2014 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one/datastores/0/36/deployment.0 Tue Jul 8 18:35:33 2014 [DiM][I]: New VM state is FAILED -- Thanks Regards, Sudeep Narayan Banerjee ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VM Failed with Windows OS
The errors that you are pointing out, don't seem to have any direct connection to the fact that you are trying to install a windows VM, there is nothing windows-specific about them. Looks like OpenNebula failed to clone the blank windows image to the system datastore due to some permissions issue. Steve Timm On Tue, 8 Jul 2014, Sudeep Narayan Banerjee wrote: Dear Sir, I have been trying to install Windows-7 64bit in OpenNebula. Our target is to create a VM with Windows as OS. Below are the steps that I followed. But not able to runn the VM. SeLinux is Disabled in both servers. [root@front ~]# getenforce -- Frontend Disabled [root@nc1 ~]# getenforce -- Worker Node Disabled [oneadmin@front ~]$ cd /var/lib/libvirt/images/ [oneadmin@front images]$ qemu-img create -f qcow2 -o preallocation=metadata /storage/local/images/winserv1.qcow2 8G Formatting '/var/lib/libvirt/images/win7.qow2', fmt=qcow2 size=8589934592 encryption=off cluster_size=65536 preallocation='metadata' [oneadmin@front images]$ ls -lrth total 5.0G -rw--- 1 oneadmin oneadmin 8.0G Jul 8 18:23 win7.qcow2 [oneadmin@front images]$ exit [root@front ~]# virt-install --prompt What is the name of your virtual machine? myvm7 How much RAM should be allocated (in megabytes)? 1024 What would you like to use as the disk (file path)? /var/lib/libvirt/images/win7.qcow2 How large would you like the disk (/var/lib/libvirt/images/win7.qcow2) to be (in gigabytes)? 8 What is the install CD-ROM/ISO or URL? /home/Windows-7-x86.iso Starting install... Allocating'win7.qcow2' ?? ? | 8.0 GB 00:00 Creatingdomain... ?? ? | 0 B 00:00 (virt-viewer:24972): virt-viewer-DEBUG: Couldn't load configuration: File is empty [oneadmin@front ~]$ oneimage create --name win7-x86_64 --path /var/lib/libvirt/images/win7.qcow2 --driver qcow2 --datastore default ID: 12 [oneadmin@front ~]$ oneimage list ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS 3 oneadmin oneadmin Ubuntu-14.04_x8 default 287M OS No used 1 12 oneadmin oneadmin win7-x86_64 default 8G OS No rdy 0 [oneadmin@front ~]$ onetemplate create --name win7 --cpu 1 --vcpu 1 --memory 512 --arch x86_64 --disk win7-x86_64 --nic private --vnc --ssh ID: 11 [oneadmin@front ~]$ onetemplate list ID USER GROUP NAME REGTIME 2 oneadmin oneadmin Ubuntu-14.04 06/27 02:11:28 11 oneadmin oneadmin win7 07/08 18:30:39 [oneadmin@front ~]$ onetemplate instantiate win7 --name myvm8 VM ID: 36 [oneadmin@front ~]$ onevm list ID USER GROUP NAME STAT UCPU UMEM HOST TIME 25 oneadmin oneadmin myvm2 runn 0 512M nc1 11d 16h14 36 oneadmin oneadmin myvm8 fail 0 0K 0d 00h00 ERROR from log file. [oneadmin@front ~]$ tail -f /var/log/one/36.log Tue Jul 8 18:31:48 2014 [DiM][I]: New VM state is ACTIVE. Tue Jul 8 18:31:48 2014 [LCM][I]: New VM state is PROLOG. Tue Jul 8 18:35:30 2014 [LCM][I]: New VM state is BOOT Tue Jul 8 18:35:30 2014 [VMM][I]: Generating deployment file: /var/lib/one/vms/36/deployment.0 Tue Jul 8 18:35:31 2014 [VMM][I]: ExitCode: 0 Tue Jul 8 18:35:31 2014 [VMM][I]: Successfully execute network driver operation: pre. Tue Jul 8 18:35:32 2014 [VMM][I]: Command execution fail: cat EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one/datastores/0/36/deployment.0' 'nc1' 36 nc1 Tue Jul 8 18:35:32 2014 [VMM][I]: error: Failed to create domain from /var/lib/one/datastores/0/36/deployment.0 Tue Jul 8 18:35:32 2014 [VMM][I]: error: internal error process exited while connecting to monitor: qemu-kvm: -drivefile=/var/lib/one/datastores/0/36/disk.0,if=none,id=drive-ide0-0-0,format=q cow2: could not open disk image /var/lib/one/datastores/0/36/disk.0: Invalid argument Tue Jul 8 18:35:32 2014 [VMM][I]: Tue Jul 8 18:35:32 2014 [VMM][E]: Could not create domain from /var/lib/one/datastores/0/36/deployment.0 Tue Jul 8 18:35:32 2014 [VMM][I]: ExitCode: 255 Tue Jul 8 18:35:32 2014 [VMM][I]: Failed to execute virtualization driver operation: deploy. Tue Jul 8 18:35:32 2014 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one/datastores/0/36/deployment.0 Tue Jul 8 18:35:33 2014 [DiM][I]: New VM state is FAILED -- Thanks Regards,Sudeep Narayan Banerjee -- Steven C. Timm, Ph.D (630) 840-8525 t...@fnal.gov http://home.fnal.gov/~timm/ Fermilab Scientific Computing Division, Scientific Computing Services Quad. Grid and Cloud Services Dept., Associate Dept. Head for Cloud
Re: [one-users] ONE repos for RHEL7
Hi! CentOS 7 released yesterday. Is there tested one-context rpm for this version? 17.06.2014 14:48, Javier Fontan пишет: Thank you Juergen. I still don't have a RHEL/CentOS 7 installation to try them but i'll do as soon as I have one. We plan to support RHEL/CentOS 7 in 4.8 but for the current release and testing this comes very handy. Cheers On Mon, Jun 16, 2014 at 9:38 PM, InterNetX - Juergen Gotteswinter j...@internetx.com wrote: Hello Folks, i rebuilded / modified the 4.6.x ONE SRC.RPM for CentOS/RHEL 6 to match RHEL7. http://download.obs.j0ke.net//home:/jg:/playground:/opennebula/ Currently its 100% untestested, so far i can just say that it had been built without any issues (and the buildbot is really really picky...). If anyone needs something to play around: http://download.obs.j0ke.net//home:/jg:/playground:/opennebula/ Feel free to try it, but please dont use it in your production setup until some experience / feedback is available. If anyone decides to try the builds, i whould love to hear if it worked or not. if not, i highly appriciate any feedback what was broken. Cheers, Juergen Alvaro Simon Garcia alvaro.simongar...@ugent.be hat am 12. Juni 2014 um 13:37 geschrieben: Hi Ruben Hi Alvaro, Support for CentOS7 will be included in the next release, we'll update when the first builds are ready. Thanks a lot for the info! Cheers Alvaro Cheers Ruben On Wed, Jun 11, 2014 at 4:17 PM, Alvaro Simon Garcia alvaro.simongar...@ugent.be wrote: Hi RHEL7 is now out but it's available a ONE repo for this version? I have tested the current ONE CentOS/RHEL repo with RHEL7+EPEL but some packages are not available from EPEL7 repository: Error: Package: opennebula-server-4.6.1-1.x86_64 (opennebula) Requires: log4cpp Error: Package: opennebula-server-4.6.1-1.x86_64 (opennebula) Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit) Error: Package: opennebula-ruby-4.6.1-1.x86_64 (opennebula) Requires: rubygem-thin Error: Package: opennebula-ruby-4.6.1-1.x86_64 (opennebula) Requires: rubygem-uuidtools Error: Package: opennebula-server-4.6.1-1.x86_64 (opennebula) Requires: liblog4cpp.so.4()(64bit) Error: Package: opennebula-ruby-4.6.1-1.x86_64 (opennebula) Requires: ruby-mysql Error: Package: opennebula-node-kvm-4.6.1-1.x86_64 (opennebula) Requires: vconfig Error: Package: opennebula-ruby-4.6.1-1.x86_64 (opennebula) Requires: rubygem-sequel Error: Package: opennebula-server-4.6.1-1.x86_64 (opennebula) Requires: libmysqlclient.so.16()(64bit) Error: Package: opennebula-ruby-4.6.1-1.x86_64 (opennebula) Requires: rubygem-sinatra Error: Package: opennebula-ruby-4.6.1-1.x86_64 (opennebula) Requires: rubygem-rack Error: Package: opennebula-ruby-4.6.1-1.x86_64 (opennebula) Requires: rubygem-sqlite3-ruby anyone has tried it? Thanks in advance! Alvaro ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- -- Ruben S. Montero, PhD Project co-Lead and Chief Architect OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula ___ 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 -- С уважением, Терлецкий Максим ООО ТБ +7(499)917-0115 http://www.emu.ru ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] ONE repos for RHEL7
We are right now working on making OpenNebula work on CentOS 7 and we are also going to make some changes to the context packages. I expect to open today the discussion thread on how to do it. We hope we can have them ready when 4.8 is released and maybe a bit before that with some help. On Tue, Jul 8, 2014 at 5:07 PM, Maxim Terletskiy terlets...@emu.ru wrote: Hi! CentOS 7 released yesterday. Is there tested one-context rpm for this version? 17.06.2014 14:48, Javier Fontan пишет: Thank you Juergen. I still don't have a RHEL/CentOS 7 installation to try them but i'll do as soon as I have one. We plan to support RHEL/CentOS 7 in 4.8 but for the current release and testing this comes very handy. Cheers On Mon, Jun 16, 2014 at 9:38 PM, InterNetX - Juergen Gotteswinter j...@internetx.com wrote: Hello Folks, i rebuilded / modified the 4.6.x ONE SRC.RPM for CentOS/RHEL 6 to match RHEL7. http://download.obs.j0ke.net//home:/jg:/playground:/opennebula/ Currently its 100% untestested, so far i can just say that it had been built without any issues (and the buildbot is really really picky...). If anyone needs something to play around: http://download.obs.j0ke.net//home:/jg:/playground:/opennebula/ Feel free to try it, but please dont use it in your production setup until some experience / feedback is available. If anyone decides to try the builds, i whould love to hear if it worked or not. if not, i highly appriciate any feedback what was broken. Cheers, Juergen Alvaro Simon Garcia alvaro.simongar...@ugent.be hat am 12. Juni 2014 um 13:37 geschrieben: Hi Ruben Hi Alvaro, Support for CentOS7 will be included in the next release, we'll update when the first builds are ready. Thanks a lot for the info! Cheers Alvaro Cheers Ruben On Wed, Jun 11, 2014 at 4:17 PM, Alvaro Simon Garcia alvaro.simongar...@ugent.be wrote: Hi RHEL7 is now out but it's available a ONE repo for this version? I have tested the current ONE CentOS/RHEL repo with RHEL7+EPEL but some packages are not available from EPEL7 repository: Error: Package: opennebula-server-4.6.1-1.x86_64 (opennebula) Requires: log4cpp Error: Package: opennebula-server-4.6.1-1.x86_64 (opennebula) Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit) Error: Package: opennebula-ruby-4.6.1-1.x86_64 (opennebula) Requires: rubygem-thin Error: Package: opennebula-ruby-4.6.1-1.x86_64 (opennebula) Requires: rubygem-uuidtools Error: Package: opennebula-server-4.6.1-1.x86_64 (opennebula) Requires: liblog4cpp.so.4()(64bit) Error: Package: opennebula-ruby-4.6.1-1.x86_64 (opennebula) Requires: ruby-mysql Error: Package: opennebula-node-kvm-4.6.1-1.x86_64 (opennebula) Requires: vconfig Error: Package: opennebula-ruby-4.6.1-1.x86_64 (opennebula) Requires: rubygem-sequel Error: Package: opennebula-server-4.6.1-1.x86_64 (opennebula) Requires: libmysqlclient.so.16()(64bit) Error: Package: opennebula-ruby-4.6.1-1.x86_64 (opennebula) Requires: rubygem-sinatra Error: Package: opennebula-ruby-4.6.1-1.x86_64 (opennebula) Requires: rubygem-rack Error: Package: opennebula-ruby-4.6.1-1.x86_64 (opennebula) Requires: rubygem-sqlite3-ruby anyone has tried it? Thanks in advance! Alvaro ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- -- Ruben S. Montero, PhD Project co-Lead and Chief Architect OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula ___ 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 -- С уважением, Терлецкий Максим ООО ТБ +7(499)917-0115 http://www.emu.ru ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VM Failed with Windows OS
I believe that the image is not a qcow2 image but raw. You can check the format with: $ qemu-img info /var/lib/libvirt/images/win7.qcow2 On Tue, Jul 8, 2014 at 4:16 PM, Sudeep Narayan Banerjee snbaner...@iitgn.ac.in wrote: Dear Sir, I have been trying to install Windows-7 64bit in OpenNebula. Our target is to create a VM with Windows as OS. Below are the steps that I followed. But not able to runn the VM. SeLinux is Disabled in both servers. [root@front ~]# getenforce-- Frontend Disabled [root@nc1 ~]# getenforce -- Worker Node Disabled [oneadmin@front ~]$ cd /var/lib/libvirt/images/ [oneadmin@front images]$ qemu-img create -f qcow2 -o preallocation=metadata /storage/local/images/winserv1.qcow2 8G Formatting '/var/lib/libvirt/images/win7.qow2', fmt=qcow2 size=8589934592 encryption=off cluster_size=65536 preallocation='metadata' [oneadmin@front images]$ ls -lrth total 5.0G -rw--- 1 oneadmin oneadmin 8.0G Jul 8 18:23 win7.qcow2 [oneadmin@front images]$ exit [root@front ~]# virt-install --prompt What is the name of your virtual machine? myvm7 How much RAM should be allocated (in megabytes)? 1024 What would you like to use as the disk (file path)? /var/lib/libvirt/images/win7.qcow2 How large would you like the disk (/var/lib/libvirt/images/win7.qcow2) to be (in gigabytes)? 8 What is the install CD-ROM/ISO or URL? /home/Windows-7-x86.iso Starting install... Allocating 'win7.qcow2' | 8.0 GB 00:00 Creating domain... |0 B 00:00 (virt-viewer:24972): virt-viewer-DEBUG: Couldn't load configuration: File is empty [oneadmin@front ~]$ oneimage create --name win7-x86_64 --path /var/lib/libvirt/images/win7.qcow2 --driver qcow2 --datastore default ID: 12 [oneadmin@front ~]$ oneimage list ID USER GROUP NAMEDATASTORE SIZE TYPE PER STAT RVMS 3 oneadmin oneadmin Ubuntu-14.04_x8 default 287M OSNo used 1 12 oneadmin oneadmin win7-x86_64 default 8G OSNo rdy 0 [oneadmin@front ~]$ onetemplate create --name win7 --cpu 1 --vcpu 1 --memory 512 --arch x86_64 --disk win7-x86_64 --nic private --vnc --ssh ID: 11 [oneadmin@front ~]$ onetemplate list ID USERGROUP NAME REGTIME 2 oneadminoneadminUbuntu-14.04 06/27 02:11:28 11 oneadminoneadminwin7 07/08 18:30:39 [oneadmin@front ~]$ onetemplate instantiate win7 --name myvm8 VM ID: 36 [oneadmin@front ~]$ onevm list ID USER GROUPNAMESTAT UCPUUMEM HOST TIME 25 oneadmin oneadmin myvm2 runn0512M nc1 11d 16h14 36 oneadmin oneadmin myvm8 fail0 0K 0d 00h00 ERROR from log file. [oneadmin@front ~]$ tail -f /var/log/one/36.log Tue Jul 8 18:31:48 2014 [DiM][I]: New VM state is ACTIVE. Tue Jul 8 18:31:48 2014 [LCM][I]: New VM state is PROLOG. Tue Jul 8 18:35:30 2014 [LCM][I]: New VM state is BOOT Tue Jul 8 18:35:30 2014 [VMM][I]: Generating deployment file: /var/lib/one/vms/36/deployment.0 Tue Jul 8 18:35:31 2014 [VMM][I]: ExitCode: 0 Tue Jul 8 18:35:31 2014 [VMM][I]: Successfully execute network driver operation: pre. Tue Jul 8 18:35:32 2014 [VMM][I]: Command execution fail: cat EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one/datastores/0/36/deployment.0' 'nc1' 36 nc1 Tue Jul 8 18:35:32 2014 [VMM][I]: error: Failed to create domain from /var/lib/one/datastores/0/36/deployment.0 Tue Jul 8 18:35:32 2014 [VMM][I]: error: internal error process exited while connecting to monitor: qemu-kvm: -drive file=/var/lib/one/datastores/0/36/disk.0,if=none,id=drive-ide0-0-0,format=qcow2: could not open disk image /var/lib/one/datastores/0/36/disk.0: Invalid argument Tue Jul 8 18:35:32 2014 [VMM][I]: Tue Jul 8 18:35:32 2014 [VMM][E]: Could not create domain from /var/lib/one/datastores/0/36/deployment.0 Tue Jul 8 18:35:32 2014 [VMM][I]: ExitCode: 255 Tue Jul 8 18:35:32 2014 [VMM][I]: Failed to execute virtualization driver operation: deploy. Tue Jul 8 18:35:32 2014 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one/datastores/0/36/deployment.0 Tue Jul 8 18:35:33 2014 [DiM][I]: New VM state is FAILED -- Thanks Regards, Sudeep Narayan Banerjee ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VM Failed with Windows OS
Dear Javier, You are true. It is raw indeed. But I made it like qcow2! Below is the command I executed for qcow2. [oneadmin@front images]$ qemu-img create -f qcow2 -o preallocation=metadata /storage/local/images/ winserv1.qcow2 8G Formatting '/var/lib/libvirt/images/win7.qow2', fmt=qcow2 size=8589934592 encryption=off cluster_size=65536 preallocation='metadata' [oneadmin@front images]$ qemu-img info /var/lib/libvirt/images/win7.qcow2 image: /var/lib/libvirt/images/win7.qcow2 file format: raw virtual size: 8.0G (8589934592 bytes) disk size: 4.9G So, how to fix it?!? I have been trying to make a VM in windows for past 10days but still not able to make it! :-( Regards, Sudeep On Tue, Jul 8, 2014 at 8:45 PM, Javier Fontan jfon...@opennebula.org wrote: I believe that the image is not a qcow2 image but raw. You can check the format with: $ qemu-img info /var/lib/libvirt/images/win7.qcow2 On Tue, Jul 8, 2014 at 4:16 PM, Sudeep Narayan Banerjee snbaner...@iitgn.ac.in wrote: Dear Sir, I have been trying to install Windows-7 64bit in OpenNebula. Our target is to create a VM with Windows as OS. Below are the steps that I followed. But not able to runn the VM. SeLinux is Disabled in both servers. [root@front ~]# getenforce-- Frontend Disabled [root@nc1 ~]# getenforce -- Worker Node Disabled [oneadmin@front ~]$ cd /var/lib/libvirt/images/ [oneadmin@front images]$ qemu-img create -f qcow2 -o preallocation=metadata /storage/local/images/winserv1.qcow2 8G Formatting '/var/lib/libvirt/images/win7.qow2', fmt=qcow2 size=8589934592 encryption=off cluster_size=65536 preallocation='metadata' [oneadmin@front images]$ ls -lrth total 5.0G -rw--- 1 oneadmin oneadmin 8.0G Jul 8 18:23 win7.qcow2 [oneadmin@front images]$ exit [root@front ~]# virt-install --prompt What is the name of your virtual machine? myvm7 How much RAM should be allocated (in megabytes)? 1024 What would you like to use as the disk (file path)? /var/lib/libvirt/images/win7.qcow2 How large would you like the disk (/var/lib/libvirt/images/win7.qcow2) to be (in gigabytes)? 8 What is the install CD-ROM/ISO or URL? /home/Windows-7-x86.iso Starting install... Allocating 'win7.qcow2' | 8.0 GB 00:00 Creating domain... |0 B 00:00 (virt-viewer:24972): virt-viewer-DEBUG: Couldn't load configuration: File is empty [oneadmin@front ~]$ oneimage create --name win7-x86_64 --path /var/lib/libvirt/images/win7.qcow2 --driver qcow2 --datastore default ID: 12 [oneadmin@front ~]$ oneimage list ID USER GROUP NAMEDATASTORE SIZE TYPE PER STAT RVMS 3 oneadmin oneadmin Ubuntu-14.04_x8 default 287M OSNo used 1 12 oneadmin oneadmin win7-x86_64 default 8G OSNo rdy 0 [oneadmin@front ~]$ onetemplate create --name win7 --cpu 1 --vcpu 1 --memory 512 --arch x86_64 --disk win7-x86_64 --nic private --vnc --ssh ID: 11 [oneadmin@front ~]$ onetemplate list ID USERGROUP NAME REGTIME 2 oneadminoneadminUbuntu-14.04 06/27 02:11:28 11 oneadminoneadminwin7 07/08 18:30:39 [oneadmin@front ~]$ onetemplate instantiate win7 --name myvm8 VM ID: 36 [oneadmin@front ~]$ onevm list ID USER GROUPNAMESTAT UCPUUMEM HOST TIME 25 oneadmin oneadmin myvm2 runn0512M nc1 11d 16h14 36 oneadmin oneadmin myvm8 fail0 0K 0d 00h00 ERROR from log file. [oneadmin@front ~]$ tail -f /var/log/one/36.log Tue Jul 8 18:31:48 2014 [DiM][I]: New VM state is ACTIVE. Tue Jul 8 18:31:48 2014 [LCM][I]: New VM state is PROLOG. Tue Jul 8 18:35:30 2014 [LCM][I]: New VM state is BOOT Tue Jul 8 18:35:30 2014 [VMM][I]: Generating deployment file: /var/lib/one/vms/36/deployment.0 Tue Jul 8 18:35:31 2014 [VMM][I]: ExitCode: 0 Tue Jul 8 18:35:31 2014 [VMM][I]: Successfully execute network driver operation: pre. Tue Jul 8 18:35:32 2014 [VMM][I]: Command execution fail: cat EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one/datastores/0/36/deployment.0' 'nc1' 36 nc1 Tue Jul 8 18:35:32 2014 [VMM][I]: error: Failed to create domain from /var/lib/one/datastores/0/36/deployment.0 Tue Jul 8 18:35:32 2014 [VMM][I]: error: internal error process exited while connecting to monitor: qemu-kvm: -drive file=/var/lib/one/datastores/0/36/disk.0,if=none,id=drive-ide0-0-0,format=qcow2: could not open disk image /var/lib/one/datastores/0/36/disk.0: Invalid argument Tue Jul 8 18:35:32 2014 [VMM][I]: Tue Jul 8 18:35:32 2014 [VMM][E]: Could not create domain from /var/lib/one/datastores/0/36/deployment.0 Tue Jul 8 18:35:32 2014 [VMM][I]: ExitCode: 255 Tue Jul 8 18:35:32 2014 [VMM][I]: Failed to execute virtualization driver operation: deploy. Tue Jul 8
Re: [one-users] VM Failed with Windows OS
Hello Sudeep, Note that virt-install doesn't care that your image is already created, it overwrites it and changes the format to raw. Take a look over this article [1], on how to pass the format of the image to virt-install. Or just qemu-img convert your raw image to qcow2. [1]: http://opennodecloud.com/documentation/howtos/kvm-guests-virt-install-examples/ Best, Valentin On Tue, Jul 8, 2014 at 6:24 PM, Sudeep Narayan Banerjee snbaner...@iitgn.ac.in wrote: Dear Javier, You are true. It is raw indeed. But I made it like qcow2! Below is the command I executed for qcow2. [oneadmin@front images]$ qemu-img create -f qcow2 -o preallocation=metadata /storage/local/images/ winserv1.qcow2 8G Formatting '/var/lib/libvirt/images/win7.qow2', fmt=qcow2 size=8589934592 encryption=off cluster_size=65536 preallocation='metadata' [oneadmin@front images]$ qemu-img info /var/lib/libvirt/images/win7.qcow2 image: /var/lib/libvirt/images/win7.qcow2 file format: raw virtual size: 8.0G (8589934592 bytes) disk size: 4.9G So, how to fix it?!? I have been trying to make a VM in windows for past 10days but still not able to make it! :-( Regards, Sudeep On Tue, Jul 8, 2014 at 8:45 PM, Javier Fontan jfon...@opennebula.org wrote: I believe that the image is not a qcow2 image but raw. You can check the format with: $ qemu-img info /var/lib/libvirt/images/win7.qcow2 On Tue, Jul 8, 2014 at 4:16 PM, Sudeep Narayan Banerjee snbaner...@iitgn.ac.in wrote: Dear Sir, I have been trying to install Windows-7 64bit in OpenNebula. Our target is to create a VM with Windows as OS. Below are the steps that I followed. But not able to runn the VM. SeLinux is Disabled in both servers. [root@front ~]# getenforce-- Frontend Disabled [root@nc1 ~]# getenforce -- Worker Node Disabled [oneadmin@front ~]$ cd /var/lib/libvirt/images/ [oneadmin@front images]$ qemu-img create -f qcow2 -o preallocation=metadata /storage/local/images/winserv1.qcow2 8G Formatting '/var/lib/libvirt/images/win7.qow2', fmt=qcow2 size=8589934592 encryption=off cluster_size=65536 preallocation='metadata' [oneadmin@front images]$ ls -lrth total 5.0G -rw--- 1 oneadmin oneadmin 8.0G Jul 8 18:23 win7.qcow2 [oneadmin@front images]$ exit [root@front ~]# virt-install --prompt What is the name of your virtual machine? myvm7 How much RAM should be allocated (in megabytes)? 1024 What would you like to use as the disk (file path)? /var/lib/libvirt/images/win7.qcow2 How large would you like the disk (/var/lib/libvirt/images/win7.qcow2) to be (in gigabytes)? 8 What is the install CD-ROM/ISO or URL? /home/Windows-7-x86.iso Starting install... Allocating 'win7.qcow2' | 8.0 GB 00:00 Creating domain... |0 B 00:00 (virt-viewer:24972): virt-viewer-DEBUG: Couldn't load configuration: File is empty [oneadmin@front ~]$ oneimage create --name win7-x86_64 --path /var/lib/libvirt/images/win7.qcow2 --driver qcow2 --datastore default ID: 12 [oneadmin@front ~]$ oneimage list ID USER GROUP NAMEDATASTORE SIZE TYPE PER STAT RVMS 3 oneadmin oneadmin Ubuntu-14.04_x8 default 287M OSNo used 1 12 oneadmin oneadmin win7-x86_64 default 8G OSNo rdy 0 [oneadmin@front ~]$ onetemplate create --name win7 --cpu 1 --vcpu 1 --memory 512 --arch x86_64 --disk win7-x86_64 --nic private --vnc --ssh ID: 11 [oneadmin@front ~]$ onetemplate list ID USERGROUP NAME REGTIME 2 oneadminoneadminUbuntu-14.04 06/27 02:11:28 11 oneadminoneadminwin7 07/08 18:30:39 [oneadmin@front ~]$ onetemplate instantiate win7 --name myvm8 VM ID: 36 [oneadmin@front ~]$ onevm list ID USER GROUPNAMESTAT UCPUUMEM HOST TIME 25 oneadmin oneadmin myvm2 runn0512M nc1 11d 16h14 36 oneadmin oneadmin myvm8 fail0 0K 0d 00h00 ERROR from log file. [oneadmin@front ~]$ tail -f /var/log/one/36.log Tue Jul 8 18:31:48 2014 [DiM][I]: New VM state is ACTIVE. Tue Jul 8 18:31:48 2014 [LCM][I]: New VM state is PROLOG. Tue Jul 8 18:35:30 2014 [LCM][I]: New VM state is BOOT Tue Jul 8 18:35:30 2014 [VMM][I]: Generating deployment file: /var/lib/one/vms/36/deployment.0 Tue Jul 8 18:35:31 2014 [VMM][I]: ExitCode: 0 Tue Jul 8 18:35:31 2014 [VMM][I]: Successfully execute network driver operation: pre. Tue Jul 8 18:35:32 2014 [VMM][I]: Command execution fail: cat EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one/datastores/0/36/deployment.0' 'nc1' 36 nc1 Tue Jul 8 18:35:32 2014 [VMM][I]: error: Failed to create domain from /var/lib/one/datastores/0/36/deployment.0 Tue Jul 8 18:35:32 2014 [VMM][I]: error: internal error process exited while connecting to monitor:
[one-users] Context packages development
Hi, We have recently moved the context packages to its own repository. There are some issues we want to address and we need help with them. I've opened a thread in the dev mailing list to discuss them. In case you are not subscribed to it you can read the email here: http://lists.opennebula.org/pipermail/dev-opennebula.org/2014-July/000337.html If you could give a hand with the packages or are interested in the development you should read it. Cheers -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org