Re: xen_kernel, console and X11

2015-05-11 Thread Roman Bogorodskiy
  Roman Bogorodskiy wrote:

 With this setup I get my system booted and at some point I can see a
 login screen. When I type 'startx' the system freezes. Have to hard
 reboot it to get working again.

Update:

I was bothering Roger off-list and he helped to figure out that the
problem with X11 is closely related to nvidia-driver (the one from
x11/nvidia-driver port). There's no solution how to make it work so far.

Roman Bogorodskiy


pgpHtEZXu_jj8.pgp
Description: PGP signature


Re: xen_kernel, console and X11

2015-05-05 Thread Michael Dexter

On 5/4/15 7:24 AM, Roger Pau Monné wrote:

Another user also reported a similar problem with Xen and X, and it was
solved by the following patch:

https://people.freebsd.org/~royger/0001-xen-introduce-a-newbus-function-to-allocate-unused-m.patch


I got this built and installed and alas, the most I can get is a partial 
DomU boot with it always rebooting the Dom0 at a different stage of DomU 
boot. Note that it instantly panicked if the Dom0 has 8GB RAM which may 
relate to the 4GB mentioned in the patch.


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

Re: xen_kernel, console and X11

2015-05-04 Thread Outback Dingo
On Mon, May 4, 2015 at 10:00 PM, Roger Pau Monné roy...@freebsd.org wrote:

 Hello,

 El 04/05/15 a les 13.57, Outback Dingo ha escrit:
  I'll get back on mine in a day or so as its on an IBM blade server.

 If it's an IBM blade server can't you use the serial console? It would
 be quite helpful in figuring out what's going on.


Ill see if i can find the console cable :) ill also boot from a live cd and
validate my configuration and  ttys



 Roger.

___
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: xen_kernel, console and X11

2015-05-04 Thread Roger Pau Monné
Hello,

El 04/05/15 a les 16.16, Roman Bogorodskiy ha escrit:
   Roger Pau Monné wrote:
 
 Hello,

 El 02/05/15 a les 17.43, Roman Bogorodskiy ha escrit:
 Hi,

 I'm trying to get Xen running and following these instructions:

 https://wiki.freebsd.org/Xen

 and

 http://wiki.xen.org/wiki/FreeBSD_Dom0

 I'm running two days old -CURRENT and ports. I've installed the
 emulators/xen port and followed instructions in pkg-message.

 I'm having some problems with console. I'm wondering if it's possible to
 have X running on the same box running xen kernel?

 It should be, although I had issues while using the vesa driver with a
 FreeBSD Xen Dom0, mainly because Dom0 doesn't have access to the BDA and
 EBDA, I'm working on fixing this in Xen upstream.

 My setup is as follows:
  
  - Intel i5-4690 that supports IOMMU:
 $ sudo acpidump -t|grep DMAR
   DMAR: Length=128, Revision=1, Checksum=90,
 $
  - vm.max_wired=-1 in /etc/sysctl.conf
  - xc0 /usr/libexec/getty Pc xterm   on  secure in
/etc/ttys

 In loader.conf I have:

 xen_kernel=/boot/xen
 xen_cmdline=dom0_mem=2048M dom0_max_vcpus=4 dom0pvh=1 com1=115200,8n1
 guest_loglvl=all loglvl=all console=com1

 So you are trying to use the serial console but you are not getting any
 output? If that's not the case, please drop the com1 parameter and set
 console=vga.
 
 Sorry for confusion, actually 'console=com1' works for me.
 Initially I didn't realize that it doesn't display kernel messages and
 after some failed attempts to run startx and hard reboots it took much
 longer to see a login prompt because I have background fsck disabled.
 
 So, 'console=com1' works unless I do 'startx'.

I'm not sure I would call it working if you don't get any kernel
messages while booting. What happens if you set console=vga?

 
 Do you have anything else in your /boot/loader.conf apart from this two
 lines?


 With this setup I get my system booted and at some point I can see a
 login screen. When I type 'startx' the system freezes. Have to hard
 reboot it to get working again.

 On which device do you get a login prompt? Is it xc0, ttyv0 or ttyu0?
 
 I get a login prompt on ttyv0.
 
 BTW, I use the nvidia driver.

Another user also reported a similar problem with Xen and X, and it was
solved by the following patch:

https://people.freebsd.org/~royger/0001-xen-introduce-a-newbus-function-to-allocate-unused-m.patch

Could you apply it and rebuild your kernel to see if that also solves
your issues?

Roger.

___
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: xen_kernel, console and X11

2015-05-04 Thread Roman Bogorodskiy
  Roger Pau Monné wrote:

 Hello,
 
 El 04/05/15 a les 16.16, Roman Bogorodskiy ha escrit:
