Re: How to connect ssh and /dev/nmdm devices Was:( Re: Native Linux guest in Bhyve (no grub2-bhyve) status? )

2015-01-20 Thread Paul Vixie
rts.org/sysutils/rtty/> for this. with a restricted shell, i can offer console access to guests via ssh. "cu" also works, but lacks rtty's background logging. -- Paul Vixie ___ freebsd-virtualization@freebsd.org mailing list http://li

Re: available hypervisors in FreeBSD

2015-04-01 Thread Paul Vixie
d[619]: time reset +0.166066 s > Jan 26 12:31:11 guests ntpd[619]: time reset +0.142994 s > ... (that's much worse with the default kern.timecounter.hardware value, but still rather absurd.) i use bhyve in production and seems altogether ready. -- Paul Vixie

Re: available hypervisors in FreeBSD

2015-04-01 Thread Paul Vixie
3 / ufs rw 1 1 mm1:/zroot1/guesthomes > /zroot1/guesthomes nfs rw,noinet4 0 0 and: > root@mm1:/home/vixie # cat /etc/zfs/exports # !!! DO NOT EDIT THIS > FILE MANUALLY !!! /zroot1/guesthomes guests.redbarn.org /zroot1/home > family.redbarn.org -- Paul Vixie

Re: bhyve clock problem, solved by kern.timecounter.hardware="TSC-low" in /etc/sysctl.conf

2015-04-10 Thread Paul Vixie
Neel Natu wrote: > Hi Paul, > > On Fri, Apr 10, 2015 at 10:35 AM, Paul Vixie wrote: >> ... >> >> can we make TSC-low the default? >> > > The choice of using the TSC is not without issues: > > - As rstone@ points out the TSCs need to be synchronized a

can we get some interaction between halt/reboot and bhyve?

2015-05-24 Thread Paul Vixie
(void)fprintf(stderr, "WARNING: some process(es) wouldn't die\n"); break; } (void)sleep(2 * i); } -- Paul Vixie ___ freebsd-

Re: can we get some interaction between halt/reboot and bhyve?

2015-05-24 Thread Paul Vixie
cleanly) bhyve's to get more time. the current poweroff/halt/reboot command only looks for evidence of paging as a reason to extend the time between SIGTERM and SIGKILL. i'd like to give it some bhyve-relevant additional reason to delay that SIGKILL. -- Paul Vixie ___

Re: can we get some interaction between halt/reboot and bhyve?

2015-05-26 Thread Paul Vixie
ould be great. i would code these and submit them if these changes were welcomed. -- Paul Vixie ___ 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: Options for zfs inside a VM backed by zfs on the host

2015-08-27 Thread Paul Vixie
let me ask a related question: i'm using FFS in the guest, zvol on the host. should i be telling my guest kernel to not bother with an FFS buffer cache at all, or to use a smaller one, or what? ___ freebsd-virtualization@freebsd.org mailing list https://l

Re: C bhyve administration tool

2015-11-04 Thread Paul Vixie
On Wednesday, November 04, 2015 09:56:53 PM Andreas Nilsson wrote: > Well, > > in all honesty, getting vm managers to kvm equivalents ( ie virt-manager ) > should not be a goal. virt-manager and friends are terrible. Please > envision something better! > > Where it is hosted and what language it

Re: Question about bhyve disk images

2016-02-06 Thread Paul Vixie
Rainer Duffner wrote: Hi, is it possible to increase the size of these images (after creation, and while the guest OS is running)? there is no driver-layer signal to tell the guest OS that a drive just got larger, so the guest OS would have to poll, or be told to sense. with freebsd 10 as

Re: ZFS subvolume support inside Bhyve vm

2016-03-10 Thread Paul Vixie
Pavel Odintsov wrote: Hello, Dear Community! I would like to ask about plans for this storage engine approach. I like ZFS so much and we are storing about half petabyte of data here. But when we are speaking about vm's we should use zvols or even raw file based images and they are discarding

Re: ZFS subvolume support inside Bhyve vm

