RE: FreeBSD DomU: Upgrade from 7.2 to 8.0

2010-08-06 Thread G VM

It seems to be fixed for me. Using hvm I can now start a 7.3-FreeBSD cd.

I hope this helps someone:
I went from kernel-xen-2.6.18-164.9.1.el5 to 
kernel-xen-2.6.18-194.8.1.el5.centos.plus.
And also updated xen(now version 3.4.3): xen-libs-3.4.3-1.el5,...

rpm -qa |grep xen
kernel-xen-2.6.18-164.9.1.el5
kmod-drbd83-xen-8.3.8-1.el5.centos
kernel-xen-devel-2.6.18-194.8.1.el5.centos.plus
kmod-drbd83-xen-8.3.5-1.el5
xen-3.4.3-1.el5
kernel-xen-2.6.18-194.8.1.el5.centos.plus
kmod-fuse-xen-2.7.4-21.el5
kernel-xen-devel-2.6.18-194.3.1.el5
xen-devel-3.4.3-1.el5
kernel-xen-2.6.18-194.3.1.el5
kernel-xen-devel-2.6.18-164.9.1.el5
xen-libs-3.4.3-1.el5

I used the RPMs provided from here:
http://www.gitco.de/repo/


 From: drums_...@hotmail.com
 To: a...@nirgal.de; mikemacl...@gmail.com
 Date: Tue, 20 Jul 2010 18:58:06 +0200
 CC: freebsd-xen@freebsd.org
 Subject: RE: FreeBSD DomU: Upgrade from 7.2 to 8.0
 
 
 Forgot this: what is currently working for me is:
 FreeBSD vpn-gateway 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Fri Oct  2 
 12:21:39 UTC 2009 
 r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
 
 
 
 Do note that I tried multiple install media and it seemed that nothing above 
 7.2 was actually working.
 
  
 
 
 
 
  From: a...@nirgal.de
  To: mikemacl...@gmail.com
  Date: Tue, 20 Jul 2010 18:05:24 +0200
  CC: freebsd-xen@freebsd.org
  Subject: Re: FreeBSD DomU: Upgrade from 7.2 to 8.0
  
  Hi,
  
  Am 20.07.2010 um 17:42 schrieb Michael MacLeod:
  
   The XENHVM config, if I'm not mistaken, is pretty well only  
   supported when
   using an amd64 version of FreeBSD. Also, it will require some slight  
   changes
   to the config file. Specifically, the line vif =  
   [ 'type=ioemu,bridge=eth0'
   ] from the config file I posted earlier would have to be changed to  
   vif =
   [ 'bridge=eth0' ], because you aren't emulating an re NIC any  
   longer. The
   XENHVM kernel is an HVM style kernel but it loads paravirtualized NIC
   drivers (same with the block devices as well).
  
  Thanks for the additional information. I have requested the current  
  configuration of my DomU from my provider.
  
   Who is your provider that is using 3.3.1?
  
  A small company in southern germany. They are providing me a custom  
  solution, since no one seems to be able to provide a virtual FreeBSD  
  of the shelf in germany. The bright side: the service is top notch.
  Please write me off-list, if you need a contact.
  
  Regards,
  
  Alex
  ___
  freebsd-xen@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-xen
  To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org
 
 ___
 freebsd-xen@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-xen
 To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org
  
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: FreeBSD DomU: Upgrade from 7.2 to 8.0

2010-07-20 Thread Gót András

Hi,

How's your domU config file for xen?

Regards,
Andras


Alexander Johannes wrote:

Hello,

i'm running a small FreeBSD-Box as XEN-DomU.

# uname -a
FreeBSD box.nirgal.de 7.2-RELEASE-p8 FreeBSD 7.2-RELEASE-p8 #0: Wed 
May 26 03:08:50 UTC 2010 
r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386


The Dom0 is run by my provider with the following System (this is some 
Ubuntu-Flavor):


Linux 2.6.18.8-xen #3 SMP Sat Sep 20 11:15:30 UTC 2008 x86_64
xen-shell 1.2.83 running on Xen version 3.3.1

