Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't create a KVM/QEMU virtual machine for Win10
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
fusion809
n00b
n00b


Joined: 15 Oct 2015
Posts: 71

PostPosted: Tue Apr 18, 2017 11:58 pm    Post subject: Can't create a KVM/QEMU virtual machine for Win10 Reply with quote

Hi,

I tried to add a VM for Windows 10 to Virtual Machine Manager (acronym: VMM; package: app-emulation/virt-manager) using a KVM/QEMU connection and a VDI file with Win10 installed in it that I created using VirtualBox. What I did was I opened up VMM and clicked the "Create a new virtual machine" button. Then I went through the dialog that popped up, selected the .vdi file that VirtualBox had created for Win10 (in which I had installed Windows 10 via VirtualBox) for its disk image, then at step 4 of 4 in the "Create a new virtual machine" dialog I clicked "Finish" and it gave me an error that qxl couldn't be used as Video driver. So I ticked the box "Customize configuration before install" in the aforementioned dialog and clicked "Finish" again and a dialog to adjust the configuration popped up. In this dialog I clicked the "Video QXL" box down the side menu and set the Model to VGA in the drop-down box. Then I clicked the "Begin Installation" button in this configuration dialog and it gave me the error:

Code:

Unable to complete install: 'Domain has already been started!'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 88, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 2288, in _do_async_install
    guest.start_install(meter=meter)
  File "/usr/share/virt-manager/virtinst/guest.py", line 455, in start_install
    raise RuntimeError(_("Domain has already been started!"))
RuntimeError: Domain has already been started!


I have searched Google for "Domain has already been started!" and I got 11 results and all of which seemed to refer to bug reports, mostly at the Red Hat Bugzilla (e.g., https://bugzilla.redhat.com/show_bug.cgi?id=1441902 and https://bugzilla.redhat.com/show_bug.cgi?id=453009) and not a single one seemed relevant to this situation as these reports were when people had deleted existing VMs and attempted to create new ones. I only just installed KVM/QEMU and virt-manager and I have no other VMs in it so far. The libvirtd service (as my Gentoo installation has systemd set up per the Gentoo Wiki guide) has been enabled and I have added myself to the libvirt, qemu and kvm groups and restarted.

Here (http://imgur.com/pqTPxlV) is a screenshot showing both dialogs, the config dialog and the "Create a new virtual machine" one.

If relevant my Gentoo system is testing (with the ~amd64 keyword), my Portage config settings and kernel config can be found in this repo: https://github.com/fusion809/gentoo-config.

Thanks for your time,
Brenton
_________________
Open-source advocate with an inquisitive disposition
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 441

PostPosted: Sat Apr 22, 2017 10:07 am    Post subject: Reply with quote

I've seen that message bug me before. It IS probably running a domain with the same name.

Code:

$ sudo virsh list --all
 Id    Name                           State
----------------------------------------------------
 3     win10                          running
 -     SystemRescueCD                 shut off


Check that and see if you can reconnect.
Back to top
View user's profile Send private message
fusion809
n00b
n00b


Joined: 15 Oct 2015
Posts: 71

PostPosted: Sat Apr 22, 2017 10:51 am    Post subject: Reply with quote

I wish it were that simple, unfortunately running that command just gives:

Code:

 Id    Name                           State
----------------------------------------------------


_________________
Open-source advocate with an inquisitive disposition
Back to top
View user's profile Send private message
fusion809
n00b
n00b


Joined: 15 Oct 2015
Posts: 71

PostPosted: Sun Apr 30, 2017 12:08 am    Post subject: Reply with quote

Downgraded Virt Manager to 1.4.0-r3 from 1.4.1 and the issue is fixed, hence this is a bug I'm gonna report.
_________________
Open-source advocate with an inquisitive disposition
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 441

PostPosted: Sun Apr 30, 2017 11:03 am    Post subject: Reply with quote

Thank you for reporting back.
1.4.1 works fine here.
Could you post your versions of:
dev-python/libvirt-python
app-emulation/libvirt-glib
sys-libs/libosinfo

Especially the last one? :)
Back to top
View user's profile Send private message
fusion809
n00b
n00b


Joined: 15 Oct 2015
Posts: 71

PostPosted: Sun Apr 30, 2017 11:17 am    Post subject: Reply with quote

I'm gonna do ya one better and post the output of:

Code:

emerge -pqv dev-python/libvirt-python app-emulation/libvirt-glib sys-libs/libosinfo


which is:

Code:

[ebuild   R   ] dev-python/libvirt-python-3.2.0  USE="-examples {-test}" PYTHON_TARGETS="python2_7 python3_4 -python3_5"
[ebuild   R   ] app-emulation/libvirt-glib-1.0.0-r1  USE="introspection nls vala"
[ebuild   R   ] sys-libs/libosinfo-1.0.0-r1  USE="introspection vala {-test}"

_________________
Open-source advocate with an inquisitive disposition
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum