V
V
Vyacheslav Slinko2013-02-03 23:31:20
LVM
Vyacheslav Slinko, 2013-02-03 23:31:20

Virtual machine running libvirt does not start after successful installation

Host - Ubuntu 12.04.
Virtualization - KVM.
Disks - LVM.

The installation of the guest system was completed without errors.
After reboot, the following error is displayed:

Booting from Hard Disk...
Boot failed: could not read the boot disk

Booting from Floppy...
Boot failed: could not read the boot disk

No bootable device.


Connected SystemRescueCD - all disks are found and read.

/etc/libvirt/qemu/chef0.xml:
<domain type='kvm'>
  <name>chef0</name>
  <uuid>f1dcd38a-f9cb-f384-f0f2-3037e1b957f7</uuid>
  <memory>786432</memory>
  <currentMemory>786432</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc-1.0'>hvm</type>
  </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='block' device='disk'>
      <driver name='qemu' type='raw'/>
      <source dev='/dev/virvg/chef0-root'/>
      <target dev='sda' bus='scsi'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    </disk>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw'/>
      <source dev='/dev/virvg/chef0-swap'/>
      <target dev='sdb' bus='scsi'/>
      <address type='drive' controller='0' bus='0' unit='1'/>
    </disk>
    <controller type='scsi' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <interface type='network'>
      <mac address='52:54:00:f3:07:98'/>
      <source network='default'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5900' autoport='no' listen='127.0.0.1'>
      <listen type='address' address='127.0.0.1'/>
    </graphics>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
  </devices>
</domain>


I ask for help in solving the problem.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vyacheslav Slinko, 2013-02-04
@KeepYourMind

<target dev='sda' bus='scsi'/>Decided to replace<target dev='vda' bus='virtio'/>

N
Nikolai Turnaviotov, 2013-02-04
@foxmuldercp

disks are found and disks are read - does not mean that they are booting from them. maybe in the “bios” of the virtual machine it is written to load cd | dvd only? I don’t know how it is in Linux, but in virtualbox / ESXi / Hyper-V this is a separate parameter - I have one screwless virtual machine, which always slips flash drives, then iso, then all sorts of rubbish into the boot.

I
Ilya Ableev, 2013-02-04
@ableev

There was the same problem. In the 'os' section, ironically added boot dev

 <os>
    <type arch='x86_64' machine='pc-0.12'>hvm</type>
    <boot dev='hd'/>
  </os>

Might be useful to someone in the future.

A
axeclick, 2016-08-17
@axeclick

Better like this

<os>
  <type>hvm</type>
  <boot dev='network'/>
  <boot dev='cdrom'/>
  <boot dev='hd'/>
  <bootmenu enable='yes'/>
</os>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question