[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] xen 4.6.0 on jessie dom0 unable to start domUs and questions about systemd and build deps



Il 11/10/2015 17:43, Fabio Fantoni ha scritto:
Il 11/10/2015 16:54, Wei Liu ha scritto:
On Sat, Oct 10, 2015 at 03:08:54PM +0200, Fabio Fantoni wrote:
[...]
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

That 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.


I enabled xen services with systemd:
systemctl enable xencommons
systemctl enable xendomains
I missed or did wrong something?

And used this grub entry:
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
Make 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.


        echo    'Caricamento Linux 3.16.0-4-amd64...'
        module  /boot/vmlinuz-3.16.0-4-amd64 placeholder
root=/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?


DomU fails to start:
[...]
deregister slotnum=3
libxl: debug: libxl_device.c:937:device_backend_callback: calling
device_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.

But there are strange things:
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:
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:
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)


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:
- systemctl enable xenstored.service
Created symlink from /etc/systemd/system/multi-user.target.wants/xenstored.service to /usr/lib/systemd/system/xenstored.service. Created symlink from /etc/systemd/system/sockets.target.wants/xenstored_ro.socket to /usr/lib/systemd/system/xenstored_ro.socket. Created symlink from /etc/systemd/system/sockets.target.wants/xenstored.socket to /usr/lib/systemd/system/xenstored.socket.
- systemctl enable xenconsoled.service
Created symlink from /etc/systemd/system/multi-user.target.wants/xenconsoled.service to /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.service to /usr/lib/systemd/system/xen-init-dom0.service.
- systemctl enable xen-qemu-dom0-disk-backend.service
Created symlink from /etc/systemd/system/multi-user.target.wants/xen-qemu-dom0-disk-backend.service to /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.d xendomains 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.d xendomains enable
Created symlink from /etc/systemd/system/multi-user.target.wants/xendomains.service to /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?



15.3
and:
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"
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?

That's irrelevant to your problem because you weren't using driver
domain.

Wei.



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.