[one-users] Input/output error when creating VM

Carlos Jiménez cjimenez at eneotecnologia.com
Tue Aug 28 02:05:35 PDT 2012


Hi Ruben,

Thank you very much. It solved the problem.


Cheers,

Carlos.

On 08/26/2012 09:32 PM, Ruben S. Montero wrote:
> Hi
>
> The problem may be the LISTEN="1.1.1.1" try using LISTEN="0.0.0.0" to
> listen on all IP addresses of the local host...
>
> Cheers
>
> Ruben
>
> On Fri, Aug 24, 2012 at 2:45 PM, Carlos Jiménez
> <cjimenez at eneotecnologia.com> wrote:
>> Hi again,
>>
>> I've tried it again with a new instance and now the error is absolutely
>> different. I've tried with two new VMs using that CD image in order to
>> reproduce the error but it is different now.
>>
>> Fri Aug 24 14:32:20 2012 [DiM][I]: New VM state is ACTIVE.
>> Fri Aug 24 14:32:20 2012 [LCM][I]: New VM state is PROLOG.
>> Fri Aug 24 14:32:21 2012 [VM][I]: Virtual Machine has no context
>> Fri Aug 24 14:32:53 2012 [TM][I]: clone: Cloning
>> ../../104/6ef70fa8c7147496f3c8667b690be06a in
>> Host2:/var/lib/one//datastores/0/26/disk.0
>> Fri Aug 24 14:32:53 2012 [TM][I]: ExitCode: 0
>> Fri Aug 24 14:32:53 2012 [LCM][I]: New VM state is BOOT
>> Fri Aug 24 14:32:53 2012 [VMM][I]: Generating deployment file:
>> /var/lib/one/26/deployment.1
>> Fri Aug 24 14:32:54 2012 [VMM][I]: ExitCode: 0
>> Fri Aug 24 14:32:54 2012 [VMM][I]: Successfully execute network driver
>> operation: pre.
>> Fri Aug 24 14:32:55 2012 [VMM][I]: Command execution fail: cat << EOT |
>> /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/26/deployment.1 Host2
>> 26 Host2
>> Fri Aug 24 14:32:55 2012 [VMM][I]: error: Failed to create domain from
>> /var/lib/one//datastores/0/26/deployment.1
>> Fri Aug 24 14:32:55 2012 [VMM][I]: error: internal error process exited
>> while connecting to monitor: inet_listen_opts: bind(ipv4,1.1.1.1,5926):
>> Cannot assign requested address
>> Fri Aug 24 14:32:55 2012 [VMM][I]: inet_listen_opts: FAILED
>> Fri Aug 24 14:32:55 2012 [VMM][I]:
>> Fri Aug 24 14:32:55 2012 [VMM][E]: Could not create domain from
>> /var/lib/one//datastores/0/26/deployment.1
>> Fri Aug 24 14:32:55 2012 [VMM][I]: ExitCode: 255
>> Fri Aug 24 14:32:55 2012 [VMM][I]: Failed to execute virtualization driver
>> operation: deploy.
>> Fri Aug 24 14:32:55 2012 [VMM][E]: Error deploying virtual machine: Could
>> not create domain from /var/lib/one//datastores/0/26/deployment.1
>> Fri Aug 24 14:32:55 2012 [DiM][I]: New VM state is FAILED
>>
>> I've checked that there is nothing listening in those ports (5926, 5927...).
>>
>> Any clue?
>>
>>
>> Thanks.
>>
>> Carlos.
>>
>>
>> On 08/24/2012 02:25 PM, Carlos Jiménez wrote:
>>
>> Hello everybody,
>>
>> I have 1 computer as a frontend running OpenNebula 3.6 and CentOS 6.2, two
>> hosts running qemu-kvm and CentOS 6.2 and 1 nfs server.
>> I've created an image of type CDRom, the corresponding template and the VM
>> with just one disk (which corresponds to the CD image). After some minutes
>> (aprox. 15) in PROLOG status, the VM creation fails and the log outputs an
>> input/output error when trying to copy cd image.
>>
>> Fri Aug 24 13:27:50 2012 [DiM][I]: New VM state is ACTIVE.
>> Fri Aug 24 13:27:51 2012 [LCM][I]: New VM state is PROLOG.
>> Fri Aug 24 13:27:51 2012 [VM][I]: Virtual Machine has no context
>> Fri Aug 24 13:43:28 2012 [TM][I]: Command execution fail:
>> /var/lib/one/remotes/tm/shared/clone
>> frontend:/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a
>> Host2:/var/lib/one//datastores/0/25/disk.0 25 104
>> Fri Aug 24 13:43:28 2012 [TM][I]: clone: Cloning
>> ../../104/6ef70fa8c7147496f3c8667b690be06a in
>> Host2:/var/lib/one//datastores/0/25/disk.0
>> Fri Aug 24 13:43:28 2012 [TM][E]: clone: Command "cd
>> /var/lib/one/datastores/0/25; cp -r
>> ../../104/6ef70fa8c7147496f3c8667b690be06a
>> /var/lib/one/datastores/0/25/disk.0" failed: cp: writing
>> `/var/lib/one/datastores/0/25/disk.0': Input/output error
>> Fri Aug 24 13:43:28 2012 [TM][E]: Error copying
>> frontend:/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a to
>> Host2:/var/lib/one//datastores/0/25/disk.0
>> Fri Aug 24 13:43:28 2012 [TM][I]: ExitCode: 1
>> Fri Aug 24 13:43:28 2012 [TM][E]: Error executing image transfer script:
>> Error copying
>> frontend:/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a to
>> Host2:/var/lib/one//datastores/0/25/disk.0
>> Fri Aug 24 13:43:29 2012 [DiM][I]: New VM state is FAILED
>>
>> I've remounted nfs shared directory on each nfs client (frontend and hosts)
>> because it showed an NFS Stale File handle error and now it appears one
>> input/outpu. Does anybody know how to solve this error?
>> At the end you'll find information about the image, template and vm.
>>
>>
>> Thanks in advance,
>>
>> Carlos.
>>
>>
>>
>> [oneadmin at frontend ~]$ oneimage show 12
>> IMAGE 12 INFORMATION
>> ID             : 12
>> NAME           : cd
>> USER           : oneadmin
>> GROUP          : oneadmin
>> DATASTORE      : fasysds
>> TYPE           : CDROM
>> REGISTER TIME  : 08/24 13:14:32
>> PERSISTENT     : No
>> SOURCE         :
>> /var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a
>> PATH           : /var/tmp/one/thin-body20120824-1619-1ij0kw0-0
>> SIZE           : 322M
>> STATE          : used
>> RUNNING_VMS    : 1
>> PERMISSIONS
>> OWNER          : um-
>> GROUP          : ---
>> OTHER          : ---
>> IMAGE TEMPLATE
>> DESCRIPTION="Only cd"
>> DEV_PREFIX="vd"
>> DRIVER="raw"
>>
>>
>>
>> [oneadmin at frontend ~]$ onetemplate show 13
>> TEMPLATE 13 INFORMATION
>> ID             : 13
>> NAME           : template_cd
>> USER           : oneadmin
>> GROUP          : oneadmin
>> REGISTER TIME  : 08/24 13:21:51
>> PERMISSIONS
>> OWNER          : um-
>> GROUP          : ---
>> OTHER          : ---
>> TEMPLATE CONTENTS
>> CPU="0.5"
>> DISK=[
>>    DRIVER="raw",
>>    IMAGE="cd",
>>    IMAGE_UNAME="oneadmin",
>>    TARGET="vda" ]
>> GRAPHICS=[
>>    LISTEN="1.1.1.1",
>>    TYPE="vnc" ]
>> MEMORY="512"
>> NAME="template_cd"
>> NIC=[
>>    NETWORK="vnet2",
>>    NETWORK_UNAME="oneadmin" ]
>> OS=[
>>    ARCH="x86_64",
>>    BOOT="cdrom" ]
>> RAW=[
>>    TYPE="kvm" ]
>> TEMPLATE_ID="13"
>>
>>
>>
>> [oneadmin at frontend ~]$ onevm show 25
>> VIRTUAL MACHINE 25 INFORMATION
>> ID                  : 25
>> NAME                : vm_cd
>> USER                : oneadmin
>> GROUP               : oneadmin
>> STATE               : FAILED
>> LCM_STATE           : LCM_INIT
>> RESCHED             : No
>> START TIME          : 08/24 13:22:14
>> END TIME            : 08/24 13:43:29
>> DEPLOY ID           : -
>>
>> VIRTUAL MACHINE MONITORING
>> NET_RX              : 0K
>> USED CPU            : 0
>> NET_TX              : 0K
>> USED MEMORY         : 0K
>>
>> PERMISSIONS
>> OWNER               : um-
>> GROUP               : ---
>> OTHER               : ---
>>
>> VIRTUAL MACHINE TEMPLATE
>> CPU="0.5"
>> DISK=[
>>    CLONE="YES",
>>    CLUSTER_ID="100",
>>    DATASTORE="fasysds",
>>    DATASTORE_ID="104",
>>    DEV_PREFIX="vd",
>>    DISK_ID="0",
>>    DRIVER="raw",
>>    IMAGE="cd",
>>    IMAGE_ID="12",
>>    IMAGE_UNAME="oneadmin",
>>    READONLY="YES",
>>    SAVE="NO",
>>    SOURCE="/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a",
>>    TARGET="vda",
>>    TM_MAD="shared",
>>    TYPE="CDROM" ]
>> ERROR=[
>>    MESSAGE="Error executing image transfer script: Error copying
>> frontend:/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a to
>> Host2:/var/lib/one//datastores/0/25/disk.0",
>>    TIMESTAMP="Fri Aug 24 13:43:28 2012" ]
>> GRAPHICS=[
>>    LISTEN="1.1.1.1",
>>    PORT="5925",
>>    TYPE="vnc" ]
>> MEMORY="512"
>> NAME="vm_cd"
>> NIC=[
>>    BRIDGE="virbr0",
>>    CLUSTER_ID="100",
>>    IP="192.168.180.153",
>>    MAC="02:00:c0:a8:b4:99",
>>    NETWORK="vnet2",
>>    NETWORK_ID="5",
>>    NETWORK_UNAME="oneadmin",
>>    VLAN="NO" ]
>> OS=[
>>    ARCH="x86_64",
>>    BOOT="cdrom" ]
>> RAW=[
>>    TYPE="kvm" ]
>> REQUIREMENTS="CLUSTER_ID = 100"
>> TEMPLATE_ID="13"
>> VMID="25"
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
>




More information about the Users mailing list