2016-03-10 Thread Paul Vixie
Сергей Мамонов wrote: Hello! Yes - zvols looks awesome. But what driver you use for it? virtio-blk. And what about disk usage overhead in guest? ufs on zvol is faster, either in the parent or a bhyve using virtio-blk, than zfs. at least for writing, which is my dominant work load. i exp

Re: UFS vs. ZFS inside bhyve hosted on ZFS

2016-03-18 Thread Paul Vixie
Russell L. Carter wrote: ... So I am wondering if UFS in the -current guest might be better overall. I can certainly do a multiple hour experiment, installing a new guest with UFS root, but since I am new to this, perhaps there is conventional wisdom about ZFS vs. UFS in the guest? Maybe UFS in

Re: UFS vs. ZFS inside bhyve hosted on ZFS

2016-03-19 Thread Paul Vixie
Russell L. Carter wrote: ... I have two bhyve VMs configured identically, both running r297047, each configured with 15G of RAM and 3 cpus, verified by examining 'sysctl hw' from within the running guest. One has the default ZFS install, the other UFS. However, # cd /usr/src && make buildworld

Re: UFS vs. ZFS inside bhyve hosted on ZFS

2016-03-19 Thread Paul Vixie
Russell L. Carter wrote: On 03/19/16 20:13, Paul Vixie wrote: root@vm1:~ # ahcich0: Timeout on slot 29 port 0 ahcich0: is 0008 cs ss rs bfff tfd 50 serr cmd 0001dd17 (ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 40 70 dc 3a 40 00 00 00 00 00 00

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Paul Vixie
fwiw, bhyve's existing console support is working fine for me. i use rtty (from ports). my configuration looks like this: [mm1.redbarn:amd64] ls -l /usr/local/rtty/dev total 3 lrwxr-xr-x 1 root wheel 11 May 18 2014 family@ -> /dev/nmdm2A lrwxr-xr-x 1 root wheel 11 May 17 2014 guests@ ->

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Paul Vixie
Jakub Klama wrote: The purpose of virtio-console is to create arbitrary bidirectional, host-to-guest communication channels that bypass guest's network stack (don't require working networking in the guest). thanks. i had no idea that the existing console support required a networking stack

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Paul Vixie
Jakub Klama wrote: ... What I meant is that virtio-console can be used as a replacement for TCP/IP communication between host and guest (at least in some applications). For example, it can be used by the "guest additions" code to talk to the host. so, kermit? :-) nmdm could theoretically (

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Paul Vixie
Jakub Klama wrote: nmdm(4) emulates a serial port. how could one pass ioctls and signals via serial port? i think if bhyve arranged for its virtio_console device to be its control terminal, it would receive SIGWINCH from the host kernel, which it could propagate to the guest's /dev/console

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Paul Vixie
Jakub Klama wrote: It doesn't speak any protocol. virtio-console is a pipe. it pushes bytes back and forth. Name is indeed unfortunate, it should have been called virtio-pipe, but virtio-console is how the virtio specification calls it. if it's never going to appear as /dev/console or any ot

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-12 Thread Paul Vixie
Jakub Klama wrote: if it's never going to appear as /dev/console or any other tty-like device to the guest, then i won't care what it looks like on the host. however, you said it could carry resize events, which leads me to believe that the name (vertio-console) is not wrong, and it is a tty to

Re: Multiple VM hosting using bhyve

2016-09-28 Thread Paul Vixie
The Doctor wrote: How do I "bridge" these "Taps"? here's rc.conf from my second bhyve milking machine: hostname="mm2.redbarn.org" defaultrouter="149.20.59.1" ipv6_defaultrouter="2001:4f8:3:1006::1" ifconfig_igb0="inet 149.20.56.188/29" ifconfig_igb0_ipv6="inet6 2001:4f8:3:1007::4/64" autob

Re: Multiple VM hosting using bhyve

2016-09-28 Thread Paul Vixie
Allan Jude wrote: You might also find the sysctl: net.link.tap.up_on_open=1 useful, as it will re-up the tap devices when bhyve opens them. Else rebooting a bhyve might end up with the tap interface in a down state. can do. but, that's never happened. can you tell me what "might" means? --

Re: Time sync

2016-10-02 Thread Paul Vixie
i would love to see a vclock driver so that the guest could reach up and grab the host's clock. running ntp on every guest feels silly. however, there's a problem with this, which i expect is the reason why it hasn't happened yet. ntp tries hard not to jump the clock, since when you do, there

Re: choice of i386 vs amd64 guest

2016-10-17 Thread Paul Vixie
Victor Sudakov wrote: > Colleagues, > > When I must run several FreeBSD guests in bhyve, should I prefer i386 > or amd64 guests provided a guest will never need more than 2-3 GB of > RAM? if you're running bind9, the sizeof(void *) will dominate your heap size, and a 32-bit guest will be bette

Re: choice of i386 vs amd64 guest

2016-10-18 Thread Paul Vixie
Victor Sudakov wrote: > Paul Vixie wrote: >> for everything else, the larger register set on amd64 will matter more, >> and you should probably use a 64-bit guest. > > There is an opinion that 64-bit systems use up more resources than > 32-bit ones for the same tasks,

Re: Providing serial consoles to multiple bhyve guests

2017-02-17 Thread Paul Vixie
C. L. Martinez wrote: > Hi all, > > How can I use more than one serial console for several bhyve guests? `pkg install rtty` > According to nmdm(4) man page only two nullmodem devices can be > created: nmdm0A and nmdm0B (and only nmdm0A can be assigned to one > bhyve guest). Then, how can I acc

Re: Providing serial consoles to multiple bhyve guests

2017-02-17 Thread Paul Vixie
C. L. Martinez wrote: > >> `pkg install rtty` >> > Thanks Paul. But, do I need to start some daemon? the rtty documentation explains how to start it up. > And what options do > I need in bhyve command line?? Something like: "bhyve -A -H -P -W -c > 1 -u -l com1,/dev/rtty0..."?? you'll connec

Re: Any support creating a Windows Server 2012 unattended install

2017-07-13 Thread Paul Vixie
OS/2 can install on MDA, CGA, or VGA. not VNC and not serial. if the bios offers serial console and can convert MDA, that works. vixie ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization

Re: Storage overhead on zvols

2017-12-05 Thread Paul Vixie
the surprising fact that came up in recent threads is that some of you run zfs in your guests. that's quite a bit of unnec'y redundancy and other overheads. i am using UFS in my guests. ___ freebsd-virtualization@freebsd.org mailing list https://lists.

Re: Storage overhead on zvols

2017-12-05 Thread Paul Vixie
Dustin Wenz wrote: I'm not using ZFS in my VMs for data integrity (the host already provides that); it's mainly for the easy creation and management of filesystems, and the ability to do snapshots for rollback and replication. snapshot and replication works fine on the host, acting on the zvo

Re: Storage overhead on zvols

2017-12-05 Thread Paul Vixie
Patrick M. Hausen wrote: I'm not an FS developer but from experience as an admin that feature - nullfs mounts into a hypervisor - while greatly desired, looks quite nontrivial to implement. i think what's called for is a vdd of some kind, similar to the virtual ethernet and virtual disk driv

Re: NFS alternatives

2017-12-06 Thread Paul Vixie
Adam Vande More wrote: ... Like this? https://www.freebsd.org/doc/handbook/geom-ggate.html yes, that'd be fine. if i used NFS i'd have to run lockd. -- P Vixie ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/

Re: syncing bhyve instances

2018-01-22 Thread Paul Vixie
i've used zfs for this, but i have to shut the guest down to do it. i'm using zvols for my guest system disks, so it's shut the guest down (maybe just to single-user mode) make a zfs checkpoint start the guest back up zfs send the checkpoint this also assumes that the sync-destination is a cold

Re: bhyve manager

2018-02-25 Thread Paul Vixie
Tommi Pernila wrote: Hi, been happy with sysutils/iohyve https://github.com/pr1ntf/iohyve/blob/master/README.md is there a way to integrate it with sysutils/rtty, so that there is a console log, and so multiple people can attach to the same console? right now i do my bhyving with a small

Re: bhyve manager

2018-02-25 Thread Paul Vixie
Rodney W. Grimes wrote: I believe that sysutils/vm-bhyve supports tmux as a console option, that might get you close to what you want. i'll check it out. i should have popularized rtty more than i have. i don't believe that tmux has logging. -- P Vixie

Re: superfluous host interfaces

2018-02-26 Thread Paul Vixie
Harry Schmalzbauer wrote: Bezüglich Ruben's Nachricht vom 26.02.2018 11:34 (localtime): On 26/02/2018 10:56, Harry Schmalzbauer wrote: … Another, personally very significant, reason is that you'll get a superfluous host interface for each if_bridge(4), which makes the output of plain ifconfi

vtfs?

2018-04-29 Thread Paul Vixie
i use nfs for this but i don't like it. we have vtnet and vtbd. where is vtfs? as in, a vm-independent (virtualbox, vmware, bhyve, kvm, xen, etc) standard that would let sysadmins export file systems through something that might look to the guest a lot like vfs, but would be implemented in th

Re: Query regarding tutorials (Please have a quick read of me!)

2018-08-25 Thread Paul Vixie
On Saturday, August 25, 2018 8:55:05 AM UTC Paul Webster via freebsd- virtualization wrote: > ... I personally have: > > Windows Server 2012 > CentOS 6 > Debian > FreeBSD > OpenBSD > and a few other more strange linuxs I believe (got a zpool full of the > zvols (not named very well ;))) ... i hav

