Re: [one-users] KVM virtual machine with two OS images problem
Hi Jaime, Yes, this time you're totally right :) I have two TYPE=OS images, both of them have been created from vmdk files, and I want to create a new KVM virtual machine from these two images. I'm using OpenNebula 3.4 and it doesn't allow to configure two TYPE=OS images in the same template, so I created a VM template with one OS type image and one DATABLOCK type image, but I had some problems with the virtual machine boot (kernel panic- not syncing: Attempted to kill init!)... So I've added another image (TYPE=CDROM with the boot.iso of the operating system) to the template to be able to boot the virtual machine and rescue the old installed system. This works for me but the partition names are different than the original virtual machine. I've tried to specify them in the TARGET attributes but it doesn't work: ... DISK=[ BUS=virtio, DRIVER=raw, IMAGE=wms01_raw, IMAGE_UNAME=oneadmin, TARGET=sda ] DISK=[ BUS=virtio, DRIVER=raw, IMAGE=wms01_1_raw, IMAGE_UNAME=oneadmin, TARGET=sdb ] DISK=[ BUS=virtio, IMAGE=SL6.3_iso, IMAGE_UNAME=oneadmin, TARGET=sdc ] Cheers, Virginia. El 11/12/2012, a las 11:01, Jaime Melis escribió: Hello Virginia, We've been discussing about your problem, and apparently it has got nothing to do with what I replied, sorry about that! So, the problem is -if I understood it correctly this time- that you have two TYPE = OS images, and earlier versions of OpenNebula don't allow that. What OpenNebula version are you using? You could try changing one of the images to TYPE = DATABLOCK, with oneimage chtype. cheers, Jaime On Mon, Dec 10, 2012 at 9:58 PM, Jaime Melis jme...@opennebula.org wrote: Hello Virginia, I've never migrated a VMware VM to KVM in the way you have just described, but I was wondering, have you tried converting the images to another format (RAW for instance) with qemu-img convert? Maybe it will detect that it's the same disk and merge both vmdks into a single file... cheers, Jaime On Mon, Dec 10, 2012 at 5:33 PM, Virginia Martín-Rubio Pascual virginia.martinru...@rediris.es wrote: Hi, I've migrated successfully some VMware virtual machines to KVM using my OpenNebula front-end, following these steps: - Adding the .vmdk file to the OpenNebula datastore as an OS image . - Creating the VM template following the .vmx file information. - Instantiating the template. But I've found a problem with a virtual machine with two .vmdk files (two different partitions configured with LVM) because OpenNebula only lets me add one OS image in the same virtual machine template... Does anyone have already this problem? Any idea about a possible solution? Thanks in Advance, Best regards, Virginia Martín-Rubio. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] KVM virtual machine with two OS images problem
Hi, I've migrated successfully some VMware virtual machines to KVM using my OpenNebula front-end, following these steps: - Adding the .vmdk file to the OpenNebula datastore as an OS image . - Creating the VM template following the .vmx file information. - Instantiating the template. But I've found a problem with a virtual machine with two .vmdk files (two different partitions configured with LVM) because OpenNebula only lets me add one OS image in the same virtual machine template... Does anyone have already this problem? Any idea about a possible solution? Thanks in Advance, Best regards, Virginia Martín-Rubio. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Failed to create VM domain
Hi, OpenNebula is running in CentOS 6.3. The /var/log/libvirt/qemu/one-9.log file doesn't exist in the host. When I create a virtual machine manually in the host (with virt-manager) a /var/log/libvirtt/qemu/newVM.log file is created, but when the virtual machine is created with OpenNebula, this file doesn't appear... The libvirtd.conf contains these lines: log_level = 1 log_filters=1:libvirt 1:util 1:qemu log_outputs=1:file:/var/log/libvirt/libvirtd.log Cheers, Virginia. El 07/09/2012, a las 15:25, Valentin Bud escribió: Hi, What OS are you running OpenNebula on and what does /var/log/libvirt/qemu/one-9.log outputs? Good Will, v On Fri, Sep 7, 2012 at 4:06 PM, Virginia Martín-Rubio Pascual virginia.martinru...@rediris.es wrote: Hi, When I try to instantiate a VM template, I obtain this error: ... Fri Sep 7 14:48:27 2012 [DiM][I]: New VM state is ACTIVE. Fri Sep 7 14:48:27 2012 [LCM][I]: New VM state is PROLOG. Fri Sep 7 14:48:27 2012 [VM][I]: Virtual Machine has no context Fri Sep 7 14:48:32 2012 [TM][I]: clone: Cloning ../../103/87a4fbf0be08256920937769ee8c8b9e in democrito.admin.rediris.es:/var/lib/one/datastores/0/9/disk.0 Fri Sep 7 14:48:32 2012 [TM][I]: ExitCode: 0 Fri Sep 7 14:51:24 2012 [TM][I]: clone: Cloning ../../104/274b59f9fd0b1c200cead63ad81c5035 in democrito.admin.rediris.es:/var/lib/one/datastores/0/9/disk.1 Fri Sep 7 14:51:24 2012 [TM][I]: ExitCode: 0 Fri Sep 7 14:51:24 2012 [LCM][I]: New VM state is BOOT Fri Sep 7 14:51:24 2012 [VMM][I]: Generating deployment file: /var/lib/one/9/deployment.8 Fri Sep 7 14:51:25 2012 [VMM][I]: ExitCode: 0 Fri Sep 7 14:51:25 2012 [VMM][I]: Successfully execute network driver operation: pre. Fri Sep 7 14:51:25 2012 [VMM][I]: Command execution fail: cat EOT | /var/lib/one/remotes/vmm/kvm/deploy /var/lib/one/datastores/0/9/deployment.8 democrito.admin.rediris.es 9 democrito.admin.rediris.es Fri Sep 7 14:51:25 2012 [VMM][I]: error: Failed to create domain from /var/lib/one/datastores/0/9/deployment.8 Fri Sep 7 14:51:25 2012 [VMM][I]: error: An error occurred, but the cause is unknown Fri Sep 7 14:51:25 2012 [VMM][E]: Could not create domain from /var/lib/one/datastores/0/9/deployment.8 Fri Sep 7 14:51:25 2012 [VMM][I]: ExitCode: 255 Fri Sep 7 14:51:25 2012 [VMM][I]: Failed to execute virtualization driver operation: deploy. Fri Sep 7 14:51:25 2012 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one/datastores/0/9/deployment.8 Fri Sep 7 14:51:25 2012 [DiM][I]: New VM state is FAILED I've tried to create the domain manually in the host but I've obtained the same error: $ virsh -d 0 create /var/lib/one/datastores/0/9/deployment.8 create: file(optdata): /var/lib/one/datastores/0/9/deployment.8 error: Failed to create domain from /var/lib/one/datastores/0/9/deployment.8 error: An error occurred, but the cause is unknown I've looked the libvirtd.log file in the host, but I haven't found any relevant information about the problem (I've changed the log_level to debug)... Does anyone have any idea about what could be the reason of this error? Thanks in advance. Cheers, Virginia. ___ 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] Failed to create VM domain
Hi, When I try to instantiate a VM template, I obtain this error: ... Fri Sep 7 14:48:27 2012 [DiM][I]: New VM state is ACTIVE. Fri Sep 7 14:48:27 2012 [LCM][I]: New VM state is PROLOG. Fri Sep 7 14:48:27 2012 [VM][I]: Virtual Machine has no context Fri Sep 7 14:48:32 2012 [TM][I]: clone: Cloning ../../103/87a4fbf0be08256920937769ee8c8b9e in democrito.admin.rediris.es:/var/lib/one/datastores/0/9/disk.0 Fri Sep 7 14:48:32 2012 [TM][I]: ExitCode: 0 Fri Sep 7 14:51:24 2012 [TM][I]: clone: Cloning ../../104/274b59f9fd0b1c200cead63ad81c5035 in democrito.admin.rediris.es:/var/lib/one/datastores/0/9/disk.1 Fri Sep 7 14:51:24 2012 [TM][I]: ExitCode: 0 Fri Sep 7 14:51:24 2012 [LCM][I]: New VM state is BOOT Fri Sep 7 14:51:24 2012 [VMM][I]: Generating deployment file: /var/lib/one/9/deployment.8 Fri Sep 7 14:51:25 2012 [VMM][I]: ExitCode: 0 Fri Sep 7 14:51:25 2012 [VMM][I]: Successfully execute network driver operation: pre. Fri Sep 7 14:51:25 2012 [VMM][I]: Command execution fail: cat EOT | /var/lib/one/remotes/vmm/kvm/deploy /var/lib/one/datastores/0/9/deployment.8 democrito.admin.rediris.es 9 democrito.admin.rediris.es Fri Sep 7 14:51:25 2012 [VMM][I]: error: Failed to create domain from /var/lib/one/datastores/0/9/deployment.8 Fri Sep 7 14:51:25 2012 [VMM][I]: error: An error occurred, but the cause is unknown Fri Sep 7 14:51:25 2012 [VMM][E]: Could not create domain from /var/lib/one/datastores/0/9/deployment.8 Fri Sep 7 14:51:25 2012 [VMM][I]: ExitCode: 255 Fri Sep 7 14:51:25 2012 [VMM][I]: Failed to execute virtualization driver operation: deploy. Fri Sep 7 14:51:25 2012 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one/datastores/0/9/deployment.8 Fri Sep 7 14:51:25 2012 [DiM][I]: New VM state is FAILED I've tried to create the domain manually in the host but I've obtained the same error: $ virsh -d 0 create /var/lib/one/datastores/0/9/deployment.8 create: file(optdata): /var/lib/one/datastores/0/9/deployment.8 error: Failed to create domain from /var/lib/one/datastores/0/9/deployment.8 error: An error occurred, but the cause is unknown I've looked the libvirtd.log file in the host, but I haven't found any relevant information about the problem (I've changed the log_level to debug)... Does anyone have any idea about what could be the reason of this error? Thanks in advance. Cheers, Virginia.___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org