From owner-freebsd-xen@freebsd.org Tue Jul 23 15:44:39 2019 Return-Path: Delivered-To: freebsd-xen@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A83D4AC84E for ; Tue, 23 Jul 2019 15:44:39 +0000 (UTC) (envelope-from knight.neo@gmail.com) Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1708696777 for ; Tue, 23 Jul 2019 15:44:39 +0000 (UTC) (envelope-from knight.neo@gmail.com) Received: by mail-io1-xd43.google.com with SMTP id g20so82796947ioc.12 for ; Tue, 23 Jul 2019 08:44:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E1DPsg4zaRvG9wA5PxKzCbP7NkqbMvOZBpT40qhsDBg=; b=Eo0eiTyqwisAOYHpZT0iprKnYWfnkElkgbUt/y7mtg+rQKMgLzr4fbsCTUczFlvPya LtC/LDPQsNtFpcRxyWazY2scDpJeTsHWlOoK2d2imhLd93IzS3UXkziGzWoLHWjmdFRq Prp41ONcyPyahhndF6LRxYsjT53zvNSEy7WsmbDRUJaQXchUSd7llGRG5F2rCaCOEugG oWjGryYogBkrlBLtSB2WFWeXyDh3sAY9abR0tFuvvdBiobfQsAgMhJzAn21fMdGU0Opa O5A2JjYdVG+hzajrBN3UuAJj9hEO35xKRhJtQNdRK99q8efEb90rTGvbFRurjVrZ9CPK eTTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E1DPsg4zaRvG9wA5PxKzCbP7NkqbMvOZBpT40qhsDBg=; b=un8/k3QWeOOFQ+WIeczuvFRfex0OORiqIxC4Pq8YQqUszWp3bCfsV+f+rgGswS+TZB b5YGmomd/pbS8d7UpnbrmqHvqRDCfU3QLWfcGT8lwJ9NRulOTvNnlajkXzG21Ss7F5PW CQ+tkvi4uIQ7l3zGU27L5xHlf6ACBsvObaAdCtW/8lGxi4FvlYOXQPj5s9ZmPVxwuzvC jbm1vkCe70zG6yOSvvc1kunQGSfRM7Oq3IJ8p5EhhDcyK9ZxbHNjAepIWR4Z8AeXKTdI BQaLgOue5lrPiOk7Ol/dtFVQ/jDIBJ8unJ5gQPN5InoQweSSnaDVOhGzovgYtWMMFK8s dVkg== X-Gm-Message-State: APjAAAULmv6hsF/7ydt7X6oiUMdfIvLW3vTryFr2nkqQVc9MhCRmk8d2 +2D7mH6a0eul1IlZfGdWrkRCfy8GcqL1WnZU/aEJP5Dg X-Google-Smtp-Source: APXvYqy5ygzY1e3qP8XRm6UPt2WHtogH8vK07Hj0KUyyY63eKrG+GOaXF2mcGjQ9Ojl1JUZXPtpGnZ+ra4tgYwNiQn8= X-Received: by 2002:a6b:5b01:: with SMTP id v1mr67554183ioh.120.1563896678394; Tue, 23 Jul 2019 08:44:38 -0700 (PDT) MIME-Version: 1.0 References: <20190704072629.v4qegclh7ljfdt64@Air-de-Roger> <20190723131339.hbdwdqtlhcox7qjm@Air-de-Roger.citrite.net> In-Reply-To: <20190723131339.hbdwdqtlhcox7qjm@Air-de-Roger.citrite.net> From: "R0me0 ***" Date: Tue, 23 Jul 2019 15:43:47 +0000 Message-ID: Subject: Re: Xen 4.12 - systemrescuecd-6.0.3.iso - Baremetal reboots To: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Cc: freebsd-xen@freebsd.org X-Rspamd-Queue-Id: 1708696777 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Eo0eiTyq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of knightneo@gmail.com designates 2607:f8b0:4864:20::d43 as permitted sender) smtp.mailfrom=knightneo@gmail.com X-Spamd-Result: default: False [-4.62 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.87)[-0.867,0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.995,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-xen@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.4.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-0.75)[ip: (1.85), ipnet: 2607:f8b0::/32(-3.10), asn: 15169(-2.43), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2019 15:44:39 -0000 Yes DOM0, the XEN hypervisor completely hangs and the host automatically reboots. It seems related with Linux guests using kernel 4.x I'am using FreeBSD 12.0-RELEASE-p7 FreeBSD 12.0-RELEASE-p6 GENERIC amd64 # pkg info argp-standalone-1.3_3 Standalone version of arguments parsing functions from GLIBC bareos17-client-17.2.7_3 Backup archiving recovery open sourced (client) ca_root_nss-3.45 Root certificate bundle from the Mozilla Project curl-7.65.2 Command line tool and library for transferring data with URLs doas-6.0p3 Simple sudo alternative to run commands as another user gettext-runtime-0.20.1 GNU gettext runtime libraries and programs glib-2.56.3_5,1 Some useful routines of C programming (current stable version) indexinfo-0.3.1 Utility to regenerate the GNU info page inde= x jansson-2.12 C library for encoding, decoding, and manipulating JSON data libffi-3.2.1_3 Foreign Function Interface libiconv-1.14_11 Character set conversion library libnghttp2-1.39.1 HTTP/2.0 C Library libxml2-2.9.9 XML parser library for GNOME lzo2-2.10_1 Portable speedy, lossless data compression library mtr-nox11-0.92_1 Traceroute and ping in a single network diagnostic tool p5-Path-Tiny-0.108 File path utility pcre-8.43_1 Perl Compatible Regular Expressions library perl5-5.28.2 Practical Extraction and Report Language pixman-0.38.4 Low-level pixel manipulation library pkg-1.11.1 Package manager python27-2.7.16_1 Interpreted object-oriented programming language python36-3.6.9 Interpreted object-oriented programming language qemu-utils-3.0.1_2 QEMU userland utilities readline-8.0.0 Library for editing command lines as they are typed seabios-1.11.0_2 Open source implementation of a 16bit X86 BIOS strongswan-5.8.0 Open Source IKEv2 IPsec-based VPN solution vim-console-8.1.1439 Improved version of the vi editor (console only) xen-kernel-4.12.0_3 Hypervisor using a microkernel design xen-tools-4.12.0_2 Xen management tools yajl-2.1.0 Portable JSON parsing and serialization library in ANSI C Em ter, 23 de jul de 2019 =C3=A0s 13:13, Roger Pau Monn=C3=A9 escreveu: > On Tue, Jul 23, 2019 at 11:51:51AM +0000, R0me0 *** wrote: > > I tried to boot kali linux ( > > https://cdimage.kali.org/kali-2019.2/kali-linux-2019.2-amd64.iso ) as > guest. > > > > The machine freezes on the same way I am using the latest xen 4.12 on > > freebsd > > I think I'm confused by this sentence. When you write the machine > freezes, I assume you mean that the guest freezes, but the host is > responsive? > > > here is the screenshot of console: > > > > [image: 2019-07-23-084718_853x193_scrot.png] > > > > and here is the xl dmesg > > > > (d12) Detected Xen v4.12.0 > > (d12) xen: copy BIOS tables... > > (d12) Copying SMBIOS entry point from 0x00010020 to 0x000f5e60 > > (d12) Copying MPTABLE from 0xfc0011e0/fc0011f0 to 0x000f5d40 > > (d12) Copying PIR from 0x00010040 to 0x000f5cc0 > > (d12) Copying ACPI RSDP from 0x000100c0 to 0x000f5c90 > > (d12) Using pmtimer, ioport 0xb008 > > (d12) Scan for VGA option rom > > (d12) Running option rom at c000:0003 > > (d12) pmm call arg1=3D0 > > (d12) Turning on vga text mode console > > (d12) SeaBIOS (version 1.11.0-20190516_220714-120amd64-default-job-06) > > (d12) Machine UUID 2e347e67-ad3f-11e9-9209-0cc47a4dbca8 > > (d12) ATA controller 1 at 1f0/3f4/0 (irq 14 dev 9) > > (d12) ATA controller 2 at 170/374/0 (irq 15 dev 9) > > (d12) Found 0 lpt ports > > (d12) Found 1 serial ports > > (d12) ata0-0: QEMU HARDDISK ATA-7 Hard-Disk (80 GiBytes) > > (d12) Searching bootorder for: /pci@i0cf8/*@1,1/drive@0/disk@0 > > (d12) DVD/CD [ata0-1: QEMU DVD-ROM ATAPI-4 DVD/CD] > > (d12) Searching bootorder for: /pci@i0cf8/*@1,1/drive@0/disk@1 > > (d12) PS2 keyboard initialized > > (d12) All threads complete. > > (d12) Scan for option roms > > (d12) Running option rom at c980:0003 > > (d12) pmm call arg1=3D1 > > (d12) pmm call arg1=3D0 > > (d12) pmm call arg1=3D1 > > (d12) pmm call arg1=3D0 > > (d12) Searching bootorder for: /pci@i0cf8/*@4 > > (d12) > > (d12) Press ESC for boot menu. > > (d12) > > (d12) Searching bootorder for: HALT > > (d12) drive 0x000f5c20: PCHS=3D16383/16/63 translation=3Dlba LCHS=3D102= 4/255/63 > > s=3D167772160 > > (d12) Space available for UMB: ca800-eb000, f5680-f5bc0 > > (d12) Returned 258048 bytes of ZoneHigh > > (d12) e820 map has 7 items: > > (d12) 0: 0000000000000000 - 000000000009fc00 =3D 1 RAM > > (d12) 1: 000000000009fc00 - 00000000000a0000 =3D 2 RESERVED > > (d12) 2: 00000000000f0000 - 0000000000100000 =3D 2 RESERVED > > (d12) 3: 0000000000100000 - 00000000effff000 =3D 1 RAM > > (d12) 4: 00000000effff000 - 00000000f0000000 =3D 2 RESERVED > > (d12) 5: 00000000fc000000 - 0000000100000000 =3D 2 RESERVED > > (d12) 6: 0000000100000000 - 000000010f800000 =3D 1 RAM > > (d12) enter handle_19: > > (d12) NULL > > (d12) Booting from Hard Disk... > > (d12) Boot failed: not a bootable disk > > (d12) > > (d12) enter handle_18: > > (d12) NULL > > (d12) Booting from DVD/CD... > > (d12) Booting from 0000:7c00 > > > > > > > > Em qui, 11 de jul de 2019 =C3=A0s 21:02, R0me0 *** > > escreveu: > > > > > Hello Roger, > > > > > > >So you are trying to boot systemrescuecd as a guest on the Xen host? > > > Yes. > > > > > > Here is the config I have used: > > > > > > # cat livecd.cfg > > > > > > builder =3D "hvm" > > > name =3D "livecd" > > > memory =3D 2048 > > > cpus=3D"all,^0-1" > > > vcpus =3D 2 > > > vif =3D [ 'type=3Dvif,bridge=3Dsandbox' ] > > > disk =3D [ '/dev/zvol/fbroot/SAND/disk,raw,xvda,w' , > > Can you try with: > > 'format=3Draw, vdev=3Dhda, access=3Drw, backendtype=3Dqdisk, > target=3D/dev/zvol/fbroot/SAND/disk' > > Which version of FreeBSD are you running? > > Can you also paste the output of `dmesg` when this happens? > > Thanks, Roger. >