<div dir="ltr"><div>thats odd I thought I made sure to keep a call to that in the HyperV.destroyVm()<br><br></div>Anish can you post your answer to the public thread because if I do it I will likely get yelled at for being off topic;-)<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 11:22 AM, Anish Gupta <span dir="ltr"><<a href="mailto:akgupt3@gmail.com" target="_blank">akgupt3@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Ayreh,<div> You need to destroy the last VM before creating  new one so between bhyve and bhyveload, you should use "bhyvectl --destroy --vm=<vm name=t4n1ustl23>. This fixed the problem "Fatal trap 30: reserved (unknown) fault while in kernel mode" which I was able to reproduce on my Phenom box.</div>
<div><br></div><div><br></div><div>bhyveload</div><div>bhyve</div><div>…</div><div>bhyvectl --destroy --vm=/vm1 <<</div><div>bhyveload</div><div>….</div><div><br></div><div><br></div><div>I still can't get to login prompt for guest(no more faults :)), debugging it and will keep you posted.</div>
<div><br></div><div><div>Starting sshd.</div><div>Starting sendmail_submit.</div><div>Starting sendmail_msp_queue.</div><div>Starting cron.</div><div>Starting background file system checks in 60 seconds.</div><div><br></div>
<div>Wed Feb 19 16:10:41 CET 2014</div><div>Feb 19 16:10:41 aa getty[911]: open /dev/ttyv0: No such file or directory</div><div>Feb 19 16:10:41 aa getty[912]: open /dev/ttyv1: No such file or directory</div><div>Feb 19 16:10:41 aa getty[914]: open /dev/ttyv3: No such file or directory</div>
<div>Feb 19 16:10:41 aa getty[915]: open /dev/ttyv4: No such file or directory</div><div>Feb 19 16:10:41 aa getty[916]: open /dev/ttyv5: No such file or directory</div><div>Feb 19 16:10:41 aa getty[917]: open /dev/ttyv6: No such file or directory</div>
<div>Feb 19 16:10:41 aa getty[918]: open /dev/ttyv7: No such file or directory</div><div>Feb 19 16:10:41 aa getty[913]: open /dev/ttyv2: No such file or directory</div></div><div><< Hang here >></div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>-Anish</div></font></span><div><div class="h5"><div><br><div><div>On Feb 17, 2014, at 8:51 PM, Aryeh Friedman <<a href="mailto:aryeh.friedman@gmail.com" target="_blank">aryeh.friedman@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr"><div>Notes the first half (installation) of the script works fine the boot -v posted is from the second half (instance first boot)<br></div><div><br>#!/bin/sh<br>#<br></div># Generated by PetiteCloud 0.2.6<br>

<div><br>truncate -s 10G /vms/pri/nq6g103n9<br>ifconfig tap1 destroy<br>ifconfig tap1 create<br>ifconfig tap1 up<br>sleep 5<br>ifconfig bridge0 addm tap1 up<br><br>/usr/sbin/bhyveload -m 512 -d /vms/cds/FreeBSD-10.0-RELEASE-amd64-disc1.iso t4n1ustl23<br>

/usr/sbin/bhyve -c 1 -m 512 -AI -H -P -g 0 -s 0:0,hostbridge -s 1,virtio-net,tap1 -s 2,virtio-blk,/vms/pri/nq6g103n9 -s 3,ahci-cd,/vms/cds/FreeBSD-10.0-RELEASE-amd64-disc1.iso -S 31,uart,stdio  t4n1ustl23<br>echo $!>/var/run/petitecloud/t4n1ustl23<br>

ifconfig tap1 destroy<br>ifconfig tap1 create<br>ifconfig tap1 up<br>sleep 5<br>ifconfig bridge0 addm tap1 up<br><br>/usr/sbin/bhyveload -m 512 -d /vms/pri/nq6g103n9 t4n1ustl23<br>/usr/sbin/bhyve -c 1 -m 512 -AI -H -P -g 0 -s 0:0,hostbridge -s 1,virtio-net,tap1 -s 2,virtio-blk,/vms/pri/nq6g103n9  -S 31,uart,stdio  t4n1ustl23<br>

echo $!>/var/run/petitecloud/t4n1ustl23<br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 17, 2014 at 11:46 PM, Anish Gupta <span dir="ltr"><<a href="mailto:akgupt3@gmail.com" target="_blank">akgupt3@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Are you using any passthrough devices on AMD? Can you share your guest configuration script?<br>

