On 03/31/2012 01:49 AM, Andrey Falko wrote:
> -----Original Message-----
> From: Michal Kopacki [mailto:mkopacki@gmail.com]
> Sent: Thursday, March 29, 2012 10:15 PM
> To: Andrey Falko
> Cc: users(a)ovirt.org
> Subject: Re: [Users] Importing an existing VM
>
> On Thu, 29 Mar 2012 19:14:58 -0700
> Andrey Falko<afalko(a)salesforce.com> wrote:
>
>> Hi everyone,
>>
>> I am new to ovirt and can't find any documentation about how to import
>> an existing VM into ovirt. I have a qcow2 image that I know runs under
>> a KVM hypervisor. Ideally there would be a way for me to import it as
>> a template because I plan to create other virtual machines based off
>> this VM.
>>
>> I tried virt-v2v, but it will only work if I have a datacenter setup
>> with NFS. In my case, I have a datacenter setup for local storage
>> hosts.
>>
>> Thanks,
>> Andrey
>>
>
>
> You should create export domain (nfs but still locally on same
> machine) and import existing image to this domain. After succesfull
> import you can restore machine to your local images domain and
> start VM.
>
> --
> Michal
>
I was able to do this successfully. Thanks!
My VM however does not start up :(. I keep hitting this error:
VM testVM2 is down. Exit message internal error process exited while connecting to
monitor: Supported machines are: pc RHEL 6.2.0 PC (alias of rhel6.2.0) rhel6.2.0 RHEL
6.2.0 PC (default) rhel6.1.0 RHEL 6.1.0 PC rhel6.0.0 RHEL 6.0.0 PC rhel5.5.0 RHEL 5.5.0 PC
rhel5.4.4 RHEL 5.4.4 PC rhel5.4.0 RHEL 5.4.0 PC .
I see this in vdsm.log on the host:
Thread-64891::DEBUG::2012-03-30 22:45:50,372::vm::357::vm.Vm::(_startUnderlyingVm)
vmId=`ccb15c61-c20e-4195-9efc-3ca8edf2d9e6`::_ongoingCreations released
Thread-64891::ERROR::2012-03-30 22:45:50,372::vm::381::vm.Vm::(_startUnderlyingVm)
vmId=`ccb15c61-c20e-4195-9efc-3ca8edf2d9e6`::The vm start process failed
Traceback (most recent call last):
File "/usr/share/vdsm/vm.py", line 347, in _startUnderlyingVm
self._run()
File "/usr/share/vdsm/libvirtvm.py", line 1101, in _run
self._connection.createXML(domxml, flags),
File "/usr/share/vdsm/libvirtconnection.py", line 63, in wrapper
ret = f(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2087, in
createXML
if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirtError: internal error process exited while connecting to monitor: Supported
machines are:
pc RHEL 6.2.0 PC (alias of rhel6.2.0)
rhel6.2.0 RHEL 6.2.0 PC (default)
rhel6.1.0 RHEL 6.1.0 PC
rhel6.0.0 RHEL 6.0.0 PC
rhel5.5.0 RHEL 5.5.0 PC
rhel5.4.4 RHEL 5.4.4 PC
rhel5.4.0 RHEL 5.4.0 PC
How do I go about troubleshooting this?
http://lists.ovirt.org/pipermail/users/2012-March/001401.html
since this seems to be going around, how about opening a bug (use
keyword: Improvement) to better handle detection of emualted machines at
host/cluster level)
thanks