<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"></p>
<div>Hi Team ,</div>
<div><br>
</div>
<div> I am new to virt-install , need your help pls .</div>
<div><br>
</div>
<div> With below command I able to create a VM & I can see the mac address as well .</div>
<div><br>
</div>
<div>virt-install --virt-type=kvm --name newclicentos --ram 6144 --vcpus=2 --import --network=bridge=br0,model=virtio --graphics vnc --disk path=centos7.0.qcow2,size=60,bus=virtio,format=qcow2 --os-variant centos7.0 --mac=00:00:00:00:01:01</div>
<div><br>
</div>
<div><br>
</div>
<div> With below command I am trying to assign an IP address , however it throws error .</div>
<div> I dont want to give --location as I already have the vm build in centos7.0.qcow2</div>
<div> Is there a was I can assign static IP to my VM ?</div>
<div><br>
</div>
<div>[root@localhost tmp]# virt-install --virt-type=kvm --name newclicentos --ram 6144 --vcpus=2 --import --network=bridge=br0,model=virtio --extra-args "ip=10.254.173.99::10.254.172.1::255.255.254.0::newclicentos:eth0:none" --mac=00:00:00:00:01:01 --graphics
 vnc --disk path=centos7.0.qcow2,size=60,bus=virtio,format=qcow2</div>
<div>ERROR    --extra-args only work if specified with --location.</div>
<div><br>
</div>
<div><br>
</div>
<div> Let me know if you need any info from me</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Devis Reagan</div>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<div><font size="2">
<p class="MsoNormal"><span style="FONT-SIZE: 10pt; COLOR: #3333cc; FONT-FAMILY: 'Bookman Old Style','serif'"><font face="Tahoma" color="#000000"></font></span> </p>
<p class="MsoNormal"><span style="FONT-SIZE: 10pt; COLOR: #3333cc; FONT-FAMILY: 'Bookman Old Style','serif'"><font face="Tahoma" color="#000000">Regards,</font></span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 10pt; COLOR: #3333cc; FONT-FAMILY: 'Bookman Old Style','serif'"><font face="Tahoma" color="#000000">Devis Reagan</font></span></p>
<p class="MsoNormal"><b><span style="FONT-SIZE: 10pt; COLOR: #3333cc; FONT-FAMILY: 'Bookman Old Style','serif'"><font face="Tahoma">HCL Technologies Ltd.</font></span></b></p>
<b><span style="FONT-SIZE: 10pt; COLOR: #3333cc; FONT-FAMILY: 'Bookman Old Style','serif'"></span></b></font>
<p class="MsoNormal"><font size="2"><b><span style="FONT-SIZE: 10pt; COLOR: #3333cc; FONT-FAMILY: 'Bookman Old Style','serif'"><a href="http://www.hcl.com/" target="_blank" id="LPNoLP"><font face="Tahoma">www.hcl.com</font></a></span></b></font></p>
</div>
</div>
</div>
::DISCLAIMER::<br>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or
 incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely
 those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent
 of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.<br>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
</body>
</html>