Roger Pau Monné wrote:
  
  Hello,
 
  El 02/05/15 a les 17.43, Roman Bogorodskiy ha escrit:
  Hi,
 
  I'm trying to get Xen running and following these instructions:
 
  https://wiki.freebsd.org/Xen
 
  and
 
  http://wiki.xen.org/wiki/FreeBSD_Dom0
 
  I'm running two days old -CURRENT and ports. I've installed the
  emulators/xen port and followed instructions in pkg-message.
 
  I'm having some problems with console. I'm wondering if it's possible to
  have X running on the same box running xen kernel?
 
  It should be, although I had issues while using the vesa driver with a
  FreeBSD Xen Dom0, mainly because Dom0 doesn't have access to the BDA and
  EBDA, I'm working on fixing this in Xen upstream.
 
  My setup is as follows:
   
   - Intel i5-4690 that supports IOMMU:
  $ sudo acpidump -t|grep DMAR
DMAR: Length=128, Revision=1, Checksum=90,
  $
   - vm.max_wired=-1 in /etc/sysctl.conf
   - xc0 /usr/libexec/getty Pc xterm   on  secure in
 /etc/ttys
 
  In loader.conf I have:
 
  xen_kernel=/boot/xen
  xen_cmdline=dom0_mem=2048M dom0_max_vcpus=4 dom0pvh=1 com1=115200,8n1
  guest_loglvl=all loglvl=all console=com1
 
  So you are trying to use the serial console but you are not getting any
  output? If that's not the case, please drop the com1 parameter and set
  console=vga.
  
  Sorry for confusion, actually 'console=com1' works for me.
  Initially I didn't realize that it doesn't display kernel messages and
  after some failed attempts to run startx and hard reboots it took much
  longer to see a login prompt because I have background fsck disabled.
  
  So, 'console=com1' works unless I do 'startx'.
 
 I'm not sure I would call it working if you don't get any kernel
 messages while booting. What happens if you set console=vga?
 
  
  Do you have anything else in your /boot/loader.conf apart from this two
  lines?
 
 
  With this setup I get my system booted and at some point I can see a
  login screen. When I type 'startx' the system freezes. Have to hard
  reboot it to get working again.
 
  On which device do you get a login prompt? Is it xc0, ttyv0 or ttyu0?
  
  I get a login prompt on ttyv0.
  
  BTW, I use the nvidia driver.
 
 Another user also reported a similar problem with Xen and X, and it was
 solved by the following patch:
 
 https://people.freebsd.org/~royger/0001-xen-introduce-a-newbus-function-to-allocate-unused-m.patch
 
 Could you apply it and rebuild your kernel to see if that also solves
 your issues?

Applied this patch on r282416, things didn't change: I do 'startx' in
ttyv0, X prints that it loads extensions, then a black screen with a
cursor appears and things hang.

Roman Bogorodskiy


pgpdijBRhhlSg.pgp
Description: PGP signature


Re: xen_kernel, console and X11

2015-05-04 Thread Roger Pau Monné
El 04/05/15 a les 17.27, Roman Bogorodskiy ha escrit:
   Roger Pau Monné wrote:
 Another user also reported a similar problem with Xen and X, and it was
 solved by the following patch:

 https://people.freebsd.org/~royger/0001-xen-introduce-a-newbus-function-to-allocate-unused-m.patch

 Could you apply it and rebuild your kernel to see if that also solves
 your issues?
 
 Applied this patch on r282416, things didn't change: I do 'startx' in
 ttyv0, X prints that it loads extensions, then a black screen with a
 cursor appears and things hang.

Can you try to enable sshd and see if the system is still responding? Do
you have a serial cable on that box in order to catch any Xen messages?
If not, and the system is still reachable from ssh after running startx
can you paste the output of xl dmesg?

Roger.

___
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: xen_kernel, console and X11

2015-05-02 Thread Michael Dexter

On 5/2/15 8:43 AM, Roman Bogorodskiy wrote:


I'm having some problems with console. I'm wondering if it's possible to
have X running on the same box running xen kernel?

...

When I drop 'console=com1' from 'xen_cmdline', I cannot even see a login
screen. All I can see is a black screen with a white cursor.


From the Wiki document:

Known Limitations

Suppressed FreeBSD kernel messages during boot
Inconsistent behavior under X11

Michael Dexter
___
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: xen_kernel, console and X11

2015-05-02 Thread Outback Dingo
On Sun, May 3, 2015 at 2:55 PM, Michael Dexter edi...@callfortesting.org
wrote:

 On 5/2/15 8:43 AM, Roman Bogorodskiy wrote:

  I'm having some problems with console. I'm wondering if it's possible to
 have X running on the same box running xen kernel?

 ...

 When I drop 'console=com1' from 'xen_cmdline', I cannot even see a login
 screen. All I can see is a black screen with a white cursor.


 From the Wiki document:

 Known Limitations

 Suppressed FreeBSD kernel messages during boot
 Inconsistent behavior under X11


Not helpful at all, im not running X


 Michael Dexter
 ___
 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