As FreeBSD 7.2 has reached EOL, i'm forced to update my System sooner or 
later to the current version.


Unfortunately neither FreeBSD 7.3 nor 8.0 will even boot, and are 
stopping with


panic: vm_fault: fault on nofault entry, addr: c32ef000

after printing real and avaliable memory.

After reading the archives of this list, this seems to be a common 
problem, which /may/ be solved by building a custom kernel.


So i figure, that i have to check out the sources for FreeBSD 8 
(RELENG_8) and build a new Kernel with the configuration from 
/usr/src/sys/i386/conf/XEN. Is the result sufficient or do i have to do 
more than that?


Any advise would be appreciated.

Alex
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org

___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: FreeBSD DomU: Upgrade from 7.2 to 8.0

2010-07-20 Thread Alexander Johannes

Hello,

Am 20.07.2010 um 12:52 schrieb Gót András:


How's your domU config file for xen?


Up until 7.2 i have used the GENERIC Kernel and never built one of my  
own, because there was no need. But as 7.3 or 8.0 will not boot up  
with their GENERIC Kernels (tested with the Live-DVD, error described  
in my first mail), i think i have to built a custom kernel.


I plan to use the config from

  /usr/src/sys/i386/conf/XEN

You can find it there:

  
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/conf/XEN?rev=1.9.2.1;content-type=text%2Fplain;only_with_tag=RELENG_8_0

Note: i just want to use hvm-virtualization, paravirtualization is not  
necessary.


Alex___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


RE: FreeBSD DomU: Upgrade from 7.2 to 8.0

2010-07-20 Thread G VM

From: mikemacl...@gmail.com
Date: Tue, 20 Jul 2010 07:53:04 -0400
Subject: Re: FreeBSD DomU: Upgrade from 7.2 to 8.0
To: drums_...@hotmail.com
CC: a...@nirgal.de; got.and...@deployis.eu; freebsd-xen@freebsd.org

If you're booting the XEN kernel, it's going to need to be running in 
paravirtualized mode. It lacks drivers for non-XEN devices. Also, I have found 
the XEN kernel running in paravirtualized mode to be nowhere near stable enough 
for production use. I have used 8.0 with the GENERIC kernel in several domUs 
(running on Xen 3.4.2 and 4.0) successfully.



This config file will work for an 8.0 box:

# Name of the domU
name = freebsd-01
# HVM options
kernel = /usr/lib/xen/boot/hvmloader
device_model = /usr/lib64/xen/bin/qemu-dm


builder = 'hvm'
# Virtual hardware configuration
vcpus = 1
memory = 512
disk = [ 'phy:/dev/SystemDisks/freebsd-01.root,hda,w' ]
vif = [ 'type=ioemu,bridge=eth0' ]
# Console and other options


serial = 'pty'
vfb = [ 'vnc=1,vncdisplay=1' ]


On Tue, Jul 20, 2010 at 7:45 AM, G VM drums_...@hotmail.com wrote:






 From: a...@nirgal.de

 To: got.and...@deployis.eu

 Date: Tue, 20 Jul 2010 13:31:48 +0200

 CC: freebsd-xen@freebsd.org

 Subject: Re: FreeBSD DomU: Upgrade from 7.2 to 8.0



 Hello,



 Am 20.07.2010 um 12:52 schrieb Gót András:



  How's your domU config file for xen?



 Up until 7.2 i have used the GENERIC Kernel and never built one of my

 own, because there was no need. But as 7.3 or 8.0 will not boot up

 with their GENERIC Kernels (tested with the Live-DVD, error described

 in my first mail), i think i have to built a custom kernel.



 I plan to use the config from



/usr/src/sys/i386/conf/XEN



 You can find it there:




 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/conf/XEN?rev=1.9.2.1;content-type=text%2Fplain;only_with_tag=RELENG_8_0





 Note: i just want to use hvm-virtualization, paravirtualization is not

 necessary.



 Alex___

 freebsd-xen@freebsd.org mailing list

 http://lists.freebsd.org/mailman/listinfo/freebsd-xen

 To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org



