I have a couple of computers: computer-1 running all the cactus services and computer-2 just running nova-compute. I am using FlatDHCPManager and I can run instances on computer-1 but not on computer-2.
Here is the error when I try to run an instance on computer-2, but I think the question is if I need to run glance on computer-1 and computer-2.
=============================================================================
2011-04-19 13:24:42,312 DEBUG nova.utils [-] Running cmd (subprocess): mkdir -p /var/lib/nova/instances/instance-0000000b/ from (pid=982) execute /usr
/lib/pymodules/python2.6/nova/utils.py:150
2011-04-19 13:24:42,354 INFO nova.virt.libvirt_conn [-] instance instance-0000000b: Creating image
2011-04-19 13:24:42,454 DEBUG nova.utils [-] Attempting to grab semaphore "021316eb" for method "call_if_not_exists"... from (pid=982) inner /usr/lib/
pymodules/python2.6/nova/utils.py:594
2011-04-19 13:24:42,454 DEBUG nova.utils [-] Running cmd (subprocess): cp /var/lib/nova/instances/_base/021316eb /var/lib/nova/instances/instance-0000
000b/kernel from (pid=982) execute /usr/lib/pymodules/python2.6/nova/utils.py:150
2011-04-19 13:24:42,491 DEBUG nova.utils [-] Attempting to grab semaphore "06d801f3" for method "call_if_not_exists"... from (pid=982) inner /usr/lib/
pymodules/python2.6/nova/utils.py:594
2011-04-19 13:24:42,537 ERROR nova.compute.manager [O-GNOG-GHWR-ELW-D3SC admin simple_cloud] Instance '11' 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 120, in _wrap
(nova.compute.manager): TRACE: return f(*args, **kw)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 616, in spawn
(nova.compute.manager): TRACE: self._create_image(instance, xml, network_info)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 867, in _create_image
(nova.compute.manager): TRACE: size=size)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 776, in _cache_image
(nova.compute.manager): TRACE: call_if_not_exists(base, fn, *args, **kwargs)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/utils.py", line 607, in inner
(nova.compute.manager): TRACE: retval = f(*args, **kwargs)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 774, in call_if_not_exists
(nova.compute.manager): TRACE: fn(target=base, *args, **kwargs)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 787, in _fetch_image
(nova.compute.manager): TRACE: images.fetch(image_id, target, user, project)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/images.py", line 51, in fetch
(nova.compute.manager): TRACE: metadata = image_service.get(elevated, image_id, image_file)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/image/local.py", line 116, in get
(nova.compute.manager): TRACE: raise exception.NotFound
(nova.compute.manager): TRACE: NotFound: None
(nova.compute.manager): TRACE:
2011-04-19 13:24:44,943 INFO nova.compute.manager [-] Found instance 'instance-0000000b' in DB but no VM. State=8, so setting state to shutoff.
=============================================================================
Here is my nova.conf on both computers
--verbose
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--s3_host=192.168.168.100
--rabbit_host=192.168.168.100
--cc_host=192.168.168.100
--ec2_url=http://192.168.168.100:8773/services/Cloud
--fixed_range=10.0.0.0/12
--network_size=64
--FAKE_subdomain=ec2
--sql_connection=mysql://root:nova@192.168.168.100/nova
--network_manager=nova.network.manager.FlatDHCPManager
--public_interface=eth0
--scheduler_driver=nova.scheduler.simple.SimpleScheduler
--lock_path=/tmp
Thanks for your help!