Problem with xen hvm DomU

Christoph mangel at gmx.de
Thu Sep 3 12:34:48 UTC 2020


its converted via virsh domxml-from-native

from:

name = "fenrir.chao5.int"
uuid = "7aedcd03-54e8-4055-8d1b-37dd34194859"
maxmem = 2048
memory = 2048
vcpus = 2
pae = 1
acpi = 1
apic = 1
viridian = 0
rtc_timeoffset = 0
localtime = 1
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
sdl = 0
vnc = 1
vncunused = 0
vncdisplay = 100
vnclisten = "0.0.0.0"
vif = [
"mac=00:16:3e:05:30:04,bridge=xenbr5,script=vif-bridge,type=vif",
"mac=00:16:3e:04:30:04,bridge=xenbr4,script=vif-bridge,type=vif",
"mac=00:16:3e:15:30:04,bridge=xenbr15,script=vif-bridge,type=vif",
"mac=00:16:3e:14:30:04,bridge=xenbr14,script=vif-bridge,type=vif" ]
parallel = "none"
serial = "none"
builder = "hvm"
kernel = "/usr/lib64/xen/boot/hvmloader"
boot = "c"
disk = [ "phy:/dev/vg_astarte/lv_fenrir_root,hda,w",
"phy:/dev/vg_astarte/lv_fenrir_swap,hdb,w" ]

and this config works with xl create...

---
------
Greetz

Am 03.09.2020 14:28, schrieb Christoph:
> Hi
>
> can someone say me whats wrong in this config:
>
> <domain type='xen'>
>   <name>fenrir.chao5.int</name>
>   <uuid>7aedcd03-54e8-4055-8d1b-37dd34194859</uuid>
>   <memory unit='KiB'>2097152</memory>
>   <currentMemory unit='KiB'>2097152</currentMemory>
>   <vcpu placement='static'>2</vcpu>
>   <os>
>     <type arch='x86_64' machine='xenfv'>hvm</type>
>     <loader type='rom'>/usr/lib/xen/boot/hvmloader</loader>
>     <kernel>/usr/lib64/xen/boot/hvmloader</kernel>
>     <boot dev='hd'/>
>   </os>
>   <features>
>     <acpi/>
>     <apic/>
>     <pae/>
>   </features>
>   <clock offset='variable' adjustment='0' basis='localtime'/>
>   <on_poweroff>destroy</on_poweroff>
>   <on_reboot>restart</on_reboot>
>   <on_crash>restart</on_crash>
>   <devices>
>     <disk type='file' device='disk'>
>       <driver name='qemu' type='raw'/>
>       <source file='/dev/vg_astarte/lv_fenrir_root'/>
>       <target dev='hda' bus='ide'/>
>       <address type='drive' controller='0' bus='0' target='0'
> unit='0'/>
>     </disk>
>     <disk type='file' device='disk'>
>       <driver name='qemu' type='raw'/>
>       <source file='/dev/vg_astarte/lv_fenrir_swap'/>
>       <target dev='hdb' bus='ide'/>
>       <address type='drive' controller='0' bus='0' target='0'
> unit='1'/>
>     </disk>
>     <controller type='xenbus' index='0'/>
>     <controller type='ide' index='0'/>
>     <interface type='bridge'>
>       <mac address='00:16:3e:05:30:04'/>
>       <source bridge='xenbr5'/>
>       <script path='vif-bridge'/>
>       <model type='netfront'/>
>     </interface>
>     <interface type='bridge'>
>       <mac address='00:16:3e:04:30:04'/>
>       <source bridge='xenbr4'/>
>       <script path='vif-bridge'/>
>       <model type='netfront'/>
>     </interface>
>     <interface type='bridge'>
>       <mac address='00:16:3e:15:30:04'/>
>       <source bridge='xenbr15'/>
>       <script path='vif-bridge'/>
>       <model type='netfront'/>
>     </interface>
>     <interface type='bridge'>
>       <mac address='00:16:3e:14:30:04'/>
>       <source bridge='xenbr14'/>
>       <script path='vif-bridge'/>
>       <model type='netfront'/>
>     </interface>
>     <input type='mouse' bus='ps2'/>
>     <input type='keyboard' bus='ps2'/>
>     <graphics type='vnc' port='6000' autoport='no' listen='0.0.0.0'>
>       <listen type='address' address='0.0.0.0'/>
>     </graphics>
>     <video>
>       <model type='cirrus' vram='8192' heads='1' primary='yes'/>
>     </video>
>     <memballoon model='xen'/>
>   </devices>
> </domain>
>
> If I try to start it with virsh create... then I see only:
>
> error: Failed to create domain from
> /etc/libvirt/libxl/fenrir.chao5.int.xml
> error: internal error: libxenlight failed to create new domain
> 'fenrir.chao5.int'
>
> ------
> Greetz





More information about the libvirt-users mailing list