Cannot create VM through Yast

Hello! When I try to create a VM through Yast I get error

 Please use the command line to execute virt-install with the appropriate options for creating a VM.

Also I have installed Leap from the latest ISO (non-network) and was never presented with this install screen:

So I just selected “Server” option. Is there any specific way to get this installer?
I do notice this screenshot mentions SLES but it’s in OpenSuse’s documentation here:

Yes, use SLES ISO.

1 Like

What are the implications of using SLES vs OpenSUSE when it comes to not using enterprise support? I am not sure why a SLES screenshot is showing in openSUSE docs.

Because SLE and openSUSE documentation is created from the same sources and nobody so far adapted this particular page to the openSUSE. If you feel like contributing: GitHub - SUSE/doc-sle: Official SUSE Linux Enterprise Documentation [Everyone, please use feature/ branches, create PRs and ensure CI runs successfully rather than just pushing to main!]

Leap is directly developed from the SUSE Linux Enterprise sources. So about 99% of what you might find is applicable for SUSE Linux Enterprise, is going to apply to Leap. The Documentation sometimes will reference SLES, but that’s purely a cosmetic difference in almost all cases.

Thank you @sfalken and @arvidjaar ! Anyone know how to create a VM from Yast? I am getting error Please use the command line to execute virt-install with the appropriate options for creating a VM.

I have installed Cockpit in order to have a more ‘GUI-y’ experience, but it does not allow to create VMs on different hard drives.

Any pointers?

Always good to start with the man page:

https://manpages.opensuse.org/Tumbleweed/virt-install/virt-install.1.en.html

There are examples at the end.

ctrl + F : yast

Not sure how it relates to my question. Man page still does not indicate how to create a VM from Yast.

I am not on Leap so I can not give it a try but I have yast-wm installed, Configure Hypervisor and Tools for Xen and KVM

https://software.opensuse.org/package/yast2-vm

I see that package is not available for Leap so that is likely the reason you can not find a Yast module to configure a VM.

1 Like

yast2-vm is also available for Leap. software.opensuse.org is broken since ages (bugreport exists) and does not show Leap 15.6 packages. One should use zypper or YaST Software first when searching packages.

1 Like

Thank you @marel & @hui ! I do have that package installed:

Nevertheless, I still cannot create or manage VMs from Yast:

Had a look in the source of yast-vm but I can not find that error message.

Anyhow, if you do not want to take the advise you could create a issue on bugzilla, although it would be nice if somebody could at least indicate things are working for him/her on Leap.

OP never explained what YaST module he used. All that we have - the single error message out of nowhere. And documentation the OP references does not describe creation of VM using YaST either - it only describes using YaST to install virtualization packages and next describes using libvirt tools directly.

My apologies! I will add a more detailed explanation once I get ffmpeg to work on my Macbook so I can show you!

I hope this gif illustrates the issue a bit better (please be patient, encoding is a bit slow). Thank you all!
yast2

I’m using Leap 15.6, and I do not have any problem creating a VM with Yast. Perhaps there’s some package that you failed to install.

1 Like

Can you find desktop file with Name “Create Virtual Machine” and check which package owns this file?

1 Like

The Yast menu item here is “Create Virtual Machines”.

I’ve looked under “/etc” and under “/usr/share”, but I cannot find such a file. For each of those I used:

find . -name '*.desktop' | grep -i virtual
1 Like

This command looks for files with “virtual” in their name, while you need to look for files having GenericName=Create Virtual Machines (or may Name=..., but as far as I can tell YaST is using GenericName).

Normally YaST entries are under /usr/share/applications/YaST2, you could simply try

grep -ri 'create virtual' /usr/share/applications/YaST2

for a quick check.

I have yast2-vm and I do not have this menu entry.

1 Like

That gives me:

virt-install.desktop:GenericName=Create Virtual Machines

That shows as being in the file list for “virt-manager”.

1 Like