<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">It is true that the machine contains 'pc-i440fx-4.0'. I am using Ubuntu18.04 and libvirt-4.0.0</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">This is probably a separate issue, but while updating the machine name neither "virsh define" or "virsh edit" updates the name to "pc". </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I was reading the FAQ of libvirt on updating the configuration at :<a href="https://wiki.libvirt.org/page/FAQ#What_is_the_.27virsh_edit.27_command_and_how_do_I_use_it.3F">https://wiki.libvirt.org/page/FAQ#What_is_the_.27virsh_edit.27_command_and_how_do_I_use_it.3F</a></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">"... A common problem seen when people edit the on-disk XML is a VM that simply vanishes the next time libvirtd is restarted after the edit. The VM disappears from libvirt because the XML has become invalid, after which libvirt can't do anything with it. "</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Is it also true for virsh?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I also tried creating a new VM by "virsh dumpxml" and editing the xml with new "name" and "pc" and removed the "uuid" field and then "virsh define". virsh creates a new domain with UUID, but with machine='pc-i440fx-4.0'. Is it possible the virsh is using some configuration that resetting to predefined machine name?<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">  <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 19, 2019 at 12:36 PM Daniel P. Berrangé <<a href="mailto:berrange@redhat.com">berrange@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, Jul 19, 2019 at 12:16:25PM -0500, Probir Roy wrote:<br>
> Hi,<br>
> <br>
> I am trying to run Qemu-4.0 installed from source code.<br>
> <br>
> When I run virt-manager to create a VM, I get the following error:<br>
> <br>
> ```<br>
> Unable to complete install: 'internal error: process exited while<br>
> connecting to monitor: 2019-07-19T17:06:35.954242Z qemu-system-x86_64:<br>
> -enable-kvm: unsupported machine type<br>
> Use -machine help to list supported machines'<br>
<br>
You don't mention what your OS is ?  Some OS vendors patch QEMU<br>
to have different machine types than upstream QEMU provides, and<br>
I guess that's what you've hit.<br>
<br>
If you look in your libvirt XML 'virsh dumpxml $GUESTNAME' you'll<br>
see a machine type listed - probably "pc-$SOMETHING" or "q35-$SOMETHING".<br>
<br>
If you simply delete the "-$SOMETHING" part to leave just "pc" or<br>
just "q35", then libvirt will expand the machine type into the<br>
latest one available with your self-built QEMU<br>
<br>
Regards,<br>
Daniel<br>
-- <br>
|: <a href="https://berrange.com" rel="noreferrer" target="_blank">https://berrange.com</a>      -o-    <a href="https://www.flickr.com/photos/dberrange" rel="noreferrer" target="_blank">https://www.flickr.com/photos/dberrange</a> :|<br>
|: <a href="https://libvirt.org" rel="noreferrer" target="_blank">https://libvirt.org</a>         -o-            <a href="https://fstop138.berrange.com" rel="noreferrer" target="_blank">https://fstop138.berrange.com</a> :|<br>
|: <a href="https://entangle-photo.org" rel="noreferrer" target="_blank">https://entangle-photo.org</a>    -o-    <a href="https://www.instagram.com/dberrange" rel="noreferrer" target="_blank">https://www.instagram.com/dberrange</a> :|<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Probir Roy<br>College of William and Mary<br>Phone: 7577531428<br>Web: <a href="http://www.probir.info" target="_blank">www.probir.info</a></div>