I had/have the exact same issue. I always used hvm with FreeBSD 7.2

From the moment I upgraded to 7.3 or 8.0, I get a kernel panic.



Even the install cd does not boot for 7.3 or 8.0.



I did not fixed this yet. I would think that this is happening since there is 
some virtual stuff included in the kernel by default now and this was not there 
in 7.2

Maybe you can just disable hvm or something in the kernel config. As IIRC with 
HVM the OS is not aware that it is virtualised.



Please let me know if you find a solution!



Greetings!

  
___

freebsd-xen@freebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-xen

To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org



I use a config with HVM(just like the one above). There are virtualization 
extensions on the cpu and those are enabled. (do note that I am using an AMD 
chip).
It just does not run 8.0 and 7.3(nor the 64 bit nor the 32bit cd).
7.2 is running very stable for me.

So I would expect that this wont fix this issue.

Greetings!
  
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: FreeBSD DomU: Upgrade from 7.2 to 8.0

2010-07-20 Thread Alexander Johannes

Hi,

Am 20.07.2010 um 13:53 schrieb Michael MacLeod:


If you're booting the XEN kernel, it's going to need to be running in
paravirtualized mode. It lacks drivers for non-XEN devices. Also, I  
have
found the XEN kernel running in paravirtualized mode to be nowhere  
near

stable enough for production use.


Thanks for clarifying this.

So good news is: i don't need to install a XEN-Kernel. Bad news:  
GENERIC won't boot out of the box.



I have used 8.0 with the GENERIC kernel in
several domUs (running on Xen 3.4.2 and 4.0) successfully.


My provider is using XEN 3.3.1 - are there any known problems?


This config file will work for an 8.0 box:

snip

I have to ask my provider for that.

After a litte digging i also found the configuration for a XENHVM- 
Kernel:


  /usr/src/sys/amd64/conf/XENHVM

Is this one maybe worth a try?

Regards,

Alex
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


RE: FreeBSD DomU: Upgrade from 7.2 to 8.0

2010-07-20 Thread G VM



 Did tried XENHVM already and this did not work for me (do note that I might 
have not done this thoroughly).
YMMV ;)


Greetings





 From: a...@nirgal.de
 To: mikemacl...@gmail.com
 Date: Tue, 20 Jul 2010 17:21:22 +0200
 CC: freebsd-xen@freebsd.org
 Subject: Re: FreeBSD DomU: Upgrade from 7.2 to 8.0
 
 Hi,
 
 Am 20.07.2010 um 13:53 schrieb Michael MacLeod:
 
  If you're booting the XEN kernel, it's going to need to be running in
  paravirtualized mode. It lacks drivers for non-XEN devices. Also, I  
  have
  found the XEN kernel running in paravirtualized mode to be nowhere  
  near
  stable enough for production use.
 
 Thanks for clarifying this.
 
 So good news is: i don't need to install a XEN-Kernel. Bad news:  
 GENERIC won't boot out of the box.
 
  I have used 8.0 with the GENERIC kernel in
  several domUs (running on Xen 3.4.2 and 4.0) successfully.
 
 My provider is using XEN 3.3.1 - are there any known problems?
 
  This config file will work for an 8.0 box:
 snip
 
 I have to ask my provider for that.
 
 After a litte digging i also found the configuration for a XENHVM- 
 Kernel:
 
/usr/src/sys/amd64/conf/XENHVM
 
 Is this one maybe worth a try?
 
 Regards,
 
 Alex
 ___
 freebsd-xen@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-xen
 To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org
  
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: FreeBSD DomU: Upgrade from 7.2 to 8.0

