Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2017 09:50:23 +0200
From:      =?UTF-8?Q?Roberto_Fern=C3=A1ndez?= <roberfern@gmail.com>
To:        Peter Grehan <grehan@freebsd.org>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: Bhyve detaches my hard disk
Message-ID:  <CAJD3LUd6s8%2BsJOgerQW8gx15nZKWhBzKKiLb1WZqLT59gtbUqw@mail.gmail.com>
In-Reply-To: <6893879b-477f-e621-b558-09922b47bf7e@freebsd.org>
References:  <CAJD3LUep_C35S0PA2a37iKv0AAxj5oR6_=ORFzXi9y1mYiuRBw@mail.gmail.com> <6893879b-477f-e621-b558-09922b47bf7e@freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Hi Peter, the bhyve-start.sh attachment has it, but anyway, it is the
following

grub-bhyve -m /usr/home/r.fernandez-cueto/device.map -r cd0 -M 1024M -S\
	 ubuntu-server
bhyve -A -H -P -s 0:0,hostbridge -s 2:0,passthru,2/0/0 -s 1:0,virtio-net,tap0 \
	-s 3:0,virtio-blk,/bhyve/ubuntu-server.img \
	-s 4:0,ahci-cd,/usr/home/r.fernandez-cueto/Downloads/ubuntu-16.04.3-server-amd64.iso
\
	-lcom1,stdio -c4 -m 1024M -S ubuntu-server

I have attached the dmesg output before the crash, afterwards it was
impossible due to the fact

that the root partition, which is inside the detached hard disk, was
not available.


And afterwards, the detached message appeared (see detached_message).

If you have some trouble seeing the attached files I can send them as
raw text inside the body

of the email.

Regards,

Roberto


2017-09-26 7:42 GMT+02:00 Peter Grehan <grehan@freebsd.org>:

> Hi Roberto,
>
> Attached to this email is the script that I am using to launch the bhyve
>> machine and the output
>> from the console at the moment of the crash, the output of pciconf -lv and
>> uname -a.
>>
>
>  The attachment didn't have the bhyve launch script. Would you be able to
> resend that, along with a dmesg of the host system ?
>
> later,
>
> Peter.
>

[-- Attachment #2 --]
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #1 r323918: Fri Sep 22 10:04:08 CEST 2017
    root@bsd-dev:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on LLVM 5.0.0svn)
