문제

Is it possible to get a virtual machine container* from OpenStack? How? I'm specially interested to get the container in ovf format.

*The container format refers to whether the virtual machine image is in a file format that also contains metadata about the actual virtual machine. (http://docs.openstack.org/developer/glance/formats.html?highlight=ovf)

도움이 되었습니까?

해결책

ovf doesn't seem to be supported but vdi is, which is the Virtualbox disk image format. So if your goal is to import the openstack virtual machine into Virtualbox you could also probably do the following (Doesn't Virtualbox support qcow2 disk images out of the box?):

I've made the following assumptions: You're not using cinder as storage for the virtual machine you are trying to import into VirtualBox.

First we need to get the instance name of the virtual machine you want to import:

nova list
nova show <uuid of instance you want to export>
# Note down the name of the instance which should be something like instance-00000xx

Now we need to go the actual place where the instance is being stored

cd /var/lib/nova/instances/instance-00000xx # change this to actual instance name
qemu-img convert -O vdi disk virtual-box-disk.vdi

Now you can go to Create a new virtual machine and choose use existing disk: virtual-box-disk.vdi.

Haven't verified yet if this will work. Also the paths may be different if you are in devstack or on a different OS.

다른 팁

In Icehouse the steps are slightly different:

$ nova list --all-tenants | grep somevm
| 1aa2252f-cc62-4581-94a6-73a836e5491c | somvm   | 63ce0c9526474e34b59fbcf6bb8b9cc2 | ACTIVE  | -          | Running     | qalt-net=192.168.122.30, 10.128.13.171   |

You can then take the first field which is the VM's ID and it's present in this directory: /var/lib/nova/instances.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top