Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 2014 21:36:11 +0400
From:      =?UTF-8?B?RGVuaXMgTWVuc2hpa292?= <dassi@inbox.ru>
To:        freebsd-virtualization@freebsd.org
Subject:   =?UTF-8?B?a2VybmVsIHBhbmljIHdoZW4gc3RhcnRpbmcgdGhlIHZpcnR1YWwgbWFjaGlu?= =?UTF-8?B?ZQ==?=
Message-ID:  <1411752971.228890800@f250.i.mail.ru>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
 Hello,

for greater clarity, will present at once the order of my actions:

sudo bhyload -m 256 -d FreeBSD-10.0-RELEASE-amd64-dvd1.iso testvm

sudohyve -c 2 -a -A -H -P -I -m 256 -s 0,amd_hostbridge -s 1,lpc -s 2,ahci-cd,FreeBSD-10.0-RELEASE-amd64-dvd1.iso -s 3,virtio-blk,test.img -l com1,/dev/nmdm1A testvm

then runs a successful installation, and as written in the manual, I add in /etc/ttys line ttyu0 "/usr/libexec/getty 3wire" xterm on secure. Then it should restart. In the letter to contain messages when loading during installation and at its completion. Document 1 and 2, respectively.

then...

sudo bhyveload -m 256 -d test.img testvm

sudo bhyve -c 2 -a -A -H -P -m 256 -s 0,amd_hostbridge -s 1,lpc -s 2,virtio-blk,test.img -l com1,/dev/nmdm1A testvm
dassi@20:58:~ % sudo cu -l /dev/nmdm1B -s 9600
Connected
panic: AP #1 (PHY# 1) failed!
cpuid = 0
KDB: stack backtrace:
#0 0xffffffff808e7dd0 at kdb_backtrace+0x60
#1 0xffffffff808af8b5 at panic+0x155
#2 0xffffffff80c7e4c5 at cpu_mp_start+0x625
#3 0xffffffff808f4e8d at mp_start+0x3d
#4 0xffffffff80861238 at mi_startup+0x118
#5 0xffffffff802d3e0c at btext+0x2c
Uptime: 1s It seems to me that I'm doing something wrong.

uname -a
FreeBSD vmserver 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64

-- 
Denis Menshikov
[-- Attachment #2 --]
dassi@21:24:~ % sudo cu -l /dev/nmdm1B -s 9600
Connected
Copyright (c) 1992-2014 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 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014
    root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
CPU: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz (2693.58-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x306c3  Family = 0x6  Model = 0x3c  Stepping = 3
  Features=0x8f83ab7f<FPU,VME,DE,PSE,TSC,MSR,PAE,CX8,APIC,SEP,PGE,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,SS,PBE>
  Features2=0xe2fa7a57<SSE3,PCLMULQDQ,DTES64,DS_CPL,SMX,SSSE3,<b11>,FMA,CX16,xTPR,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AESNI,F16C,RDRAND,HV>
  AMD Features=0x24100800<SYSCALL,NX,Page1GB,LM>
  AMD Features2=0x21<LAHF,ABM>
  Standard Extended Features=0x400<INVPCID>
  TSC: P-state invariant
real memory  = 268435456 (256 MB)
avail memory = 232243200 (221 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <BHYVE  BVMADT  >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 2 package(s) x 1 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
random device not loaded; using insecure entropy
ioapic0 <Version 1.1> irqs 0-16 on motherboard
kbd0 at kbdmux0
random: <Software, Yarrow> initialized
module_register_init: MOD_LOAD (vesa, 0xffffffff80cfa5e0, 0) error 19
acpi0: <BHYVE BVXSDT> on motherboard
atrtc0: <AT realtime clock> port 0x70-0x71,0x72-0x77 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
ahci0: <Intel ICH8 AHCI SATA controller> mem 0xc0000000-0xc00003ff at device 2.0 on pci0
ahci0: AHCI v1.30 with 6 6Gbps ports, Port Multiplier not supported
ahcich0: <AHCI channel> at channel 0 on ahci0
virtio_pci0: <VirtIO PCI Block adapter> port 0x2000-0x203f mem 0xc0002000-0xc0003fff at device 3.0 on pci0
vtblk0: <VirtIO Block Adapter> on virtio_pci0
virtio_pci0: host features: 0x10000044 <RingIndirect,BlockSize,MaxNumSegs>
virtio_pci0: negotiated features: 0x10000044 <RingIndirect,BlockSize,MaxNumSegs>
vtblk0: 15360MB (31457280 512 byte sectors)
sc0: <System console> at flags 0x100 on isa0
sc0: MDA <16 virtual consoles, flags=0x100>
vga0: <Generic ISA VGA> at port 0x3b0-0x3bb iomem 0xb0000-0xb7fff on isa0
attimer0: <AT timer> at port 0x40 on isa0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
ppc0: cannot reserve I/O port range
uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
uart0: console (9600,n,8,1)
uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0
Timecounters tick every 10.000 msec
cd0 at ahcich0 bus 0 scbus0 target 0 lun 0
cd0: <BHYVE BHYVE DVD-ROM 001> Removable CD-ROM SCSI-0 device 
cd0: Serial Number 123456
cd0: 300.000MB/s transfers (SATA 2.x, UDMA6, ATAPI 12bytes, PIO 8192bytes)
cd0: cd present [1213253 x 2048 byte records]
random: unblocking device.
Netvsc initializing... SMP: AP CPU #1 Launched!
Trying to mount root from cd9660:/dev/iso9660/FREEBSD_INSTALL [ro]...
Entropy harvesting: interrupts ethernet point_to_point swi.
Starting file system checks:
Mounting local file systems:.
Writing entropy file:.
/etc/rc: WARNING: $hostname is not set -- see rc.conf(5).
Starting Network: lo0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
	inet 127.0.0.1 netmask 0xff000000 
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Starting devd.
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Generating host.conf.
eval: cannot create /etc/host.conf: Read-only file system
eval: cannot create /etc/host.conf: Read-only file system
eval: cannot create /etc/host.conf: Read-only file system
Creating and/or trimming log files.
Starting syslogd.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Clearing /tmp (X related).
Starting local daemons:
Welcome to FreeBSD!

Please choose the appropriate terminal type for your system.
Common console types are:
   ansi     Standard ANSI terminal
   vt100    VT100 or compatible terminal
   xterm    xterm terminal emulator (or compatible)
   cons25w  cons25w terminal

Console type [vt100]:xterm
[-- Attachment #3 --]
Sep 26 21:30:32  reboot: rebooted by root
Sep 26 21:30:32  syslogd: exiting on signal 15
Waiting (max 60 seconds) for system process `vnlru' to stop...done
Waiting (max 60 seconds) for system process `bufdaemon' to stop...done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining...0 0 0 done
All buffers synced.
Uptime: 5m39s
Rebooting...
cpu_reset: Stopping other CPUs

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