<div dir="ltr">Yes, that should be enough for both approached... I am not sure why you need step 1, but I guess it may be needed in some scenarios. If you go for the DB don't forget to backup and stop oned first.<div><br>
</div><div>Cheers</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 6, 2013 at 1:59 PM, Karsten Nielsen <span dir="ltr"><<a href="mailto:karsten@unity3d.com" target="_blank">karsten@unity3d.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK,<br>
<br>
If I am to avoid that.<br>
<br>
Then I see my steps as:<br>
1. Create new images from the running vm and make them permanent.<br>
2. Create a new template that has the right bus and target prefixes set<br>
3. Create a vm from that template<br>
<br>
Am I mission something ?<br>
<br>
<br>
If I change the DB then<br>
<DEV_PREFIX><![CDATA[hd]]></<u></u>DEV_PREFIX><DISK_ID><![CDATA[<u></u>0]]></DISK_ID><IMAGE><![CDATA[<u></u>root-20130726]]></IMAGE><<u></u>IMAGE_ID><![CDATA[49]]></<u></u>IMAGE_ID><PERSISTENT><![CDATA[<u></u>YES]]></PERSISTENT><READONLY><<u></u>![CDATA[NO]]></READONLY><SAVE><u></u><![CDATA[YES]]></SAVE><SOURCE><u></u><![CDATA[sata/one-49]]></<u></u>SOURCE><TARGET><![CDATA[hda]]><u></u></TARGET><TM_MAD><![CDATA[<u></u>ceph]]></TM_MAD><TYPE><![<u></u>CDATA[RBD]]></TYPE></DISK><<u></u>DISK><CLONE><![CDATA[NO]]></<u></u>CLONE><CLUSTER_ID><![CDATA[<u></u>100]]></CLUSTER_ID><br>
<br>
Should be changed to<br>
<DEV_PREFIX><![CDATA[vd]]></<u></u>DEV_PREFIX><DISK_ID><![CDATA[<u></u>0]]></DISK_ID><IMAGE><![CDATA[<u></u>root-20130726]]></IMAGE><<u></u>IMAGE_ID><![CDATA[49]]></<u></u>IMAGE_ID><PERSISTENT><![CDATA[<u></u>YES]]></PERSISTENT><READONLY><<u></u>![CDATA[NO]]></READONLY><SAVE><u></u><![CDATA[YES]]></SAVE><SOURCE><u></u><![CDATA[sata/one-49]]></<u></u>SOURCE><TARGET><![CDATA[vda]]><u></u></TARGET><TM_MAD><![CDATA[<u></u>ceph]]></TM_MAD><TYPE><![<u></u>CDATA[RBD]]></TYPE></DISK><<u></u>DISK><CLONE><![CDATA[NO]]></<u></u>CLONE><CLUSTER_ID><![CDATA[<u></u>100]]></CLUSTER_ID><br>
<br>
<br>
- Karsten<br>
<br>
On 06/11/13 13:13, Ruben S. Montero wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm afraid you can't. The template used to instantiate the VM is used to<br>
generate a detailed VM description (that includes the bus prefix and<br>
target's). You'd need to modify that directly in the DB, but I'd try to<br>
avoid that.<br>
<br>
Cheers<br>
<br>
<br>
On Wed, Nov 6, 2013 at 1:06 PM, Karsten Nielsen <<a href="mailto:karsten@unity3d.com" target="_blank">karsten@unity3d.com</a><br>
<mailto:<a href="mailto:karsten@unity3d.com" target="_blank">karsten@unity3d.com</a>>> wrote:<br>
<br>
Hi,<br>
<br>
I have a vm running from a template that has set the wrong disk<br>
prefix therefore the vm uses scsi driver for the disk and not the<br>
virtio driver.<br>
<br>
Can I change that just by stopping the vm edit the template that it<br>
was created from and start it again ?<br>
<br>
I am running opennebula 4.2 with kvm hosts<br>
<br>
- Karsten<br>
______________________________<u></u>___________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a> <mailto:<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.<u></u>opennebula.org</a>><br>
<a href="http://lists.opennebula.org/__listinfo.cgi/users-opennebula.__org" target="_blank">http://lists.opennebula.org/__<u></u>listinfo.cgi/users-opennebula.<u></u>__org</a><br>
<<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a>><br>
<br>
<br>
<br><span class="HOEnZb"><font color="#888888">
<br>
--<br>
--<br>
Ruben S. Montero, PhD<br>
Project co-Lead and Chief Architect<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> <<a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a>> |<br>
<a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> <mailto:<a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.<u></u>org</a>> | @OpenNebula<br>
</font></span></blockquote>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div>-- <br></div></div>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula</div></div>
</div>