You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-cn@cloudstack.apache.org by ZS Che <ch...@gmail.com> on 2014/11/03 06:44:15 UTC

建立ubuntu VM失败

hi 请教大家一个问题。
我在建立ubuntu 10.04VM的时候出现了错误。然而,我建立win7的VM就一切正常。
我使用CloudStack 4.2.0,Xenserver 6.0.2,高级网络资源域。
请大家帮帮我。谢谢!

management-server.log是这样说的:

2014-11-03 13:10:59,805 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) 1. The VM i-2-21-VM is in Starting state.
2014-11-03 13:10:59,886 DEBUG [xen.resource.XenServer56FP1Resource]
(DirectAgent-13:null) Created VM 78250db7-f649-417d-d98c-91e8f38e8132 for
i-2-21-VM
2014-11-03 13:10:59,975 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) VBD b9de7fca-6050-0e70-4e84-b22c9113daf7 created for
com.cloud.agent.api.to.DiskTO@40f5012a
2014-11-03 13:11:01,384 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) VBD 6b1e3091-2b92-3a03-6b89-7465c2be0879 created for
com.cloud.agent.api.to.DiskTO@ff398ca
2014-11-03 13:11:01,384 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Creating VIF for i-2-21-VM on nic
[Nic:Guest-10.1.1.202-vlan://128]
2014-11-03 13:11:01,392 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Looking for network named cmfg2Guest
2014-11-03 13:11:01,444 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Found a network called cmfg2Guest on
host=192.168.10.6;  Network=5bf85297-7cc1-ee8e-438a-0ed68e60af6f;
pif=42785767-e961-e92e-c30c-e76e92ab5196
2014-11-03 13:11:01,483 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Found a network called
VLAN-5bf85297-7cc1-ee8e-438a-0ed68e60af6f-128 on host=192.168.10.6;
Network=106a627f-15a0-eb91-26b9-06abfc56e397;
pif=6b876027-8e80-c048-a3ea-2ab543a4c76f
2014-11-03 13:11:01,521 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Created a vif e923754c-86d7-483d-94f3-9acee7491d7d on
0
2014-11-03 13:11:02,185 DEBUG [cloud.api.ApiServlet]
(catalina-exec-20:null) ===START===  192.168.0.22 -- GET
command=queryAsyncJobResult&jobId=78a88c08-7970-47b1-8155-808664738e48&response=json&sessionkey=GVsuVRBe1d3KDv4MD%2F27ACfmeOg%3D&_=1414991534838
2014-11-03 13:11:02,298 DEBUG [cloud.api.ApiServlet]
(catalina-exec-20:null) ===END===  192.168.0.22 -- GET
command=queryAsyncJobResult&jobId=78a88c08-7970-47b1-8155-808664738e48&response=json&sessionkey=GVsuVRBe1d3KDv4MD%2F27ACfmeOg%3D&_=1414991534838
2014-11-03 13:11:02,488 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-282:null) Seq 2-2070740996: Executing request
2014-11-03 13:11:02,927 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-282:null) Seq 2-2070740996: Response Received:
2014-11-03 13:11:02,927 DEBUG [agent.transport.Request]
(DirectAgent-282:null) Seq 2-2070740996: Processing:  { Ans: , MgmtId:
207458817951964, via: 2, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.Answer":{"result":true,"wait":0}}] }
2014-11-03 13:11:03,166 DEBUG
[storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1
is ready to launch secondary storage VM
2014-11-03 13:11:03,246 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
(consoleproxy-1:null) Zone 1 is ready to launch console proxy
2014-11-03 13:11:04,567 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Found 1 routers to update status.
2014-11-03 13:11:04,569 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
2014-11-03 13:11:04,586 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Task failed! Task record:                 uuid:
d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
           nameLabel: Async.VM.start_on
     nameDescription:
   allowedOperations: []
   currentOperations: {}
             created: Mon Nov 03 13:13:30 CST 2014
            finished: Mon Nov 03 13:13:33 CST 2014
              status: failure
          residentOn: com.xensource.xenapi.Host@25cdee55
            progress: 1.0
                type: <none/>
              result:
           errorInfo: [INVALID_SOURCE, Unable to access a required file in
the specified repository:
file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
         otherConfig: {}
           subtaskOf: com.xensource.xenapi.Task@aaf13f6f
            subtasks: []

2014-11-03 13:11:04,590 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Found 1 routers to update status.
2014-11-03 13:11:04,592 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
2014-11-03 13:11:04,596 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Unable to start VM(i-2-21-VM) on
host(dbffcf40-5a66-406b-bf04-292b9c0757fa) due to Task failed! Task
record:                 uuid: d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
           nameLabel: Async.VM.start_on
     nameDescription:
   allowedOperations: []
   currentOperations: {}
             created: Mon Nov 03 13:13:30 CST 2014
            finished: Mon Nov 03 13:13:33 CST 2014
              status: failure
          residentOn: com.xensource.xenapi.Host@25cdee55
            progress: 1.0
                type: <none/>
              result:
           errorInfo: [INVALID_SOURCE, Unable to access a required file in
the specified repository:
file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
         otherConfig: {}
           subtaskOf: com.xensource.xenapi.Task@aaf13f6f
            subtasks: []

Task failed! Task record:                 uuid:
d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
           nameLabel: Async.VM.start_on
     nameDescription:
   allowedOperations: []
   currentOperations: {}
             created: Mon Nov 03 13:13:30 CST 2014
            finished: Mon Nov 03 13:13:33 CST 2014
              status: failure
          residentOn: com.xensource.xenapi.Host@25cdee55
            progress: 1.0
                type: <none/>
              result:
           errorInfo: [INVALID_SOURCE, Unable to access a required file in
the specified repository:
file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
         otherConfig: {}
           subtaskOf: com.xensource.xenapi.Task@aaf13f6f
            subtasks: []

    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.checkForSuccess(CitrixResourceBase.java:3605)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.startVM(CitrixResourceBase.java:3717)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1640)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
    at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
    at
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
2014-11-03 13:11:04,607 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Catch Exception: class
com.cloud.utils.exception.CloudRuntimeException due to
com.cloud.utils.exception.CloudRuntimeException: Unable to start
VM(i-2-21-VM) on host(dbffcf40-5a66-406b-bf04-292b9c0757fa) due to Task
failed! Task record:                 uuid:
d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
           nameLabel: Async.VM.start_on
     nameDescription:
   allowedOperations: []
   currentOperations: {}
             created: Mon Nov 03 13:13:30 CST 2014
            finished: Mon Nov 03 13:13:33 CST 2014
              status: failure
          residentOn: com.xensource.xenapi.Host@25cdee55
            progress: 1.0
                type: <none/>
              result:
           errorInfo: [INVALID_SOURCE, Unable to access a required file in
the specified repository:
file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
         otherConfig: {}
           subtaskOf: com.xensource.xenapi.Task@aaf13f6f
            subtasks: []

com.cloud.utils.exception.CloudRuntimeException: Unable to start
VM(i-2-21-VM) on host(dbffcf40-5a66-406b-bf04-292b9c0757fa) due to Task
failed! Task record:                 uuid:
d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
           nameLabel: Async.VM.start_on
     nameDescription:
   allowedOperations: []
   currentOperations: {}
             created: Mon Nov 03 13:13:30 CST 2014
            finished: Mon Nov 03 13:13:33 CST 2014
              status: failure
          residentOn: com.xensource.xenapi.Host@25cdee55
            progress: 1.0
                type: <none/>
              result:
           errorInfo: [INVALID_SOURCE, Unable to access a required file in
the specified repository:
file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
         otherConfig: {}
           subtaskOf: com.xensource.xenapi.Task@aaf13f6f
            subtasks: []

    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.startVM(CitrixResourceBase.java:3728)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1640)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
    at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
    at
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
2014-11-03 13:11:04,608 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Unable to start i-2-21-VM due to
com.cloud.utils.exception.CloudRuntimeException: Unable to start
VM(i-2-21-VM) on host(dbffcf40-5a66-406b-bf04-292b9c0757fa) due to Task
failed! Task record:                 uuid:
d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
           nameLabel: Async.VM.start_on
     nameDescription:
   allowedOperations: []
   currentOperations: {}
             created: Mon Nov 03 13:13:30 CST 2014
            finished: Mon Nov 03 13:13:33 CST 2014
              status: failure
          residentOn: com.xensource.xenapi.Host@25cdee55
            progress: 1.0
                type: <none/>
              result:
           errorInfo: [INVALID_SOURCE, Unable to access a required file in
the specified repository:
file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
         otherConfig: {}
           subtaskOf: com.xensource.xenapi.Task@aaf13f6f
            subtasks: []

    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.startVM(CitrixResourceBase.java:3728)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1640)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
    at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
    at
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
2014-11-03 13:11:04,704 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Unable to clean up VBD due to
You gave an invalid object reference.  The object may have recently been
deleted.  The class parameter gives the type of reference given, and the
handle parameter echoes the bad value given.
    at com.xensource.xenapi.Types.checkResponse(Types.java:209)
    at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
    at
com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
    at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1391)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1714)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
    at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
    at
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
2014-11-03 13:11:04,727 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Unable to clean up VBD due to
You gave an invalid object reference.  The object may have recently been
deleted.  The class parameter gives the type of reference given, and the
handle parameter echoes the bad value given.
    at com.xensource.xenapi.Types.checkResponse(Types.java:209)
    at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
    at
com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
    at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1391)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1714)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
    at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
    at
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
2014-11-03 13:11:04,749 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Unable to cleanup VIF
You gave an invalid object reference.  The object may have recently been
deleted.  The class parameter gives the type of reference given, and the
handle parameter echoes the bad value given.
    at com.xensource.xenapi.Types.checkResponse(Types.java:209)
    at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
    at
com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
    at com.xensource.xenapi.VIF.unplug(VIF.java:878)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1399)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1714)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
    at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
    at
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
2014-11-03 13:11:04,840 INFO  [xen.resource.XenServer56Resource]
(DirectAgent-13:null) Catch com.xensource.xenapi.Types$VifInUse: failed to
destory VLAN eth1 on host dbffcf40-5a66-406b-bf04-292b9c0757fa due to
Network has active VIFs
2014-11-03 13:11:04,840 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) The VM is in stopped state, detected problem during
startup : i-2-21-VM
2014-11-03 13:11:04,840 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-13:null) Seq 1-112718072: Response Received:
2014-11-03 13:11:04,841 DEBUG [agent.transport.Request]
(DirectAgent-13:null) Seq 1-112718072: Processing:  { Ans: , MgmtId:
207458817951964, via: 1, Ver: v1, Flags: 110,
[{"com.cloud.agent.api.StartAnswer":{"vm":{"id":21,"name":"i-2-21-VM","bootloader":"CD","type":"User","cpus":1,"minSpeed":1000,"maxSpeed":1000,"minRam":536870912,"maxRam":536870912,"arch":"x86_64","os":"Ubuntu
10.04
(32-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"8ec106c29b9ccf80","params":{},"uuid":"1cba10ec-5fbf-43be-b65b-53b9fc2f3c4c","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"454bb5a0-9557-4825-86d0-5c030de214f9","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"0eff8ee6-1ffa-1e3c-b6af-3bf476ab26f7","id":1,"poolType":"LVM","host":"192.168.10.6","path":"lvm","port":0}},"name":"ROOT-21","size":21474836480,"path":"abbd6184-d3b6-4d58-9d09-14b647a41da4","volumeId":21,"vmName":"i-2-21-VM","accountId":2,"format":"VHD","id":21,"hypervisorType":"XenServer"}},"diskSeq":0,"type":"ROOT"},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/208/208-2-01baa7a7-3123-30b8-bfe6-02b757fd3936.iso","origUrl":"
http://192.168.0.22/test/ubuntu-10.04.4-server-i386.iso","uuid":"d2748e91-5aef-4d4f-bb8c-25a29dca7c92","id":208,"format":"ISO","accountId":2,"checksum":"fc08a01e78348e3918180ea91a6883bb","hvm":true,"displayText":"Intel
x86 server","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
192.168.10.4/exports/sec","_role":"Image"}},"name":"208-2-01baa7a7-3123-30b8-bfe6-02b757fd3936","guestOsType":"Ubuntu
10.04
(32-bit)","hypervisorType":"None"}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"b3f82c8c-dac0-451c-84a7-e54830fdf82b","ip":"10.1.1.202","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:5b:b3:00:11","dns1":"8.8.8.8","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://128","isolationUri":"vlan://128","isSecurityGroupEnabled":false,"name":"cmfg2Guest"}]},"result":false,"details":"Unable
to start i-2-21-VM due to ","wait":0}}] }
2014-11-03 13:11:04,841 DEBUG [agent.manager.AgentAttache]
(DirectAgent-13:null) Seq 1-112718072: No more commands found
2014-11-03 13:11:04,842 DEBUG [agent.transport.Request]
(Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Seq
1-112718072: Received:  { Ans: , MgmtId: 207458817951964, via: 1, Ver: v1,
Flags: 110, { StartAnswer } }
2014-11-03 13:11:04,944 INFO  [cloud.vm.VirtualMachineManagerImpl]
(Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Unable
to start VM on Host[-1-Routing] due to Unable to start i-2-21-VM due to
2014-11-03 13:11:05,036 DEBUG [cloud.vm.VirtualMachineManagerImpl]
(Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ])
Cleaning up resources for the vm VM[User|ubuntuLocalStorage] in Starting
state
2014-11-03 13:11:05,038 DEBUG [agent.transport.Request]
(Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Seq
1-112718073: Sending  { Cmd , MgmtId: 207458817951964, via: 1, Ver: v1,
Flags: 100111,
[{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":true,"vmName":"i-2-21-VM","wait":0}}]
}
2014-11-03 13:11:05,038 DEBUG [agent.transport.Request]
(Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Seq
1-112718073: Executing:  { Cmd , MgmtId: 207458817951964, via: 1, Ver: v1,
Flags: 100111,
[{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":true,"vmName":"i-2-21-VM","wait":0}}]
}
2014-11-03 13:11:05,038 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-446:null) Seq 1-112718073: Executing request
2014-11-03 13:11:05,153 INFO  [xen.resource.CitrixResourceBase]
(DirectAgent-446:null) VM does not exist on
XenServerdbffcf40-5a66-406b-bf04-292b9c0757fa

Re: 建立ubuntu VM失败

Posted by ZS Che <ch...@gmail.com>.
我也留意到这条信息了。我用的是ubuntu10.04的iso安装的。计算方案采用的是本地存储,不知道有没有影响。

On Mon, Nov 3, 2014 at 6:10 PM, linuxbqj@gmail.com <li...@gmail.com>
wrote:

> errorInfo: [INVALID_SOURCE, Unable to access a required file in
> the specified repository:
> file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
>          otherConfig: {}
>
> 估计是你的虚机模版有问题
>
> 2014-11-03 13:44 GMT+08:00 ZS Che <ch...@gmail.com>:
> > hi 请教大家一个问题。
> > 我在建立ubuntu 10.04VM的时候出现了错误。然而,我建立win7的VM就一切正常。
> > 我使用CloudStack 4.2.0,Xenserver 6.0.2,高级网络资源域。
> > 请大家帮帮我。谢谢!
> >
> > management-server.log是这样说的:
> >
> > 2014-11-03 13:10:59,805 DEBUG [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) 1. The VM i-2-21-VM is in Starting state.
> > 2014-11-03 13:10:59,886 DEBUG [xen.resource.XenServer56FP1Resource]
> > (DirectAgent-13:null) Created VM 78250db7-f649-417d-d98c-91e8f38e8132 for
> > i-2-21-VM
> > 2014-11-03 13:10:59,975 DEBUG [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) VBD b9de7fca-6050-0e70-4e84-b22c9113daf7 created
> for
> > com.cloud.agent.api.to.DiskTO@40f5012a
> > 2014-11-03 13:11:01,384 DEBUG [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) VBD 6b1e3091-2b92-3a03-6b89-7465c2be0879 created
> for
> > com.cloud.agent.api.to.DiskTO@ff398ca
> > 2014-11-03 13:11:01,384 DEBUG [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) Creating VIF for i-2-21-VM on nic
> > [Nic:Guest-10.1.1.202-vlan://128]
> > 2014-11-03 13:11:01,392 DEBUG [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) Looking for network named cmfg2Guest
> > 2014-11-03 13:11:01,444 DEBUG [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) Found a network called cmfg2Guest on
> > host=192.168.10.6;  Network=5bf85297-7cc1-ee8e-438a-0ed68e60af6f;
> > pif=42785767-e961-e92e-c30c-e76e92ab5196
> > 2014-11-03 13:11:01,483 DEBUG [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) Found a network called
> > VLAN-5bf85297-7cc1-ee8e-438a-0ed68e60af6f-128 on host=192.168.10.6;
> > Network=106a627f-15a0-eb91-26b9-06abfc56e397;
> > pif=6b876027-8e80-c048-a3ea-2ab543a4c76f
> > 2014-11-03 13:11:01,521 DEBUG [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) Created a vif e923754c-86d7-483d-94f3-9acee7491d7d
> on
> > 0
> > 2014-11-03 13:11:02,185 DEBUG [cloud.api.ApiServlet]
> > (catalina-exec-20:null) ===START===  192.168.0.22 -- GET
> >
> command=queryAsyncJobResult&jobId=78a88c08-7970-47b1-8155-808664738e48&response=json&sessionkey=GVsuVRBe1d3KDv4MD%2F27ACfmeOg%3D&_=1414991534838
> > 2014-11-03 13:11:02,298 DEBUG [cloud.api.ApiServlet]
> > (catalina-exec-20:null) ===END===  192.168.0.22 -- GET
> >
> command=queryAsyncJobResult&jobId=78a88c08-7970-47b1-8155-808664738e48&response=json&sessionkey=GVsuVRBe1d3KDv4MD%2F27ACfmeOg%3D&_=1414991534838
> > 2014-11-03 13:11:02,488 DEBUG [agent.manager.DirectAgentAttache]
> > (DirectAgent-282:null) Seq 2-2070740996: Executing request
> > 2014-11-03 13:11:02,927 DEBUG [agent.manager.DirectAgentAttache]
> > (DirectAgent-282:null) Seq 2-2070740996: Response Received:
> > 2014-11-03 13:11:02,927 DEBUG [agent.transport.Request]
> > (DirectAgent-282:null) Seq 2-2070740996: Processing:  { Ans: , MgmtId:
> > 207458817951964, via: 2, Ver: v1, Flags: 10,
> > [{"com.cloud.agent.api.Answer":{"result":true,"wait":0}}] }
> > 2014-11-03 13:11:03,166 DEBUG
> > [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone
> 1
> > is ready to launch secondary storage VM
> > 2014-11-03 13:11:03,246 DEBUG
> [cloud.consoleproxy.ConsoleProxyManagerImpl]
> > (consoleproxy-1:null) Zone 1 is ready to launch console proxy
> > 2014-11-03 13:11:04,567 DEBUG
> > [network.router.VirtualNetworkApplianceManagerImpl]
> > (RouterStatusMonitor-1:null) Found 1 routers to update status.
> > 2014-11-03 13:11:04,569 DEBUG
> > [network.router.VirtualNetworkApplianceManagerImpl]
> > (RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
> > 2014-11-03 13:11:04,586 WARN  [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) Task failed! Task record:                 uuid:
> > d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
> >            nameLabel: Async.VM.start_on
> >      nameDescription:
> >    allowedOperations: []
> >    currentOperations: {}
> >              created: Mon Nov 03 13:13:30 CST 2014
> >             finished: Mon Nov 03 13:13:33 CST 2014
> >               status: failure
> >           residentOn: com.xensource.xenapi.Host@25cdee55
> >             progress: 1.0
> >                 type: <none/>
> >               result:
> >            errorInfo: [INVALID_SOURCE, Unable to access a required file
> in
> > the specified repository:
> > file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
> >          otherConfig: {}
> >            subtaskOf: com.xensource.xenapi.Task@aaf13f6f
> >             subtasks: []
> >
> > 2014-11-03 13:11:04,590 DEBUG
> > [network.router.VirtualNetworkApplianceManagerImpl]
> > (RouterStatusMonitor-1:null) Found 1 routers to update status.
> > 2014-11-03 13:11:04,592 DEBUG
> > [network.router.VirtualNetworkApplianceManagerImpl]
> > (RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
> > 2014-11-03 13:11:04,596 WARN  [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) Unable to start VM(i-2-21-VM) on
> > host(dbffcf40-5a66-406b-bf04-292b9c0757fa) due to Task failed! Task
> > record:                 uuid: d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
> >            nameLabel: Async.VM.start_on
> >      nameDescription:
> >    allowedOperations: []
> >    currentOperations: {}
> >              created: Mon Nov 03 13:13:30 CST 2014
> >             finished: Mon Nov 03 13:13:33 CST 2014
> >               status: failure
> >           residentOn: com.xensource.xenapi.Host@25cdee55
> >             progress: 1.0
> >                 type: <none/>
> >               result:
> >            errorInfo: [INVALID_SOURCE, Unable to access a required file
> in
> > the specified repository:
> > file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
> >          otherConfig: {}
> >            subtaskOf: com.xensource.xenapi.Task@aaf13f6f
> >             subtasks: []
> >
> > Task failed! Task record:                 uuid:
> > d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
> >            nameLabel: Async.VM.start_on
> >      nameDescription:
> >    allowedOperations: []
> >    currentOperations: {}
> >              created: Mon Nov 03 13:13:30 CST 2014
> >             finished: Mon Nov 03 13:13:33 CST 2014
> >               status: failure
> >           residentOn: com.xensource.xenapi.Host@25cdee55
> >             progress: 1.0
> >                 type: <none/>
> >               result:
> >            errorInfo: [INVALID_SOURCE, Unable to access a required file
> in
> > the specified repository:
> > file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
> >          otherConfig: {}
> >            subtaskOf: com.xensource.xenapi.Task@aaf13f6f
> >             subtasks: []
> >
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.checkForSuccess(CitrixResourceBase.java:3605)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.startVM(CitrixResourceBase.java:3717)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1640)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
> >     at
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
> >     at
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
> >     at
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >     at
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
> >     at
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >     at java.lang.Thread.run(Thread.java:679)
> > 2014-11-03 13:11:04,607 WARN  [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) Catch Exception: class
> > com.cloud.utils.exception.CloudRuntimeException due to
> > com.cloud.utils.exception.CloudRuntimeException: Unable to start
> > VM(i-2-21-VM) on host(dbffcf40-5a66-406b-bf04-292b9c0757fa) due to Task
> > failed! Task record:                 uuid:
> > d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
> >            nameLabel: Async.VM.start_on
> >      nameDescription:
> >    allowedOperations: []
> >    currentOperations: {}
> >              created: Mon Nov 03 13:13:30 CST 2014
> >             finished: Mon Nov 03 13:13:33 CST 2014
> >               status: failure
> >           residentOn: com.xensource.xenapi.Host@25cdee55
> >             progress: 1.0
> >                 type: <none/>
> >               result:
> >            errorInfo: [INVALID_SOURCE, Unable to access a required file
> in
> > the specified repository:
> > file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
> >          otherConfig: {}
> >            subtaskOf: com.xensource.xenapi.Task@aaf13f6f
> >             subtasks: []
> >
> > com.cloud.utils.exception.CloudRuntimeException: Unable to start
> > VM(i-2-21-VM) on host(dbffcf40-5a66-406b-bf04-292b9c0757fa) due to Task
> > failed! Task record:                 uuid:
> > d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
> >            nameLabel: Async.VM.start_on
> >      nameDescription:
> >    allowedOperations: []
> >    currentOperations: {}
> >              created: Mon Nov 03 13:13:30 CST 2014
> >             finished: Mon Nov 03 13:13:33 CST 2014
> >               status: failure
> >           residentOn: com.xensource.xenapi.Host@25cdee55
> >             progress: 1.0
> >                 type: <none/>
> >               result:
> >            errorInfo: [INVALID_SOURCE, Unable to access a required file
> in
> > the specified repository:
> > file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
> >          otherConfig: {}
> >            subtaskOf: com.xensource.xenapi.Task@aaf13f6f
> >             subtasks: []
> >
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.startVM(CitrixResourceBase.java:3728)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1640)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
> >     at
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
> >     at
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
> >     at
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >     at
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
> >     at
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >     at java.lang.Thread.run(Thread.java:679)
> > 2014-11-03 13:11:04,608 WARN  [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) Unable to start i-2-21-VM due to
> > com.cloud.utils.exception.CloudRuntimeException: Unable to start
> > VM(i-2-21-VM) on host(dbffcf40-5a66-406b-bf04-292b9c0757fa) due to Task
> > failed! Task record:                 uuid:
> > d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
> >            nameLabel: Async.VM.start_on
> >      nameDescription:
> >    allowedOperations: []
> >    currentOperations: {}
> >              created: Mon Nov 03 13:13:30 CST 2014
> >             finished: Mon Nov 03 13:13:33 CST 2014
> >               status: failure
> >           residentOn: com.xensource.xenapi.Host@25cdee55
> >             progress: 1.0
> >                 type: <none/>
> >               result:
> >            errorInfo: [INVALID_SOURCE, Unable to access a required file
> in
> > the specified repository:
> > file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
> >          otherConfig: {}
> >            subtaskOf: com.xensource.xenapi.Task@aaf13f6f
> >             subtasks: []
> >
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.startVM(CitrixResourceBase.java:3728)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1640)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
> >     at
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
> >     at
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
> >     at
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >     at
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
> >     at
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >     at java.lang.Thread.run(Thread.java:679)
> > 2014-11-03 13:11:04,704 WARN  [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) Unable to clean up VBD due to
> > You gave an invalid object reference.  The object may have recently been
> > deleted.  The class parameter gives the type of reference given, and the
> > handle parameter echoes the bad value given.
> >     at com.xensource.xenapi.Types.checkResponse(Types.java:209)
> >     at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
> >     at
> >
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
> >     at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1391)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1714)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
> >     at
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
> >     at
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
> >     at
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >     at
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
> >     at
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >     at java.lang.Thread.run(Thread.java:679)
> > 2014-11-03 13:11:04,727 WARN  [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) Unable to clean up VBD due to
> > You gave an invalid object reference.  The object may have recently been
> > deleted.  The class parameter gives the type of reference given, and the
> > handle parameter echoes the bad value given.
> >     at com.xensource.xenapi.Types.checkResponse(Types.java:209)
> >     at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
> >     at
> >
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
> >     at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1391)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1714)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
> >     at
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
> >     at
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
> >     at
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >     at
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
> >     at
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >     at java.lang.Thread.run(Thread.java:679)
> > 2014-11-03 13:11:04,749 WARN  [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) Unable to cleanup VIF
> > You gave an invalid object reference.  The object may have recently been
> > deleted.  The class parameter gives the type of reference given, and the
> > handle parameter echoes the bad value given.
> >     at com.xensource.xenapi.Types.checkResponse(Types.java:209)
> >     at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
> >     at
> >
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
> >     at com.xensource.xenapi.VIF.unplug(VIF.java:878)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1399)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1714)
> >     at
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
> >     at
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
> >     at
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
> >     at
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >     at
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
> >     at
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >     at java.lang.Thread.run(Thread.java:679)
> > 2014-11-03 13:11:04,840 INFO  [xen.resource.XenServer56Resource]
> > (DirectAgent-13:null) Catch com.xensource.xenapi.Types$VifInUse: failed
> to
> > destory VLAN eth1 on host dbffcf40-5a66-406b-bf04-292b9c0757fa due to
> > Network has active VIFs
> > 2014-11-03 13:11:04,840 DEBUG [xen.resource.CitrixResourceBase]
> > (DirectAgent-13:null) The VM is in stopped state, detected problem during
> > startup : i-2-21-VM
> > 2014-11-03 13:11:04,840 DEBUG [agent.manager.DirectAgentAttache]
> > (DirectAgent-13:null) Seq 1-112718072: Response Received:
> > 2014-11-03 13:11:04,841 DEBUG [agent.transport.Request]
> > (DirectAgent-13:null) Seq 1-112718072: Processing:  { Ans: , MgmtId:
> > 207458817951964, via: 1, Ver: v1, Flags: 110,
> >
> [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":21,"name":"i-2-21-VM","bootloader":"CD","type":"User","cpus":1,"minSpeed":1000,"maxSpeed":1000,"minRam":536870912,"maxRam":536870912,"arch":"x86_64","os":"Ubuntu
> > 10.04
> >
> (32-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"8ec106c29b9ccf80","params":{},"uuid":"1cba10ec-5fbf-43be-b65b-53b9fc2f3c4c","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"454bb5a0-9557-4825-86d0-5c030de214f9","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"0eff8ee6-1ffa-1e3c-b6af-3bf476ab26f7","id":1,"poolType":"LVM","host":"192.168.10.6","path":"lvm","port":0}},"name":"ROOT-21","size":21474836480,"path":"abbd6184-d3b6-4d58-9d09-14b647a41da4","volumeId":21,"vmName":"i-2-21-VM","accountId":2,"format":"VHD","id":21,"hypervisorType":"XenServer"}},"diskSeq":0,"type":"ROOT"},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/208/208-2-01baa7a7-3123-30b8-bfe6-02b757fd3936.iso","origUrl":"
> > http://192.168.0.22/test/ubuntu-10.04.4-server-i386.iso
> ","uuid":"d2748e91-5aef-4d4f-bb8c-25a29dca7c92","id":208,"format":"ISO","accountId":2,"checksum":"fc08a01e78348e3918180ea91a6883bb","hvm":true,"displayText":"Intel
> > x86
> server","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
> > 192.168.10.4/exports/sec
> ","_role":"Image"}},"name":"208-2-01baa7a7-3123-30b8-bfe6-02b757fd3936","guestOsType":"Ubuntu
> > 10.04
> >
> (32-bit)","hypervisorType":"None"}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"b3f82c8c-dac0-451c-84a7-e54830fdf82b","ip":"10.1.1.202","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:5b:b3:00:11","dns1":"8.8.8.8","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://128","isolationUri":"vlan://128","isSecurityGroupEnabled":false,"name":"cmfg2Guest"}]},"result":false,"details":"Unable
> > to start i-2-21-VM due to ","wait":0}}] }
> > 2014-11-03 13:11:04,841 DEBUG [agent.manager.AgentAttache]
> > (DirectAgent-13:null) Seq 1-112718072: No more commands found
> > 2014-11-03 13:11:04,842 DEBUG [agent.transport.Request]
> > (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Seq
> > 1-112718072: Received:  { Ans: , MgmtId: 207458817951964, via: 1, Ver:
> v1,
> > Flags: 110, { StartAnswer } }
> > 2014-11-03 13:11:04,944 INFO  [cloud.vm.VirtualMachineManagerImpl]
> > (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ])
> Unable
> > to start VM on Host[-1-Routing] due to Unable to start i-2-21-VM due to
> > 2014-11-03 13:11:05,036 DEBUG [cloud.vm.VirtualMachineManagerImpl]
> > (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ])
> > Cleaning up resources for the vm VM[User|ubuntuLocalStorage] in Starting
> > state
> > 2014-11-03 13:11:05,038 DEBUG [agent.transport.Request]
> > (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Seq
> > 1-112718073: Sending  { Cmd , MgmtId: 207458817951964, via: 1, Ver: v1,
> > Flags: 100111,
> >
> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":true,"vmName":"i-2-21-VM","wait":0}}]
> > }
> > 2014-11-03 13:11:05,038 DEBUG [agent.transport.Request]
> > (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Seq
> > 1-112718073: Executing:  { Cmd , MgmtId: 207458817951964, via: 1, Ver:
> v1,
> > Flags: 100111,
> >
> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":true,"vmName":"i-2-21-VM","wait":0}}]
> > }
> > 2014-11-03 13:11:05,038 DEBUG [agent.manager.DirectAgentAttache]
> > (DirectAgent-446:null) Seq 1-112718073: Executing request
> > 2014-11-03 13:11:05,153 INFO  [xen.resource.CitrixResourceBase]
> > (DirectAgent-446:null) VM does not exist on
> > XenServerdbffcf40-5a66-406b-bf04-292b9c0757fa
>
>
>
> --
> 白清杰 (Born Bai)
>
> Mail: linuxbqj@gmail.com
>

Re: 建立ubuntu VM失败

Posted by "linuxbqj@gmail.com" <li...@gmail.com>.
errorInfo: [INVALID_SOURCE, Unable to access a required file in
the specified repository:
file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
         otherConfig: {}

估计是你的虚机模版有问题

2014-11-03 13:44 GMT+08:00 ZS Che <ch...@gmail.com>:
> hi 请教大家一个问题。
> 我在建立ubuntu 10.04VM的时候出现了错误。然而,我建立win7的VM就一切正常。
> 我使用CloudStack 4.2.0,Xenserver 6.0.2,高级网络资源域。
> 请大家帮帮我。谢谢!
>
> management-server.log是这样说的:
>
> 2014-11-03 13:10:59,805 DEBUG [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) 1. The VM i-2-21-VM is in Starting state.
> 2014-11-03 13:10:59,886 DEBUG [xen.resource.XenServer56FP1Resource]
> (DirectAgent-13:null) Created VM 78250db7-f649-417d-d98c-91e8f38e8132 for
> i-2-21-VM
> 2014-11-03 13:10:59,975 DEBUG [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) VBD b9de7fca-6050-0e70-4e84-b22c9113daf7 created for
> com.cloud.agent.api.to.DiskTO@40f5012a
> 2014-11-03 13:11:01,384 DEBUG [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) VBD 6b1e3091-2b92-3a03-6b89-7465c2be0879 created for
> com.cloud.agent.api.to.DiskTO@ff398ca
> 2014-11-03 13:11:01,384 DEBUG [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) Creating VIF for i-2-21-VM on nic
> [Nic:Guest-10.1.1.202-vlan://128]
> 2014-11-03 13:11:01,392 DEBUG [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) Looking for network named cmfg2Guest
> 2014-11-03 13:11:01,444 DEBUG [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) Found a network called cmfg2Guest on
> host=192.168.10.6;  Network=5bf85297-7cc1-ee8e-438a-0ed68e60af6f;
> pif=42785767-e961-e92e-c30c-e76e92ab5196
> 2014-11-03 13:11:01,483 DEBUG [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) Found a network called
> VLAN-5bf85297-7cc1-ee8e-438a-0ed68e60af6f-128 on host=192.168.10.6;
> Network=106a627f-15a0-eb91-26b9-06abfc56e397;
> pif=6b876027-8e80-c048-a3ea-2ab543a4c76f
> 2014-11-03 13:11:01,521 DEBUG [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) Created a vif e923754c-86d7-483d-94f3-9acee7491d7d on
> 0
> 2014-11-03 13:11:02,185 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-20:null) ===START===  192.168.0.22 -- GET
> command=queryAsyncJobResult&jobId=78a88c08-7970-47b1-8155-808664738e48&response=json&sessionkey=GVsuVRBe1d3KDv4MD%2F27ACfmeOg%3D&_=1414991534838
> 2014-11-03 13:11:02,298 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-20:null) ===END===  192.168.0.22 -- GET
> command=queryAsyncJobResult&jobId=78a88c08-7970-47b1-8155-808664738e48&response=json&sessionkey=GVsuVRBe1d3KDv4MD%2F27ACfmeOg%3D&_=1414991534838
> 2014-11-03 13:11:02,488 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-282:null) Seq 2-2070740996: Executing request
> 2014-11-03 13:11:02,927 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-282:null) Seq 2-2070740996: Response Received:
> 2014-11-03 13:11:02,927 DEBUG [agent.transport.Request]
> (DirectAgent-282:null) Seq 2-2070740996: Processing:  { Ans: , MgmtId:
> 207458817951964, via: 2, Ver: v1, Flags: 10,
> [{"com.cloud.agent.api.Answer":{"result":true,"wait":0}}] }
> 2014-11-03 13:11:03,166 DEBUG
> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1
> is ready to launch secondary storage VM
> 2014-11-03 13:11:03,246 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
> (consoleproxy-1:null) Zone 1 is ready to launch console proxy
> 2014-11-03 13:11:04,567 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 1 routers to update status.
> 2014-11-03 13:11:04,569 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
> 2014-11-03 13:11:04,586 WARN  [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) Task failed! Task record:                 uuid:
> d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
>            nameLabel: Async.VM.start_on
>      nameDescription:
>    allowedOperations: []
>    currentOperations: {}
>              created: Mon Nov 03 13:13:30 CST 2014
>             finished: Mon Nov 03 13:13:33 CST 2014
>               status: failure
>           residentOn: com.xensource.xenapi.Host@25cdee55
>             progress: 1.0
>                 type: <none/>
>               result:
>            errorInfo: [INVALID_SOURCE, Unable to access a required file in
> the specified repository:
> file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
>          otherConfig: {}
>            subtaskOf: com.xensource.xenapi.Task@aaf13f6f
>             subtasks: []
>
> 2014-11-03 13:11:04,590 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 1 routers to update status.
> 2014-11-03 13:11:04,592 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
> 2014-11-03 13:11:04,596 WARN  [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) Unable to start VM(i-2-21-VM) on
> host(dbffcf40-5a66-406b-bf04-292b9c0757fa) due to Task failed! Task
> record:                 uuid: d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
>            nameLabel: Async.VM.start_on
>      nameDescription:
>    allowedOperations: []
>    currentOperations: {}
>              created: Mon Nov 03 13:13:30 CST 2014
>             finished: Mon Nov 03 13:13:33 CST 2014
>               status: failure
>           residentOn: com.xensource.xenapi.Host@25cdee55
>             progress: 1.0
>                 type: <none/>
>               result:
>            errorInfo: [INVALID_SOURCE, Unable to access a required file in
> the specified repository:
> file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
>          otherConfig: {}
>            subtaskOf: com.xensource.xenapi.Task@aaf13f6f
>             subtasks: []
>
> Task failed! Task record:                 uuid:
> d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
>            nameLabel: Async.VM.start_on
>      nameDescription:
>    allowedOperations: []
>    currentOperations: {}
>              created: Mon Nov 03 13:13:30 CST 2014
>             finished: Mon Nov 03 13:13:33 CST 2014
>               status: failure
>           residentOn: com.xensource.xenapi.Host@25cdee55
>             progress: 1.0
>                 type: <none/>
>               result:
>            errorInfo: [INVALID_SOURCE, Unable to access a required file in
> the specified repository:
> file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
>          otherConfig: {}
>            subtaskOf: com.xensource.xenapi.Task@aaf13f6f
>             subtasks: []
>
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.checkForSuccess(CitrixResourceBase.java:3605)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.startVM(CitrixResourceBase.java:3717)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1640)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
>     at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
>     at
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>     at java.lang.Thread.run(Thread.java:679)
> 2014-11-03 13:11:04,607 WARN  [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) Catch Exception: class
> com.cloud.utils.exception.CloudRuntimeException due to
> com.cloud.utils.exception.CloudRuntimeException: Unable to start
> VM(i-2-21-VM) on host(dbffcf40-5a66-406b-bf04-292b9c0757fa) due to Task
> failed! Task record:                 uuid:
> d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
>            nameLabel: Async.VM.start_on
>      nameDescription:
>    allowedOperations: []
>    currentOperations: {}
>              created: Mon Nov 03 13:13:30 CST 2014
>             finished: Mon Nov 03 13:13:33 CST 2014
>               status: failure
>           residentOn: com.xensource.xenapi.Host@25cdee55
>             progress: 1.0
>                 type: <none/>
>               result:
>            errorInfo: [INVALID_SOURCE, Unable to access a required file in
> the specified repository:
> file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
>          otherConfig: {}
>            subtaskOf: com.xensource.xenapi.Task@aaf13f6f
>             subtasks: []
>
> com.cloud.utils.exception.CloudRuntimeException: Unable to start
> VM(i-2-21-VM) on host(dbffcf40-5a66-406b-bf04-292b9c0757fa) due to Task
> failed! Task record:                 uuid:
> d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
>            nameLabel: Async.VM.start_on
>      nameDescription:
>    allowedOperations: []
>    currentOperations: {}
>              created: Mon Nov 03 13:13:30 CST 2014
>             finished: Mon Nov 03 13:13:33 CST 2014
>               status: failure
>           residentOn: com.xensource.xenapi.Host@25cdee55
>             progress: 1.0
>                 type: <none/>
>               result:
>            errorInfo: [INVALID_SOURCE, Unable to access a required file in
> the specified repository:
> file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
>          otherConfig: {}
>            subtaskOf: com.xensource.xenapi.Task@aaf13f6f
>             subtasks: []
>
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.startVM(CitrixResourceBase.java:3728)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1640)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
>     at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
>     at
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>     at java.lang.Thread.run(Thread.java:679)
> 2014-11-03 13:11:04,608 WARN  [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) Unable to start i-2-21-VM due to
> com.cloud.utils.exception.CloudRuntimeException: Unable to start
> VM(i-2-21-VM) on host(dbffcf40-5a66-406b-bf04-292b9c0757fa) due to Task
> failed! Task record:                 uuid:
> d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
>            nameLabel: Async.VM.start_on
>      nameDescription:
>    allowedOperations: []
>    currentOperations: {}
>              created: Mon Nov 03 13:13:30 CST 2014
>             finished: Mon Nov 03 13:13:33 CST 2014
>               status: failure
>           residentOn: com.xensource.xenapi.Host@25cdee55
>             progress: 1.0
>                 type: <none/>
>               result:
>            errorInfo: [INVALID_SOURCE, Unable to access a required file in
> the specified repository:
> file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
>          otherConfig: {}
>            subtaskOf: com.xensource.xenapi.Task@aaf13f6f
>             subtasks: []
>
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.startVM(CitrixResourceBase.java:3728)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1640)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
>     at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
>     at
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>     at java.lang.Thread.run(Thread.java:679)
> 2014-11-03 13:11:04,704 WARN  [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) Unable to clean up VBD due to
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
>     at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>     at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>     at
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
>     at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1391)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1714)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
>     at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
>     at
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>     at java.lang.Thread.run(Thread.java:679)
> 2014-11-03 13:11:04,727 WARN  [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) Unable to clean up VBD due to
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
>     at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>     at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>     at
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
>     at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1391)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1714)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
>     at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
>     at
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>     at java.lang.Thread.run(Thread.java:679)
> 2014-11-03 13:11:04,749 WARN  [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) Unable to cleanup VIF
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
>     at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>     at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>     at
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
>     at com.xensource.xenapi.VIF.unplug(VIF.java:878)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1399)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1714)
>     at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:557)
>     at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
>     at
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>     at java.lang.Thread.run(Thread.java:679)
> 2014-11-03 13:11:04,840 INFO  [xen.resource.XenServer56Resource]
> (DirectAgent-13:null) Catch com.xensource.xenapi.Types$VifInUse: failed to
> destory VLAN eth1 on host dbffcf40-5a66-406b-bf04-292b9c0757fa due to
> Network has active VIFs
> 2014-11-03 13:11:04,840 DEBUG [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) The VM is in stopped state, detected problem during
> startup : i-2-21-VM
> 2014-11-03 13:11:04,840 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-13:null) Seq 1-112718072: Response Received:
> 2014-11-03 13:11:04,841 DEBUG [agent.transport.Request]
> (DirectAgent-13:null) Seq 1-112718072: Processing:  { Ans: , MgmtId:
> 207458817951964, via: 1, Ver: v1, Flags: 110,
> [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":21,"name":"i-2-21-VM","bootloader":"CD","type":"User","cpus":1,"minSpeed":1000,"maxSpeed":1000,"minRam":536870912,"maxRam":536870912,"arch":"x86_64","os":"Ubuntu
> 10.04
> (32-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"8ec106c29b9ccf80","params":{},"uuid":"1cba10ec-5fbf-43be-b65b-53b9fc2f3c4c","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"454bb5a0-9557-4825-86d0-5c030de214f9","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"0eff8ee6-1ffa-1e3c-b6af-3bf476ab26f7","id":1,"poolType":"LVM","host":"192.168.10.6","path":"lvm","port":0}},"name":"ROOT-21","size":21474836480,"path":"abbd6184-d3b6-4d58-9d09-14b647a41da4","volumeId":21,"vmName":"i-2-21-VM","accountId":2,"format":"VHD","id":21,"hypervisorType":"XenServer"}},"diskSeq":0,"type":"ROOT"},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/208/208-2-01baa7a7-3123-30b8-bfe6-02b757fd3936.iso","origUrl":"
> http://192.168.0.22/test/ubuntu-10.04.4-server-i386.iso","uuid":"d2748e91-5aef-4d4f-bb8c-25a29dca7c92","id":208,"format":"ISO","accountId":2,"checksum":"fc08a01e78348e3918180ea91a6883bb","hvm":true,"displayText":"Intel
> x86 server","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
> 192.168.10.4/exports/sec","_role":"Image"}},"name":"208-2-01baa7a7-3123-30b8-bfe6-02b757fd3936","guestOsType":"Ubuntu
> 10.04
> (32-bit)","hypervisorType":"None"}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"b3f82c8c-dac0-451c-84a7-e54830fdf82b","ip":"10.1.1.202","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:5b:b3:00:11","dns1":"8.8.8.8","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://128","isolationUri":"vlan://128","isSecurityGroupEnabled":false,"name":"cmfg2Guest"}]},"result":false,"details":"Unable
> to start i-2-21-VM due to ","wait":0}}] }
> 2014-11-03 13:11:04,841 DEBUG [agent.manager.AgentAttache]
> (DirectAgent-13:null) Seq 1-112718072: No more commands found
> 2014-11-03 13:11:04,842 DEBUG [agent.transport.Request]
> (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Seq
> 1-112718072: Received:  { Ans: , MgmtId: 207458817951964, via: 1, Ver: v1,
> Flags: 110, { StartAnswer } }
> 2014-11-03 13:11:04,944 INFO  [cloud.vm.VirtualMachineManagerImpl]
> (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Unable
> to start VM on Host[-1-Routing] due to Unable to start i-2-21-VM due to
> 2014-11-03 13:11:05,036 DEBUG [cloud.vm.VirtualMachineManagerImpl]
> (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ])
> Cleaning up resources for the vm VM[User|ubuntuLocalStorage] in Starting
> state
> 2014-11-03 13:11:05,038 DEBUG [agent.transport.Request]
> (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Seq
> 1-112718073: Sending  { Cmd , MgmtId: 207458817951964, via: 1, Ver: v1,
> Flags: 100111,
> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":true,"vmName":"i-2-21-VM","wait":0}}]
> }
> 2014-11-03 13:11:05,038 DEBUG [agent.transport.Request]
> (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Seq
> 1-112718073: Executing:  { Cmd , MgmtId: 207458817951964, via: 1, Ver: v1,
> Flags: 100111,
> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":true,"vmName":"i-2-21-VM","wait":0}}]
> }
> 2014-11-03 13:11:05,038 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-446:null) Seq 1-112718073: Executing request
> 2014-11-03 13:11:05,153 INFO  [xen.resource.CitrixResourceBase]
> (DirectAgent-446:null) VM does not exist on
> XenServerdbffcf40-5a66-406b-bf04-292b9c0757fa



-- 
白清杰 (Born Bai)

Mail: linuxbqj@gmail.com