[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.)

--Kyle

<domain type='kvm'>
  <name>hacking</name>
  <uuid>13b0cfef-b878-470f-a690-000000000000</uuid>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.4'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <vmport state='off'/>
  </features>
  <cpu mode='custom' match='exact'>
    <model fallback='allow'>Nehalem</model>
  </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/sbin/qemu-system-x86_64</emulator>
    <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>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hdb' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </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:??:??:??'/>
      <source network='default'/>
      <model type='rtl8139'/>
      <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='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <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='vmvga' vram='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='0x07' function='0x0'/>
    </memballoon>
  </devices>
</domain>


-------------- 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