2010-07-20 Thread Michael MacLeod
The XENHVM config, if I'm not mistaken, is pretty well only supported when
using an amd64 version of FreeBSD. Also, it will require some slight changes
to the config file. Specifically, the line vif = [ 'type=ioemu,bridge=eth0'
] from the config file I posted earlier would have to be changed to vif =
[ 'bridge=eth0' ], because you aren't emulating an re NIC any longer. The
XENHVM kernel is an HVM style kernel but it loads paravirtualized NIC
drivers (same with the block devices as well).

Who is your provider that is using 3.3.1?

On Tue, Jul 20, 2010 at 11:25 AM, G VM drums_...@hotmail.com wrote:



  Did tried XENHVM already and this did not work for me (do note that I
 might have not done this thoroughly).
 YMMV ;)


 Greetings





  From: a...@nirgal.de
  To: mikemacl...@gmail.com
  Date: Tue, 20 Jul 2010 17:21:22 +0200

  CC: freebsd-xen@freebsd.org
  Subject: Re: FreeBSD DomU: Upgrade from 7.2 to 8.0
 
  Hi,
 
  Am 20.07.2010 um 13:53 schrieb Michael MacLeod:
 
   If you're booting the XEN kernel, it's going to need to be running in
   paravirtualized mode. It lacks drivers for non-XEN devices. Also, I
   have
   found the XEN kernel running in paravirtualized mode to be nowhere
   near
   stable enough for production use.
 
  Thanks for clarifying this.
 
  So good news is: i don't need to install a XEN-Kernel. Bad news:
  GENERIC won't boot out of the box.
 
   I have used 8.0 with the GENERIC kernel in
   several domUs (running on Xen 3.4.2 and 4.0) successfully.
 
  My provider is using XEN 3.3.1 - are there any known problems?
 
   This config file will work for an 8.0 box:
  snip
 
  I have to ask my provider for that.
 
  After a litte digging i also found the configuration for a XENHVM-
  Kernel:
 
  /usr/src/sys/amd64/conf/XENHVM
 
  Is this one maybe worth a try?
 
  Regards,
 
  Alex
  ___
  freebsd-xen@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-xen
  To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org

___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: FreeBSD DomU: Upgrade from 7.2 to 8.0

2010-07-20 Thread Alexander Johannes

Hi,

Am 20.07.2010 um 17:42 schrieb Michael MacLeod:

The XENHVM config, if I'm not mistaken, is pretty well only  
supported when
using an amd64 version of FreeBSD. Also, it will require some slight  
changes
to the config file. Specifically, the line vif =  
[ 'type=ioemu,bridge=eth0'
] from the config file I posted earlier would have to be changed to  
vif =
[ 'bridge=eth0' ], because you aren't emulating an re NIC any  
longer. The

XENHVM kernel is an HVM style kernel but it loads paravirtualized NIC
drivers (same with the block devices as well).


Thanks for the additional information. I have requested the current  
configuration of my DomU from my provider.



Who is your provider that is using 3.3.1?


A small company in southern germany. They are providing me a custom  
solution, since no one seems to be able to provide a virtual FreeBSD  
of the shelf in germany. The bright side: the service is top notch.

Please write me off-list, if you need a contact.

Regards,

Alex
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


RE: FreeBSD DomU: Upgrade from 7.2 to 8.0

2010-07-20 Thread G VM

This is my config file with which it fails:



name = prod1
uuid = 25c2ae8fad757300339f0a8dd0adcba0
maxmem = 500
memory = 500
vcpus = 1
builder = hvm
kernel = /usr/lib/xen/boot/hvmloader
boot = c
pae = 1
#acpi = 1
#apic = 1
on_poweroff = destroy
on_reboot = restart
on_crash = restart
device_model = /usr/lib64/xen/bin/qemu-dm
sdl = 0
vnc = 1
# vncunused = 0
vncdisplay = 0
disk = [ file:/var/lib/xen/images/freebsd72-prod-new.img,hda,w, 
phy:/dev/loop0,hdc:cdrom,r, phy:/dev/loop1,hdd:cdrom,r ]
serial = pty
vif=['bridge=br0,mac=00:16:ef:45:12:22']


 
I wonder if changing the last line would fix this.
Using centos 5 with these versions:

