LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 11-09-2015, 01:42 AM   #1
stexnix
LQ Newbie
 
Registered: Nov 2015
Distribution: Fedora23
Posts: 7

Rep: Reputation: Disabled
Fedora23 + KVM - No Screen on Linux VM


I use Fedora 23+KVM+virt-manager with the latest updates.

I configured and installed a Windows-VM KVM successfully with virt-manager.

Now i tried to install CentOS7 and Ubuntu 14.04. If i start the VM i still get only black screen, it doesn't matter what video(QXA, VGA VMVGA,...) and display (spice or vnc) settings i use.

If i use spice-display and start the VM i get black screen, 100% CPU load and nothing else.

If i use VNC-display and start the VM a text appears on screen: "Guest has not initialized display (yet)." and also 100% CPU load.


Also weird:
Few weeks ago i play around with gnome-Boxes (and before Fedora become update to 23) and created a Centos6.4 VM without any problems. Meanwhile i delet this VM because it was only for test gnome-Boxes.

If i now create a VM with Boxes....it doesn't work...black screen and 100% cpu load....

Is there any bug or am i the bug?
 
Old 11-09-2015, 06:37 PM   #2
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Can you check the actual xml file to have a look in there what video it tries using? I have read before vmvga can cause that sort of issue at times.

Please post the vm xml.
 
Old 11-09-2015, 10:27 PM   #3
stexnix
LQ Newbie
 
Registered: Nov 2015
Distribution: Fedora23
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ericson007 View Post
Can you check the actual xml file to have a look in there what video it tries using? I have read before vmvga can cause that sort of issue at times.

Please post the vm xml.
sure

Code:
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh edit centos7.0
or other application using the libvirt API.
-->

<domain type='kvm'>
  <name>centos7.0</name>
  <uuid>8b1ed9b2-5fbe-4373-a341-26049307d535</uuid>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.4'>hvm</type>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
    <vmport state='off'/>
  </features>
  <cpu mode='host-model'>
    <model fallback='allow'/>
    <topology sockets='1' cores='2' threads='1'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <pm>
    <suspend-to-mem enabled='no'/>
    <suspend-to-disk enabled='no'/>
  </pm>
  <devices>
    <emulator>/usr/bin/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/run/media/s/VMs/centos.img'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hda' bus='ide'/>
      <readonly/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </controller>
    <interface type='network'>
      <mac address='52:54:00:01:90:c2'/>
      <source network='default'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/centos7.0.org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='2'/>
    </channel>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='spice' autoport='yes'>
      <image compression='off'/>
    </graphics>
    <sound model='ich6'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </sound>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <redirdev bus='usb' type='spicevmc'>
    </redirdev>
    <redirdev bus='usb' type='spicevmc'>
    </redirdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </memballoon>
  </devices>
</domain>
 
Old 11-12-2015, 02:14 PM   #4
maennlse
LQ Newbie
 
Registered: Nov 2015
Posts: 1

Rep: Reputation: Disabled
i had a similar (same?) problem.
found this: https://lacyc3.eu/qemu-guest-has-not...ed-the-display

cant read Hungary, but changing `/etc/libvirt/qemu/<vm name>.xml` as mentioned solved my problem.
Code:
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.4'>hvm</type>
  </os>
Code:
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.3'>hvm</type>
  </os>
and restarting libvirtd ... `systemctl restart libvirtd.service`

Last edited by maennlse; 11-12-2015 at 02:17 PM.
 
1 members found this post helpful.
Old 11-12-2015, 03:29 PM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by maennlse View Post
changing `/etc/libvirt/qemu/<vm name>.xml` as mentioned solved my problem.
Picking a nit perhaps, but rather than editing the file and restarting libvirtd, you should accomplish the same with
Code:
virsh edit <vm name>
At least on Centos. Perhaps Fedora is so bleeding edge all that is different?
 
1 members found this post helpful.
Old 11-12-2015, 10:45 PM   #6
stexnix
LQ Newbie
 
Registered: Nov 2015
Distribution: Fedora23
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by maennlse View Post
i had a similar (same?) problem.
found this: https://lacyc3.eu/qemu-guest-has-not...ed-the-display

cant read Hungary, but changing `/etc/libvirt/qemu/<vm name>.xml` as mentioned solved my problem.
Code:
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.4'>hvm</type>
  </os>
Code:
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.3'>hvm</type>
  </os>
and restarting libvirtd ... `systemctl restart libvirtd.service`

man....you made my week, it works!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL 6.4 - kvm can't install Win2003R2 nor XP - blank screen guest myc5 Linux - Virtualization and Cloud 6 10-28-2013 09:57 PM
Display Screen Size KVM sunveer Red Hat 0 07-29-2012 10:42 PM
qemu/kvm automatic screen resolution change NightHorse Linux - Newbie 1 07-11-2011 03:28 PM
KVM virtualizaiton results in odd colors, low screen resolution eveningsky339 Linux - Virtualization and Cloud 7 10-25-2010 06:10 PM
While switching using KVM, screen blinks linux_yoda Linux - Hardware 2 08-11-2005 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration