Re: KVM Clock

2014-01-14 Thread Peter Grehan
Hi Julian, is anyone working on KVM clock support for FreeBSD? If not, I might take a shot at it. None I know of: go for it :) later, Peter. ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virt

Re: Linux guest

2014-01-14 Thread Peter Grehan
Hi, i had problem during installation of linux guest. I used "bhyve” script for create and start the linux vm,it run without detected controller sata using "virtio-blk". with "ahci-hd" the system found disk drive and install the system correctly,but show error in console : [ 5728.

Re: Bhyve infos about a vm

2014-01-16 Thread Peter Grehan
> Is this thread moving to a try and guess? :-) Btw, this one doesn't work either. [root@environment-rm-01 ~]# ps -ax | grep bhyve 7942 0 R+ 2:49.28 bhyve: lin1 (bhyve) 7980 2 S+ 0:00.00 grep bhyve [root@environment-rm-01 ~]# mdconfig -lv [root@environment-rm-01 ~]# I think t

Re: BHyVe as non root

2014-01-16 Thread Peter Grehan
Hi Andrea, do you see any particolar problem (devices who need to have the owner changed, limitations of any kind...?) in running BHyVe as non-root? There's 2 issues - firstly, bhyve is new and hasn't had a lot of exposure. It's probably safest to restrict it to root for a while to avoid exp

Re: panic: AP #1 (PHY# 1) failed!

2014-01-19 Thread Peter Grehan
Hi Sergey, Now I can say it happens not every time but one time on two or three good boots. Are you destroying the VM after the bhyve process exits and before each load ? i.e. bhyvectl --destroy --vm= If not: that's required. If so, then could be a bug and yes we may need more info.

Re: Linux on BHyVe in 10.0-RELEASE

2014-01-21 Thread Peter Grehan
Hi Takuya, * Ubuntu 13.10 Almost boot-up but couldn't mount cdrom. That's a Linux issue - there isn't a virtio block driver in the installer's initrd so it can't be used as the backend for the ISO image. Use ahci-cd instead for the ISO. I've been able to boot Ubuntu 12.04/13.04/13.10/14

Re: Linux on BHyVe in 10.0-RELEASE

2014-01-21 Thread Peter Grehan
On 1/21/14 9:20 PM, Takuya ASADA wrote: Looks like CentOS 6.5 with bhyve-script fails on same place: Unknown WRMSR code 391, val 200f, cpu 0 Did you succeeded with 10.0-RELEASE? not -CURRENT? The MSR access is dependent on the host CPU model, and doesn't show up on desktop variants. la

Re: Linux on BHyVe in 10.0-RELEASE

2014-01-21 Thread Peter Grehan
Hi Takuya, * Debian 7.3 with bhyve-scripts Able to install, bootup! But serial console sometimes outputs "AT+GCAP" or something, looks like AT command? Maybe I mis-configured Debian during installation? I think I saw this but it eventually popped up a login prompt. Guessing it was attempting

Re: Linux on BHyVe in 10.0-RELEASE

2014-01-22 Thread Peter Grehan
Hi Jonas, Installation starts and everything looks good until it tries to install the grub boot loader. That last step fails. Exiting the installer and running: #sh lin1 start Gives a grub prompt. Any hints? Are you using a zvol for the guest disk image ? later, Peter. ___

Re: Linux on BHyVe in 10.0-RELEASE

2014-01-23 Thread Peter Grehan
> So, the conclusion is that it's not possible to run Linux on bhyve running on 10.0-RELEASE ? Not at all - there have been lots of reports of it working. It is known that there is a problem with using zvols for guest images, though this is related to GEOM and not specific to bhyve. We j

Re: bhyve with Xorg/kde

2014-01-25 Thread Peter Grehan
Hi, any idea of how to make Xorg + KDE run within an FreeBSD 10 instance running from bhyve? The only current way is to setup X in the guest to display remotely. I've done this with Linux and it worked well. later, Peter. ___ freebsd-virtualiza

Re: bhyve with Xorg/kde

2014-01-25 Thread Peter Grehan
Hi, I can run apps like, firefox, xterm, etc, but not a desktop. my idea was to use bhyve as a remote workstation and be available to export the full environments (kde/xfce etc) I admit I've not tried this with a FreeBSD guest, but with an Ubuntu guest I was able to start KDE and send the

Re: BHyVe - ESXi comparison

2014-01-28 Thread Peter Grehan
Hi Andrea, We did a very rough comparison betweend BHyVe and VMWare ESXi. Maybe you want to give it a read and let me know if I did write a bunch of sh!t :-) Looks good to me :) Thanks for running the tests. Would you be able to list the command options you used with bhyve when running the

Re: BHyVe - ESXi comparison

2014-01-28 Thread Peter Grehan
Hi Andrea, unfortunately we've been a bit sloppy in tracking the time output because initially it was just an internal test, thus we don't have the details. No problems. We're setting up a new round of tests we'll run tomorrow and we'll track user/system/real in a more precise way; I will a

Re: BHyVe - ESXi comparison

2014-01-28 Thread Peter Grehan
Tomorrow we'll rearrange everything and redo all the testing. One more item: when running the test with 20 x 2-vCPU VMs, make sure that the "-P" option is being used. This forces bhyve to do a vmexit when a PAUSE instruction is hit e.g. when the locking code starts spinning. This gives the s

Re: does grub-bhyve limit guest ram?

2014-01-29 Thread Peter Grehan
Hi Aryeh, When I try to run a guest with 4G it fails but with 2GB it works What does the failure look like ? grub-bhyve doesn't support the humanized mem syntax - the memory amount has to be specified in units of MB. later, Peter. ___ freebsd

Re: strange behavior out of a "supported" bhyve CPU

2014-01-29 Thread Peter Grehan
Hi Aryeh, CPU: Intel(R) Core(TM) i5-4430 CPU @ 3.00GHz (2998.33-MHz K8-class CPU) Should be no issues with that one (desktop Haswell). /usr/sbin/bhyveload -m 512 -d /vms/import/backupInstance 8e2nt39puc A verbose boot may help diagnose this: would you be able to add "-e boot_verbose=1"

Re: bhyve - ESXi comparison part 2

2014-01-31 Thread Peter Grehan
Hi Andrea, > Here comes the part 2 of our bhyve - ESXi comparison. Excellent work :) My take is that there is more general hypervisor overhead with bhyve. Given that both user and system times from the benchmark are almost uniformally larger for bhyve in all tests points to this. There has

Re: some interesting observations on the relative performance of kvm vs. bhyve

2014-02-01 Thread Peter Grehan
> I have 1 host that dual boots FreeBSD and Ubuntu 12.04.3 LTS and bhtyve seems to be atleast 3 or 4 times faster with disk I/O then kvm using the most stripped down command lines I can come up with. I'm guessing that the default cache mode for qemu in that release is "none". You may want to

Re: some interesting observations on the relative performance of kvm vs. bhyve

2014-02-01 Thread Peter Grehan
Hi Aryeh, Does this bring up the same power failure scenario issues mentioned in the link you provided?It seems like the only way to get reasonable performance is to be essentially unsafe in guest writes to the host disk? Use ZFS and a ZIL to mitigate this. Or UFS with journalling. A qu

Re: Report of my virtual network lab migrated from virtualbox to bhyve

2014-02-07 Thread Peter Grehan
Hi Olivier, just a report of my migration to bhyve. Yeah !!! First remark comparing the disk format: With an original nanobsd disk image of 488MB. - Virtualbox format disk size: 133M - bhyve raw disk size: 488M If you create a sparse file for the bhyve raw disk (e.g. with truncate -s), d

Re: are ahci-hd images the same as raw under bhyve

2014-02-10 Thread Peter Grehan
Hi Aryeh, When I was playing with bhyve-grub a while ago I noticed there seemed to be little difference between ahci-hd and "raw" (if no format it given besides just naming a md file). Is it safe to treat the two formats interchangeably in bhyve (and bhyve-grub)? Can I do this to the point of

Re: Report of my virtual network lab migrated from virtualbox to bhyve

2014-02-10 Thread Peter Grehan
Hi Olivier, If you create a sparse file for the bhyve raw disk (e.g. with truncate -s), du will show the actual blocks used rather than the total size. But can I truncate an already existing image disk (downloaded nanobsd image as example) ? Not without some processing. One wa

Re: CFT: bhyve AMD snapshot

2014-02-11 Thread Peter Grehan
Hi Aryeh, Fatal trap 30: reserved (unknown) fault while in kernel mode I'm not seeing this with a 10.0 guest on my Phenom II X6. However: root@:/home/aryeh # uname -a FreeBSD 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r261732: Tue Feb 11 03:19:01 EST 2014 aryeh@:/usr/obj/usr/src/sys/GENERIC

Re: Fwd: CFT: bhyve AMD snapshot

2014-02-11 Thread Peter Grehan
Hi Aryeh, root@:/home/aryeh # uname -a FreeBSD 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r261732: Tue Feb 11 03:19:01 EST 2014 aryeh@:/usr/obj/usr/src/sys/GENERIC amd64 This isn't the revision of the bhyve_svm branch - did you possibly do a sync before building this ? svn switch W

Re: Detect of BHyve VM was powered off or rebooted?

2014-02-12 Thread Peter Grehan
Hi Craig, It seems pointless to me for the user to have to explictly destroy the VM. We're working on fixing it. What it gave during the development process (and still gives) is the ability to get post-mortem information when the bhyve process exits. Once the bhyve process exits, I doesn

Re: Fwd: CFT: bhyve AMD snapshot

2014-02-12 Thread Peter Grehan
Hi Aryeh, kernel panic during boot Can you post a verbose boot log with the panic (i.e. "boot -v" from the loader prompt) ? later, Peter. ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virt

Re: best branch for bhyve on AMD?

2014-02-12 Thread Peter Grehan
Hi John, Am I right in thinking that bhyve support for AMD processors is not yet in -STABLE? Yes, that's correct. If so, is there working code for bhyve under AMD anywhere? Where? -HEAD, projects/bhyve_svm or somewhere else? projects/bhyve_svm Is it considered experimental, stable, or

Re: SOLVED - Re: New to Bhyve -- help setting up /dev/sda1 and /dev/vda1

2014-02-19 Thread Peter Grehan
Hi Rudy, And here is how to launch: bhyvectl --vm=vm1 --destroy grub-bhyve -r hd0 -m ./device.map -v -M 2048 vm1 set root=(hd0,msdos1) linux /vmlinuz root=/dev/vda1 initrd /initrd.img boot You can avoid the command prompt by using the '-r' parameter to specify the root device i.e.

Re: bhyve and FreeBSD 8.1

2014-02-19 Thread Peter Grehan
> Is there any way to get FreeBSD 8.1 working under bhyve? I've read the FAQ and it says 8.4 upwards, but thought it was worth asking here just in case it can be done just not in a supported way... :) You'll need to backport the virtio drivers. There is a port that advertizes 8.2 as the mini

Re: bhyve crashes... tip to /dev/nmdm1B

2014-02-19 Thread Peter Grehan
Hi Rudy, # tip vm1 Could not open backing file: No such file or directory This is a valid error message from bhyve, and happens when the file attached to a block device can't be opened. connected {...I hit ENTER 5 times here...} This is probably the delay due to core being dumped. [

Re: [PATCH] Support for S5 (soft power off) in bhyve

2014-02-20 Thread Peter Grehan
Hi Rudy, Is this only in HEAD and not 10.0? Looking for the power button for those VMs. Not in 10.0 :( In HEAD, and mfc'd to 10-stable with r261090. later, Peter. ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailm

Re: Bhyve and Ubuntu booting

2014-02-23 Thread Peter Grehan
vm exit rdmsr 0xc0010015, cpu 0 --- And I've seen discussions in other threads about reading/writing cpu registers where some bits should be 0, but trap when being set (Or something close to this...???) So it could again be due to the amdsrc tree differences? It's Linux accessing differen

Re: Bhyve and Ubuntu booting

2014-02-23 Thread Peter Grehan
It's a toy box here so if anything needs to be tested, worked out. Just let me know. And I'm willing to run the risk of lost work, because using the ignore option bites me You can try the "-w" option. Aryeh has reported that it works for him. later, Peter.

Re: bhyve FreeBSD 10.0 VM crashed

2014-02-23 Thread Peter Grehan
I've kicked off 3 2G vm's which do a continous while(1) { make -j 4 buidlworld } How many vCPUs on each VM, and on the host ? Hypervisors in general don't do too well when there is a lot of CPU oversubscription. bhyve may be a bit worse than the crowd with this since we've not had a lot of

Re: Bhyve and Ubuntu booting

2014-02-23 Thread Peter Grehan
-w does not exist on my bhyve bhyve: illegal option -- w Hmmm, just checked and you're right. Looks like a mis-merge - this change went into CURRENT in early December, and the most recent sync for the SVM branch was from Jan 14 :( Now I'm wondering what else hasn't made it in :( later, P

Re: Bhyve segfaults when accessing the network

2014-02-23 Thread Peter Grehan
Hi Paul, Hardware: Supermicro X9SPV-F3610ME-O (embedded i5) with 16GB RAM Host kernels (+userland of the same version): 10.0 RC5 10.0 RELEASE 10 STABLE Does the segfault happen on h/w with all of these ? (I think you mention below that it's only 10-stable that has th

Re: Bhyve and Ubuntu booting

2014-02-23 Thread Peter Grehan
Against what current version did you merge/build the SVM branch? I'll either check that out, or try my subversion skills to see if that reduces the diff. My mistake - the sync was a r259205, which was from Dec 10 and predates the -w option (r259635, Dec 17). later, Peter.

Re: Bhyve and Ubuntu booting

2014-02-23 Thread Peter Grehan
> On 23-2-2014 18:26, Peter Grehan wrote: Against what current version did you merge/build the SVM branch? I'll either check that out, or try my subversion skills to see if that reduces the diff. My mistake - the sync was a r259205, which was from Dec 10 and predates the -w option

Re: lazy bhyve doesn't boot until I conenct to console

2014-02-27 Thread Peter Grehan
Hi Rudy, I'm seeing something odd... I am running this command: bhyve -c 4 -m 2048M -H -P -A -s 0:0,hostbridge -s 1:0,lpc -s 2,virtio-net,tap1 -s 3,virtio-blk,/dev/zvol/data/vm1 -l com1,/dev/nmdm1A vm1 but I the VM is being lazy... A number of people have reported this, and looking at it,

Re: bhyve core dump...

2014-03-03 Thread Peter Grehan
Hi Andrea, I was installing mysql56 in a freebsd10 inside freebsd 10 and while doing the install the machine bombed out. In the console this is what I got: Assertion failed: (aior != NULL), function ahci_handle_dma, file /usr/src/usr.sbin/bhyve/pci_ahci.c, line 445. Abort trap (core dumped) The

Re: bhyvectl

2014-03-03 Thread Peter Grehan
Hi Andrea, I just throw away at least one hour because I was running bhyvectl destroy --vm=something instead of bhyvectl --destroy --vm=something. Bhyvectl just silently ignored the wrong "destroy" instead of "--destroy". Maybe it's worth printing out something in such circumstances??? :-) T

Re: Problem with ZFS userboot changes r262331 and VM with mixed partitions

2014-03-04 Thread Peter Grehan
Hi Craig, ZFS: i/o error - all block copies unavailable I don't fully understand all this logic. Is there a bug that can be fixed here? Yes - a flag needs to be passed to userboot to tell it to ignore ZFS filesystems. This is analogous to the decision to use boot2 (implicit UFS) vs zfsboo

Re: Problem with ZFS userboot changes r262331 and VM with mixed partitions

2014-03-04 Thread Peter Grehan
Hi Craig, Can this flag be passed via bhyveload, and if so, how? It can't yet: the API to userboot has to be changed to allow this to be passed through. later, Peter. ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/

Re: bhyve: allow specifiying tty by fd

2014-03-06 Thread Peter Grehan
Hi Roman, Currently bhyve(8) allows to specify either stdio or device path as a TTY device. However, it could be useful to specify a TTY device by file descriptor, e.g. when bhyve is being executed in an automated way by other application, so a result of openpty(3) could be passed to it. Attache

Re: bhyve: allow specifiying tty by fd

2014-03-06 Thread Peter Grehan
Hi Julian, and allows fd to be a socket! :-) Maybe not initially. There a bunch of code that wants to issue tty ioctls on the fd, so the code currently verifies that it is indeed a tty. later, Peter. ___ freebsd-virtualization@freebsd.org maili

Re: [SOLVED] Re: lazy bhyve doesn't boot until I conenct to console

2014-03-06 Thread Peter Grehan
I'm seeing something odd... I am running this command: bhyve -c 4 -m 2048M -H -P -A -s 0:0,hostbridge -s 1:0,lpc -s 2,virtio-net,tap1 -s 3,virtio-blk,/dev/zvol/data/vm1 -l com1,/dev/nmdm1A vm1 but I the VM is being lazy... A number of people have reported this, and looking at it, I think it

Re: [HOW-TO] CentOS on bhyve

2014-03-08 Thread Peter Grehan
Hi Rudy, Peter, anyway to get grub-bhyve to automatically load /grub/grub.conf from a CentOS install? A more concise boot how-to involves making a .grub file based on the contents of the grub.conf in your .img file. The first email shows me wading through the grub prompt trying to figure out w

Re: Bhyve on a Core i7-920

2014-03-31 Thread Peter Grehan
Hi Brando, ​Howdy folks, i have encountered a strange issue when i was trying to run CentOS 6.5 with bhyve on a server with 11.0-CURRENT FreeBSD Installed: VM unrestricted guest capability required Error in initializing VM the machine has 48GB of ram, and the cpu is a i7 920 as stated in the s

Re: virtualbox and bhyve questions

2014-04-02 Thread Peter Grehan
Hi John, 1. I've read that virtualbox and bhyve cannot run at the same time. Is this still the case? (because I've managed to start a bhyve instance with virtualbox still running - is this a fluke?) If you use VirtualBox with VT-x disabled, i.e. binary translation mode, it will work. Othe

Re: bhyve VM crashed

2014-04-08 Thread Peter Grehan
Hi Steve, I experienced a bhyve VM crash with this message: vm exit[1] reason VMX rip 0x80c7490b inst_length 3 status 0 exit_reason 2 That's a triple-fault :( (the exit reasons are the VMX ones in Ap

Re: bhyve VM crashed

2014-04-08 Thread Peter Grehan
Hi Steve, The VM was building ports. I could try to deduce which ports, but I wouldn't be 100% sure. Probably no need, unless this can be repro'd by building that particular port. Some more questions: Were there other VMs running at the same time ? What's the type of host CPU/number of CPUs

Re: [SOLVED] Re: lazy bhyve doesn't boot until I conenct to console

2014-04-09 Thread Peter Grehan
Hi Roman, Fixed in r262884 ... Do you plan to MFC that? The original commit set MFC to 3 weeks and now more than 4 weeks passed since. That would be a very useful fix to have in STABLE. Yes - there should be a large set of MFCs soon; just getting together the list of what will be done.

Re: bhyve: allow specifiying tty by fd

2014-04-09 Thread Peter Grehan
Hi Roman, bhyve -s 31,lpc -l com1,fd=19 vm0 Yes, useful idea, and will become more relevant in the capsicum world of passing fd's to a sandboxed bhyve. Thanks: I'll get this submitted. Hi Peter! Any news on that? I started to do it, and then hesitated bit for two reasons. First,

Re: installing FreeBSD 8.4 in bhyve

2014-04-10 Thread Peter Grehan
Hi Steve, I'm trying to install FreeBSD 8.4 in bhyve, but running into some issues. Sysinstall doesn't seem to like the disk. In the partition editor, I get: Disk name: vtbd1 FDISK Partition Editor DISK Geometry: 0 cyls/0 heads/0 sectors = 0 sectors (0MB)

Re: pinning CPUs in bhyve

2014-04-11 Thread Peter Grehan
Hi Steve, Can someone help me understand the cpu pinning feature in bhyve? I'm afraid the docs have confused me: -p pinnedcpu Force guest virtual CPUs to be pinned to host CPUs. Virtual CPU n is pinned to host CPU pinnedcpu+n. What would the arg looks like? Something like -p 0,1,2,3 ?

Re: bhyve: allow specifiying tty by fd

2014-04-14 Thread Peter Grehan
Hi Roman, Could it be an additional comma separated option? E.g.: -l com1,fd=42,sock or -l com1,fd=42,tty Yes, this is a possibility. I'll get your patch in for the tty backend as a start. later, Peter. ___ freebsd-virtualization@freebsd.org

Re: HOWTO needed for installing Linux VM under bhyve

2014-04-20 Thread Peter Grehan
I've found some vague links to sysutils/grub2-bhyve, but my naive attempts to get things done failed. I tried to run debian7/i386, if this is important. Native freebsd VMs are fine. Never tried a 32-bit Linux. 64-bit Debian7 works fine. Could anybody please point me to the document how shoul

Re: Understanding CPU and memory usage in Bhyve

2014-04-21 Thread Peter Grehan
Hi Roman, For the CPU, there's some info provided by bhyvectl, e.g.: /usr/sbin/bhyvectl --vm=bhyve --get-stats --cpu=1 in the field 'vcpu total runtime', for example: vcpu total runtime 8178870653 Two question about that: 1. What are the units used here? Looks

Re: Understanding CPU and memory usage in Bhyve

2014-04-25 Thread Peter Grehan
Hi Roman, But the summary is: is there a way to figure out how much CPU time bhyve and the guest spends on host CPUs N (N = 0, 1, ...)? I don't think FreeBSD records that for a process, and bhyve doesn't record the guest vCPU time on individual host CPUs (it's an aggregate over all CPUs).

Re: bhyve behavior under cpuset_setaffinity

2014-04-27 Thread Peter Grehan
Hi Oleg, For example by executing follow command on bhyve pid: % cpuset -l 2 -p 3476 3476 vcpu 0 RET ioctl 0 ... 3476 vcpu 1 RET ioctl 0 Looks like you have a 2 vCPU guest, but the cpuset only contains a single host CPU. What happens here under load is that you will star

Re: Problems with bhyve's kgdb support and loadable modules

2014-05-03 Thread Peter Grehan
Hi Kurt, Is there any reasonable tutorial for using kgdb with the bvmdebug kernel option? Not really (https://wiki.freebsd.org/BHyVe/gdb) In any event, 9.2 doesn't have bvmdebug, though it would be a simple backport. It's also not strictly required - you can use the serial port same as on

Re: Problems with bhyve's kgdb support and loadable modules

2014-05-05 Thread Peter Grehan
Mounting /mnt directly on the host is a bit risky though. Absolutely - I should have been clearer; I copied the guest disk image to another file before doing that. Even a read-only mount of the image on one system, as Michael mentioned, can still result in a crash. later, Peter. ___

Re: bhyve rocks!

2014-05-12 Thread Peter Grehan
I must say thanks to the creators of bhyve and all of you, who gave me support some time ago. Thanks to you guys i now have a bhyve host ( running FreeBSD 11-CURRENT ) with 5 linux guests running on it! Great ! Any particular versions of Linux ? later, Peter.

Re: Bheve: Slow linux syscalls on AMD

2014-05-30 Thread Peter Grehan
Hi Willem, So the question remains: Why is it taking so long on the AMD platform. The time difference looks a lot like a VM-exit roundtrip. My new AMD box is arriving shortly so I'll have a look into it. later, Peter. ___ freebsd-virtua

Re: bhyve max virtual CPUs

2014-06-03 Thread Peter Grehan
Hi Allan, I asked about increasing it and was told that it can be done by editing a value in one of the .h files or something, but the reason it wasn't higher was that it didn't scale nicely, and they wanted to reword how it works. I would definitely be interested in this, as we run video trans

Re: interrupt storm on ahci

2014-06-07 Thread Peter Grehan
Hi Steve, I'm running a FreeBSD guest in bhyve on a FreeBSD host. Both are running FreeBSD CURRENT, r266947. I've gotten this message about 12 times since boot: interrupt storm detected on "irq268:"; throttling interrupt source vmstat -i shows: irq268: ahci1 236514222

Re: interrupt storm on ahci

2014-06-07 Thread Peter Grehan
He mentioned that both the host and guest are recent -CURRENT Doh, was fixated on seeing "irq" in the dmesg :) later, Peter. ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To un

Re: Bheve: Slow linux syscalls on AMD

2014-06-07 Thread Peter Grehan
So the question remains: Why is it taking so long on the AMD platform. I believe this is now fixed with r267217 - please test out and let us know how it goes. later, Peter. ___ freebsd-virtualization@freebsd.org mailing list http://lists.fre

Re: AMD passthru on bhyve_svm branch

2014-06-07 Thread Peter Grehan
Hi Clint, I'm not sure if this is supposed to be fully functional yet ... # dmesg | grep iommu amd_iommu_init: not implemented The IOMMU isn't yet functional on AMD. Looks like a bug in bhyve that it doesn't error out if the IOMMU isn't located and ppt devices have been configured. la

Re: Bheve: Slow linux syscalls on AMD

2014-06-08 Thread Peter Grehan
Still seeing that a 2 CPU VM is using about 100% of 1 cpu when idleing, but that is another minor challenge. I know what that one is: should have a fix shortly. later, Peter. ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.

Re: Bheve: Slow linux syscalls on AMD

2014-06-09 Thread Peter Grehan
Still seeing that a 2 CPU VM is using about 100% of 1 cpu when idleing, but that is another minor challenge. Fixed in r267305 later, Peter. ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtua

Re: Bheve: Slow linux syscalls on AMD

2014-06-10 Thread Peter Grehan
Hi Willem, On 2014-06-09 23:04, Peter Grehan wrote: Still seeing that a 2 CPU VM is using about 100% of 1 cpu when idleing, but that is another minor challenge. Fixed in r267305 Ack. There is still a small difference in behaviour between Linux and FreeBSD. But I'd call that negec

Re: Bheve: Slow linux syscalls on AMD

2014-06-10 Thread Peter Grehan
Hi Nils, Confirmed. Running a bhyved 3-vCPU-"CentOS 6.5", the host CPU load for "vcpu 0" is around 12% now. Doh, that's not good - haven't given Centos 6.5 a try; will now to investigate this. Ping times to the VM are fluctuating - ranging from 0.185ms to 35ms. Hmmm, will look at that

Re: Bheve: Slow linux syscalls on AMD

2014-06-10 Thread Peter Grehan
Hi Nils, CentOS is a bit bitchy about booting from harddisk. You'll have to provide a shorter "linux"-grub-line than what's written in the "grub.conf"-file; some- thing like this: linux /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root initrd /initramfs-2.6.32

Re: Bheve: Slow linux syscalls on AMD

2014-06-10 Thread Peter Grehan
Hi Willem, I've got KTR compiled in, but last time I switched it on. I got swamped in traffic, and I sort of got locked out of the server... :( Could also be because I was writing it to a file as well. So you'll have to help/tell me what to do. For looking at this, I'd use one single-vCPU gu

Re: bhyve: vde2/openvswitch

2014-06-20 Thread Peter Grehan
Hi Cory, Is there any current support for vde2 None yet. aside from using vde2_plug2tap? (Does that even work? I believe vde2 likes to open the tap interface exclusively. I need to bring up a bhyve test environment to check fully.) ... How exactly does the bhyve network stack work throug

Re: bhyve: vde2/openvswitch

2014-06-23 Thread Peter Grehan
Hi Julian, A virtual switch for bhyve would be a useful feature if there aren't any plans for one. Get up there and have it in base. ;) This has been talked about quite a bit, though nothing concrete. Allowing bhyve to talk to netgraph would instantly give this. I think you can already do it

Re: Panic: 32-bit PAE enabled OS with 4GB RAM and 2 vCPUs on Bhyve

2014-07-21 Thread Peter Grehan
Hi Prakhar, 1. Why are the pages mapped to AP are being zeroed when PGE flag is set for AP in it's CR4 ? It is hard to say but my guess would be that the 4 PDPTE registers in the VMCS are not being properly updated during AP spinup. It would be helpful to see the assembly instructions in the

Re: Shared CPU in Bhyve

2014-08-11 Thread Peter Grehan
Hi Jordan, As I understand, one of the great features of bhyve is the ability to have completely isolated resources where a guest OS can only consume N number of CPUs. However, I only have 4 CPUs on my machine and would like to use bhyve to create a Linux guest on my FreeBSD host. I don't want t

Re: bhyve userboot -- lack of inb()/outb() in ficl

2014-08-13 Thread Peter Grehan
Hi Arthur, I noticed that userboot doesn't contain inb()/outb() bindings: from loader(8): inb (port -- char) Reads a byte from a port. outb (port char --) Writes a byte to a port. Yet, manual page for bhyveload(8) claims: bhyveload

Re: bhyve userboot -- lack of inb()/outb() in ficl

2014-08-13 Thread Peter Grehan
Hi Arthur, On Wed, Aug 13, 2014 at 02:20:19PM -0700, Peter Grehan wrote: It won't work for bhyveload/userboot - the VM isn't actually running at that point so there's nowhere for the commands to go. Interesting. Is it really the case that inb/outb need to go through VM? Y

Re: VNC server on bhyve

2014-08-17 Thread Peter Grehan
Hi Denis, Does (or will include) bhyve VNC server? For the console, currently not. It will hopefully be there at some point. later, Peter. ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtu

Re: bhyve's VM loose network connectivity after a reboot

2014-08-21 Thread Peter Grehan
Hi Olivier, I'm using bhyve from a 11.0-CURRENT (r270177) host and I meet a problem after a VM (guest using fbsd -current too) is rebooted: This VM loose network connectivity once rebooted. vtnet interface seems OK from the VM, like the tap interface on the host: tap status correctly display the

Re: -stable / bhyve / vmrc / centos65: no network card

2014-08-21 Thread Peter Grehan
Hi Mathias, twin# ifconfig igb0: flags=8943 metric 0 mtu 1500 options=400b8 ether 0c:c4:7a:05:81:be inet 1yy netmask 0xffc0 broadcast 1yy inet6 fe80::ec4:7aff:fe05:81be%igb0 prefixlen 64 scopeid 0x1 inet 1xx netmask 0xfff8 broadcast 1 inet 1xx

Re: VirtIo errors inside VM with UFS-in-zvol

2014-08-25 Thread Peter Grehan
Hi Marat, vtbd0: hard error cmd=write 290-305 I would like to report the same problem. I'm using 10.0-RELEASE-p7 as a host, and 9.3-RELEASE as a guest. VM is created using vmrc script, it installed fine. But on attempt to create additional fs inside the vm, newfs just silently fails withou

Re: lost ability to run FreeBSD on bhyve on CURRENT

2014-08-26 Thread Peter Grehan
Hi Nikolai, Can someone look at Bugzilla 192470 please? https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192470 We've not been able to repro this on E3-1220 v3, E5-2650, or E5-2609 v2 systems :( Do you have any xsave-related tunables set in loader.conf ? Do CURRENT guests work ? If so

Re: VGA output

2014-09-01 Thread Peter Grehan
Hi Denis, "..Currently, bhyve only supports a serial console and does not emulate a graphical console." - www.freebsd.org How i can understand, i can not take graphical output from same virtual mashines? This option is planned? Think of it as a headless server with a serial console.

Re: bhyve API

2014-09-01 Thread Peter Grehan
Hi Denis, Does the API bhyve and where can I get documentation on it? Not sure what you mean by the API: the libvmmapi library api, or the user-kernel ioctls ? In any event, the only documentation for both of these is in the FreeBSD source itself. later, Peter. _

Re: Ubuntu upgrade - bhyve gets confused with vtblk

2014-09-02 Thread Peter Grehan
Hi Rudy, uname: FreeBSD 10.0-STABLE #1 r264668M: Fri Apr 18 14:50:21 PDT 2014 Was this the previous version, and you've just upgraded to the latest 10-STABLE ? Upgrading OS to 10-STABLE! [0.00] Linux version 3.13.0-35-generic (buildd@panlong) (gcc version 4.8.2 (Ubuntu 4.8.2-19

Re: Ubuntu upgrade - bhyve gets confused with vtblk

2014-09-03 Thread Peter Grehan
Hi Rudy, It is working now, I upgraded to: FreeBSD 10.1-PRERELEASE #4 r270991M: Tue Sep 2 22:18:28 PDT 2014 Good to hear. For some odd reason, nmdb was not part of 10.1-PRERELEASE, so my boot scripts failed. Doh. The fix: cd /usr/src/sys/modules/nmdm/ && make depend && make obj && mak

Re: [HOW-TO] CentOS on bhyve

2014-09-05 Thread Peter Grehan
Hi Dan, Is there a way to direct grub-bhyve to use the centos:/boot/grub2/grub.cfg file ala some argument -- I scanned the source and couldn't find a simple over-ride. The Centos7 install I did put the grub2 config into /grub2/grub.cfg grub-bhyve can be told to search in this directory with

Re: Unable to boot Ubuntu Server 14.04.1 64 bit on bhyve

2014-09-07 Thread Peter Grehan
Hi, > I am running: > uname -a > FreeBSD .** 10.0-RELEASE-p7 FreeBSD 10.0-RELEASE-p7 #0: Tue Jul 8 > 06:37:44 UTC 2014 > r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC > amd64 > > I have followed the instructions in the handbook to successfully install > and run Debian 7.6.0

Re: Bhyve virtio-net indirect descriptors

2014-09-08 Thread Peter Grehan
Hi Nikolay, Any reason why bhyve is not advertising indirect descriptors for virtio-net? Indirect descriptors never seemed to make a lot of sense to me for networking. It requires allocations at the end of the transmit path which could potentially fail, or requires large amounts of prealloc

Re: nmdm.c

2014-09-13 Thread Peter Grehan
Hi Denis, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192281 In what branch I can use the functionality of the modified nmdm.c ? It's in CURRENT and should be in 10-STABLE very shortly. later, Peter. ___ freebsd-virtualization@freebsd.org

Re: VM unrestricted guest capability required

2014-10-02 Thread Peter Grehan
Hi, I'm trying to install Ubuntu Linux 14.10 as a guest in FreeBSD 11-CURRENT r272460 host. When I try to run grub-bhyve (version 0.23) I see in console message: VM unrestricted guest capability required Error in initializing VM I've read a thread with the similar problem. As far as I understoo

Re: VM unrestricted guest capability required

2014-10-02 Thread Peter Grehan
> Is that means there is no way to install Linux as guest with current grub-bhyve implementation and my hardware? Yes, that's correct. later, Peter. ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/free

Re: [regression] bhyve stopped working

2014-10-03 Thread Peter Grehan
Hi Lars, I just upgraded to r272468 and bhyve stopped working. When I start a VM (Ubuntu or FreeBSD) byhve dumps core: Aargh, looks like the recent ACPI-CA import caused this :( Working on a fix now. later, Peter ___ freebsd-virtualization@free

Re: VM unrestricted guest capability required

2014-10-03 Thread Peter Grehan
Are there any news/plans/progress with possibility to run Windows as guest? Plans - most definitely. Progress - not a lot to report at this stage. later, Peter. ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/li

Re: VM unrestricted guest capability required

2014-10-03 Thread Peter Grehan
Hi Allan, If/When bhyve gets the UEFI boot stuff to be able to do 'any OS' (from my understanding, this is the approach that will be used for Windows), would that remove the requirement for UG to boot Linux, if it was booted via UEFI? It cements the UG requirement even further: UEFI is a form

<    1   2   3   4   5   >