<span><font color="#888888"><br>
-Anish<br>
</font></span><div><div><br>
<br>
On Feb 17, 2014, at 8:27 PM, Aryeh Friedman <<a href="mailto:aryeh.friedman@gmail.com" target="_blank">aryeh.friedman@gmail.com</a>> wrote:<br>
<br>
> Sorry for taking so long (forgot to say orginally this is the guest)<br>
><br>
><br>
> On Wed, Feb 12, 2014 at 10:30 AM, Peter Grehan <<a href="mailto:grehan@freebsd.org" target="_blank">grehan@freebsd.org</a>> wrote:<br>
><br>
>> Hi Aryeh,<br>
>><br>
>> kernel panic during boot<br>
>>><br>
>><br>
>> Can you post a verbose boot log with the panic (i.e. "boot -v" from the<br>
>> loader prompt) ?OK boot -v<br>
>> Booting...<br>
>> SMAP type=01 base=0000000000000000 len=00000000000a0000<br>
>> SMAP type=01 base=0000000000100000 len=000000001ff00000<br>
>> Table 'APIC' at 0xf0500<br>
>> APIC: Found table at 0xf0500<br>
>> APIC: Using the MADT enumerator.<br>
>> MADT: Found CPU APIC ID 0 ACPI ID 0: enabled<br>
>> SMP: Added CPU 0 (AP)<br>
>> Copyright (c) 1992-2014 The FreeBSD Project.<br>
>> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994<br>
>>    The Regents of the University of California. All rights reserved.<br>
>> FreeBSD is a registered trademark of The FreeBSD Foundation.<br>
>> FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014<br>
>>    <a href="mailto:root@snap.freebsd.org" target="_blank">root@snap.freebsd.org</a>:/usr/obj/usr/src/sys/GENERIC amd64<br>
>> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610<br>
>> Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff817f2000.<br>
>> Hypervisor: Origin = "bhyve bhyve "<br>
>> Calibrating TSC clock ... TSC clock: 2595069727 Hz<br>
>> CPU: AMD A6-3650 APU with Radeon(tm) HD Graphics (2595.07-MHz K8-class CPU)<br>
>>  Origin = "AuthenticAMD"  Id = 0x300f10  Family = 0x12  Model = 0x1<br>
>> Stepping = 0<br>
>><br>
>> Features=0x783ab7f<FPU,VME,DE,PSE,TSC,MSR,PAE,CX8,APIC,SEP,PGE,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2><br>
>>  Features2=0x80a02001<SSE3,CX16,x2APIC,POPCNT,HV><br>
>>  AMD<br>
>> Features=0xe6505880<<s7>,SYSCALL,<s12>,<s14>,NX,MMX+,FFXSR,Page1GB,LM,3DNow!+,3DNow!><br>
>>  AMD<br>
>> Features2=0x37ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT><br>
>>  TSC: P-state invariant<br>
>> L1 2MB data TLB: 48 entries, fully associative<br>
>> L1 2MB instruction TLB: 16 entries, fully associative<br>
>> L1 4KB data TLB: 48 entries, fully associative<br>
>> L1 4KB instruction TLB: 32 entries, fully associative<br>
>> L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative<br>
>> L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way<br>
>> associative<br>
>> L2 2MB data TLB: 128 entries, 2-way associative<br>
>> L2 2MB instruction TLB: 0 entries, 2-way associative<br>
>> L2 4KB data TLB: 1024 entries, 4-way associative<br>
>> L2 4KB instruction TLB: 1024 entries, 4-way associative<br>
>> L2 unified cache: 1024 kbytes, 64 bytes/line, 1 lines/tag, 16-way<br>
>> associative<br>
>> real memory  = 536870912 (512 MB)<br>
>> Physical memory chunk(s):<br>
>> 0x0000000000001000 - 0x000000000009bfff, 634880 bytes (155 pages)<br>
>> 0x0000000000100000 - 0x00000000001fffff, 1048576 bytes (256 pages)<br>
>> 0x000000000181a000 - 0x000000001f29ffff, 497573888 bytes (121478 pages)<br>
>> avail memory = 492273664 (469 MB)<br>
>> Event timer "LAPIC" quality 400<br>
>> ACPI APIC Table: <BHYVE  BVMADT  ><br>
>> APIC: CPU 0 has ACPI ID 0<br>
>> x86bios:  IVT 0x000000-0x0004ff at 0xfffff80000000000<br>
>> x86bios: SSEG 0x001000-0x001fff at 0xfffffe002c174000<br>
>> x86bios:  ROM 0x0a0000-0x0fefff at 0xfffff800000a0000<br>
>> XEN: CPU 0 has VCPU ID 0<br>
>> random device not loaded; using insecure entropy<br>
>> ULE: setup cpu 0<br>
>> ACPI: RSDP 0xf0400 00024 (v02 BHYVE )<br>
>> ACPI: XSDT 0xf0480 0003C (v01 BHYVE  BVXSDT   00000001 INTL 20130823)<br>
>> ACPI: APIC 0xf0500 00054 (v01 BHYVE  BVMADT   00000001 INTL 20130823)<br>
>> ACPI: FACP 0xf0600 0010C (v05 BHYVE  BVFACP   00000001 INTL 20130823)<br>
>> ACPI: DSDT 0xf0800 0012F (v02 BHYVE  BVDSDT   00000001 INTL 20130823)<br>
>> ACPI: FACS 0xf0780 00040<br>
>> ACPI: HPET 0xf0740 00038 (v01 BHYVE  BVHPET   00000001 INTL 20130823)<br>
>> MADT: Found IO APIC ID 0, Interrupt 0 at 0xfec00000<br>
>> ioapic0: Routing external 8259A's -> intpin 0<br>
>> MADT: Interrupt override: source 0, irq 2<br>
>> ioapic0: Routing IRQ 0 -> intpin 2<br>
>> MADT: Interrupt override: source 9, irq 9<br>
>> ioapic0: intpin 9 trigger: level<br>
>> ioapic0: intpin 9 polarity: low<br>
>> ioapic0 <Version 1.1> irqs 0-23 on motherboard<br>
>> cpu0 BSP:<br>
>>     ID: 0x00000000   VER: 0x00000011 LDR: 0x00000000 DFR: 0xffffffff<br>
>>  lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff<br>
>>  timer: 0x000100ef therm: 0x00010000 err: 0x000000f0<br>
>> wlan: <802.11 Link Layer><br>
>> snd_unit_init() u=0x00ff8000 [512] d=0x00007c00 [32] c=0x000003ff [1024]<br>
>> feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=5<br>
>> feeder_rate_min=1 feeder_rate_max=2016000 feeder_rate_round=25<br>
>> Hardware, Intel IvyBridge+ RNG: RDRAND is not present<br>
>> Hardware, VIA Nehemiah Padlock RNG: VIA Padlock RNG not present<br>
>> kbd0 at kbdmux0<br>
>> mem: <memory><br>
>> null: <null device, zero device><br>
>> nfslock: pseudo-device<br>
>> Falling back to <Software, Yarrow> random adaptor<br>
>> random: <Software, Yarrow> initialized<br>
>> module_register_init: MOD_LOAD (vesa, 0xffffffff80cfa5e0, 0) error 19<br>
>> io: <I/O><br>
>> VMBUS: load<br>
>> hptnr: R750/DC7280 controller driver v1.0<br>
>> hpt27xx: RocketRAID 27xx controller driver v1.1<br>
>> hptrr: RocketRAID 17xx/2xxx SATA controller driver v1.2<br>
>><br>
>><br>
>> Fatal trap 30: reserved (unknown) fault while in kernel mode<br>
>> cpuid = 0; apic id = 00<br>
>> instruction pointer    = 0x20:0xffffffff80d1d3af<br>
>> stack pointer            = 0x28:0xffffffff817f6b10<br>
>> frame pointer            = 0x28:0xffffffff817f6b40<br>
>> code segment        = base 0x0, limit 0xfffff, type 0x1b<br>
>>            = DPL 0, pres 1, long 1, def32 0, gran 1<br>
>> processor eflags    = interrupt enabled, IOPL = 0<br>
>> current process        = 0 (swapper)<br>
>> trap number        = 30<br>
>> panic: reserved (unknown) fault<br>
>> cpuid = 0<br>
>> KDB: stack backtrace:<br>
>> #0 0xffffffff808e7dd0 at kdb_backtrace+0x60<br>
>> #1 0xffffffff808af8b5 at panic+0x155<br>
>> #2 0xffffffff80c8e692 at trap_fatal+0x3a2<br>
>> #3 0xffffffff80c8e2cf at trap+0x7bf<br>
>> #4 0xffffffff80c75392 at calltrap+0x8<br>
>> #5 0xffffffff80d1e59e at vmbus_identify+0xe<br>
>> #6 0xffffffff808e02d7 at bus_generic_probe+0x77<br>
>> #7 0xffffffff80c7314a at nexus_acpi_attach+0x1a<br>
>> #8 0xffffffff808df242 at device_attach+0x3a2<br>
>> #9 0xffffffff808e07b9 at bus_generic_new_pass+0xe9<br>
>> #10 0xffffffff808dd0af at bus_set_pass+0x8f<br>
>> #11 0xffffffff80c7472a at configure+0xa<br>
>> #12 0xffffffff80861238 at mi_startup+0x118<br>
>> #13 0xffffffff802d3e0c at btext+0x2c<br>
>> Uptime: 1s<br>
>> Automatic reboot in 15 seconds - press a key on the console to abort<br>
>><br>
>><br>
> --<br>
> Aryeh M. Friedman, Lead Developer, <a href="http://www.petitecloud.org/" target="_blank">http://www.PetiteCloud.org</a><br>
</div></div><div><div>> _______________________________________________<br>
> <a href="mailto:freebsd-virtualization@freebsd.org" target="_blank">freebsd-virtualization@freebsd.org</a> mailing list<br>
> <a href="http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization" target="_blank">http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization</a><br>
> To unsubscribe, send any mail to "<a href="mailto:freebsd-virtualization-unsubscribe@freebsd.org" target="_blank">freebsd-virtualization-unsubscribe@freebsd.org</a>"<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Aryeh M. Friedman, Lead Developer, <a href="http://www.petitecloud.org/" target="_blank">http://www.PetiteCloud.org</a><br></div>
</div>
</blockquote></div><br></div></div></div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Aryeh M. Friedman, Lead Developer, <a href="http://www.PetiteCloud.org" target="_blank">http://www.PetiteCloud.org</a><br>
</div>
</div>