OpenStack With KVM

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenStack With KVM

Roberto Dalas Z. Benavides
Hello, I installed a server with kvm and would like to know how to have the
talk with this kvm OpenStack. What should I put in nova.conf?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20111026/a7db0366/attachment.html>

Reply | Threaded
Open this post in threaded view
|

OpenStack With KVM

Sharif Islam
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/26/2011 03:04 PM, Roberto Dalas Z. Benavides wrote:
> Hello, I installed a server with kvm and would like to know how to have
> the talk with this kvm OpenStack. What should I put in nova.conf?
>
> Thanks
>

- --libvirt_type=kvm

should do the trick.

- --sharif


- --
Sharif Islam
Senior Systems Analyst/Programmer
FutureGrid (http://futuregrid.org)
Pervasive Technology Institute, Indiana University Bloomington
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOqFtrAAoJEACffes9SivFGNcIAKeHf3hBAMcWQinUN9dRvX4d
wCG/mJhlpHB90rFPfvV6b2vDZQ2K0M62TAy6PfOoq5K4z+2oHHBQ4vNtUQCdZOM5
NCvXPsQTgEwRg6DCKM/obru8P8hQ4rqlTyF3AAretattzUuNbrCj7hOR1IrlqrlC
qL+MN9Zv2BXTApiHyL7KMsJvK1b9MhD8Ww0oMlwKL7GXQzNn4JtDiCIKz0A1Louc
HduNjw1aGuWGzWJ4ApOTLX1HBXPvfnJNlF9HLX8XsEF4/36bp4zEZNYmbqcHs80K
6mSSo0aOc31Jy/bicZX75t1dp0qt5sKQi0vTxd6E1mFYUdsMacx9rAOCwHpZxxs=
=+wZA
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|

OpenStack With KVM

Roberto Dalas Z. Benavides
But how will you know which server it should connect? and where it asks for a
username and password?

2011/10/26 Sharif Islam <islamsh at indiana.edu>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/26/2011 03:04 PM, Roberto Dalas Z. Benavides wrote:
> > Hello, I installed a server with kvm and would like to know how to have
> > the talk with this kvm OpenStack. What should I put in nova.conf?
> >
> > Thanks
> >
>
> - --libvirt_type=kvm
>
> should do the trick.
>
> - --sharif
>
>
> - --
> Sharif Islam
> Senior Systems Analyst/Programmer
> FutureGrid (http://futuregrid.org)
> Pervasive Technology Institute, Indiana University Bloomington
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJOqFtrAAoJEACffes9SivFGNcIAKeHf3hBAMcWQinUN9dRvX4d
> wCG/mJhlpHB90rFPfvV6b2vDZQ2K0M62TAy6PfOoq5K4z+2oHHBQ4vNtUQCdZOM5
> NCvXPsQTgEwRg6DCKM/obru8P8hQ4rqlTyF3AAretattzUuNbrCj7hOR1IrlqrlC
> qL+MN9Zv2BXTApiHyL7KMsJvK1b9MhD8Ww0oMlwKL7GXQzNn4JtDiCIKz0A1Louc
> HduNjw1aGuWGzWJ4ApOTLX1HBXPvfnJNlF9HLX8XsEF4/36bp4zEZNYmbqcHs80K
> 6mSSo0aOc31Jy/bicZX75t1dp0qt5sKQi0vTxd6E1mFYUdsMacx9rAOCwHpZxxs=
> =+wZA
> -----END PGP SIGNATURE-----
> _______________________________________________
> Openstack-operators mailing list
> Openstack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20111026/b242c0d2/attachment.html>

Reply | Threaded
Open this post in threaded view
|

OpenStack With KVM

Sharif Islam
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/26/2011 03:19 PM, Roberto Dalas Z. Benavides wrote:

> But how will you know which server it should connect? and where it asks
> for a username and password?


How many servers do you have?

If you have only one server then you will need to install all the nova
services there -- nova-compute, nova-network etc. Otherwise, install a
controller node with nova-network and nova-scheduler. And rest of the
servers will only have nova-compute.

And each of these compute nodes will have a nova.conf where you will
define these flags:

- --ec2_url=http://your_nova_controller_server_ip:8773/services/Cloud
- --s3_host=your_nova_controller_server_ip
- --cc_host=your_nova_controller_server_ip
- --rabbit_host=your_nova_controller_server_ip
- --network_host=your_nova_controller_server_ip

I suggest your read the doc carefully, if you haven't already:
http://docs.openstack.org/

And regarding password, usually VMs are booted up using ssh key so it
won't need a password.

- --sharif



>
> 2011/10/26 Sharif Islam <islamsh at indiana.edu <mailto:islamsh at indiana.edu>>
>
> On 10/26/2011 03:04 PM, Roberto Dalas Z. Benavides wrote:
>> Hello, I installed a server with kvm and would like to know how to
> have
>> the talk with this kvm OpenStack. What should I put in nova.conf?
>
>> Thanks
>
>
> --libvirt_type=kvm
>
> should do the trick.
>
> --sharif
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOqF6NAAoJEACffes9SivF3p4H/jn7buudugiOZCx7wKqYop15
qPwwaEHITm7mz879BOxNWOHnMFexfjPn5dNebK+9+4WJTJTB6Wo5YddNxYKbytHa
vuU9e3n9p8GHBO3UHdCvUbr9CPKCGUreMQeHpsVia37Y4rul+JD78jtGg1vl+P+N
6yPBrnsW5N2lAbhMMKFKp8tjErDGXa27dg0W5omnyKQ0puimysyyXspX63/HRSbO
Bm3H/IQneQNtxK1QyQuGnsv7PYpOPVhWaTSqSe4kFw9+a3OYwUvYrByt6BH87wWI
cOBCRJHL40hoXvo34fSm4qzi5Bv/KVJn90p+wPnLFIJYj4JUpQBXq27SpN1fecQ=
=v8y1
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|

OpenStack With KVM

Roberto Dalas Z. Benavides
I have a server with all the nova services it and on another server I have
installed kvm.
As the new will know what he kvm server will create the machine in?
For example: I use the vmware vmwareapi User data information and password.
But in kvm?

2011/10/26 Sharif Islam <islamsh at indiana.edu>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/26/2011 03:19 PM, Roberto Dalas Z. Benavides wrote:
>
> > But how will you know which server it should connect? and where it asks
> > for a username and password?
>
>
> How many servers do you have?
>
> If you have only one server then you will need to install all the nova
> services there -- nova-compute, nova-network etc. Otherwise, install a
> controller node with nova-network and nova-scheduler. And rest of the
> servers will only have nova-compute.
>
> And each of these compute nodes will have a nova.conf where you will
> define these flags:
>
> - --ec2_url=http://your_nova_controller_server_ip:8773/services/Cloud
> - --s3_host=your_nova_controller_server_ip
> - --cc_host=your_nova_controller_server_ip
> - --rabbit_host=your_nova_controller_server_ip
> - --network_host=your_nova_controller_server_ip
>
> I suggest your read the doc carefully, if you haven't already:
> http://docs.openstack.org/
>
> And regarding password, usually VMs are booted up using ssh key so it
> won't need a password.
>
> - --sharif
>
>
>
> >
> > 2011/10/26 Sharif Islam <islamsh at indiana.edu <mailto:islamsh at indiana.edu
> >>
> >
> > On 10/26/2011 03:04 PM, Roberto Dalas Z. Benavides wrote:
> >> Hello, I installed a server with kvm and would like to know how to
> > have
> >> the talk with this kvm OpenStack. What should I put in nova.conf?
> >
> >> Thanks
> >
> >
> > --libvirt_type=kvm
> >
> > should do the trick.
> >
> > --sharif
> >
> >
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJOqF6NAAoJEACffes9SivF3p4H/jn7buudugiOZCx7wKqYop15
> qPwwaEHITm7mz879BOxNWOHnMFexfjPn5dNebK+9+4WJTJTB6Wo5YddNxYKbytHa
> vuU9e3n9p8GHBO3UHdCvUbr9CPKCGUreMQeHpsVia37Y4rul+JD78jtGg1vl+P+N
> 6yPBrnsW5N2lAbhMMKFKp8tjErDGXa27dg0W5omnyKQ0puimysyyXspX63/HRSbO
> Bm3H/IQneQNtxK1QyQuGnsv7PYpOPVhWaTSqSe4kFw9+a3OYwUvYrByt6BH87wWI
> cOBCRJHL40hoXvo34fSm4qzi5Bv/KVJn90p+wPnLFIJYj4JUpQBXq27SpN1fecQ=
> =v8y1
> -----END PGP SIGNATURE-----
> _______________________________________________
> Openstack-operators mailing list
> Openstack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20111026/a0cb5646/attachment-0001.html>

Reply | Threaded
Open this post in threaded view
|

OpenStack With KVM

Sharif Islam
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/26/2011 03:30 PM, Roberto Dalas Z. Benavides wrote:
> I have a server with all the novaservices it and on another server I
> have installed kvm.
> As the new will know what he kvm server will create the machine in?


Ok. the server you have kvm, you will need to install nova-compute and
in nova.conf file add --libvirt_type=kvm along with the other options.
This way nova services will know which server to use.


> For example: I use the vmware vmwareapi User data information and
> password. But in kvm?

I think this will depend how you create your images. You can add a local
user in the image or as I mentioned before use a ssh key which will be
injected by nova as it boots up.

- --sharif
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOqGLsAAoJEACffes9SivFZMQIALchlwetKfSF5NIT4P2EzK2d
Gp7MTDLm77ATJ2XC2bhdZiHR64wdyC6ehjmHoyl5JBHcQWP6cECFuS93Yc1D8cc1
kmTKSNXtKxvn0eKxCPyARohIaJO2rXMHGEhZTr5amOx31uuebbAVpU+ONJkaw6zP
nlNvNwqfxAefHicD3jMYY+PSrQWSRDy6oxWHh5ctNDtVF0b7o3jjY7D+RzhO2gNi
dUuBHqsQQTiqmp5bRFQ0uh+nvPFTFEqazzpbS4uMRWRTXi2PVjWZLoBMZU9+Tl7g
aRbpmBOdebhsaqsvYI2vKqzR5kXRdrulRpZUGUxHIEZW6XfItvBHnVEegxyLH8g=
=aJjg
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|

OpenStack With KVM

Roberto Dalas Z. Benavides
I installed kvm and nova computer in same machine, but occurred a error:

2011-10-26 18:47:05,936 ERROR nova.exception [-] Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE:   File
"/usr/lib/python2.7/dist-packages/nova/exception
.py", line 98, in wrapped
(nova.exception): TRACE:     return f(*args, **kw)
(nova.exception): TRACE:   File
"/usr/lib/python2.7/dist-packages/nova/virt/libv
irt/connection.py", line 673, in spawn
(nova.exception): TRACE:
self.firewall_driver.setup_basic_filtering(instance
, network_info)
(nova.exception): TRACE:   File
"/usr/lib/python2.7/dist-packages/nova/virt/libv
irt/firewall.py", line 525, in setup_basic_filtering
(nova.exception): TRACE:     self.refresh_provider_fw_rules()
(nova.exception): TRACE:   File
"/usr/lib/python2.7/dist-packages/nova/virt/libv
irt/firewall.py", line 737, in refresh_provider_fw_rules
(nova.exception): TRACE:     self._do_refresh_provider_fw_rules()
(nova.exception): TRACE:   File
"/usr/lib/python2.7/dist-packages/nova/utils.py"
, line 687, in inner
(nova.exception): TRACE:     with lock:
(nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/lockfile.py",
line
223, in __enter__
(nova.exception): TRACE:     self.acquire()
(nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/lockfile.py",
line
239, in acquire
(nova.exception): TRACE:     raise LockFailed("failed to create %s" %
self.uniqu
e_name)
(nova.exception): TRACE: LockFailed: failed to create
/usr/lib/python2.7/dist-pa
ckages/OPSTACK-CTR-02.Dummy-9-23053
(nova.exception): TRACE:
2011-10-26 18:47:05,937 ERROR nova.compute.manager [-] Instance '10' failed
to
s
pawn. Is virtualization enabled in the BIOS? Details: failed to create
/usr/lib/
python2.7/dist-packages/OPSTACK-CTR-02.Dummy-9-23053
(nova.compute.manager): TRACE: Traceback (most recent call last):
(nova.compute.manager): TRACE:   File
"/usr/lib/python2.7/dist-packages/nova/com
pute/manager.py", line 424, in _run_instance
(nova.compute.manager): TRACE:     network_info, block_device_info)
(nova.compute.manager): TRACE:   File
"/usr/lib/python2.7/dist-packages/nova/exc
eption.py", line 129, in wrapped
(nova.compute.manager): TRACE:     raise Error(str(e))
(nova.compute.manager): TRACE: Error: failed to create
/usr/lib/python2.7/dist-p
ackages/OPSTACK-CTR-02.Dummy-9-23053
(nova.compute.manager): TRACE:


2011/10/26 Sharif Islam <islamsh at indiana.edu>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/26/2011 03:30 PM, Roberto Dalas Z. Benavides wrote:
> > I have a server with all the novaservices it and on another server I
> > have installed kvm.
> > As the new will know what he kvm server will create the machine in?
>
>
> Ok. the server you have kvm, you will need to install nova-compute and
> in nova.conf file add --libvirt_type=kvm along with the other options.
> This way nova services will know which server to use.
>
>
> > For example: I use the vmware vmwareapi User data information and
> > password. But in kvm?
>
> I think this will depend how you create your images. You can add a local
> user in the image or as I mentioned before use a ssh key which will be
> injected by nova as it boots up.
>
> - --sharif
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJOqGLsAAoJEACffes9SivFZMQIALchlwetKfSF5NIT4P2EzK2d
> Gp7MTDLm77ATJ2XC2bhdZiHR64wdyC6ehjmHoyl5JBHcQWP6cECFuS93Yc1D8cc1
> kmTKSNXtKxvn0eKxCPyARohIaJO2rXMHGEhZTr5amOx31uuebbAVpU+ONJkaw6zP
> nlNvNwqfxAefHicD3jMYY+PSrQWSRDy6oxWHh5ctNDtVF0b7o3jjY7D+RzhO2gNi
> dUuBHqsQQTiqmp5bRFQ0uh+nvPFTFEqazzpbS4uMRWRTXi2PVjWZLoBMZU9+Tl7g
> aRbpmBOdebhsaqsvYI2vKqzR5kXRdrulRpZUGUxHIEZW6XfItvBHnVEegxyLH8g=
> =aJjg
> -----END PGP SIGNATURE-----
> _______________________________________________
> Openstack-operators mailing list
> Openstack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20111026/30bc71cf/attachment.html>

Reply | Threaded
Open this post in threaded view
|

OpenStack With KVM

Roberto Dalas Z. Benavides
In reply to this post by Sharif Islam
Thanks Sharif. I got

2011/10/26 Sharif Islam <islamsh at indiana.edu>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/26/2011 03:30 PM, Roberto Dalas Z. Benavides wrote:
> > I have a server with all the novaservices it and on another server I
> > have installed kvm.
> > As the new will know what he kvm server will create the machine in?
>
>
> Ok. the server you have kvm, you will need to install nova-compute and
> in nova.conf file add --libvirt_type=kvm along with the other options.
> This way nova services will know which server to use.
>
>
> > For example: I use the vmware vmwareapi User data information and
> > password. But in kvm?
>
> I think this will depend how you create your images. You can add a local
> user in the image or as I mentioned before use a ssh key which will be
> injected by nova as it boots up.
>
> - --sharif
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJOqGLsAAoJEACffes9SivFZMQIALchlwetKfSF5NIT4P2EzK2d
> Gp7MTDLm77ATJ2XC2bhdZiHR64wdyC6ehjmHoyl5JBHcQWP6cECFuS93Yc1D8cc1
> kmTKSNXtKxvn0eKxCPyARohIaJO2rXMHGEhZTr5amOx31uuebbAVpU+ONJkaw6zP
> nlNvNwqfxAefHicD3jMYY+PSrQWSRDy6oxWHh5ctNDtVF0b7o3jjY7D+RzhO2gNi
> dUuBHqsQQTiqmp5bRFQ0uh+nvPFTFEqazzpbS4uMRWRTXi2PVjWZLoBMZU9+Tl7g
> aRbpmBOdebhsaqsvYI2vKqzR5kXRdrulRpZUGUxHIEZW6XfItvBHnVEegxyLH8g=
> =aJjg
> -----END PGP SIGNATURE-----
> _______________________________________________
> Openstack-operators mailing list
> Openstack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20111027/54ce78d5/attachment.html>

Reply | Threaded
Open this post in threaded view
|

OpenStack + QEMU, no nics defined.

MARTIN, JASON
In reply to this post by Sharif Islam
Hello, I am attempting to run OpenStack+QEMU. It is running ttylinux. Inside the instance it is not detecting a network device (ifconfig -a shows nothing, dmesg shows nothing detected), and I don't see any -net or -netdev definitions in the qemu command. The generated QEMU command line is:

/usr/bin/qemu -S -M pc-0.14 -no-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name instance-0000000e -uuid 2663a0e0-baa3-31a5-1be1-c1e000c2c8de -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-0000000e.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot c -kernel /var/lib/nova/instances/instance-0000000e/kernel -initrd /var/lib/nova/instances/instance-0000000e/ramdisk -append root=/dev/vda console=ttyS0 -drive file=/var/lib/nova/instances/instance-0000000e/disk,if=none,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,id=virtio-disk0 -chardev pipe,id=charserial0,path=/var/lib/nova/instances/instance-0000000e/console.fifo -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -usb -vnc 0.0.0.0:0 -k en-us -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4

I see in /usr/share/pyshared/nova/virt/libvirt.xml.template
" #for $nic in $nics
    #if $vif_type == 'ethernet'
        <interface type='ethernet'>
            <target dev='${nic.name}' />
            <mac address='${nic.mac_address}' />
            <script path='${nic.script}' />
        </interface>
"

However, /etc/libvirt/qemu/instance-0000000e.xml does not have any network definitions in it. Any suggestions on what might cause a lack of nic definitions?

This is on the latest Ubuntu OpenStack packages.

Thank you,
-Jason Martin