<div dir="ltr">Already found a solution which entails hacking nova database, specifically the instance_system_metadata table<div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Regards</div><div>Vlad</div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 30, 2020 at 4:57 PM vladimir franciz blando <<a href="mailto:vladimir.blando@gmail.com">vladimir.blando@gmail.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 dir="ltr"><div>Yes, I am fully aware of support implications if you edit this.  But fortunately this is not in any way a vendor support OpenStack deployment</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 30, 2020 at 1:29 PM Sean Mooney <<a href="mailto:smooney@redhat.com" target="_blank">smooney@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">On Fri, 2020-10-30 at 17:23 +0000, Stephen Finucane wrote:<br>
> On Fri, 2020-10-30 at 11:56 -0500, vladimir franciz blando wrote:<br>
> > Hi,<br>
> > I edited the  libvirt xml (virsh edit...) file of a running Windows<br>
> > server instance because I changed the video model type from cirrus to<br>
> > vmvga so it can support a higher resolution on a console (cirrus<br>
> > supports up to 1280 only).<br>
> > After editing, i "soft-rebooted" the instance and the new<br>
> > configuration sticks.  That's awesome.<br>
> <br>
> Please don't do this :) You shouldn't change things about an instance<br>
> behind nova's back. It breaks resource tracking and can cause all sorts<br>
> of horribleness.<br>
<br>
if you have support form an openstack vendor like redhat editing the domain<br>
xml also make that vm unsupported until its restroed to the way nova generated.<br>
it might also make other issue caused as a resulted unsupported.<br>
so unless you are self supporting you cloud be very carful with doing this.<br>
> <br>
> > But when you do a "hard-reboot" it will revert back to the original<br>
> > config.<br>
> <br>
> Hard reboot builds configuration from scratch, dumping the existing<br>
> XML. This is built from the same things used when you first create the<br>
> instance (flavor + extra specs, image + metadata, host-level config,<br>
> ...).<br>
> <br>
> What you want is the 'hw_video_model' image metadata property. Set this<br>
> and rebuild your instance:<br>
> <br>
>         openstack image set --property hw_video_model=vmvga $IMAGE<br>
this is the supported way to change this value ^<br>
it will take effect for new instances.<br>
>         openstack server rebuild $SERVER $IMAGE<br>
and this is the only supported api action that can also change this value.<br>
however i dont think rebuilding to the same image will update the image metadata.<br>
you currenlty need to rebuild to a new image. this is due to an optiomisation we<br>
have to avoid needing to go to the scheuler if we use the same image.<br>
<br>
the unsupported way to change this without rebuilding the instance is to add<br>
img_hw_video_model=vmvga to the system metadata table for that instance.<br>
<br>
if your cloud is supported by a vendor this will also invalidate your suport<br>
in all likely hood as db modificaiton generally are unsupported without an exception.<br>
if you can rebuild the guest that is the best approch but it wont work for boot form volume<br>
instances and it willl destory all data in the root disk of all other instances.<br>
<br>
> <br>
> Note that rebuild is a destructive operation so be sure you're aware of<br>
> what this is doing before you do it.<br>
> <br>
> Stephen<br>
> <br>
> > I also tried to do a "shut-down" then "start" again, but it still<br>
> > reads the original config.  Not sure where it  is reading the config<br>
> > from...<br>
> > <br>
> > Regards<br>
> > Vlad<br>
> <br>
> <br>
<br>
<br>
</blockquote></div></div>
</blockquote></div>