Already a member?
Sign in
Location: Oracle VM
Discussion: Importing vm's
Keyword tags:
linux
oraclevm
virtualization
vm
Watch
|
netdxr netdxr |
Importing vm's
Nov 18 2007, 11:15 AM EST I'm trying to import some existing vm's but having a problem getting the images to show up in the "Virtual Machine Image Name" in the Import wizard. I think this is because my modified vm.cfg is in the wrong place, but I can't find anything in the docs about the path where this file should be put. Any help would be appreciated! :) -Tom 0 out of 3 found this valuable. Do you? |
|
wcoekaer wcoekaer |
RE: Importing vm's
Nov 18 2007, 1:03 PM EST hm. well if its in the wrong place you should get an error. import virtual machine basically goes straight to deploying it.in the main VM screen. import template builds up a list of virtual machines you can use to create a new one from. I think this might be a bit confusing we have to look at that more. but normally you should do this : put the VM in /OVS/running_pool/myvmname inside that directory you should have your vm.cfg and your system.img or whatever the disknames and then when you do import existing, it should find that myvmname if not, what's the error ? 1 out of 4 found this valuable. Do you? |
|
netdxr netdxr |
RE: Importing vm's
Nov 19 2007, 8:30 AM EST Thanks for the reply... that was helpful. Putting the image and vm.cfg in a subdirectory under running_pool makes perfect sense and I tried that before my first post. The problem I just discovered is that VM Manager sometimes doesn't pick up changes in the /OVS filesystem without logging out and back in again. The same is true when adding and importing iso images. I'm at the next step in the import process, but am getting a "Cannot obtain Virtual Machine type" when I try to advance from "General Information" to "Import". Tried the operation as both "admin/private" and as a regular user "rmdc/My Workspace" with the same result. It's a Fedora 6, xen 3.0.3 image and I'm wondering if that might be an issue. I can bring the it up manually with a "xm create tekdocs", so at least I know that the vm is happy in the xen 3.1.1 environment. -Tom 0 out of 3 found this valuable. Do you? |
|
selinacui selinacui |
RE: Importing vm's
Nov 20 2007, 9:45 PM EST please provide the ovs_query.log which is in /var/log/ovs-agent/, after you reproduce it. 1 out of 3 found this valuable. Do you? |
|
netdxr netdxr |
RE: Importing vm's
Nov 21 2007, 12:53 PM EST Thanks for the pointer to that log... I think I see the problem: "2007-11-19 04:19:26" DEBUG=> get_vm_type: utility server 'rmvdc2' is selected. "2007-11-19 04:19:26" ERROR=> get_vm_type: failed. vm_path('/OVS/running_pool/tekdocs') => <Exception: failed:<Exception: vm config file ('/OVS/running_pool/tekdocs/vm.cfg') does not exist.>> I have two servers in an "rmvdc" pool: rmvdc1 and rmvdc2. The vm I'm trying to import is on rmvdc1 but it appears OVM is looking on rmvdc2 for the vm.cfg. Figuring out why it's doing that appears to be the next step in my learning curve. :) -Tom 0 out of 1 found this valuable. Do you? |
|
netdxr netdxr |
RE: Importing vm's
Nov 21 2007, 1:03 PM EST It occurred to me that the complete log entry on the vm import failure might be useful in this thead: "2007-11-19 04:18:12" INFO=> get_live_vm_info: success. vm info => "2007-11-19 04:19:25" INFO=> utl_list_dir: directory('/OVS/running_pool') => tekdocs/ "2007-11-19 04:19:25" INFO=> list_dir: directory('/OVS/running_pool') => tekdocs/ "2007-11-19 04:19:25" INFO=> utl_get_vm_size: vm('/OVS/running_pool/tekdocs') => 2049 "2007-11-19 04:19:25" INFO=> get_vm_size:vm('/OVS/running_pool/tekdocs') => success:size=2049 "2007-11-19 04:19:26" INFO=> xen_get_memory:vm('/OVS/running_pool/tekdocs') => memory=240M "2007-11-19 04:19:26" INFO=> get_vm_memory: vm('/OVS/running_pool/tekdocs') rs=success:mem_size=240 "2007-11-19 04:19:26" INFO=> xen_get_vcpus:vm('/OVS/running_pool/tekdocs') => vcpus=1 "2007-11-19 04:19:26" INFO=> get_vm_vcpus: vm('/OVS/running_pool/tekdocs') rs=success:vcpus=1 "2007-11-19 04:19:26" DEBUG=> get_vm_type: utility server 'rmvdc2' is selected. "2007-11-19 04:19:26" ERROR=> get_vm_type: failed. vm_path('/OVS/running_pool/tekdocs') => <Exception: failed:<Exception: vm config file ('/OVS/running_pool/tekdocs/vm.cfg') does not exist.> OVM does find the vm.cfg on rmvdc1, parses the file and echos the parameters in it... but appears to try and find it again on rmvdc2 where it doesn't exist. -Tom 0 out of 1 found this valuable. Do you? |
|
dynofu dynofu |
RE: Importing vm's
Nov 21 2007, 9:05 PM EST all the servers in the same pool are supposed to have same view on the storage. agent will look for vm under /OVS/ and /OVS/<uuid> (mounted throu ovs-makerepos). so all these directory are supporsed to be shared, plz mount the first shared storage under /OVS, and extend it when necessary using ovs-makerepos. 1 out of 2 found this valuable. Do you? |

