CFT: vmrc Virtual Machine rc script

2014-01-27 Thread Michael Dexter

Hello all,

For the one-week anniversary of bhyve's release, I wish to share the
next iteration of my virtual machine scripts that have evolved from a
2005 jail rc/disk image framework to a FreeBSD 9.0 bhyve binary and VM
build script to a 10.* sequential provision script. It's primary purpose
is to facilitate the exposure of bugs in bhyve and related FreeBSD
components but you may find it useful for continuous VM use or for
integration into your own scripts.

Because bhyve is only the latest multiplicity solution on FreeBSD, this
rc script includes basic jail and qemu support and could include chroot,
simh and GXemul support. Of these, QEMU is intended to help prepare OSs
like OpenBSD that require VirtIO and console adjustments prior to
booting under bhyve.

Synopsis:

Unpack vmrc.tar
Run 'sh install.sh' or perform the steps manually
Verify your host_nic and host_zpool in /usr/local/etc/vm.conf
/usr/local/etc/rc.d/vm(Show usage)
/usr/local/etc/rc.d/vm provision vm0  (Note: /usr/local/vm/vm0/vm0.conf)
(Fetches OS install media, formats disk, installs to disk)
/usr/local/etc/rc.d/vm start vm0  (Loads and boots vm0)

Alternatively:
/usr/local/etc/rc.d/vm iso vm0(Fetches and boots and ISO image)

"ISO" mode will prepare a disk image to install the OS to and includes
fetch support for FreeBSD, Ubuntu and CentOS.

Manual scripts exist in install/ to fetch FreeNAS, pfSense and OpenBSD.

Status:

Know issues and known desired features are at the end of
instructions.txt plus various "fix:" notes throughout the script. This
is not mature enough for packaging yet but does some things quite
reliably and is ready for feedback. Because development is ongoing, I
invite you to mail me about issues directly and I can post it to
something like GitHub if there is interest.

Please read the instructions.txt to avoid FAQ's and I have done my best
to make the script itself readable.


Site: http://bhyve.org/vmrc/

Download: http://bhyve.org/vmrc/vmrc.tar (latest version)


Thank you Neel, Peter, John and Tycho for your hard work on bhyve.

Thank you Devin for greatly improving this script and Allan at
ScaleEngine for testing it and providing resources for bhyve's overall
improvement.


Thank you for testing bhyve!

Michael
___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Current problem reports assigned to freebsd-virtualization@FreeBSD.org

2014-01-27 Thread FreeBSD bugmaster
Note: to view an individual PR, use:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=(number).

The following is a listing of current problems submitted by FreeBSD users.
These represent problem reports covering all versions including
experimental development code and obsolete releases.


S Tracker  Resp.  Description

o kern/165252  virtualization[vimage] [pf] [panic] kernel panics with VIMAGE 
and PF
o kern/161094  virtualization[vimage] [pf] [panic] kernel panic with pf + 
VIMAGE wh
o kern/160541  virtualization[vimage][pf][patch] panic: userret: Returning on 
td 0x
o kern/160496  virtualization[vimage] [pf] [patch] kernel panic with pf + VIMAGE
o kern/148155  virtualization[vimage] [pf] Kernel panic with PF + VIMAGE kernel 
opt
a kern/147950  virtualization[vimage] [carp] VIMAGE + CARP = kernel crash
s kern/143808  virtualization[pf] pf does not work inside jail

7 problems total.

___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Public Service Announcement: The name is "bhyve"

2014-01-27 Thread Lars Engels

Am 2014-01-24 11:18, schrieb Michael Dexter:

Hello all,

It was "BHyVe" and Neel and Peter mercifully simplified it to "bhyve".

It was never "BHyve" and how they came up with "byhyve" and "byhve" in
the same article I do not know:

http://www.serverwatch.com/server-news/open-source-freebsd-10-takes-on-virtualization.html

Haters gonna hate?




Don't forget "Beehyve":

http://www.admin-magazin.de/News/FreeBSD-10.0-fertiggestellt/%28language%29/ger-DE

But don't confuse it with Beehive:

https://stbeehive.oracle.com/bcentral/


:-)
___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Public Service Announcement: The name is "bhyve"

2014-01-27 Thread Alfred Perlstein

On 1/27/14 6:13 AM, Lars Engels wrote:

Am 2014-01-24 11:18, schrieb Michael Dexter:

Hello all,

It was "BHyVe" and Neel and Peter mercifully simplified it to "bhyve".

It was never "BHyve" and how they came up with "byhyve" and "byhve" in
the same article I do not know:

http://www.serverwatch.com/server-news/open-source-freebsd-10-takes-on-virtualization.html 



Haters gonna hate?




Don't forget "Beehyve":

http://www.admin-magazin.de/News/FreeBSD-10.0-fertiggestellt/%28language%29/ger-DE 



But don't confuse it with Beehive:

https://stbeehive.oracle.com/bcentral/


:-)



http://www.youtube.com/watch?v=-1GadTfGFvU

my eyes!

--
Alfred Perlstein

___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


HEADSUP: Legacy PCI slot option removed

2014-01-27 Thread John Baldwin
On Monday, January 27, 2014 5:26:16 pm John Baldwin wrote:
> Author: jhb
> Date: Mon Jan 27 22:26:15 2014
> New Revision: 261217
> URL: http://svnweb.freebsd.org/changeset/base/261217
> 
> Log:
>   Remove support for legacy PCI devices.  These haven't been needed since
>   support for LPC uart devices was added and it conflicts with upcoming
>   patches to add PCI INTx support.
>   
>   Reviewed by:neel

