[arch-general] KVM troubles

Kyle Terrien kyleterrien at gmail.com
Sat Nov 28 00:00:00 UTC 2015

On 11/22/2015 09:59 PM, Luna Moonbright wrote:
> Does anyone here have experience troubleshooting
> KVM installs in arch?
> I am using virsh and virt-manager, the VM seems 
> to successfully boot, but the virtualization window
> is only showing a black screen with a cursor in
> the top left of the window.
> (on the host) journelctl -xe only shows one related error:
> "libvirtd[298]: this function is not supported by the 
> connection driver: virConnectGetCPUModuleNames" 
> If it helps: the ISO I am trying to boot from
> is the live disk that comes with "Hacking:
> The Art of Exploitation"
> Thanks in advance.

I have the same book ("Hacking: The Art of Exploitation", 2nd Edition).
I just successfully booted and installed the Live CD in KVM.

The CD is a very old (EOL) custom Ubuntu Live CD (Feisty Fawn).  In
virt-manager, I selected the "Ubuntu Feisty Fawn" preset, and that
changed some of the defaults.

- The Video card is set to VMVGA (I think this is the problem.  The
  default is normally QXL, which is a really new super-fast
  paravirtualized interface iirc.)
- The hard disk is an IDE hard disk.
- Fiesty Fawn does not support the EvTouch Tablet.

For some reason, the LiveCD's bootloader took a long time to draw to the
screen.  I'm not sure why, but after I booted, everything seemed fine.
I installed and rebooted.

The repositories have been archived.  You will need to edit
/etc/apt/sources.list and change every instance of
"us.archive.ubuntu.com" with "old-releases.ubuntu.com".

After this, I was able to install openssh-server and vim-gtk on the VM.

I still need to figure out why sshfs won't work (fuse: failed to exec
fusermount: Permission denied).

I think the problem you are having is related to the QXL video driver.

Thanks for giving me an excuse to dust-off the CD.  I really should find
more time to read through that book.  It's a great book.

If you are curious, the XML dump of my VM follows.  (MAC address and
UUID are obfuscated.)


<domain type='kvm'>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>2</vcpu>
    <type arch='x86_64' machine='pc-i440fx-2.4'>hvm</type>
    <boot dev='hd'/>
    <vmport state='off'/>
  <cpu mode='custom' match='exact'>
    <model fallback='allow'>Nehalem</model>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
    <suspend-to-mem enabled='no'/>
    <suspend-to-disk enabled='no'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/data/libvirt/images/hacking.qcow2'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hdb' bus='ide'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x7'/>
    <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 type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x1'/>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x2'/>
    <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 type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    <interface type='network'>
      <mac address='52:54:00:??:??:??'/>
      <source network='default'/>
      <model type='rtl8139'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    <serial type='pty'>
      <target port='0'/>
    <console type='pty'>
      <target type='serial' port='0'/>
    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='spice' autoport='yes'>
      <image compression='off'/>
    <sound model='ich6'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
      <model type='vmvga' vram='16384' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    <redirdev bus='usb' type='spicevmc'>
    <redirdev bus='usb' type='spicevmc'>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20151127/c065c12f/attachment.asc>

More information about the arch-general mailing list