Re: moving from virtualbox to bhyve - SOLVED
On 22-10-2014 2:20, John wrote: > On Tue, Oct 21, 2014 at 01:55:26PM -0700, Neel Natu wrote: > >> If you are comfortable sharing your disk image then I can try to >> reproduce locally and hopefully get a better grip on what's happening. > > That's very nice of you to offer, but I have to decline as I don't own > the data. I think I might have sorted it in any case. I was thrown by > the login prompt not appearing in the console. > > Really pleased with the performance of ubuntu on bhyve. It doesn't impact > much on the host either. > Why not boot the system, and look in the grub config. And fix the code there by removing most of the graphics code. Or for testing, edit the grub boot line from within grub itself while bhyveload Then you will know if this is the problem, but from old experience trying to get all the linuxcees running in AMD, I think I ran into this as well. --WjW ___ 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: moving from virtualbox to bhyve - SOLVED
Hi, On Tue, Oct 21, 2014 at 06:15:58PM -0700, Peter Grehan wrote: > Hi John, > > I think what happened is that the grub config file was setting up > Ubuntu for a graphical console on the original VBox VM. I think you might be right. I'll check to see if there's a way to tell. I can't remember if there was. It was very ad-hoc when I installed it. I know when it was installed to vbox I was exporting a term over ssh. vbox has this ILO emulation and that was used at first. Then I used the command line utilities on the host for managing and restarting the VM, and ssh to access the vm itself. ISTR in the emulation that it emulated a text console though. It's the server version of ubuntu rather than the desktop version. I remember having difficulties with character repitition over the emulated console. Having said all that, it would be weird if a server install defaulted to graphics mode on bootup! I guess stranger things have happened... -- John ___ 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: moving from virtualbox to bhyve - SOLVED
Hi John, I was so busy waiting for the login screen from the console that I'd failed to notice it *HAD* actually booted. I found this out by trying to ssh to it for the hell of it. dmesg showed things were normal. My console, though, looks like this: http://tinyurl.com/q4a3t4e The ubuntu is 13.10 with security patches. I think what happened is that the grub config file was setting up Ubuntu for a graphical console on the original VBox VM. grub-bhyve will auto-insert a "console=ttyS0" at the start of the kernel command-line, but any loater "console=" option will override this. You may have to edit your grub.conf and remove any "console=" options. There may be some additional steps that are required to enable a getty on the serial port - that tends to be distro-specific and I'm not sure what is required (if anything) for Ubuntu. later, Peter. ___ 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: moving from virtualbox to bhyve - SOLVED
Hi Manas, I have experienced something similar on a Gentoo guest. It boots fine but I don't get a login prompt at the end of the boot process. I am interested in learning a solution to this. I have a 14.04.1 Ubuntu guest and a Debian guest (latest version) that work fine and present me with a login prompt. This is most likely a graphically-oriented distro that doesn't have an install process that can run on a serial console. I've seen that same with Fedora ISOs. Server distros are your best bet for bhyve, at least until VGA emulation is done. later, Peter. ___ 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: moving from virtualbox to bhyve - SOLVED
On 2014-10-21 21:07, Manas wrote: > I have experienced something similar on a Gentoo guest. It boots fine but I > don't get a login prompt at the end of the boot process. I am interested in > learning a solution to this. I have a 14.04.1 Ubuntu guest and a Debian > guest (latest version) that work fine and present me with a login prompt. > > Manas > On BlackBerry > Original Message > From: Cory Smelosky > Sent: Tuesday, October 21, 2014 8:21 PM > To: freebsd-virtualization@freebsd.org > Subject: Re: moving from virtualbox to bhyve - SOLVED > > On Wed, 22 Oct 2014, John wrote: > >>> with ctrl-c for example. >> >> I was so busy waiting for the login screen from the console that I'd failed >> to notice it *HAD* actually booted. I found this out by trying >> to ssh to it for the hell of it. dmesg showed things were normal. >> My console, though, looks like this: http://tinyurl.com/q4a3t4e >> The ubuntu is 13.10 with security patches. >> > > I am unsure as to what the console device should be for bhyve, but that's > likely what your problem is. Getty or systemd or whatever it is now is > probably not launching a console on the correct device? > >> cheers >> > Just like when the same thing happens on FreeBSD, the issue is that the console output is not being directed to the serial port. You must configure the OS as if it was running on a machine with no video card, only a serial port. -- Allan Jude signature.asc Description: OpenPGP digital signature
Re: moving from virtualbox to bhyve - SOLVED
I have experienced something similar on a Gentoo guest. It boots fine but I don't get a login prompt at the end of the boot process. I am interested in learning a solution to this. I have a 14.04.1 Ubuntu guest and a Debian guest (latest version) that work fine and present me with a login prompt. Manas On BlackBerry Original Message From: Cory Smelosky Sent: Tuesday, October 21, 2014 8:21 PM To: freebsd-virtualization@freebsd.org Subject: Re: moving from virtualbox to bhyve - SOLVED On Wed, 22 Oct 2014, John wrote: >> with ctrl-c for example. > > I was so busy waiting for the login screen from the console that I'd failed > to notice it *HAD* actually booted. I found this out by trying > to ssh to it for the hell of it. dmesg showed things were normal. > My console, though, looks like this: http://tinyurl.com/q4a3t4e > The ubuntu is 13.10 with security patches. > I am unsure as to what the console device should be for bhyve, but that's likely what your problem is. Getty or systemd or whatever it is now is probably not launching a console on the correct device? > cheers > -- Cory Smelosky http://gewt.net Personal stuff http://gimme-sympathy.org Projects ___ 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" ___ 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: moving from virtualbox to bhyve - SOLVED
On Wed, 22 Oct 2014, John wrote: with ctrl-c for example. I was so busy waiting for the login screen from the console that I'd failed to notice it *HAD* actually booted. I found this out by trying to ssh to it for the hell of it. dmesg showed things were normal. My console, though, looks like this: http://tinyurl.com/q4a3t4e The ubuntu is 13.10 with security patches. I am unsure as to what the console device should be for bhyve, but that's likely what your problem is. Getty or systemd or whatever it is now is probably not launching a console on the correct device? cheers -- Cory Smelosky http://gewt.net Personal stuff http://gimme-sympathy.org Projects ___ 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: moving from virtualbox to bhyve - SOLVED
On Tue, Oct 21, 2014 at 01:55:26PM -0700, Neel Natu wrote: > If you are comfortable sharing your disk image then I can try to > reproduce locally and hopefully get a better grip on what's happening. That's very nice of you to offer, but I have to decline as I don't own the data. I think I might have sorted it in any case. I was thrown by the login prompt not appearing in the console. Really pleased with the performance of ubuntu on bhyve. It doesn't impact much on the host either. -- John ___ 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: moving from virtualbox to bhyve - SOLVED
On Tue, Oct 21, 2014 at 02:02:17PM +0100, John wrote: > Hi, > > On Tue, Oct 21, 2014 at 05:11:07AM -0400, Cory Smelosky wrote: > > > You can convert the image without data loss. Qemu-img and > > VBoxManage provide a means to do as such. > > I know, I had already converted it to raw. The question was, > how do I launch it, but after some experimentation and reading, > I *think* I may have sussed it out. So far, the instance boots > and loads its services (it's a web server) but it's hanging halfway > through the loading process, and I can't make it abort loading them > with ctrl-c for example. I was so busy waiting for the login screen from the console that I'd failed to notice it *HAD* actually booted. I found this out by trying to ssh to it for the hell of it. dmesg showed things were normal. My console, though, looks like this: http://tinyurl.com/q4a3t4e The ubuntu is 13.10 with security patches. cheers -- John ___ 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: moving from virtualbox to bhyve
Hi John, On Mon, Oct 20, 2014 at 9:59 PM, John wrote: > On Mon, Oct 20, 2014 at 05:55:13PM -0700, Neel Natu wrote: > >> It seems that you are booting the guest from the disk that was >> originally used with vbox. > > Yes, this is what I want to do, because there's data on there. > If you are comfortable sharing your disk image then I can try to reproduce locally and hopefully get a better grip on what's happening. best Neel >> Do you have the same issue booting from an ubuntu ISO and doing a >> fresh install to disk in bhyve? > > No, that seems to work. > > cheers, > -- > John ___ 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: moving from virtualbox to bhyve
Hi, On Tue, Oct 21, 2014 at 05:11:07AM -0400, Cory Smelosky wrote: > You can convert the image without data loss. Qemu-img and > VBoxManage provide a means to do as such. I know, I had already converted it to raw. The question was, how do I launch it, but after some experimentation and reading, I *think* I may have sussed it out. So far, the instance boots and loads its services (it's a web server) but it's hanging halfway through the loading process, and I can't make it abort loading them with ctrl-c for example. cheers, -- John ___ 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: moving from virtualbox to bhyve
Sent from my iPhone > On Oct 21, 2014, at 00:59, John wrote: > >> On Mon, Oct 20, 2014 at 05:55:13PM -0700, Neel Natu wrote: >> >> It seems that you are booting the guest from the disk that was >> originally used with vbox. > > Yes, this is what I want to do, because there's data on there. You can convert the image without data loss. Qemu-img and VBoxManage provide a means to do as such. > >> Do you have the same issue booting from an ubuntu ISO and doing a >> fresh install to disk in bhyve? > > No, that seems to work. > > cheers, > -- > John > ___ > 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" ___ 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: moving from virtualbox to bhyve
On Mon, Oct 20, 2014 at 05:55:13PM -0700, Neel Natu wrote: > It seems that you are booting the guest from the disk that was > originally used with vbox. Yes, this is what I want to do, because there's data on there. > Do you have the same issue booting from an ubuntu ISO and doing a > fresh install to disk in bhyve? No, that seems to work. cheers, -- John ___ 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: moving from virtualbox to bhyve
Hi John, On Mon, Oct 20, 2014 at 10:04 AM, John wrote: > On Mon, Oct 20, 2014 at 12:31:18PM -0400, Allan Jude wrote: > >> What version of FreeBSD are you using? You might want to try the latest >> 10.1 RC (or HEAD if you are so included) instead, as they have much >> improved bhyve. > > freebsd version is: 10.1-PRERELEASE #0 r273275 > ports is 371224 > > I'm running 10-STABLE It seems that you are booting the guest from the disk that was originally used with vbox. Do you have the same issue booting from an ubuntu ISO and doing a fresh install to disk in bhyve? best Neel > -- > John > ___ > 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" ___ 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: moving from virtualbox to bhyve
On Mon, Oct 20, 2014 at 12:31:18PM -0400, Allan Jude wrote: > What version of FreeBSD are you using? You might want to try the latest > 10.1 RC (or HEAD if you are so included) instead, as they have much > improved bhyve. freebsd version is: 10.1-PRERELEASE #0 r273275 ports is 371224 I'm running 10-STABLE -- John ___ 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: moving from virtualbox to bhyve
On 2014-10-20 12:20, John wrote: > Hi, > > I'm trying to move from virtualbox to bhyve. From the server I've successfully > converted an ubuntu guest on vbox to raw. What I'm trying to do is to load > that > into bhyve, (on another freebsd server) and I'm at the limits of my knowledge > here; this isn't my speciality. > > The most recent information relevant to what I want to do, I found at > https://www.monkeybrains.net/support/bhyve > > but (not his fault!) what I'm trying to accomplish is not what he set out to > do. > > Has anyone done what I'm trying to do, or anyone know how to do it? The > furthest > I got was with this, the guest.img is the raw ubuntu from vbox: > > # bhyve -AI -H -P -s 0:0,hostbridge -s 1,lpc -s 2:0,virtio-net,tap1 -s > 3:0,virtio-blk, \ > ./guest.img -l com1,stdio -c 4 -m 1024M linuxguest > > [0.00] Initializing cgroup subsys cpuset > [0.00] Initializing cgroup subsys cpu > [0.00] Initializing cgroup subsys cpuacct > [0.00] Linux version 3.11.0-26-generic (buildd@comet) (gcc version > 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8) ) #45-Ubuntu SMP Tue Jul 15 04:02:06 > UTC 2014 (Ubuntu 3.11.0-26.45-generic 3.11.10.12) > [0.00] Command line: console=ttyS0 > BOOT_IMAGE=/boot/vmlinuz-3.11.0-26-generic > root=UUID=9cd5a28b-8746-41f3-9b0e-8a950b8c5206 ro > [0.00] KERNEL supported cpus: > [0.00] Intel GenuineIntel > [0.00] AMD AuthenticAMD > [0.00] Centaur CentaurHauls > > [...] > > [0.696113] io scheduler deadline registered (default) > [0.696437] io scheduler cfq registered > [0.696705] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 > [0.697052] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 > [0.697502] input: Power Button as > /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 > [0.697951] ACPI: Power Button [PWRF] > [0.698214] GHES: HEST is not enabled! > [0.698808] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled > [0.719861] 00:01: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A > [0.740907] 00:02: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A > [0.742883] Linux agpgart interface v0.103 > [0.744250] brd: module loaded > [0.745010] loop: module loaded > Segmentation fault (core dumped) > > thanks, > What version of FreeBSD are you using? You might want to try the latest 10.1 RC (or HEAD if you are so included) instead, as they have much improved bhyve. -- Allan Jude signature.asc Description: OpenPGP digital signature
moving from virtualbox to bhyve
Hi, I'm trying to move from virtualbox to bhyve. From the server I've successfully converted an ubuntu guest on vbox to raw. What I'm trying to do is to load that into bhyve, (on another freebsd server) and I'm at the limits of my knowledge here; this isn't my speciality. The most recent information relevant to what I want to do, I found at https://www.monkeybrains.net/support/bhyve but (not his fault!) what I'm trying to accomplish is not what he set out to do. Has anyone done what I'm trying to do, or anyone know how to do it? The furthest I got was with this, the guest.img is the raw ubuntu from vbox: # bhyve -AI -H -P -s 0:0,hostbridge -s 1,lpc -s 2:0,virtio-net,tap1 -s 3:0,virtio-blk, \ ./guest.img -l com1,stdio -c 4 -m 1024M linuxguest [0.00] Initializing cgroup subsys cpuset [0.00] Initializing cgroup subsys cpu [0.00] Initializing cgroup subsys cpuacct [0.00] Linux version 3.11.0-26-generic (buildd@comet) (gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8) ) #45-Ubuntu SMP Tue Jul 15 04:02:06 UTC 2014 (Ubuntu 3.11.0-26.45-generic 3.11.10.12) [0.00] Command line: console=ttyS0 BOOT_IMAGE=/boot/vmlinuz-3.11.0-26-generic root=UUID=9cd5a28b-8746-41f3-9b0e-8a950b8c5206 ro [0.00] KERNEL supported cpus: [0.00] Intel GenuineIntel [0.00] AMD AuthenticAMD [0.00] Centaur CentaurHauls [...] [0.696113] io scheduler deadline registered (default) [0.696437] io scheduler cfq registered [0.696705] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 [0.697052] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 [0.697502] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 [0.697951] ACPI: Power Button [PWRF] [0.698214] GHES: HEST is not enabled! [0.698808] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled [0.719861] 00:01: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [0.740907] 00:02: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A [0.742883] Linux agpgart interface v0.103 [0.744250] brd: module loaded [0.745010] loop: module loaded Segmentation fault (core dumped) thanks, -- John ___ 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"