Re: Query regarding tutorials (Please have a quick read of me!)

2018-08-25 Thread Paul Vixie
On Sunday, August 26, 2018 2:46:42 AM UTC Allan Jude wrote: > On 2018-08-25 13:45, Paul Vixie wrote: > > ... i remain > > mystified by the behaviour of grub-bhyve, which usually fails (no > > meaningful error message) and seems like won't run from /etc/rc.local > >

Re: Query regarding tutorials (Please have a quick read of me!)

2018-08-25 Thread Paul Vixie
On Sunday, August 26, 2018 5:54:47 AM UTC Paul Vixie wrote: > On Sunday, August 26, 2018 2:46:42 AM UTC Allan Jude wrote: > > On 2018-08-25 13:45, Paul Vixie wrote: > > > ... i remain > > > mystified by the behaviour of grub-bhyve, which usually fails (no > > >

Re: Query regarding tutorials (Please have a quick read of me!)

2018-08-25 Thread Paul Vixie
On Sunday, August 26, 2018 5:57:22 AM UTC Paul Vixie wrote: > On Sunday, August 26, 2018 5:54:47 AM UTC Paul Vixie wrote: > > On Sunday, August 26, 2018 2:46:42 AM UTC Allan Jude wrote: > > > What does the invocation look like? > > trying again: > > ...

Re: Query regarding tutorials (Please have a quick read of me!)

2018-08-26 Thread Paul Vixie
On Sunday, August 26, 2018 4:25:13 PM UTC Paul Webster wrote: > howto start stuff auto: > https://www.youtube.com/watch?v=MidLqBs4_B8&feature=youtu.be very entertaining. some notes: note that rc.local is executed by the "." command from the /bin/sh instance that runs /etc/rc.d/local, and so, #!

Re: Query regarding tutorials (Please have a quick read of me!)

2018-08-26 Thread Paul Vixie
On Sunday, August 26, 2018 7:56:04 PM UTC Paul Webster via freebsd- virtualization wrote: > indeed I did polish it a bit and upload: https://youtu.be/w0WuoKVWAgI ;) "Your browser does not currently recognize any of the video formats available. Click here to visit our FAQ about HTML5 video." --

Re: Query regarding tutorials (Please have a quick read of me!)

2018-08-26 Thread Paul Vixie
On Sunday, August 26, 2018 8:20:14 PM UTC Shawn Webb wrote: > ... > > I've found that the big distros (CentOS, Debian, Ubuntu) work very > well with bhyve's UEFI support. It has been years since I used either > bhyveload or grub-bhyve. i am trying alan jude's recommendation for UEFI bios now. >

Re: freebsd-12 and bhyve and the azure platform

2019-01-26 Thread Paul Vixie
tech-lists wrote on 2019-01-26 16:17: Is it possible to migrate a byve freebsd instance/image to Azure? Or does one have to have the instance initially provisioned via their marketplace? bhyve does not participate in the virtualbox/vmware/etc ecosystem where "appliances" in the form of "op

Re: mounting/exporting/importing a zfs volume

2019-02-11 Thread Paul Vixie
Victor Sudakov wrote on 2019-02-11 17:46: ... I've preferred disk0_dev="zvol" VMs for aesthetical reasons since vm-bhyve started supporting them. Those file-based VMs get in the way while backing up $vm_dir, and their disks are not visible in "zfs list -t volume" +1. -- P Vixie ___

Re: bhyve, sparse disk image and trim support?

2019-04-21 Thread Paul Vixie
Dustin Marquess wrote on 2019-04-21 12:12: Using a sparse zvol and either the ahci-hd or nvme drivers should support TRIM. is someone working on virtio-blk support? -- P Vixie ___ freebsd-virtualization@freebsd.org mailing list https://lists.free

Re: [vm-bhyve] Windows 2012 and 2016 servers guests would not stop

2019-04-22 Thread Paul Vixie
Victor Sudakov wrote on 2019-04-22 19:43: ... And the implementation is pretty brutal: # 'vm stopall' # stop all bhyve instances # note this will also stop instances not started by vm-bhyve # core::stopall(){ local _pids=$(pgrep -f 'bhyve:') echo "Shutting down all bhyve virtual mac

Re: [vm-bhyve] Windows 2012 and 2016 servers guests would not stop

2019-04-23 Thread Paul Vixie
Victor Sudakov wrote on 2019-04-22 21:13: ... sleep 1 ... i think this is worse than brutal, it's wrong. consider freebsd's own work flow when trying to comply with the first soft shutdown it got: https://github.com/freebsd/freebsd/blob/master/sbin/reboot/reboot.c#L220 this has bitte

Re: Bhyve serial terminal server

2019-07-03 Thread Paul Vixie
i use rtty for this. it's in ports. ⁣Get BlueMail for Android ​ On 3 Jul 2019, 12:46, at 12:46, Eric van Gyzen wrote: >I would like to expose bhyve serial consoles over TCP sockets, like >many >terminal servers do for hardware serial ports.  Is there any >open-source >software to do this? > >I f

Re: Bhyve serial terminal server

2019-07-03 Thread Paul Vixie
On Wednesday, 3 July 2019 19:45:45 UTC Eric van Gyzen wrote: > I would like to expose bhyve serial consoles over TCP sockets, like many > terminal servers do for hardware serial ports. Is there any open-source > software to do this? as i said, "pkg install rtty" was created for this purpose and i

Re: Adding a different type of blockstore to Bhyve

2019-12-30 Thread Paul Vixie
On Monday, 30 December 2019 18:06:11 UTC Willem Jan Withagen wrote: > Something like: >bhyve -s 1,virtio-blk,rbd:poolname/imagename[@snapshotname] \ > [:option1=value1[:option2=value2...]] this is approximately how i'd hope to do object-store level ZFS integration, s

Re: Adding a different type of blockstore to Bhyve

2020-01-15 Thread Paul Vixie
Willem Jan Withagen wrote on 2020-01-07 01:53:> Looking for reviewers of: https://reviews.freebsd.org/D23010 this general approach seems legit to me. i don't know how to tell that to the "reviews" web site shown above, but i hope someone else here knows that answer and will take a look at

Re: Bhyve help

2020-05-05 Thread Paul Vixie
On Tuesday, 5 May 2020 23:55:01 UTC Brandon helsley wrote: > Well how do i add a tap to the bridge the VM is on as well as my physical > nic my rc.conf has evolved as follows: autobridge_interfaces="bridge0" autobridge_bridge0="tap* igb1" ifconfig_igb1="up media 1000baseTX fib 1" cloned_interface

Re: When is a switch not a switch?

2020-10-22 Thread Paul Vixie
D'Arcy Cain wrote on 2020-10-22 07:03: > On 10/21/20 11:16 PM, Jason Tubnor wrote: >>     public: flags=8843 metric >> 0 mtu 1500 >>   ... >>          groups: bridge >>          nd6 options=9 >>     tap0: flags=8843 metric 0 >> mtu 1500 >> ... >>          groups: tap vm-port >>