You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "shweta agarwal (JIRA)" <ji...@apache.org> on 2014/09/04 14:17:51 UTC

[jira] [Updated] (CLOUDSTACK-7485) [LXC] Debian VMs fails to start in LXC host

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-7485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

shweta agarwal updated CLOUDSTACK-7485:
---------------------------------------
    Attachment: agent.tar.gz

> [LXC] Debian VMs fails to start in LXC host
> -------------------------------------------
>
>                 Key: CLOUDSTACK-7485
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7485
>             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
>
>         Attachments: agent.tar.gz
>
>
> 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:34:01,902 DEBUG [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-5:null) starting i-2-5-VM: <domain type='lxc'>
> <name>i-2-5-VM</name>
> <uuid>6c3618c2-0189-4678-8242-f53bc1099cee</uuid>
> <description>Debian GNU/Linux 6(64-bit)</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:22:4f:00:03'/>
> <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/3ddee90e-6037-489c-b4ac-1df9867bf378'/>
>   <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  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:34:02,207 DEBUG [kvm.storage.KVMStoragePoolManager] (agentRequest-Handler-5:null) Disconnecting disk 3ddee90e-6037-489c-b4ac-1df9867bf378
> 2014-09-04 17:34:02,208 DEBUG [kvm.storage.LibvirtStorageAdaptor] (agentRequest-Handler-5:null) Trying to fetch storage pool dfa2ec3c-d133-3284-8583-0a0845aa4424 from libvirt
> 2014-09-04 17:34:02,231 DEBUG [cloud.agent.Agent] (agentRequest-Handler-5:null) Seq 1-8326029811101205191:  { Ans: , MgmtId: 233845178472723, via: 1, Ver: v1, Flags: 10, [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":5,"name":"i-2-5-VM","type":"User","cpus":1,"minSpeed":500,"maxSpeed":500,"minRam":536870912,"maxRam":536870912,"arch":"x86_64","os":"Debian GNU/Linux 6(64-bit)","platfo:34:02,207 WARN  [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-5: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)



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