From: Fabio Fantoni Subject: Re: xen 4.6.0 on jessie dom0 unable to start domUs and questions about systemd and build deps Date: Sun, 11 Oct 2015 17:43:26 +0200 Message-ID: <561A839E.4030904@m2r.biz> References: <56190DE6.5080805@m2r.biz> <20151011145424.GI20846@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20151011145424.GI20846@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: mcgrof@suse.com, Stefano Stabellini , Ian Jackson , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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) > >>> 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.