From owner-freebsd-xen@freebsd.org Tue Jul 23 15:46:40 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 18D3CAC8DB for ; Tue, 23 Jul 2019 15:46:40 +0000 (UTC) (envelope-from knight.neo@gmail.com) Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) (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 96B3E96831 for ; Tue, 23 Jul 2019 15:46:39 +0000 (UTC) (envelope-from knight.neo@gmail.com) Received: by mail-io1-xd41.google.com with SMTP id o9so82920308iom.3 for ; Tue, 23 Jul 2019 08:46: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=R2aij/VY8tH8WjwKTBCGg0l1HxHQ4g/iG2glgwWu2rM=; b=Bta6allTFnkKQtByuHE2dLfKQvaxECxCLKfnDY0x+eK6v6iMKCdwQC0hfUuEhrzgpR EyFSUTIF00uSusDJj8P1YKwq0Iw5EnGlJ2dX3YXz2g7cxGdrPPic0otV4bUlmSWznhpo GEPlmm1wA/vk/9NtQp/+nX1YEAHM0d/fhSsb77G9heV18eaOEcoJCJX4VuYz2jIbhpHI fdIi0i6ZibRm2HZVjYpFlQHNvZ5Ca4V/A+puSvrfNVT0ySCSOSjy7AO/U5VkhCFPa/Lz p8QsBNVE6ohzA6wk21MHAHbvNQpoHNF96eeEXzhLB1+0q/3KflZMXVHi2PELhdMomtPc 1kmw== 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=R2aij/VY8tH8WjwKTBCGg0l1HxHQ4g/iG2glgwWu2rM=; b=slqbK3v5DFXGp7o/SpeGmwEytehxv2rPEtzCXRdaPbDbaj0dfKDL2OaQaMu2DHbBBT Q9CPp53QsdLXizlrquvSZmzMhWRLNeV3OAoI0lLUkXYylJghrgoQG1vRF8XYQiSbbmSI xN+HeHJ6Guk5wLj2oWTdR/x9QV73DUavtetEPDObPp1IIcHTWS5yRgK0R9MjWypVhoG5 VFYDjFnvc+eozAbmTXCWvfUnVchWRSSF/nEc6ASUb1dgKTYPYhGTp65NCjtOxtfezgqq osd2s4PLXs+WMEAYEhI8m2i6z30tKRDTKacdblRJF10tQRAkq3+rDuoxhEkVNTzxvUYg TPqg== X-Gm-Message-State: APjAAAWWpqxnpQ2dcgC+RsS6Ib2kTAl/ZcBKVmJl+d0XZVNAg5u+02PE Dgaw2lmehvZTEHEUjO50QRSFk7A4Ig+t1PTd0Ns= X-Google-Smtp-Source: APXvYqw0SFWT8Rx2Fo0FGlPdk38TwqhCBO3EAF/neEOAyD+E0t5htlGBrgx6fRlcVIjidNEkvvA8uNNNn3g/m1aJrzQ= X-Received: by 2002:a5e:c803:: with SMTP id y3mr34069153iol.308.1563896799089; Tue, 23 Jul 2019 08:46:39 -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:45:49 +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: 96B3E96831 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Bta6allT; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of knightneo@gmail.com designates 2607:f8b0:4864:20::d41 as permitted sender) smtp.mailfrom=knightneo@gmail.com X-Spamd-Result: default: False [-4.66 / 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:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.88)[-0.877,0]; 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.996,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)[1.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.77)[ip: (1.71), 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:46:40 -0000 Yes the 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 | cut -f1 -d' ' argp-standalone-1.3_3 bareos17-client-17.2.7_3 ca_root_nss-3.45 curl-7.65.2 doas-6.0p3 gettext-runtime-0.20.1 glib-2.56.3_5,1 indexinfo-0.3.1 jansson-2.12 libffi-3.2.1_3 libiconv-1.14_11 libnghttp2-1.39.1 libxml2-2.9.9 lzo2-2.10_1 mtr-nox11-0.92_1 p5-Path-Tiny-0.108 pcre-8.43_1 perl5-5.28.2 pixman-0.38.4 pkg-1.11.1 python27-2.7.16_1 python36-3.6.9 qemu-utils-3.0.1_2 readline-8.0.0 seabios-1.11.0_2 strongswan-5.8.0 vim-console-8.1.1439 xen-kernel-4.12.0_3 xen-tools-4.12.0_2 yajl-2.1.0 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. >