cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shweta agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-7486) [LXC] Fedora VM fails to start on LXc host
Date Thu, 04 Sep 2014 12:16:51 GMT
shweta agarwal created CLOUDSTACK-7486:
------------------------------------------

             Summary: [LXC] Fedora VM  fails to start on LXc host
                 Key: CLOUDSTACK-7486
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7486
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: KVM
    Affects Versions: 4.5.0
            Reporter: shweta agarwal
            Assignee: Kishan Kavala
            Priority: Critical
             Fix For: 4.5.0


Repro Steps:
Repro steps:
Create a LXC setup
Register debian Template
Create Debian VM

Bug:
Debian VMs fails to start

Agent log shows:
2014-09-04 17:29:08,581 DEBUG [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-2:null)
starting i-2-3-VM: <domain type='lxc'>
<name>i-2-3-VM</name>
<uuid>a2dafe32-9d8c-47a8-abe5-9af100987155</uuid>
<description>Fedora 9</description>
<clock offset='utc'>
<timer name='kvmclock' present='no' /></clock>
<features>
<pae/>
<apic/>
<acpi/>
</features>
<devices>
<emulator></emulator>
<interface type='bridge'>
<source bridge='brem1-533'/>
<mac address='02:00:1a:7c:00:01'/>
<model type='virtio'/>
<bandwidth>
<inbound average='25600' peak='25600'/>
<outbound average='25600' peak='25600'/>
</bandwidth>
</interface>
<filesystem type='mount'>
  <source dir='/mnt/dfa2ec3c-d133-3284-8583-0a0845aa4424/36d7a92b-a78b-4f30-83bb-c65ea7768627'/>
  <target dir='/'/>
</filesystem>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
</console>
</devices>
<memory>524288</memory>
<devices>
<memballoon model='none'/>
</devices>
<vcpu>1</vcpu>
<os>
<type>exe</type>
<init>/sbin/init</init>
</os>
<cputune>
<shares>500</shares>
</cputune>
<cpu></cpu><on_reboot>restart</on_reboot>
<on_poweroff>destroy</on_poweroff>
<on_crash>destroy</on_crash>
</domain>

2014-09-04 17:29:08,944 WARN  [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-2:null)
LibvirtException<on_crash>destroy</on_crash>
</domain>

2014-09-04 17:29:08,944 WARN  [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-2:null)
LibvirtException
org.libvirt.LibvirtException: internal error: guest failed to start: cannot find init path
'/sbin/init' relative to container root: No such file or directory

        at org.libvirt.ErrorHandler.processError(Unknown Source)
        at org.libvirt.Connect.processError(Unknown Source)
        at org.libvirt.Connect.processError(Unknown Source)
        at org.libvirt.Connect.domainCreateXML(Unknown Source)
        at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.startVM(LibvirtComputingResource.java:1238)
        at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:3766)
        at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1332)
        at com.cloud.agent.Agent.processRequest(Agent.java:503)
        at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:810)
        at com.cloud.utils.nio.Task.run(Task.java:84)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
2014-09-04 17:29:08,945 DEBUG [kvm.storage.KVMStoragePoolManager] (agentRequest-Handler-2:null)
Disconnecting disk 36d7a92b-a78b-4f30-83bb-c65ea7768627
2014-09-04 17:29:08,945 DEBUG [kvm.storage.LibvirtStorageAdaptor] (agentRequest-Handler-2:null)
Trying to fetch storage pool dfa2ec3c-d133-3284-8583-0a0845aa4424 from libvirt
2014-09-04 17:29:08,971 DEBUG [cloud.agent.Agent] (agentRequest-Handler-2:null) Seq 1-8326029811101205165:
 { Ans: , MgmtId: 233845178472723, via: 1, Ver: v1, Flags: 10, [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":3,"name":"i-2-3-VM","type":"User","cpus":1,"minSpeed":500,"maxSpeed":500,"minRam":536870912,"maxRam":536870912,"arch":"x86_64","os":"Fedora
9","platformEmulator":"Fedora 9","bootArgs":"","enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"SpGVlce3UZ95WXoV9NerqA==","vncAddr":"10.147.28.42","params":{},"uuid":"a2dafe32-9d8c-47a8-abe5-9af100987155","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"36d7a92b-a78b-4f30-83bb-c65ea7768627","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"dfa2ec3c-d133-3284-8583-0a0845aa4424","id":2,"poolType":"NetworkFilesystem","host":"10.147.28.7","path":"/export/home/shweta/goleta.lxc.primary","port":2049,"url":"NetworkFilesystem://10.147.28.7/export/home/shweta/goleta.lxc.primary/?ROLE=Primary&STOREUUID=dfa2ec3c-d133-3284-8583-0a0845aa4424"}},"name":"ROOT-3","size":20480,"path":"36d7a92b-a78b-4f30-83bb-c65ea7768627","volumeId":3,"vmName":"i-2-3-VM","accountId":2,"format":"DIR","provisioningType":"THIN","id":3,"deviceId":0,"hypervisorType":"LXC"}},"diskSeq":0,"path":"36d7a92b-a78b-4f30-83bb-c65ea7768627","type":"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":"10.147.28.7","volumeSize":"20480"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0,"hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"pxeDisable":false,"nicUuid":"8cf8970b-75be-4646-b44f-8dea032e78bc","uuid":"e6370f8f-bab6-4f00-90a2-8f4b9811e714","ip":"10.1.1.90","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:1a:7c:00:01","dns1":"10.140.50.6","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://533","isolationUri":"vlan://533","isSecurityGroupEnabled":false}]},"result":false,"details":"internal
error: guest failed to start: cannot find init path '/sbin/init' relative to container root:
No such file or directory\n","wait":0}}] }
2014-09-04 17:29:09,031 DEBUG [cloud.agent.Agent] (agentRequest-Handler-5:null) Request:Seq
1-8326029811101205166:  { Cmd , MgmtId: 233845178472723, via: 1, Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"checkBeforeCleanup":false,"vmName":"i-2-3-VM","wait":0}}]
}
2014-09-04 17:29:09,032 DEBUG [cloud.agent.Agent] (agentRequest-Handler-5:null) Processing
command: com.cloud.agent.api.StopCommand
2014-09-04 17:29:09,033 DEBUG [kvm.resource.LibvirtConnection] (agentRequest-Handler-5:null)
can't find connection: KVM, for vm: i-2-3-VM, continue
2014-09-04 17:29:09,035 DEBUG [kvm.resource.LibvirtConnection] (agentRequest-Handler-5:null)
can't find connection: LXC, for vm: i-2-3-VM, continue
2014-09-04 17:29:09,035 DEBUG [kvm.resource.LibvirtConnection] (agentRequest-Handler-5:null)
can't find which hypervisor the vm used , then use the default hypervisor
2014-09-04 17:29:09,036 DEBUG [kvm.resource.LibvirtComputingResource] (agentRe
                                                     



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message