Hello, I''m having a few different problems with this combination and I''m tearing my hair out... I''m wondering if anybody has any ideas. First of all, here is my Xen config file: name = "Dorian" uuid = "02becdfa-d85c-50e3-343a-ef87767f5018" maxmem = 1024 memory = 1024 vcpus=2 builder = "hvm" boot = "d" kernel = "/usr/lib/xen/boot/hvmloader" device_model = "/usr/lib64/xen/bin/qemu-dm" pae = 0 acpi = 0 #apic = 1 localtime = 1 on_poweroff = "destroy" on_reboot = "destroy" on_crash = "destroy" device_model = "/usr/lib64/xen/bin/qemu-dm" #sdl = 0 vnc = 1 vncviewer = 1 #vncunused = 0 #vncconsole = 1 vncdisplay=1 vnclisten="127.0.0.1" #nographic=1 disk = [ "file:/vmimages/Dorianold.img,hda,w", "file:/vmimages/7.0-RELEASE-amd64-disc1.iso,hdc:cdrom,r" ] vif = [ "mac=00:16:3e:7a:a3:48,bridge=xenbr0" ] #serial = "pty" 1) First of all, I''m not able to get a console to appear either by doing: xm create -c Dorian or xm console Dorian The only way I''m able to get a console is via VNC. I''ve played around with various config options and have managed to get: xenconsole: Could not read tty from store: No such file or directory My qemu log shows: I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 2) Looking at the startup of the FreeBSD kernel I see a couple of APIC errors. I don''t know if these are actually causing any problems, but I get kernel panics if I start with apic on in my Xen config file. I''d include these errors, but they fly by too quickly. However, FreeBSD does proceed past this point... 3) Whether I startup with a disk image I created in KVM or off the FreeBSD CD, I''m not able to see my disks. If I boot off the CD I get: Trying to mount root from ufs:/dev/md0 and off my disk image it just asks me for a disk to boot off of once the kernel has been loaded. I don''t understand why it sees the kernel but not my other slices. To get this far, I installed Xen via an RPM that included the "vmxassist=no" necessary to work on my 64 bit Intel CPU. Any help you can offer would be greatly appreciated! -- Joe Auty NetMusician: web publishing software for musicians http://www.netmusician.org joe@netmusician.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Joe Auty
2008-Jul-02 06:31 UTC
Re: [Xen-users] FreeBSD + Xen 3.2.1 + HVM assorted problems
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Well, I solved one of my problems (problem #2) - The 64 bit version of FreeBSD does not work as a guest OS :) Joe Auty wrote: | Hello, | | I''m having a few different problems with this combination and I''m | tearing my hair out... I''m wondering if anybody has any ideas. | | First of all, here is my Xen config file: | | name = "Dorian" | uuid = "02becdfa-d85c-50e3-343a-ef87767f5018" | maxmem = 1024 | memory = 1024 | vcpus=2 | builder = "hvm" | boot = "d" | kernel = "/usr/lib/xen/boot/hvmloader" | device_model = "/usr/lib64/xen/bin/qemu-dm" | pae = 0 | acpi = 0 | #apic = 1 | localtime = 1 | on_poweroff = "destroy" | on_reboot = "destroy" | on_crash = "destroy" | device_model = "/usr/lib64/xen/bin/qemu-dm" | #sdl = 0 | vnc = 1 | vncviewer = 1 | #vncunused = 0 | #vncconsole = 1 | vncdisplay=1 | vnclisten="127.0.0.1" | #nographic=1 | disk = [ "file:/vmimages/Dorianold.img,hda,w", | "file:/vmimages/7.0-RELEASE-amd64-disc1.iso,hdc:cdrom,r" ] | vif = [ "mac=00:16:3e:7a:a3:48,bridge=xenbr0" ] | #serial = "pty" | | | 1) First of all, I''m not able to get a console to appear either by doing: | | xm create -c Dorian | | or | | xm console Dorian | | | The only way I''m able to get a console is via VNC. I''ve played around | with various config options and have managed to get: | | xenconsole: Could not read tty from store: No such file or directory | | My qemu log shows: | | I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 | I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 | | | 2) Looking at the startup of the FreeBSD kernel I see a couple of APIC | errors. I don''t know if these are actually causing any problems, but I | get kernel panics if I start with apic on in my Xen config file. I''d | include these errors, but they fly by too quickly. However, FreeBSD does | proceed past this point... | | 3) Whether I startup with a disk image I created in KVM or off the | FreeBSD CD, I''m not able to see my disks. If I boot off the CD I get: | | Trying to mount root from ufs:/dev/md0 | | and off my disk image it just asks me for a disk to boot off of once the | kernel has been loaded. I don''t understand why it sees the kernel but | not my other slices. | | | | To get this far, I installed Xen via an RPM that included the | "vmxassist=no" necessary to work on my 64 bit Intel CPU. | | | Any help you can offer would be greatly appreciated! | | | - -- Joe Auty NetMusician: web publishing software for musicians http://www.netmusician.org joe@netmusician.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIayDGCgdfeCwsL5ERAi4KAJ9dURAI/xB61ZcdvAn0ex9J9BPOCACfczSs hhOwk+EtXd+m+0JrmkW6+2I=clCy -----END PGP SIGNATURE----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Igor Chubin
2008-Jul-02 10:06 UTC
Re: [Xen-users] FreeBSD + Xen 3.2.1 + HVM assorted problems
...> 1) First of all, I''m not able to get a console to appear either by doing: > > xm create -c Dorian > > or > > xm console Dorian > > > The only way I''m able to get a console is via VNC. I''ve played around > with various config options and have managed to get: > > xenconsole: Could not read tty from store: No such file or directoryYou are not supposed to attach to the console of an HVM-domain using xm console. You should use vncviewer for it. Although, if you really need it, you should set up the serial console inside the guest domain and after that you may try to connect to it using xm console. Here [1] an explanation how can you set up the serial console in FreeBSD. [1] http://www.freebsd.org/doc/en/books/handbook/serialconsole-setup.html> My qemu log shows: > > I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 > I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 > > > 2) Looking at the startup of the FreeBSD kernel I see a couple of APIC > errors. I don''t know if these are actually causing any problems, but I > get kernel panics if I start with apic on in my Xen config file. I''d > include these errors, but they fly by too quickly. However, FreeBSD does > proceed past this point... > > 3) Whether I startup with a disk image I created in KVM or off the > FreeBSD CD, I''m not able to see my disks. If I boot off the CD I get: > > Trying to mount root from ufs:/dev/md0 > > and off my disk image it just asks me for a disk to boot off of once the > kernel has been loaded. I don''t understand why it sees the kernel but > not my other slices. > > > > To get this far, I installed Xen via an RPM that included the > "vmxassist=no" necessary to work on my 64 bit Intel CPU. > > > Any help you can offer would be greatly appreciated! > > > > -- > Joe Auty > NetMusician: web publishing software for musicians > http://www.netmusician.org > joe@netmusician.org > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Joe Auty
2008-Jul-02 16:03 UTC
Re: [Xen-users] FreeBSD + Xen 3.2.1 + HVM assorted problems
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Igor Chubin wrote: | ... |> 1) First of all, I''m not able to get a console to appear either by doing: |> |> xm create -c Dorian |> |> or |> |> xm console Dorian |> |> |> The only way I''m able to get a console is via VNC. I''ve played around |> with various config options and have managed to get: |> |> xenconsole: Could not read tty from store: No such file or directory | | | You are not supposed to attach to the console of an HVM-domain | using xm console. | You should use vncviewer for it. | | Although, if you really need it, | you should set up the serial console | inside the guest domain and after | that you may try to connect to it | using xm console. | | Here [1] an explanation how can you | set up the serial console in FreeBSD. | | [1] http://www.freebsd.org/doc/en/books/handbook/serialconsole-setup.html | Ahhh.. so this option is only for physical serial consoles that are setup to control the guest. Silly me! | |> My qemu log shows: |> |> I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 |> I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 |> |> |> 2) Looking at the startup of the FreeBSD kernel I see a couple of APIC |> errors. I don''t know if these are actually causing any problems, but I |> get kernel panics if I start with apic on in my Xen config file. I''d |> include these errors, but they fly by too quickly. However, FreeBSD does |> proceed past this point... |> |> 3) Whether I startup with a disk image I created in KVM or off the |> FreeBSD CD, I''m not able to see my disks. If I boot off the CD I get: |> |> Trying to mount root from ufs:/dev/md0 |> |> and off my disk image it just asks me for a disk to boot off of once the |> kernel has been loaded. I don''t understand why it sees the kernel but |> not my other slices. |> |> |> |> To get this far, I installed Xen via an RPM that included the |> "vmxassist=no" necessary to work on my 64 bit Intel CPU. |> |> |> Any help you can offer would be greatly appreciated! |> |> |> |> -- |> Joe Auty |> NetMusician: web publishing software for musicians |> http://www.netmusician.org |> joe@netmusician.org |> |> _______________________________________________ |> Xen-users mailing list |> Xen-users@lists.xensource.com |> http://lists.xensource.com/xen-users | - -- Joe Auty NetMusician: web publishing software for musicians http://www.netmusician.org joe@netmusician.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIa6a4CgdfeCwsL5ERAmSrAKCHCRpTV+3DSajrZ9atYmdpIblnCQCfdojb e4oDFO94myMZD/yrlNfYxIQ=SK6D -----END PGP SIGNATURE----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Freddie Cash
2008-Jul-02 20:31 UTC
Re: [Xen-users] FreeBSD + Xen 3.2.1 + HVM assorted problems
On Tue, Jul 1, 2008 at 11:31 PM, Joe Auty <joe@netmusician.org> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Well, I solved one of my problems (problem #2) - The 64 bit version of > FreeBSD does not work as a guest OS :)Yes it does. 64-bit 6.3 and 7.0 both run in Xen 3.2 HVMs -- if you use AMD CPUs. There''s a bunch of niggles in the Intel CPU virtualisation implementation that cause FreeBSD guests to crash/not work. Supposedly, these are fixed in Xen 3.2.1. However, we don''t use Intel CPUs, so we''ve never been bitten by these issues. If you search the -stable and -current mailing lists, I posted the config files I used to get FreeBSD 6.3 and 7.0 running in Xen 3.2 HVMs on Debian (using the kernel from Ubuntu). However, if you want things to be simple, stop using Xen and stick to KVM, especially with KVM-70 and Linux Kernel 2.6.24. -- Freddie Cash fjwcash@gmail.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Joe Auty
2008-Jul-02 20:50 UTC
Re: [Xen-users] FreeBSD + Xen 3.2.1 + HVM assorted problems
Freddie Cash wrote:> On Tue, Jul 1, 2008 at 11:31 PM, Joe Auty <joe@netmusician.org> wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Well, I solved one of my problems (problem #2) - The 64 bit version of >> FreeBSD does not work as a guest OS :) > > Yes it does. 64-bit 6.3 and 7.0 both run in Xen 3.2 HVMs -- if you > use AMD CPUs. There''s a bunch of niggles in the Intel CPU > virtualisation implementation that cause FreeBSD guests to crash/not > work. Supposedly, these are fixed in Xen 3.2.1. However, we don''t > use Intel CPUs, so we''ve never been bitten by these issues. > > If you search the -stable and -current mailing lists, I posted the > config files I used to get FreeBSD 6.3 and 7.0 running in Xen 3.2 HVMs > on Debian (using the kernel from Ubuntu). > > However, if you want things to be simple, stop using Xen and stick to > KVM, especially with KVM-70 and Linux Kernel 2.6.24. >I beg to differ, as I''ve been wrestling with this non-stop over the last several days. You''re absolutely right that Intel is a sticking point, and I''m on Intel hardware which has compounded the problem. You''re right that this is fixed in 3.2.1 with Xen custom built with the "vmxassist=n" option. My install was derived myself from an RPM I modified to add this option, I have yet to try compiling this by hand since I''ve been getting compile errors... So, you might end up being right here, but so far this has not been the case for me. With my custom Xen install, I can get past the BTX halted errors that occurred before I recompiled Xen via my source RPM, but the FBSD kernel doesn''t want to properly recognize disks that have been presented to the domain. I can take my domain config and point it at the 7.0 disk one 386 CD and have it boot just beautifully, and then point the exact same config at the amd64 disk one CD and have it stuck at "unable to mount root". This is all under CentOS 5.2. You''re right that KVM might ultimately be a better option for me... I''ve gotten FreeBSD to work in KVM weeks ago - it was a piece of cake. What I''d like to do is benchmark i386 FreeBSD in Xen vs. amd64 FreeBSD in KVM to see which is faster. If you''d like I can share my results. I''d also be happy to inform you guys of when/if I get FreeBSD amd64 7 working, as well as provide instructions... -- Joe Auty NetMusician: web publishing software for musicians http://www.netmusician.org joe@netmusician.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users