Difference between revisions of "Nova/UML"
< Nova
(Update now that the changes have been merged into nova) |
m (Text replace - "__NOTOC__" to "") |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | ||
If you want to play around with Nova in the cloud<<[[FootNote]]("Yo dawg, I heard you like clouds, so I put a cloud in your cloud..")>>, you can use user-mode-linux instead of KVM or Xen. Here's how: | If you want to play around with Nova in the cloud<<[[FootNote]]("Yo dawg, I heard you like clouds, so I put a cloud in your cloud..")>>, you can use user-mode-linux instead of KVM or Xen. Here's how: | ||
Line 11: | Line 11: | ||
wget http://nova.openstack.org/~soren/ubuntu-lucid-uml.img.gz | wget http://nova.openstack.org/~soren/ubuntu-lucid-uml.img.gz | ||
gzip -d ubuntu-lucid-uml.img.gz | gzip -d ubuntu-lucid-uml.img.gz | ||
− | euca-bundle -i ubuntu-lucid-uml.img | + | euca-bundle-image -i ubuntu-lucid-uml.img |
euca-upload-bundle -b uml-image-bucket -m /tmp/ubuntu-lucid-uml.img.manifest.xml | euca-upload-bundle -b uml-image-bucket -m /tmp/ubuntu-lucid-uml.img.manifest.xml | ||
euca-register uml-image-bucket/ubuntu-lucid-uml.img.manifest.xml | euca-register uml-image-bucket/ubuntu-lucid-uml.img.manifest.xml | ||
Line 21: | Line 21: | ||
= Explaining to nova-compute that you want UML = | = Explaining to nova-compute that you want UML = | ||
Set <code><nowiki> --libvirt_type=uml </nowiki></code> in /etc/nova/nova-compute.conf | Set <code><nowiki> --libvirt_type=uml </nowiki></code> in /etc/nova/nova-compute.conf | ||
+ | ---- | ||
+ | [[Category:Nova]] |
Latest revision as of 23:30, 17 February 2013
If you want to play around with Nova in the cloud<<FootNote("Yo dawg, I heard you like clouds, so I put a cloud in your cloud..")>>, you can use user-mode-linux instead of KVM or Xen. Here's how:
Image
First of all, you need an image that can be run by UML. Grab an Ubuntu Lucid one here: http://nova.openstack.org/~soren/ubuntu-lucid-uml.img.gz
Bundle it up like you usually would:
wget http://nova.openstack.org/~soren/ubuntu-lucid-uml.img.gz gzip -d ubuntu-lucid-uml.img.gz euca-bundle-image -i ubuntu-lucid-uml.img euca-upload-bundle -b uml-image-bucket -m /tmp/ubuntu-lucid-uml.img.manifest.xml euca-register uml-image-bucket/ubuntu-lucid-uml.img.manifest.xml
This gives you back an AMI id. Nova doesn't (yet) understand that this is a UML image and thus doesn't need a separate kernel, so when you want to run it, you need to pass a kernel and ramdisk to euca-run-instances.
Explaining to nova-compute that you want UML
Set --libvirt_type=uml
in /etc/nova/nova-compute.conf