1 |
I know this is of topic, but this is one of the few lists where you mostly get a competent answer. |
2 |
|
3 |
I have a small problem with libvirt / qemu. I have created a guest (also gentoo) on a gentoo hosts and when I start it from the command-line the guests starts OK, but when I start the guest through libvirt with "virsh start" I get "Booting from Hard Disk... |
4 |
Boot failed: not a bootable disk |
5 |
No bootable device" |
6 |
|
7 |
This is the command-line I use to start the guest (which works) |
8 |
"cd /var/lib/kvm/Wilmer; /usr/bin/qemu-system-x86_64 --enable-kvm \ |
9 |
-net nic,vlan=1,model=rtl8139,macaddr=DE:ED:BE:EF:01:03 -net tap,vlan=1,ifname=qtap13,script=no,downscript=no \ |
10 |
-net nic,vlan=3,model=rtl8139,macaddr=DE:ED:BE:EF:03:03 -net tap,vlan=3,ifname=qtap33,script=no,downscript=no \ |
11 |
-m 2048 -k de-ch -vnc :3 -daemonize \ |
12 |
Wilmer.qcow2" |
13 |
|
14 |
|
15 |
The libvirt XML-file was created using "virsh domxml-from-native qemu-argv" and this is the result of that conversion: |
16 |
<domain type='kvm'> |
17 |
<name>wilmer</name> |
18 |
<uuid>a421968d-0573-1356-8cb7-32caff525a03</uuid> |
19 |
<memory>2097152</memory> |
20 |
<currentMemory>2097152</currentMemory> |
21 |
<vcpu>2</vcpu> |
22 |
<os> |
23 |
<type arch='x86_64' machine='pc-0.12'>hvm</type> |
24 |
<boot dev='hd'/> |
25 |
</os> |
26 |
<features> |
27 |
<acpi/> |
28 |
</features> |
29 |
<clock offset='utc'/> |
30 |
<on_poweroff>destroy</on_poweroff> |
31 |
<on_reboot>restart</on_reboot> |
32 |
<on_crash>destroy</on_crash> |
33 |
<devices> |
34 |
<emulator>/usr/bin/qemu-system-x86_64</emulator> |
35 |
<disk type='file' device='disk'> |
36 |
<source file='/var/lib/kvm/Wilmer/Wilmer.qcow2'/> |
37 |
<target dev='hda' bus='ide'/> |
38 |
<address type='drive' controller='0' bus='0' unit='0'/> |
39 |
</disk> |
40 |
<controller type='ide' index='0'> |
41 |
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> |
42 |
</controller> |
43 |
<interface type='ethernet'> |
44 |
<mac address='de:ed:be:ef:01:03'/> |
45 |
<script path='no'/> |
46 |
<target dev='qtap13'/> |
47 |
<model type='rtl8139'/> |
48 |
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> |
49 |
</interface> |
50 |
<interface type='ethernet'> |
51 |
<mac address='de:ed:be:ef:03:03'/> |
52 |
<script path='no'/> |
53 |
<target dev='qtap33'/> |
54 |
<model type='rtl8139'/> |
55 |
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> |
56 |
</interface> |
57 |
<input type='mouse' bus='ps2'/> |
58 |
<graphics type='vnc' port='5903' autoport='no' listen=''/> |
59 |
<video> |
60 |
<model type='cirrus' vram='9216' heads='1'/> |
61 |
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> |
62 |
</video> |
63 |
</devices> |
64 |
</domain> |
65 |
|
66 |
|
67 |
Anyone seeing something obvious that I have missed? |
68 |
|
69 |
Regards, |
70 |
-- |
71 |
Dan Johansson, <http://www.dmj.nu> |
72 |
*************************************************** |
73 |
This message is printed on 100% recycled electrons! |
74 |
*************************************************** |