As threatened in the manpage, I've removed the legacy PCI slot option from 
bhyve to make way for some other PCI changes.  I will MFC the LPC support
to stable/10 in a few days so that you will be able to use the same setup in 
both places.  vmrun.sh on HEAD has been using LPC serial ports for quite a 
while now.

-- 
John Baldwin
___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


petitecloud port files

2014-01-27 Thread Aryeh Friedman
I am thinking about making the final submission of the first port version
(ideally I would like to make it so a update PR is part of the automatic
release script) and need to know if anyone has had problems with installing
the one currently on peitecloud.org

-- 
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


strange behavior out of a "supported" bhyve CPU

2014-01-27 Thread Aryeh Friedman
CPU: Intel(R) Core(TM) i5-4430 CPU @ 3.00GHz (2998.33-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x306c3  Family = 0x6  Model = 0x3c
Stepping = 3

Features=0xbfebfbff

Features2=0x7ffafbbf,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2c100800
  AMD Features2=0x21
  Standard Extended
Features=0x27ab
  TSC: P-state invariant, performance statistics

#!/bin/sh

ifconfig tap9 destroy
ifconfig tap9 create
ifconfig tap9 up
sleep 5
ifconfig bridge0 addm tap9 up

/usr/sbin/bhyveload -m 512 -d /vms/import/backupInstance 8e2nt39puc
/usr/sbin/bhyve -c 1 -m 512 -AI -H -P -g 0 -s 0:0,hostbridge -s
1:0,virtio-net,tap9 -s 2:0,virtio-blk,/vms/import/backupInstance -S 31,uart
8e2nt39puc&
echo $!>/var/run/petitecloud/8e2nt39puc

  __      _ _
 |  | |  _ \ / |  __ \
 | |___ _ __ ___  ___ | |_) | (___ | |  | |
 |  ___| '__/ _ \/ _ \|  _ < \___ \| |  | |
 | |   | | |  __/  __/| |_) |) | |__| |
 | |   | | |||| |  |  |
 |_|   |_|  \___|\___||/|_/|_/````
 s` `.---...--.```   -/
 +Welcome to FreeBSD---+ +o   .--` /y:`  +.
 | |  yo`:.:o  `+-
 |  1. Boot Multi User [Enter] |   y/   -/`   -o/
 |  2. Boot [S]ingle User  |  .-  ::/sy+:.
 |  3. [Esc]ape to loader prompt   |  / `--  /
 |  4. Reboot  | `:  :`
 | | `:  :`
 |  Options:   |  /  /
 |  5. Configure Boot [O]ptions... |  .--.
 | |   --  -.
 | |`:`  `:`
 | |  .-- `--.
 | | .---..
 +-+


Booting...
Copyright (c) 1992-2013 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-BETA2 #0 r257166: Sat Oct 26 19:23:22 UTC 2013
r...@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-4430 CPU @ 3.00GHz (2998.05-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x306c3  Family = 0x6  Model = 0x3c
Stepping = 3

Features=0x8f83ab7f

Features2=0xe2fa7a17,FMA,CX16,xTPR,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AESNI,F16C,RDRAND,HV>
  AMD Features=0x24100800
  AMD Features2=0x21
  Standard Extended Features=0x400
  TSC: P-state invariant
real memory  = 536870912 (512 MB)
avail memory = 492277760 (469 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: 
random device not loaded; using insecure entropy
ioapic0  irqs 0-23 on motherboard
kbd0 at kbdmux0
random:  initialized
module_register_init: MOD_LOAD (vesa, 0x80cf9cf0, 0) error 19
acpi0:  on motherboard
acpi0: Power Button (fixed)
atrtc0:  port 0x70-0x71,0x72-0x77 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
hpet0:  iomem 0xfed0-0xfed003ff on acpi0
Timecounter "HPET" frequency 1000 Hz quality 950
Event timer "HPET" frequency 1000 Hz quality 550
Event timer "HPET1" frequency 1000 Hz quality 450
Event timer "HPET2" frequency 1000 Hz quality 450
Event timer "HPET3" frequency 1000 Hz quality 450
Event timer "HPET4" frequency 1000 Hz quality 450
Event timer "HPET5" frequency 1000 Hz quality 450
Event timer "HPET6" frequency 1000 Hz quality 450
Event timer "HPET7" frequency 1000 Hz quality 450
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
pcib0: no PRT entry for 0.31.INTA
virtio_pci0:  port 0x2000-0x201f mem
0xc000-0xc0001fff at device 1.0 on pci0
vtnet0:  on virtio_pci0
virtio_pci0: host features: 0x1018020

virtio_pci0: negotiated features: 0x18020 
vtnet0: Ethernet address: 00:a0:98:33:6d:42
virtio_pci1:  port 0x2040-0x207f mem
0xc0002000-0xc0003fff at device 2.0 on pci0
vtblk0:  on virtio_pci1
virtio_pci1: host features: 0x1044 
virtio_pci1: negotiated features: 0x1044

vtblk0: 10240MB (20971520 512 byte sectors)
uart2:  port 0x3f8-0x3ff irq 4 at device
31.0 on pci0
uart2: console (9600,n,8,1)
Timecounters tick every 10.000 msec
random: unblocking device.
Netvsc initializing... Timecounter "TSC-low" frequency 1499022770 Hz
quality 1000

and freezes note this is the same machine I had the weirdn