View Single Post
  #3  
Old 15th January 2009, 16:40
frippz frippz is offline
Junior Member
 
Join Date: Jan 2009
Posts: 3
Thanks: 0
Thanked 2 Times in 1 Post
Default

I just created the LV with lvcreate, yes. Then I used qemu-img to convert the image file.

Code:
qemu-img convert disk0.qcow2 -O raw /dev/mogwai/milltime
The only thing that shows up in /var/log/libvirt/qemu/milltime.log is:

Code:
/usr/bin/kvm -S -M pc -m 1024 -smp 1 -name milltime -monitor pty -boot c -drive file=/dev/mogwai/milltime,if=ide,index=0,boot=on -net nic,macaddr=52:54:00:09:91:db,vlan=0 -net tap,fd=14,script=,vlan=0,ifname=vnet2 -serial none -parallel none -usb -vnc 0.0.0.0:1 
char device redirected to /dev/pts/5
info cpus
Doesn't say much, from what I can tell. Are there any other logs I can check?

edit: This wasn't mentioned specifically in the guide, but I did boot the machine from the disk0.qcow2 image first, in order to change the password for the account. I then proceeded to shut it down (from within the VM using sudo shutdown -h now) and changed the config file to point to the LV instead of the image file, redefined the VM in virsh and started it up again, which resultet in the crc error and "System halted"

edit2: Oh yeah, here's the xml-file for the VM

Code:
<domain type='kvm'>
  <name>milltime</name>
  <uuid>0a721358-9107-aa88-2ca5-92b983865adb</uuid>
  <memory>1048576</memory>
  <currentMemory>1048576</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <source file='/dev/mogwai/milltime'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <interface type='bridge'>
      <mac address='52:54:00:09:91:db'/>
      <source bridge='br0'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' listen='0.0.0.0'/>
  </devices>
</domain>

Last edited by frippz; 15th January 2009 at 17:01.
Reply With Quote