------=_Part_9876_729657104.1404146928830
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
How do I do this to a VM that has multiple disks?=20
virt-install --connect qemu:///system --ram 1024 -n griffu -r 2048 --os-typ=
e=3Dlinux --os-variant=3Drhel6 --disk path=3D/media/Storage/<VMName>.qcow2,=
device=3Ddisk,format=3Dqcow2 --vcpus=3D2 --vnc --noautoconsole =E2=80=93imp=
ort=20
----- Original Message -----
From: "Koen Vanoppen" <vanoppen.koen(a)gmail.com>=20
To: "Massimo Mad" <mad1969it(a)gmail.com>, users(a)ovirt.org=20
Sent: Friday, June 27, 2014 1:41:12 AM=20
Subject: Re: [ovirt-users] Convert vmware vm=20
II created this document for the company where I work. Maybe it is userfull=
for you too:=20
Migrate from VMWare to oVirt=20
1. On VmWare:=20
a. Export the VM to ovf format. There is a smb/nfs share on virt-v2v you ca=
n use as storage.=20
i. NFS: Virtv2v.:/media/Storage=20
ii. SMB: virtv2v. =EF=83=A0 share: virtv2v=20
2. with virtv2v=20
a. Log in on the virt-v2v vm.=20
b. Locate and Extract the ovf file with tar =E2=80=93xvf=20
c. Convert the extracted vmdk file to raw disk format with the following co=
mmand:=20
vboxmanage clonehd --format RAW <VMNAME>.vmdk <NewVMName>.raw=20
d. Convert the created RAW file to a qemu2 img:=20
qemu-img convert -f raw <VM-Name>.raw -O qcow2 <VMName>.qcow2=20
e. Run the vm in virsh:=20
virt-install --connect qemu:///system --ram 1024 -n griffu -r 2048 --os-typ=
e=3Dlinux --os-variant=3Drhel6 --disk path=3D/media/Storage/<VMName>.qcow2,=
device=3Ddisk,format=3Dqcow2 --vcpus=3D2 --vnc --noautoconsole =E2=80=93imp=
ort=20
f. Take a xml dump of the VM and copy the result in a new file <VMName>.xml=
=20
virsh dumpxml <VMName>=20
g. Now let=E2=80=99s move the vm to ovirt. Make sure the nfs is attached to=
the TestDev Datacenter.=20
virt-v2v -i libvirtxml -ic qemu+ssh://<FQDN-Hypervisor> /system -o rhev -os=
<FQDN-NFS-exportdomainserver>:/media/NfsProgress -n ovirtmgmt <VMName>.xml=
=20
2014-06-24 15:19 GMT+02:00 Massimo Mad < mad1969it(a)gmail.com > :=20
Hello,=20
I downloaded an image . vmdk from a repository and wanted to import it into=
my oVirt infrastructure .=20
Is it possible?=20
If it is possible how?=20
Thanks,=20
Massimo=20
_______________________________________________=20
Users mailing list=20
Users(a)ovirt.org=20
http://lists.ovirt.org/mailman/listinfo/users=20
_______________________________________________=20
Users mailing list=20
Users(a)ovirt.org=20
http://lists.ovirt.org/mailman/listinfo/users=20
------=_Part_9876_729657104.1404146928830
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><body><div style=3D"font-family: times new roman, new york,
times, se=
rif; font-size: 12pt; color: #000000"><div><span
name=3D"x">How do I do thi=
s to a VM that has multiple disks?</span><br></div><div><span
name=3D"x"><b=
r></span></div><div><span
name=3D"x"><br></span></div><div><span
name=3D"x"=
virt-install --connect qemu:///system --ram 1024 -n griffu -r 2048
--os-ty=
pe=3Dlinux --os-variant=3Drhel6 --disk
path=3D/media/Storage/<VMName>=
.qcow2,device=3Ddisk,format=3Dqcow2 --vcpus=3D2 --vnc --noautoconsole =E2=
=80=93import <br></span></div><div><span
name=3D"x"><br></span></div><div><=
span name=3D"x"><br></span></div><div><span
name=3D"x"><br></span></div><hr=
id=3D"zwchr"><div
style=3D"color:#000;font-weight:normal;font-style:normal=
;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt=
;" data-mce-style=3D"color: #000; font-weight: normal; font-style: normal; =
text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: =
12pt;"><b>From: </b>"Koen Vanoppen"
&lt;vanoppen.koen(a)gmail.com&gt;<br><b>T=
o: </b>"Massimo Mad" &lt;mad1969it(a)gmail.com&gt;,
users(a)ovirt.org<br><b>Sen=
t: </b>Friday, June 27, 2014 1:41:12 AM<br><b>Subject: </b>Re:
[ovirt-users=
] Convert vmware vm<br><div><br></div><div
dir=3D"ltr">II created this docu=
ment for the company where I work. Maybe it is userfull for you too:<br><di=
v><br></div>Migrate from VMWare to
oVirt<br><div><br></div>1. &n=
bsp; On VmWare:<br><div><br></div>a.
Export the VM to ovf=
format. There is a smb/nfs share on virt-v2v you can use as storage. =
<br> i. NFS:
Virtv2v.:/media/Storage<br>ii. &=
nbsp; SMB: virtv2v. =EF=83=A0 share:
virtv2v<br><div><br></div>2. &nbs=
p; with virtv2v
<br><div><br></div>a. Log in on
the=
virt-v2v vm.<br>b. Locate and Extract the ovf file
with =
tar =E2=80=93xvf<br>c. Convert the extracted vmdk file
to=
raw disk format with the following command:<br> vboxmanage clonehd --forma=
t RAW <VMNAME>.vmdk
<NewVMName>.raw<br>d. Con=
vert the created RAW file to a qemu2 img:<br>qemu-img convert -f raw <VM=
-Name>.raw -O qcow2
<VMName>.qcow2<br>e. Run the=
vm in virsh:<br> virt-install --connect qemu:///system --ram 1024 -n griff=
u -r 2048 --os-type=3Dlinux --os-variant=3Drhel6 --disk path=3D/media/Stora=
ge/<VMName>.qcow2,device=3Ddisk,format=3Dqcow2 --vcpus=3D2 --vnc --no=
autoconsole =E2=80=93import<br>f. Take a xml dump of
the =
VM and copy the result in a new file <VMName>.xml<br> virsh dumpxml
&=
lt;VMName><br>g. Now let=E2=80=99s move the vm
to ovir=
t. Make sure the nfs is attached to the TestDev Datacenter.<br>virt-v2v -i =
libvirtxml -ic qemu+ssh://<FQDN-Hypervisor> /system -o rhev -os <F=
QDN-NFS-exportdomainserver>:/media/NfsProgress -n ovirtmgmt <VMName&g=
t;.xml<br> <br></div><div
class=3D"gmail_extra"><br><div><br></div><div
cla=
ss=3D"gmail_quote">2014-06-24 15:19 GMT+02:00 Massimo Mad <span
dir=3D"ltr"=
<<a href=3D"mailto:mad1969it@gmail.com"
target=3D"_blank" data-mce-href=
=3D"mailto:mad1969it@gmail.com">mad1969it@gmail.com</a>></span>:<br><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px
#c=
cc solid;padding-left:1ex" data-mce-style=3D"margin: 0 0 0 .8ex; border-lef=
t: 1px #ccc solid; padding-left: 1ex;"><div
class=3D"HOEnZb"><div class=3D"=
h5"><div
dir=3D"ltr"><div><div>Hello,<br><span
lang=3D"en"><span>I download=
ed</span> <span>an image .</span><span>vmdk</span>
<span>from a repository<=
/span> <span>and wanted to</span> <span>import it</span>
<span>into my</spa=
n> <span>oVirt</span>
<span>infrastructure</span><span>.</span><br>
<span>I=
s it possible?</span><br> <span>If it is possible</span>
<span>how?</span><=
/span><br></div>Thanks,<br></div>Massimo<br></div></div></div><br>_________=
______________________________________<br> Users mailing list<br> <a href=
=3D"mailto:Users@ovirt.org" target=3D"_blank"
data-mce-href=3D"mailto:Users=
@ovirt.org">Users(a)ovirt.org</a><br> <a
href=3D"http://lists.ovirt.org/mailm=
an/listinfo/users" target=3D"_blank"
data-mce-href=3D"http://lists.ovirt.or=
g/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo...
<br>
<br></blockquote></div><br></div><br>_________________________________=
______________<br>Users mailing
list<br>Users@ovirt.org<br>http://lists.ovi=
rt.org/mailman/listinfo/users<br></div><div><br>&...
------=_Part_9876_729657104.1404146928830--