WARNING: WITNESS option enabled, expect reduced performance.
VT(efifb): resolution 1920x1080
CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz (2400.11-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x406e3  Family=0x6  Model=0x4e  Stepping=3
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x7ffafbbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x121<LAHF,ABM,Prefetch>
  Structured Extended Features=0x29c67af<FSGSBASE,TSCADJ,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,NFPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE>
  XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 8589934592 (8192 MB)
avail memory = 8093986816 (7719 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <DELL   CBX3   >
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 hardware threads
random: unblocking device.
ioapic0 <Version 2.0> irqs 0-119 on motherboard
SMP: AP CPU #1 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #2 Launched!
Timecounter "TSC-low" frequency 1200057121 Hz quality 1000
random: entropy device external interface
[ath_hal] loaded
module_register_init: MOD_LOAD (vesa, 0xffffffff80f72a00, 0) error 19
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
kbd1 at kbdmux0
netmap: loaded module
nexus0
cryptosoft0: <software crypto> on motherboard
aesni0: <AES-CBC,AES-XTS,AES-GCM,AES-ICM> on motherboard
acpi0: <DELL CBX3   > on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 24000000 Hz quality 950
Event timer "HPET" frequency 24000000 Hz quality 550
Event timer "HPET1" frequency 24000000 Hz quality 440
Event timer "HPET2" frequency 24000000 Hz quality 440
Event timer "HPET3" frequency 24000000 Hz quality 440
Event timer "HPET4" frequency 24000000 Hz quality 440
atrtc0: <AT realtime clock> port 0x70-0x77 irq 8 on acpi0
atrtc0: Warning: Couldn't map I/O.
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43,0x50-0x53 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x6e> port 0x930,0x934 on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0xf000-0xf03f mem 0xee000000-0xeeffffff,0xd0000000-0xdfffffff irq 16 at device 2.0 on pci0
vgapci0: Boot video device
xhci0: <Intel Sunrise Point-LP USB 3.0 controller> mem 0xef230000-0xef23ffff irq 16 at device 20.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
usbus0: waiting for BIOS to give up control
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
pci0: <simple comms> at device 22.0 (no driver attached)
ahci0: <Intel Sunrise Point-LP AHCI SATA controller> port 0xf090-0xf097,0xf080-0xf083,0xf060-0xf07f mem 0xef250000-0xef251fff,0xef254000-0xef2540ff,0xef253000-0xef2537ff irq 16 at device 23.0 on pci0
ahci0: AHCI v1.31 with 2 6Gbps ports, Port Multiplier not supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <unknown> at device 0.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> irq 18 at device 28.2 on pci0
pci2: <ACPI PCI bus> on pcib2
ppt0 mem 0xef000000-0xef001fff irq 18 at device 0.0 on pci2
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
pci0: <memory> at device 31.2 (no driver attached)
hdac0: <Intel Sunrise Point-LP HDA Controller> mem 0xef248000-0xef24bfff,0xef220000-0xef22ffff irq 17 at device 31.3 on pci0
em0: <Intel(R) PRO/1000 Network Connection> mem 0xef200000-0xef21ffff irq 16 at device 31.6 on pci0
em0: attach_pre capping queues at 1
em0: using 1024 tx descriptors and 1024 rx descriptors
em0: msix_init qsets capped at 1
em0: PCIY_MSIX capability not found; or rid 0 == 0.
em0: Using an MSI interrupt
em0: allocated for 1 tx_queues
em0: allocated for 1 rx_queues
taskqgroup_attach: setaffinity failed: 3
taskqgroup_attach: setaffinity failed: 3
em0: Ethernet address: a4:4c:c8:09:68:5e
em0: netmap queues/slots: TX 1/1024, RX 1/1024
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd0fff on isa0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
est2: <Enhanced SpeedStep Frequency Control> on cpu2
est3: <Enhanced SpeedStep Frequency Control> on cpu3
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Timecounters tick every 1.000 msec
hdacc0: <Realtek ALC256 HDA CODEC> at cad 0 on hdac0
ugen0.1: <0x8086 XHCI root HUB> at usbus0
hdaa0: <Realtek ALC256 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC256 (Analog)> at nid 33 and 18 on hdaa0
hdacc1: <Intel Skylake HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel Skylake Audio Function Group> at nid 1 on hdacc1
pcm1: <Intel Skylake (HDMI/DP 8ch)> at nid 3 on hdaa1
uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
ada0 at ahcich2 bus 0 scbus1 target 0 lun 0
ada0: <SK hynix SC308 SATA 256GB 30001P10> ACS-2 ATA SATA 3.x device
ada0: Serial Number EI76N031811106G0S
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 244198MB (500118192 512 byte sectors)
WARNING: WITNESS option enabled, expect reduced performance.
Trying to mount root from zfs:zroot/ROOT/default []...
uhub0: 18 ports with 18 removable, self powered
ugen0.2: <CNFGH19N202051002E72 IntegratedWebcamHD> at usbus0
ugen0.3: <vendor 0x8087 product 0x0a2b> at usbus0
GEOM_ELI: Device ada0p5.eli created.
GEOM_ELI: Encryption: AES-XTS 256
GEOM_ELI:     Crypto: hardware
Root mount waiting for: usbus0
ugen0.4: <Raydium Corporation Raydium Touch System> at usbus0
hid_get_item: Number of items(256) truncated to 255
GEOM_ELI: Device ada0p4.eli created.
GEOM_ELI: Encryption: AES-XTS 128
GEOM_ELI:     Crypto: hardware
Cuse v0.1.34 @ /dev/cuse
ubt0 on uhub0
ubt0: <vendor 0x8087 product 0x0a2b, class 224/1, rev 2.00/0.10, addr 2> on usbus0
hid_get_item: Number of items(256) truncated to 255
hid_get_item: Number of items(256) truncated to 255
uhid0 on uhub0
uhid0: <Raydium Corporation Raydium Touch System, class 0/0, rev 2.01/0.00, addr 3> on usbus0
hid_get_item: Number of items(256) truncated to 255
hid_get_item: Number of items(256) truncated to 255
hid_get_item: Number of items(256) truncated to 255
WARNING: attempt to domain_add(bluetooth) after domainfinalize()
WARNING: attempt to domain_add(netgraph) after domainfinalize()
Link state changed to up
em0: link state changed to UP
ubt0: ubt_ctrl_write_callback:780: control transfer failed: USB_ERR_TIMEOUT
ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x3, OCF=0x3. Timeout
uhid0: at uhub0, port 8, addr 3 (disconnected)
uhid0: detached
ugen0.5: <vendor 0x13fe USB DISK 2.0> at usbus0
umass0 on uhub0
umass0: <vendor 0x13fe USB DISK 2.0, class 0/0, rev 2.00/1.00, addr 4> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x8100
umass0:2:0: Attached to scbus2
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: < USB DISK 2.0 PMAP> Removable Direct Access SPC-4 SCSI device
da0: Serial Number 070848472E1C2893
da0: 40.000MB/s transfers
da0: 3824MB (7831552 512 byte sectors)
da0: quirks=0x3<NO_SYNC_CACHE,NO_6_BYTE>

[-- Attachment #3 --]

(ada0:ahcich2:0:0:0): READ_FPDMA_QUEUED. ACB: 60 08 38 4b 9a 40 03 00 00 00 00 00
(ada0:ahcich2:0:0:0): CAM status: CCB request was invalid
(ada0:ahcich2:0:0:0): Error 22, Unretryable error

(aprobe0:ahcich2:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 00 00
(aprobe0:ahcich2:0:0:0): CAM status: CCB request was invalid
(aprobe0:ahcich2:0:0:0): Error 22, Unretryable error
(aprobe0:ahcich2:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 00 00
(aprobe0:ahcich2:0:0:0): CAM status: CCB request was invalid
(aprobe0:ahcich2:0:0:0): Error 22, Unretryable error
(aprobe0:ahcich2:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 00 00
(aprobe0:ahcich2:0:0:0): CAM status: CCB request was invalid
(aprobe0:ahcich2:0:0:0): Error 22, Unretryable error
(aprobe0:ahcich2:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 00 00
(aprobe0:ahcich2:0:0:0): CAM status: CCB request was invalid
(aprobe0:ahcich2:0:0:0): Error 22, Unretryable error
(aprobe0:ahcich2:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 00 00
(aprobe0:ahcich2:0:0:0): CAM status: CCB request was invalid
(aprobe0:ahcich2:0:0:0): Error 22, Unretryable error
(aprobe0:ahcich2:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 00 00
(aprobe0:ahcich2:0:0:0): CAM status: CCB request was invalid
(aprobe0:ahcich2:0:0:0): Error 22, Unretryable error
(aprobe0:ahcich2:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 00 00
(aprobe0:ahcich2:0:0:0): CAM status: CCB request was invalid
(aprobe0:ahcich2:0:0:0): Error 22, Unretryable error
(aprobe0:ahcich2:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 00 00
(aprobe0:ahcich2:0:0:0): CAM status: CCB request was invalid
(aprobe0:ahcich2:0:0:0): Error 22, Unretryable error
(aprobe0:ahcich2:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 00 00
(aprobe0:ahcich2:0:0:0): CAM status: CCB request was invalid
(aprobe0:ahcich2:0:0:0): Error 22, Unretryable error
(aprobe0:ahcich2:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 00 00
(aprobe0:ahcich2:0:0:0): CAM status: CCB request was invalid
(aprobe0:ahcich2:0:0:0): Error 22, Unretryable error
ada0 at ahcich2 bus 0 scbus1 target 0 lun 0
ada0: <SK hynix SC308 SATA 256GB 30001P10> s/n EI76N031811106G0S detached
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJD3LUd6s8%2BsJOgerQW8gx15nZKWhBzKKiLb1WZqLT59gtbUqw>