Export ODA VM

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

Export ODA VM

Ciro
Hello, is it possible to export ODA's repository VMs in order to launch them on a virtualization platform (like VMware...)?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Export ODA VM

ErmanArslansOracleBlog
Administrator
I didn't test this yet, but I think that you can do it by getting OVA Exports from your ODA environments.
Normally in OVA files, you have  the virtual disk file(s) in VMDK format, an OVF file that holds the virtual machine(s) configuration, and other files such as a manifest and certificate.
However; the file format in ODA is different than VMDK.

So the problem is that, as far as I see, there is no documentation for doing this on ODA. (for exporting a VM as OVA)

Also, I don't see any automatic tool on ODA for doing this on ODA.

Still, you should be able to do it using third party tools.

For example the  qemu-img utility - qemu convert can convert an img file to vmdk..
So you need to do that convertion by a manual work and you need try .. you understand what I mean?
Reply | Threaded
Open this post in threaded view
|

Re: Export ODA VM

Ciro
Yes, i'll try and let you know! Thank you so much!
Reply | Threaded
Open this post in threaded view
|

Re: Export ODA VM

Ciro
Ok, I've succesfully converted an .img raw image file to a .vmdk file

Problem is that other two virtual disks are attached to my vm and in the .ACFS folder they are two files with no extention.

How can I import them?

I've created a new vm with VMWare but during boot it goes on kernel panic obvioulsy because it can't find other partitions
Reply | Threaded
Open this post in threaded view
|

Re: Export ODA VM

Ciro
Update: I've succesfully started the vm (that one with the two vdisks)

The solution was to add the vmdk file as an IDE one.

So now I have to attach the two vdisks... any suggestions?
Reply | Threaded
Open this post in threaded view
|

Re: Export ODA VM

ErmanArslansOracleBlog
Administrator
In reply to this post by Ciro
Send me a "ls -al" and "pwd" output from that directory.
Reply | Threaded
Open this post in threaded view
|

Re: Export ODA VM

Ciro
Hello, this is the folder with the .img vm file I've succesfully converted (vm name insiel):
total 6148352
drwxr-xr-x 2 root root        8192 Dec 12  2016 .
drwxr-xr-x 3 root root        8192 Dec 12  2016 ..
-rw-r--r-- 1 root root         280 Dec 12  2016 README
-rw-r--r-- 1 root root 12884901888 Oct  7 09:32 System.img
-rw-r--r-- 1 root root         692 Oct  4 11:46 vm.cfg

pwd
/u01/app/sharedrepo/shared1/.ACFS/snaps/insiel/VirtualMachines/insiel


This is the first vdisk attached:
drwxr-xr-x 2 root root         8192 Dec 13  2016 .
drwxr-xr-x 8 root root         4096 Dec 13  2016 ..
-rw-r--r-- 1 root root 107374182400 Oct  7 09:34 oakvdk_vdisk1_insiel

pwd
/u01/app/sharedrepo/shared1/.ACFS/snaps/oakvdk_vdisk1_insiel/VirtualDisks


And this is the second vdisk attached:
total 52430868
drwxr-xr-x 2 root root        8192 Jan 16  2017 .
drwxr-xr-x 8 root root        4096 Jan 16  2017 ..
-rw-r--r-- 1 root root 53687091200 Oct  7 08:01 oakvdk_vdisk2_insiel

pwd
/u01/app/sharedrepo/shared1/.ACFS/snaps/oakvdk_vdisk2_insiel/VirtualDisks
Reply | Threaded
Open this post in threaded view
|

Re: Export ODA VM

Ciro
Actually I converted the two vdisks with the same method of the .img file and attached with vmware.

The point is, how can I mount them exactly like in the original vm?
Reply | Threaded
Open this post in threaded view
|

Re: Export ODA VM

Ciro
Update: I've edited the fstab and now the vm sees both the vdisks ;)
Reply | Threaded
Open this post in threaded view
|

Re: Export ODA VM

ErmanArslansOracleBlog
Administrator
:) good for you Ciro.