rpm -qa | grep xen
kernel-xen-2.6.18-164.9.1.el5
xen-3.4.2-2.el5
kmod-drbd83-xen-8.3.5-1.el5
xen-devel-3.4.2-2.el5
kmod-fuse-xen-2.7.4-21.el5
kernel-xen-devel-2.6.18-194.3.1.el5
kernel-xen-2.6.18-194.3.1.el5
kernel-xen-devel-2.6.18-164.9.1.el5
xen-libs-3.4.2-2.el5



Linux hostname 2.6.18-164.9.1.el5xen #1 SMP Tue Dec 15 TIME TIMEZONE 2009 
x86_64 x86_64 x86_64 GNU/Linux



processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 15
model   : 67



As far as I have read this cpu should work.


Any ideas on how to fix this issue?



 From: a...@nirgal.de
 To: mikemacl...@gmail.com
 Date: Tue, 20 Jul 2010 18:05:24 +0200
 CC: freebsd-xen@freebsd.org
 Subject: Re: FreeBSD DomU: Upgrade from 7.2 to 8.0
 
 Hi,
 
 Am 20.07.2010 um 17:42 schrieb Michael MacLeod:
 
  The XENHVM config, if I'm not mistaken, is pretty well only  
  supported when
  using an amd64 version of FreeBSD. Also, it will require some slight  
  changes
  to the config file. Specifically, the line vif =  
  [ 'type=ioemu,bridge=eth0'
  ] from the config file I posted earlier would have to be changed to  
  vif =
  [ 'bridge=eth0' ], because you aren't emulating an re NIC any  
  longer. The
  XENHVM kernel is an HVM style kernel but it loads paravirtualized NIC
  drivers (same with the block devices as well).
 
 Thanks for the additional information. I have requested the current  
 configuration of my DomU from my provider.
 
  Who is your provider that is using 3.3.1?
 
 A small company in southern germany. They are providing me a custom  
 solution, since no one seems to be able to provide a virtual FreeBSD  
 of the shelf in germany. The bright side: the service is top notch.
 Please write me off-list, if you need a contact.
 
 Regards,
 
 Alex
 ___
 freebsd-xen@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-xen
 To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org
  
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


RE: FreeBSD DomU: Upgrade from 7.2 to 8.0

2010-07-20 Thread G VM

Forgot this: what is currently working for me is:
FreeBSD vpn-gateway 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Fri Oct  2 
12:21:39 UTC 2009 
r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386



Do note that I tried multiple install media and it seemed that nothing above 
7.2 was actually working.

 




 From: a...@nirgal.de
 To: mikemacl...@gmail.com
 Date: Tue, 20 Jul 2010 18:05:24 +0200
 CC: freebsd-xen@freebsd.org
 Subject: Re: FreeBSD DomU: Upgrade from 7.2 to 8.0
 
 Hi,
 
 Am 20.07.2010 um 17:42 schrieb Michael MacLeod:
 
  The XENHVM config, if I'm not mistaken, is pretty well only  
  supported when
  using an amd64 version of FreeBSD. Also, it will require some slight  
  changes
  to the config file. Specifically, the line vif =  
  [ 'type=ioemu,bridge=eth0'
  ] from the config file I posted earlier would have to be changed to  
  vif =
  [ 'bridge=eth0' ], because you aren't emulating an re NIC any  
  longer. The
  XENHVM kernel is an HVM style kernel but it loads paravirtualized NIC
  drivers (same with the block devices as well).
 
 Thanks for the additional information. I have requested the current  
 configuration of my DomU from my provider.
 
  Who is your provider that is using 3.3.1?
 
 A small company in southern germany. They are providing me a custom  
 solution, since no one seems to be able to provide a virtual FreeBSD  
 of the shelf in germany. The bright side: the service is top notch.
 Please write me off-list, if you need a contact.
 
 Regards,
 
 Alex
 ___
 freebsd-xen@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-xen
 To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org
  
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org