xen 4.6.0 on jessie dom0 unable to start domUs and questions about systemd and build deps
Hi, I built xen 4.6.0 from source on jessie 64 bit system.
I cleaned some deps from too many of previous systems, built successufull xen and upstream qemu with these dependencies:
aptitude install build-essential git-core patch python-dev uuid-dev gettext libncurses5-dev libyajl-dev libaio-dev pkg-config libglib2.0-dev libssl-dev libpixman-1-dev bridge-utils wget bcc iasl bin86 texinfo libc6-dev-i386 e2fslibs-dev gcc-multilib gcc liblzma-dev zlib1g-dev libc6-dev libsystemd-daemon-dev
# Installed seabios package from unstable
# Additional qemu deps
aptitude install libcurl4-openssl-dev libncurses5-dev libjpeg-dev
# additional spice and usbredir deps (latest spice rebuild from unstable instead) aptitude install libspice-protocol-dev libspice-server-dev libusbredirparser-dev libusb-1.0-0-dev
I have dubt about some deps not installed because not blocked by configure but that I remember was used in past, for example:
bison flex binutils graphviz gawk iproute
these or other deps are required even if configure don't check/stop and built successfull?
I did these changes in Config.mk:
debug ?= yPYTHON_PREFIX_ARG ?=
configure options used:
./configure --prefix=/usr --disable-blktap1 --disable-qemu-traditional --disable-rombios --with-system-seabios=/usr/share/seabios/bios-256k.bin --with-extra-qemuu-configure-args="--enable-spice --enable-usb-redir" --disable-blktap2 -enable-systemd
there was an error in generated config/Tools.mk I solved manually (replacing @debug@ with y), already reported here:
http://lists.xen.org/archives/html/xen-devel/2015-10/msg01184.html
I enabled xen services with systemd:
systemctl enable xencommons
systemctl enable xendomains
I missed or did wrong something?
And used this grub entry:
Quoted 11 lines
menuentry 'Jessie con Linux 3.16.0-4-amd64 e XEN 4.6 - RAID' --class
debian --class gnu-linux --class gnu --class os { set root='(lvm/RAID-ROOT)' echo 'Caricamento Hypervisor Xen 4.6...' multiboot /boot/xen.gz placeholder dom0_mem=2G,max:2G echo 'Caricamento Linux 3.16.0-4-amd64...' module /boot/vmlinuz-3.16.0-4-amd64 placeholderroot=/dev/mapper/RAID-ROOT ro quiet
echo 'Caricamento ramdisk iniziale...'
module --nounzip/boot/initrd.img-3.16.0-4-amd64
}
I tried to remove swiotlb=65762 from kernel parameters used for year as workaround that I not remember good, should be still neded?
DomU fails to start:
Quoted 130 lines
xl -vvv create
/etc/xen/W10.cfg
Parsing config from/etc/xen/W10.cfg
libxl: debug: libxl_create.c:1557:do_domain_create: ao0x1825260:
create: how=(nil) callback=(nil) poller=0x18252f0
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=unknown
libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk vdev=hda, using backend phy
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hdb spec.backend=unknown
libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk vdev=hdb, using backend phy
libxl: debug: libxl_create.c:945:initiate_domain_create: running bootloader
libxl: debug: libxl_bootloader.c:324:libxl__bootloader_run: not a PV domain, skipping bootloader
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x1826d28: deregister unregistered
libxl: detail: libxl_dom.c:239:hvm_set_viridian_features: base group enabled
libxl: detail: libxl_dom.c:239:hvm_set_viridian_features: freq group enabled
libxl: detail: libxl_dom.c:239:hvm_set_viridian_features:time_ref_countgroup enabled
xc: detail:elf_parse_binary: phdr: paddr=0x100000 memsz=0x5bbc4
xc: detail:elf_parse_binary: memory:0x100000->0x15bbc4
xc: detail: VIRTUAL MEMORY ARRANGEMENT:
xc: detail: Loader: 0000000000100000->000000000015bbc4
xc: detail: Modules: 0000000000000000->0000000000000000
xc: detail: TOTAL: 0000000000000000->00000000f8000000
xc: detail: ENTRY: 0000000000100630
xc: detail: PHYSICAL MEMORY ALLOCATION:
xc: detail: 4KB PAGES:0x0000000000000200
xc: detail: 2MB PAGES:0x00000000000003bf
xc: detail: 1GB PAGES:0x0000000000000002
xc: detail:elf_load_binary: phdr 0 at0x7f0f7a73e000->0x7f0f7a790151
domainbuilder: detail:xc_dom_gnttab_hvm_seed: called, pfn=0x108000
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=phy
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0x1828820 wpath=/local/domain/0/backend/vbd/1/768/state token=3/0:
register slotnum=3
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hdb spec.backend=phy
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hdb spec.backend=phy
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0x1829a30 wpath=/local/domain/0/backend/vbd/1/832/state token=2/1:
register slotnum=2
libxl: debug: libxl_create.c:1580:do_domain_create: ao0x1825260:
inprogress: poller=0x18252f0, flags=i
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x1828820 wpath=/local/domain/0/backend/vbd/1/768/state token=3/0: event epath=/local/domain/0/backend/vbd/1/768/state
libxl: debug: libxl_event.c:880:devstate_callback: backend /local/domain/0/backend/vbd/1/768/state wanted state 2 ok
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch w=0x1828820 wpath=/local/domain/0/backend/vbd/1/768/state token=3/0:
deregister slotnum=3
libxl: debug: libxl_device.c:937:device_backend_callback: callingdevice_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x1828820: deregister unregistered
libxl: error: libxl.c:1972:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_device.c:987:device_hotplug: Failed to get domid
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x1828920: deregister unregistered
libxl: debug: libxl_event.c:545:watchfd_callback: watch epath=/local/domain/0/backend/vbd/1/768/state token=3/0: empty slot
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x1829a30 wpath=/local/domain/0/backend/vbd/1/832/state token=2/1: event epath=/local/domain/0/backend/vbd/1/832/state
libxl: debug: libxl_event.c:884:devstate_callback: backend /local/domain/0/backend/vbd/1/832/state wanted state 2 still waiting state 1
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x1829a30 wpath=/local/domain/0/backend/vbd/1/832/state token=2/1: event epath=/local/domain/0/backend/vbd/1/832/state
libxl: debug: libxl_event.c:880:devstate_callback: backend /local/domain/0/backend/vbd/1/832/state wanted state 2 ok
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch w=0x1829a30 wpath=/local/domain/0/backend/vbd/1/832/state token=2/1:
deregister slotnum=2
libxl: debug: libxl_device.c:937:device_backend_callback: callingdevice_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x1829a30: deregister unregistered
libxl: error: libxl.c:1972:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_device.c:987:device_hotplug: Failed to get domid
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x1829b30: deregister unregistered
libxl: error: libxl_create.c:1174:domcreate_launch_dm: unable to add disk devices
libxl: error: libxl_dm.c:1956:kill_device_model: unable to find device model pid in /local/domain/1/image/device-model-pid
libxl: error: libxl.c:1628:libxl__destroy_domid:libxl__destroy_device_modelfailed for 1
libxl: error: libxl.c:1972:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_device.c:795:libxl__initiate_device_remove: unable to get my domid
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x182baa0: deregister unregistered
libxl: error: libxl.c:1972:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl.c:1972:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_device.c:795:libxl__initiate_device_remove: unable to get my domid
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x182bd90: deregister unregistered
libxl: error: libxl.c:1972:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl.c:1665:devices_destroy_cb:libxl__devices_destroyfailed for 1
libxl: debug: libxl.c:1719:devices_destroy_cb: forked pid 1009 for destroy of domain 1
libxl: debug: libxl_event.c:1874:libxl__ao_complete: ao0x1825260:
complete, rc=-3
libxl: debug: libxl_event.c:1843:libxl__ao__destroy: ao0x1825260: destroy
libxl: debug: libxl.c:1458:libxl_domain_destroy: ao0x18290e0: create:
how=(nil) callback=(nil) poller=0x18252f0
libxl: error: libxl.c:1591:libxl__destroy_domid: non-existant domain 1
libxl: error: libxl.c:1549:domain_destroy_callback: unable to destroy guest with domid 1
libxl: error: libxl.c:1476:domain_destroy_cb: destruction of domain 1 failed
libxl: debug: libxl_event.c:1874:libxl__ao_complete: ao0x18290e0:
Quoted 8 lines
complete, rc=-21
libxl: debug: libxl.c:1467:libxl_domain_destroy: ao0x18290e0:
inprogress: poller=0x18252f0, flags=ic
libxl: debug: libxl_event.c:1843:libxl__ao__destroy: ao0x18290e0: destroy
xc: debug: hypercall buffer: total allocations:977 total releases:977
xc: debug: hypercall buffer: current allocations:0 maximum allocations:3
xc: debug: hypercall buffer: cache current size:3
xc: debug: hypercall buffer: cache hits:967 misses:3 toobig:7
In attachment domU xl cfg.
Xen service seems started:
Quoted 12 lines
systemctl status xencommons
â xencommons.service - LSB: Start/stop xenstored and xenconsoled
Loaded: loaded (/etc/init.d/xencommons)
Active: active (running) since sab 2015-10-10 14:23:40 CEST; 29min ago
Process: 761 ExecStart=/etc/init.d/xencommons start (code=exited,
status=0/SUCCESS)
CGroup: /system.slice/xencommons.serviceââ859 /usr/sbin/xenconsoled --pid-file=/var/run/xenconsoled.pid ââ917 /usr/lib/xen/bin/qemu-system-i386 -xen-domid 0-xen-attach -name dom0 -nographic -M xenpv -daemonize -monitor
/dev/null-serial/dev/null-parallel/dev/null...
Quoted 14 lines
ott 10 14:23:36 univirt xencommons[761]: Starting xenconsoled... ott 10 14:23:36 univirt xencommons[761]: Starting QEMU as disk backend for dom0
systemctl status xendomains
â xendomains.service - Xendomains - start and stop guests on boot and shutdown
Loaded: loaded (/usr/lib/systemd/system/xendomains.service; enabled)
Active: active (exited) since sab 2015-10-10 14:23:37 CEST; 30min ago
Process: 851 ExecStart=/usr/lib/xen/bin/xendomains start
(code=exited, status=0/SUCCESS)
Process: 849 ExecStartPre=/bin/grep -qcontrol_d/proc/xen/capabilities(code=exited, status=0/SUCCESS)
Main PID: 851 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/xendomains.service
But there are strange things:
Quoted 4 lines
xl list
Name ID Mem VCPUs State Time(s)
(null) 0 2048 8 r-----
15.3
and:
Quoted 40 lines
xenstore-ls
tool = ""
xenstored = ""
local = ""
domain = ""
0 = ""
device-model = ""
0 = ""
state = "running"
backend = ""vbd = "" 1 = "" 768 = "" frontend = "/local/domain/1/device/vbd/768" params = "/mnt/vm/disks/W10.disk1.xm" script = "/etc/xen/scripts/block" frontend-id = "1" online = "1" removable = "0" bootable = "1" state = "6" dev = "hda" type = "phy" mode = "w" device-type = "disk" discard-enable = "1" 832 = "" frontend = "/local/domain/1/device/vbd/832" params = "/mnt/vm/iso/Windows10pro64bit.iso" script = "/etc/xen/scripts/block" frontend-id = "1" online = "1" removable = "1" bootable = "1" state = "6" dev = "hdb" type = "phy" mode = "r" device-type = "cdrom" discard-enable = "0"
Quoted 2 lines
vm = ""
libxl = ""
data about a domU not started correctly...
I not understand what is exactly is wrong.
Checking xen services I found a xendriverdomain service added recently but not in systemd:
http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=2909ad4c96ba5527b35ac87c089116cd0320a5e7
is this needed but missed in systemd support?
Thanks for any reply and sorry for my bad english.
name='W10'
builder="hvm"
#device_model_override="/usr/lib/xen/bin/qemu-gdb"
memory=4096
vcpus=2
acpi_s3=0
acpi_s4=0
#hdtype="ahci"
vif=['bridge=xenbr0,mac=00:16:3e:fe:7a:b9'] disk=['/mnt/vm/disks/W10.disk1.xm,raw,hda,rw','/mnt/vm/iso/Windows10pro64bit.iso,raw,hdb,ro,cdrom'] #disk=['/mnt/vm/disks/W10.disk1.cow-sn1,qcow2,hda,rw',',raw,hdb,ro,cdrom'] boot='cd'
device_model_version="qemu-xen"
viridian=1
xen_platform_pci=1
vnc=0
keymap="it"
on_crash="destroy"
vga="qxl"
spice=1
spicehost='0.0.0.0'
spiceport=6000
spicedisable_ticketing=1
spicevdagent=1
spice_clipboard_sharing=0
spiceusbredirection=4
soundhw="hda"
localtime=1
#usbversion=3
ms_vm_genid="generate"
device_model_args=["-trace","events=/etc/xen/qemu-trace-options"]
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
On Sat, Oct 10, 2015 at 03:08:54PM +0200, Fabio Fantoni wrote:
[...]
Quoted 4 lines
there was an error in generated
config/Tools.mkI solved manually (replacing @debug@ with y), already reported here:
http://lists.xen.org/archives/html/xen-devel/2015-10/msg01184.html
That one is a real bug and I've posted patch for it with you CC'ed.
Quoted 11 lines
I enabled xen services with systemd:
systemctl enable xencommons
systemctl enable xendomains
I missed or did wrong something?And used this grub entry:
Quoted 5 lines
menuentry 'Jessie con Linux 3.16.0-4-amd64 e XEN 4.6 - RAID' --class debian --class gnu-linux --class gnu --class os {
set root='(lvm/RAID-ROOT)'
echo 'Caricamento Hypervisor Xen 4.6...'
multiboot/boot/xen.gzplaceholder dom0_mem=2G,max:2G
Make sure xen.gz is pointing to xen 4.6 file.
Quoted 9 lines
Quoted 6 lines
echo 'Caricamento Linux 3.16.0-4-amd64...' module /boot/vmlinuz-3.16.0-4-amd64 placeholderroot=/dev/mapper/RAID-ROOT ro quiet
echo 'Caricamento ramdisk iniziale...'
module --nounzip/boot/initrd.img-3.16.0-4-amd64
}I tried to remove swiotlb=65762 from kernel parameters used for year as workaround that I not remember good, should be still neded?
Not sure.
Quoted 2 lines
DomU fails to start:
[...]
Quoted 8 lines
Quoted 8 lines
deregister slotnum=3
libxl: debug: libxl_device.c:937:device_backend_callback: callingdevice_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x1828820: deregister unregistered
libxl: error: libxl.c:1972:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_device.c:987:device_hotplug: Failed to get domid
I think this is toolstack domain trying to get it's own domain id. And this leads to other errors.
Quoted 5 lines
But there are strange things:
Quoted 3 lines
xl list
Name ID Mem VCPUs State Time(s)
(null) 0 2048 8 r-----
Was xen-init-dom0 service started? I doubt that because there wasn't /local/domain/0/domid in your xenstore dump.
Quoted 44 lines
Quoted 1 line
15.3
and:
Quoted 40 lines
xenstore-ls
tool = ""
xenstored = ""
local = ""
domain = ""
0 = ""
device-model = ""
0 = ""
state = "running"
backend = ""
vbd = ""1 = "" 768 = "" frontend = "/local/domain/1/device/vbd/768" params = "/mnt/vm/disks/W10.disk1.xm" script = "/etc/xen/scripts/block" frontend-id = "1" online = "1" removable = "0" bootable = "1" state = "6" dev = "hda" type = "phy" mode = "w" device-type = "disk" discard-enable = "1" 832 = "" frontend = "/local/domain/1/device/vbd/832" params = "/mnt/vm/iso/Windows10pro64bit.iso" script = "/etc/xen/scripts/block" frontend-id = "1" online = "1" removable = "1" bootable = "1" state = "6" dev = "hdb" type = "phy" mode = "r" device-type = "cdrom" discard-enable = "0"Quoted 2 lines
vm = ""
libxl = ""
Quoted 9 lines
data about a domU not started correctly...
I not understand what is exactly is wrong.
Checking xen services I found a xendriverdomain service added recently but not in systemd:
http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=2909ad4c96ba5527b35ac87c089116cd0320a5e7
is this needed but missed in systemd support?
That's irrelevant to your problem because you weren't using driver domain.
Wei.
Il 11/10/2015 16:54, Wei Liu ha scritto:
Quoted 7 lines · Fabio Fantoni
[...]
Quoted 4 lines
there was an error in generated
config/Tools.mkI solved manually (replacing @debug@ with y), already reported here:
http://lists.xen.org/archives/html/xen-devel/2015-10/msg01184.htmlThat one is a real bug and I've posted patch for it with you CC'ed.
Thanks, now I'll test it to be sure is all ok with it. For the others see below.
Quoted 6 lines
Quoted 6 lines
I enabled xen services with systemd:
systemctl enable xencommons
systemctl enable xendomains
I missed or did wrong something?
Quoted 7 lines
Quoted 6 lines
And used this grub entry:
Quoted 5 lines
menuentry 'Jessie con Linux 3.16.0-4-amd64 e XEN 4.6 - RAID' --class debian --class gnu-linux --class gnu --class os {
set root='(lvm/RAID-ROOT)'
echo 'Caricamento Hypervisor Xen 4.6...'
multiboot/boot/xen.gzplaceholder dom0_mem=2G,max:2GMake sure xen.gz is pointing to xen 4.6 file.
Yes or will not start and is the only build I did on full clean system.
Quoted 11 lines
Quoted 10 lines
Quoted 7 lines
echo 'Caricamento Linux 3.16.0-4-amd64...' module /boot/vmlinuz-3.16.0-4-amd64 placeholderroot=/dev/mapper/RAID-ROOT ro quiet
echo 'Caricamento ramdisk iniziale...'
module --nounzip/boot/initrd.img-3.16.0-4-amd64
}I tried to remove swiotlb=65762 from kernel parameters used for year as workaround that I not remember good, should be still neded?
Not sure.
Is there someone can reply me about it please?
Quoted 14 lines
Quoted 2 lines
DomU fails to start:
[...]
Quoted 8 lines
Quoted 8 lines
deregister slotnum=3
libxl: debug: libxl_device.c:937:device_backend_callback: callingdevice_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x1828820: deregister unregistered
libxl: error: libxl.c:1972:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_device.c:987:device_hotplug: Failed to get domidI think this is toolstack domain trying to get it's own domain id. And this leads to other errors.
Quoted 6 lines
Quoted 4 lines
But there are strange things:
Quoted 3 lines
xl list
Name ID Mem VCPUs State Time(s)
(null) 0 2048 8 r-----Was xen-init-dom0 service started? I doubt that because there wasn't /local/domain/0/domid in your xenstore dump.
Yes, you are right:
Quoted 6 lines
systemctl status xen-init-dom0
xen-init-dom0.service - xen-init-dom0, initialise Dom0 configuration
(xenstore nodes, JSON configuration stub)
Loaded: loaded (/usr/lib/systemd/system/xen-init-dom0.service;
disabled)
Active: inactive (dead)
systemd support need improvement or documentation like this page:
http://wiki.xenproject.org/wiki/Compiling_Xen_From_Source
I did this following it:
Quoted 2 lines
systemctl enable xencommons
systemctl enable xendomains
But seems don't include/enable all needed deps.
Can someone tell me exactly what is the solution please? the patch for it (if needed, I don't know good systemd) and/or things missed to do for fully enable it (to add also in docs)
Quoted 58 lines
Quoted 45 lines
Quoted 2 lines
15.3
and:
Quoted 40 lines
xenstore-ls
tool = ""
xenstored = ""
local = ""
domain = ""
0 = ""
device-model = ""
0 = ""
state = "running"
backend = ""vbd = "" 1 = "" 768 = "" frontend = "/local/domain/1/device/vbd/768" params = "/mnt/vm/disks/W10.disk1.xm" script = "/etc/xen/scripts/block" frontend-id = "1" online = "1" removable = "0" bootable = "1" state = "6" dev = "hda" type = "phy" mode = "w" device-type = "disk" discard-enable = "1" 832 = "" frontend = "/local/domain/1/device/vbd/832" params = "/mnt/vm/iso/Windows10pro64bit.iso" script = "/etc/xen/scripts/block" frontend-id = "1" online = "1" removable = "1" bootable = "1" state = "6" dev = "hdb" type = "phy" mode = "r" device-type = "cdrom" discard-enable = "0"Quoted 2 lines
vm = ""
libxl = ""Quoted 9 lines
data about a domU not started correctly...
I not understand what is exactly is wrong.
Checking xen services I found a xendriverdomain service added recently but not in systemd:
http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=2909ad4c96ba5527b35ac87c089116cd0320a5e7
is this needed but missed in systemd support?That's irrelevant to your problem because you weren't using driver domain.
Wei.
Il 11/10/2015 17:43, Fabio Fantoni ha scritto:
Quoted 74 lines
Il 11/10/2015 16:54, Wei Liu ha scritto:
Quoted 7 lines · Fabio Fantoni
[...]
Quoted 4 lines
there was an error in generated
config/Tools.mkI solved manually (replacing @debug@ with y), already reported here:
http://lists.xen.org/archives/html/xen-devel/2015-10/msg01184.htmlThat one is a real bug and I've posted patch for it with you CC'ed.
Thanks, now I'll test it to be sure is all ok with it. For the others see below.
Quoted 6 lines
Quoted 6 lines
I enabled xen services with systemd:
systemctl enable xencommons
systemctl enable xendomains
I missed or did wrong something?Quoted 7 lines
Quoted 6 lines
And used this grub entry:
Quoted 5 lines
menuentry 'Jessie con Linux 3.16.0-4-amd64 e XEN 4.6 - RAID' --class debian --class gnu-linux --class gnu --class os {
set root='(lvm/RAID-ROOT)'
echo 'Caricamento Hypervisor Xen 4.6...'
multiboot/boot/xen.gzplaceholder dom0_mem=2G,max:2GMake sure xen.gz is pointing to xen 4.6 file.
Yes or will not start and is the only build I did on full clean system.
Quoted 11 lines
Quoted 10 lines
Quoted 7 lines
echo 'Caricamento Linux 3.16.0-4-amd64...' module /boot/vmlinuz-3.16.0-4-amd64 placeholderroot=/dev/mapper/RAID-ROOT ro quiet
echo 'Caricamento ramdisk iniziale...'
module --nounzip/boot/initrd.img-3.16.0-4-amd64
}I tried to remove swiotlb=65762 from kernel parameters used for year as workaround that I not remember good, should be still neded?
Not sure.
Is there someone can reply me about it please?
Quoted 14 lines
Quoted 2 lines
DomU fails to start:
[...]
Quoted 8 lines
Quoted 8 lines
deregister slotnum=3
libxl: debug: libxl_device.c:937:device_backend_callback: callingdevice_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x1828820: deregister unregistered
libxl: error: libxl.c:1972:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_device.c:987:device_hotplug: Failed to get domidI think this is toolstack domain trying to get it's own domain id. And this leads to other errors.
Quoted 6 lines
Quoted 4 lines
But there are strange things:
Quoted 3 lines
xl list
Name ID Mem VCPUs State Time(s)
(null) 0 2048 8 r-----Was xen-init-dom0 service started? I doubt that because there wasn't /local/domain/0/domid in your xenstore dump.
Yes, you are right:
Quoted 6 lines
systemctl status xen-init-dom0
xen-init-dom0.service - xen-init-dom0, initialise Dom0
configuration (xenstore nodes, JSON configuration stub)
Loaded: loaded (/usr/lib/systemd/system/xen-init-dom0.service;
disabled)
Active: inactive (dead)systemd support need improvement or documentation like this page:
http://wiki.xenproject.org/wiki/Compiling_Xen_From_Source
Quoted 7 lines
I did this following it:
Quoted 2 lines
systemctl enable xencommons
systemctl enable xendomainsBut seems don't
include/enableall needed deps.Can someone tell me exactly what is the solution please? the patch for it (if needed, I don't know good systemd) and/or things missed to do for fully enable it (to add also in docs)
I did a tests and with these commands seems that load all needed for boot correctly domUs:
systemctl enable xenstored.service
systemctl enable xenconsoled.service
systemctl enable xen-init-dom0.service
systemctl enable xen-qemu-dom0-disk-backend.service
systemctl enable xendomains.service
These is only a strange thing about xendomains:
Quoted 9 lines
- systemctl enable xenstored.service
Created symlink from/etc/systemd/system/multi-user.target.wants/xenstored.serviceto/usr/lib/systemd/system/xenstored.service. Created symlink from/etc/systemd/system/sockets.target.wants/xenstored_ro.socketto/usr/lib/systemd/system/xenstored_ro.socket. Created symlink from/etc/systemd/system/sockets.target.wants/xenstored.socketto/usr/lib/systemd/system/xenstored.socket.
- systemctl enable xenconsoled.service
Created symlink from/etc/systemd/system/multi-user.target.wants/xenconsoled.serviceto/usr/lib/systemd/system/xenconsoled.service.
- systemctl enable xen-init-dom0.service
Created symlink from/etc/systemd/system/multi-user.target.wants/xen-init-dom0.serviceto/usr/lib/systemd/system/xen-init-dom0.service.
- systemctl enable xen-qemu-dom0-disk-backend.service
Quoted 8 lines
Created symlink from
/etc/systemd/system/multi-user.target.wants/xen-qemu-dom0-disk-backend.serviceto/usr/lib/systemd/system/xen-qemu-dom0-disk-backend.service.
- systemctl enable xendomains.service
Synchronizing state for xendomains.service with sysvinit using update-rc.d...
Executing/usr/sbin/update-rc.dxendomains defaults
insserv: warning: current start runlevel(s) (empty) of script `xendomains' overrides LSB defaults (2 3 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 5 6) of script `xendomains' overrides LSB defaults (0 1 6).
Executing/usr/sbin/update-rc.dxendomains enable
Created symlink from/etc/systemd/system/multi-user.target.wants/xendomains.serviceto/usr/lib/systemd/system/xendomains.service.
"insserv: warning:" lines seems strange to me, is possible that refer about use old service method (or both) instead systemd only?
Are they correct and complete? If yes I'll fix the documentation in wiki, if not can tell me please what is wrong and/or missed?
Quoted 61 lines
Quoted 60 lines
Quoted 48 lines
Quoted 3 lines
15.3
and:
Quoted 40 lines
xenstore-ls
tool = ""
xenstored = ""
local = ""
domain = ""
0 = ""
device-model = ""
0 = ""
state = "running"
backend = ""vbd = "" 1 = "" 768 = "" frontend = "/local/domain/1/device/vbd/768" params = "/mnt/vm/disks/W10.disk1.xm" script = "/etc/xen/scripts/block" frontend-id = "1" online = "1" removable = "0" bootable = "1" state = "6" dev = "hda" type = "phy" mode = "w" device-type = "disk" discard-enable = "1" 832 = "" frontend = "/local/domain/1/device/vbd/832" params = "/mnt/vm/iso/Windows10pro64bit.iso" script = "/etc/xen/scripts/block" frontend-id = "1" online = "1" removable = "1" bootable = "1" state = "6" dev = "hdb" type = "phy" mode = "r" device-type = "cdrom" discard-enable = "0"Quoted 2 lines
vm = ""
libxl = ""data about a domU not started correctly...
Quoted 8 lines
I not understand what is exactly is wrong.
Checking xen services I found a xendriverdomain service added recently but not in systemd:
http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=2909ad4c96ba5527b35ac87c089116cd0320a5e7is this needed but missed in systemd support?
That's irrelevant to your problem because you weren't using driver domain.
Wei.