Jump to content

QEMU Command Line form not saved - no effect


Go to solution Solved by SimonF,

Recommended Posts

I'm running 7 beta 2, so I don't know if this is a new issue.

 

I'm trying to add a couple of command-line arguments to QEMU for a particular VM in the text box in the VM edit UI:

 

 

image.thumb.png.91a323ab2e83cf8f6bba3b3de6a14d0b.png

 

After updating/saving and then coming back to edit, the arguments are gone, like this:

 

image.thumb.png.c7c99053ffb38946e2302d6a2b29bb17.png

 

If I display the inline XML (new feature), there's no XML displayed for this section - and going full XML view I can't find where these arguments should be inserted.

 

Can anyone validate this with Unraid 6.x?

 

 

Edited by Espressomatic
Link to comment
  • Solution
1 hour ago, Espressomatic said:

I'm running 7 beta 2, so I don't know if this is a new issue.

 

I'm trying to add a couple of command-line arguments to QEMU for a particular VM in the text box in the VM edit UI:

 

 

image.thumb.png.91a323ab2e83cf8f6bba3b3de6a14d0b.png

 

After updating/saving and then coming back to edit, the arguments are gone, like this:

 

image.thumb.png.c7c99053ffb38946e2302d6a2b29bb17.png

 

If I display the inline XML (new feature), there's no XML displayed for this section - and going full XML view I can't find where these arguments should be inserted.

 

Can anyone validate this with Unraid 6.x?

 

 

You need to use libvirt xml format i.e.

 

<qemu:commandline> <qemu:arg value='-vga'/> <qemu:arg value='vmware'/> </qemu:commandline>

 

https://libvirt.org/kbase/qemu-passthrough-security.html

Link to comment
Posted (edited)
59 minutes ago, SimonF said:

You need to use libvirt xml format i.e.

 

<qemu:commandline> <qemu:arg value='-vga'/> <qemu:arg value='vmware'/> </qemu:commandline>

 

https://libvirt.org/kbase/qemu-passthrough-security.html

 

Thanks for the heads up!

 

Kind of thought the UI would create the XML based on what I typed into that box - sort of like every other form element on the page. :)

 

If the box were pre-populated with

 

<qemu:commandline>

</qemu:commandline>
 

 

then it would be instantly obvious what needed to be done.

Edited by Espressomatic
Link to comment
Posted (edited)

Still can't get it to work. 

I'm in a hurry, about to head out the door, but the whole format (according to that link) seems completely obnoxious. Mainly because of the butchered XML - and the fact they're not using a nice structure of keys and values.

 

Ugh... Ugly. But here's what I'd been trying to do, finally working:

 

<qemu:commandline>
    <qemu:arg value='-boot'/>
    <qemu:arg value='menu=on,splash-time=5000'/>
  </qemu:commandline>
 

 

Edited by Espressomatic
Link to comment
On 8/30/2024 at 7:42 PM, Espressomatic said:

Kind of thought the UI would create the XML based on what I typed into that box - sort of like every other form element on the page. :)

The amount of variables would be to large. Libvirt drop support for a similar process.

 

Unfortunately support for the domxml-from-native command has been removed from recentish libvirt, because we found that in practice it was too unreliable and incomplete to be useful.

 

There are two options other is qemu:override I will review help text.

  • Upvote 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...