Hi,
I used official release
apache-cloudstack-4.0.1-incubating-src.tar.bz2<http://www.apache.org/dyn/closer.cgi/incubator/cloudstack/releases/4.0.1-incubating/apache-cloudstack-4.0.1-incubating-src.tar.bz2>
to
build the Cloudstack.
I was able to successfully install MS, Agent and setup Zone. Even System
VMs were getting created. But, when
I try to create a guest VM, i am getting below permission denied exception.
When i checked /mnt folders, I see all full access to all the folders.
But, I do not see the folder b9910e6f-bfc3-464a-991e-fa3d7c06038d under
05bae989-5f45-3692-9746-b5d8eba163a0.
I am not sure what wrong i am doing. I installed agent as root on the KVM
hypervisor.
Can any one please help me understand this issue... I am trying to setup
cloudstack setup for past 5 days..
013-03-22 16:25:24,152 DEBUG [kvm.resource.BridgeVifDriver]
(agentRequest-Handler-5:null) Executing:
/usr/lib64/cloud/common/scripts/vm/network/vnet/modifyvlan.sh -v 15 -p eth1
-o add
2013-03-22 16:25:24,231 DEBUG [kvm.resource.BridgeVifDriver]
(agentRequest-Handler-5:null) Execution is successful.
2013-03-22 16:25:24,231 DEBUG [kvm.resource.BridgeVifDriver]
(agentRequest-Handler-5:null) Set name-type for VLAN subsystem. Should be
visible in /proc/net/vlan/config
2013-03-22 16:25:24,232 DEBUG [kvm.resource.LibvirtComputingResource]
(agentRequest-Handler-5:null) starting i-2-5-TEST: <domain type='kvm'>
<name>i-2-5-TEST</name>
<uuid>fa0986f5-da48-3056-b256-ffe2394b91c4</uuid>
<description>Ubuntu 9.10 (64-bit)</description>
<clock offset='utc'>
</clock>
<features>
<pae/>
<apic/>
<acpi/>
</features>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
<interface type='bridge'>
<source bridge='cloudVirBr15'/>
<mac address='02:00:30:62:00:03'/>
<model type='virtio'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<graphics type='vnc' autoport='yes' listen='' />
<disk device='disk' type='file'>
<driver name='qemu' type='qcow2' cache='none' />
<source
file='/mnt/05bae989-5f45-3692-9746-b5d8eba163a0/b9910e6f-bfc3-464a-991e-fa3d7c06038d'/>
<target dev='vda' bus='virtio'/>
</disk>
<disk device='disk' type='file'>
<driver name='qemu' type='qcow2' cache='none' />
<source
file='/mnt/05bae989-5f45-3692-9746-b5d8eba163a0/695dc5d2-18e2-4cc9-9f45-0c0a33aeffaf'/>
<target dev='vdb' bus='virtio'/>
</disk>
<disk device='cdrom' type='file'>
<driver name='qemu' type='raw' cache='none' />
<source file=''/>
<target dev='hdc' bus='ide'/>
</disk>
<console type='pty'>
<target port='0'/>
</console>
<input type='tablet' bus='usb'/>
</devices>
<memory>2097152</memory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='cdrom'/>
<boot dev='hd'/>
</os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='cdrom'/>
<boot dev='hd'/>
</os>
<cputune>
<shares>2000</shares>
</cputune>
<on_reboot>restart</on_reboot>
<on_poweroff>destroy</on_poweroff>
<on_crash>destroy</on_crash>
</domain>
2013-03-22 16:25:25,225 WARN [kvm.resource.LibvirtComputingResource]
(agentRequest-Handler-5:null) Failed to start domain: i-2-5-TEST: internal
error process exited while connecting to monitor: char device redirected to
/dev/pts/4
qemu-kvm: -drive
file=/mnt/05bae989-5f45-3692-9746-b5d8eba163a0/b9910e6f-bfc3-464a-991e-fa3d7c06038d,if=none,id=drive-virtio-disk0,format=qcow2,cache=none:
could not open disk image
/mnt/05bae989-5f45-3692-9746-b5d8eba163a0/b9910e6f-bfc3-464a-991e-fa3d7c06038d:
Permission denied
2013-03-22 16:25:25,225 WARN [kvm.resource.LibvirtComputingResource]
(agentRequest-Handler-5:null) Exception
org.libvirt.LibvirtException: internal error process exited while
connecting to monitor: char device redirected to /dev/pts/4
qemu-kvm: -drive
file=/mnt/05bae989-5f45-3692-9746-b5d8eba163a0/b9910e6f-bfc3-464a-991e-fa3d7c06038d,if=none,id=drive-virtio-disk0,format=qcow2,cache=none:
could not open disk image
/mnt/05bae989-5f45-3692-9746-b5d8eba163a0/b9910e6f-bfc3-464a-991e-fa3d7c06038d:
Permission denied
at org.libvirt.ErrorHandler.processError(Unknown Source)
at org.libvirt.Connect.processError(Unknown Source)
at org.libvirt.Domain.processError(Unknown Source)
at org.libvirt.Domain.create(Unknown Source)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.startDomain(LibvirtComputingResource.java:936)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:2834)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1061)
at com.cloud.agent.Agent.processRequest(Agent.java:518)
at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:831)
at com.cloud.utils.nio.Task.run(Task.java:83)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
2013-03-22 16:25:25,226 WARN [cloud.agent.Agent]
(agentRequest-Handler-5:null) Caught:
java.lang.NullPointerException
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.cleanupVMNetworks(LibvirtComputingResource.java:3943)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.handleVmStartFailure(LibvirtComputingResource.java:2730)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:2855)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1061)
at com.cloud.agent.Agent.processRequest(Agent.java:518)
at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:831)
at com.cloud.utils.nio.Task.run(Task.java:83)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)