Bug 1231511 - [1.2.1] Unable to create an Ubuntu VM
Summary: [1.2.1] Unable to create an Ubuntu VM
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-manager
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Cole Robinson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-14 09:10 UTC by jean-christophe manciot
Modified: 2015-09-01 16:42 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-01 16:42:04 UTC
Embargoed:


Attachments (Terms of Use)
VM xml (3.64 KB, text/plain)
2015-06-14 09:10 UTC, jean-christophe manciot
no flags Details
Log (33.58 KB, text/plain)
2015-06-14 09:11 UTC, jean-christophe manciot
no flags Details

Description jean-christophe manciot 2015-06-14 09:10:18 UTC
Created attachment 1038492 [details]
VM xml

Description of problem:
----------------------
Installation of an Ubuntu 15.04 VM leads to an infinite loop

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
1.2.0

How reproducible:
-----------------
Create the VM with the wizard & Ubuntu Desktop 15.04 ISO.
It seems that any setting leads to the same infinite loop: https://drive.google.com/file/d/0B5fXyIn0-GDFMnI2ZlhOOGl1a28/view?usp=sharing

Additional info:
----------------
Under Ubuntu Server 15.04
Libvirt 1.2.16

The VM xml and virt-manager.log are provided below

Comment 1 jean-christophe manciot 2015-06-14 09:11:25 UTC
Created attachment 1038493 [details]
Log

Comment 2 jean-christophe manciot 2015-06-15 09:57:17 UTC
I've also tried with an Ubuntu desktop 14.04 iso, and it failed with exactly the same symptom.

Comment 3 jean-christophe manciot 2015-06-15 10:01:07 UTC
However, I was able to create the following VMs:
- Microsoft Windows 10
- Cisco CSR 1000V

Comment 4 jean-christophe manciot 2015-07-27 09:05:21 UTC
The issue is still here with:
- virt-manager 1.2.1 from git sources
- libvirt 1.2.17
- qemu 2.4.0 rc1

Comment 5 jean-christophe manciot 2015-08-08 15:27:38 UTC
I've just found the root cause of this issue:
- I was able to create an Ubuntu 15.04 VM with default options.
- However, if I set the processor option to match the local processor ("copy the host CPU configuration"), the installation ends up in an infinite loop.
- My CPU is an Intel i7 4700-MQ, which is from the Haswell family. However, If I choose one of the 2 available Haswell options, both end up with the installation infinite loop.
- If I set it to Westmere, I'm able to install the VM.

This is kind of a big deal, because what I'm really trying to do is to install Cisco's VIRL -based on Lubuntu- environment in a KVM VM. 
VIRL has terrible performances inside a VMware Workstation/Player VM.
Since VIRL is greedy on CPU (& storage but I have an SSD), I thought I could be better off with KVM.
BTW, are there any plans about supporting LXD anytime soon?

Comment 6 Cole Robinson 2015-08-10 18:24:16 UTC
Please provide virt-manager --debug when reproducing the issue, from app startup to app shutdown, and describe exactly where you are seeing the infinite loop.

Also please specify what virt-manager version you are using (I assume it's git master)

> BTW, are there any plans about supporting LXD anytime soon?

Libvirt would need to support it first, and I've heard nothing on that front, I don't really know enough about LXD to know if it even makes sense.

Comment 7 jean-christophe manciot 2015-08-15 08:51:51 UTC
The debug information during Ubuntu 15.04 VM creation & installation is available here: https://drive.google.com/file/d/0B5fXyIn0-GDFdWxKTVhJNW92RU0/view?usp=sharing
A screenshot taken during the infinite loop is available there: https://drive.google.com/file/d/0B5fXyIn0-GDFMGo0Q0JXb3BmQWM/view?usp=sharing
No more debug information has been generated during the last installation step that led to that infinite loop.

Comment 8 Cole Robinson 2015-09-01 16:42:04 UTC
Thanks for the info.

So the infinite loop is _inside_ the VM, like ubuntu's installer? Then this probably isn't virt-manager or libvirt's fault, since we don't deal with anything that low level.

Since it's CPU model dependent, this is probably tickling some KVM or guest kernel issue, so I guess the issue is somewhere in: guest kernel, ubuntu installer, host kernel, or qemu, likely in that order. So I think you'll need to file a bug with your distro to track it down more


Note You need to log in before you can comment on or make changes to this bug.