<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 30, 2020 at 12:23 PM Stephen Finucane <<a href="mailto:stephenfin@redhat.com">stephenfin@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="text-align:left;direction:ltr"><div>On Fri, 2020-10-30 at 11:56 -0500, vladimir franciz blando wrote:</div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div><div>I edited the  libvirt xml (virsh edit...) file of a running Windows server instance because I changed the video model type from cirrus to vmvga so it can support a higher resolution on a console (cirrus supports up to 1280 only).</div><div>After editing, i "soft-rebooted" the instance and the new configuration sticks.  That's awesome.</div></div></div></div></blockquote><div><br></div><div>Please don't do this :) You shouldn't change things about an instance behind nova's back. It breaks resource tracking and can cause all sorts of horribleness.</div></div></blockquote><div><br></div><div>It is my last resort as the running Windows VM is already in production and they don't want to rebuild.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="text-align:left;direction:ltr"><div><br></div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div><div>But when you do a "hard-reboot" it will revert back to the original config.</div></div></div></div></blockquote><div><br></div><div>Hard reboot builds configuration from scratch, dumping the existing XML. This is built from the same things used when you first create the instance (flavor + extra specs, image + metadata, host-level config, ...).</div><div><br></div><div>What you want is the 'hw_video_model' image metadata property. Set this and rebuild your instance:</div><div><br></div><div>  openstack image set --property hw_video_model=vmvga $IMAGE</div><div>       openstack server rebuild $SERVER $IMAGE</div></div></blockquote><div><br></div><div>This is already done before I was doing it on running instances, so any new Windows VM will have it.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="text-align:left;direction:ltr"><div><br></div><div>Note that rebuild is a destructive operation so be sure you're aware of what this is doing before you do it.</div><div><br></div><div>Stephen</div><div><br></div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div><div>I also tried to do a "shut-down" then "start" again, but it still reads the original config.  Not sure where it  is reading the config from...</div></div><div><br></div><div>Regards<br></div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Vlad</div></div></div></div></div></div></div></div>
</blockquote><div><br></div></div>
</blockquote></div></div>