Ask Your Question

Create VM images for Openstack

asked 2014-03-12 13:51:31 -0500

joshua gravatar image

I am using image-guide Chapter 4 to create Ubuntu image

I am able to create an Image and load into the VM instance.

But i face the following issues 1) The IP Address of the VM instance is the same as that of when it was created in the Ubuntu VM using virt-install/virt-manager 2) I dont see any logs in the VM.

How do I remove the IP Address and make the VM instance to take the Neutron IP Address?

I am doing this to load custom application in the VM. This is acheived by ssh to the image created as a vm instance in ubuntu and scp the applications to the VM and then creating an image

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-03-15 09:51:55 -0500

mpetason gravatar image

You are probably missing this step:

virt-sysprep -d {libvirt-domain}

^^ Basically this goes through and deletes /etc/udev/rules.d/70-persistent-net.rules and it cleans up the /etc/network/interfaces. If you can't use it then just delete 70-persistent-net.rules before shutting the VM down and setup eth0 to use DHCP without any static addressing. I believe it does a few other things too like history -c.

Then you can do something similar to the Centos build to allow logs: ( To find the exact info you could get one of the ubuntu provided images, then go through and look at their settings in the cloud.cfg and the same files you modify here. )

In order for nova console-log to work properly on CentOS 6.x, guests you may need to add the following lines to /boot/grub/menu.lst

serial --unit=0 --speed=115200 terminal --timeout=10 console serial

Edit the kernel line to add the console entries

kernel ... console=tty0 console=ttyS0,115200n8

edit flag offensive delete link more

answered 2014-03-18 11:24:59 -0500

rwmjones gravatar image

virt-sysprep can customize the image how you want. (virt-builder) can create the image from scratch with customizations.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2014-03-12 13:51:31 -0500

Seen: 698 times

Last updated: Mar 18 '14