Compute2 running instances

Asked by Guido Davide Dall'Olio

Hi,
I installed a dual configuration of openstack(in both computer a new configuration from sources from scratch).
In the first pc are running all services and when I try euca-run-instances it works(the instance run on the main pc itself with a compute1 service running).
I see instances running and i ping, ssh them.
But on the other pc, with only running nova-compute service, every time the main pc tries to run an instance on it i get this error on compute2:
"
libvir: QEMU error : request operation is not valid : domain is not running
    QEMU error : domain not found : no domain with matching name 'instance-0000000b'
   libvir: QEMU error : internal error Process exited while reading console log output : char device redirected to /dev/pts/0
    QEMU: could not load kernel '/var/lib/nova/instances/instance-0000000b/kernel' : permission denied

"
I don't know how to solve it..please help
Thanks everyone who could help me

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Guido Davide Dall'Olio
Solved:
Last query:
Last reply:
Revision history for this message
sunhee Park (sunny790821) said :
#1

I have similar error.

2011-07-21 18:06:14,192 ERROR nova.exception [-] Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 120, in _wrap
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 617, in spawn
(nova.exception): TRACE: domain = self._create_new_domain(xml)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 1079, in _create_new_domain
(nova.exception): TRACE: domain.createWithFlags(launch_flags)
(nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/libvirt.py", line 337, in createWithFlags
(nova.exception): TRACE: if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
(nova.exception): TRACE: libvirtError: internal error Process exited while reading console log output: char device redirected to /dev/pts/2
(nova.exception): TRACE: qemu: could not load kernel '/var/lib/nova/instances/instance-0000005a/kernel': Permission denied
(nova.exception): TRACE:
(nova.exception): TRACE:
2011-07-21 18:06:14,193 ERROR nova.compute.manager [X58HFZS3AUFF8IYMP1EM novaadmin proj] Instance '90' failed to spawn. Is virtualization enabled in the BIOS?
(nova.compute.manager): TRACE: Traceback (most recent call last):
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 234, in run_instance
(nova.compute.manager): TRACE: self.driver.spawn(instance_ref)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 126, in _wrap
(nova.compute.manager): TRACE: raise Error(str(e))
(nova.compute.manager): TRACE: Error: internal error Process exited while reading console log output: char device redirected to /dev/pts/2
(nova.compute.manager): TRACE: qemu: could not load kernel '/var/lib/nova/instances/instance-0000005a/kernel':
Permission denied

answer plz!!

Revision history for this message
Guido Davide Dall'Olio (guidodavide-dallolio) said :
#2

Solved by copying the folder _base in "instances" from controller in the same "instances" of compute2.
That worked for me..now I have a second Compute running virtual machines