Migrating VM from one oda box to other

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

Migrating VM from one oda box to other

Ekamjot
Hi Erman,

I need to migrate full VM with contents from one oda box to other.

I copied the vm as a vm template and already cloned the vm to other odabox. How to get the vdisks created or cloned in the other oda box?? Any way for that so that i can get a full clone copy of the virtual machine on other odabox.
Reply | Threaded
Open this post in threaded view
|

Re: Migrating VM from one oda box to other

ErmanArslansOracleBlog
Administrator
Hi,

Copy that vdisk to the other ODA machine, and go through the following steps for attaching it to your new VM machine running on that other ODA machine.

How to Create Virtual Disk without Oracle VM Manager (Doc ID 1951279.1)

Like this;

Add new disk image to disk = [ ] section of vm.cfg file of a Virtual Machine. Format:

disk = [ 'file:/mnt/el4u5_64_hvm//system.img,hda,w' ]
 

Note: Making any change to vm.cfg file effective requires a domain re-creation which is Virtual Machine shutdown then start (NOT restart.)

5. If an outage on the Virtual Machine is not possible, then hot plug read/write as /dev/xvdX by:

# xm block-attach [domain ID] /path/to/image /dev/xvdX w
Reply | Threaded
Open this post in threaded view
|

Re: Migrating VM from one oda box to other

ErmanArslansOracleBlog
Administrator
This post was updated on .
This is my advice to you as the operation that you are asking for is not documented, but I believe it can be done manually..
Reply | Threaded
Open this post in threaded view
|

Re: Migrating VM from one oda box to other

Ekamjot
These are the steps:

 Change the directory at which the repository is mounted, e.g.:
# cd /to/path/to/repo

3. Create the raw format .img disk image, e.g. initiating 4 GB Virtual Disk:
# dd if=/dev/zero of=newdisk.img bs=1M count=4096

The above img file will be new file without any data. How will it get data from the vdisk copied from the older box.

4. Then add new disk image to disk = [ ] section of vm.cfg file of a Virtual Machine. Format:
disk = [ 'file:/mnt/el4u5_64_hvm//system.img,hda,w' ]
Reply | Threaded
Open this post in threaded view
|

Re: Migrating VM from one oda box to other

Erman
Dont do those steps it s just for showing you the way for attaching a disk manually.
What you need to do it is to copy the disk file to the new ODA machine and attach that disk file to your vm.
Reply | Threaded
Open this post in threaded view
|

Re: Migrating VM from one oda box to other

Ekamjot
One question on this..I was trying to copy files to ODA box on .ACFS file system but it is throwing an error of permission denied.

Is there any way to provide the provide the promission as i could see for root the permissions are already there
Reply | Threaded
Open this post in threaded view
|

Re: Migrating VM from one oda box to other

ErmanArslansOracleBlog
Administrator
Disable selinux and retry.
Reply | Threaded
Open this post in threaded view
|

Re: Migrating VM from one oda box to other

ErmanArslansOracleBlog
Administrator
I m resiviting this issue, as I found a document which explains migrating a VM from one oda node to another.

Check this out:

ODAVM: How to Move a User VM from One Node on ODA to the Other (Doc ID 1572942.1)
Reply | Threaded
Open this post in threaded view
|

Re: Migrating VM from one oda box to other

Prince
Hello,

Thanks for the information.

But how the vdisk cloning will work with the note id that you have provided?

Regards
Ekam
Reply | Threaded
Open this post in threaded view
|

Re: Migrating VM from one oda box to other

ErmanArslansOracleBlog
Administrator
Hi,

That document is for moving a User VM from One ODa Node to another.

What do you mean? Can you describe what you need a little bit more?