Re: [pfSense] KVM virtualization: Fatal trap 9: general protection fault while in kernel mode

2014-08-01 Thread compdoc
graphics type='vnc' port='5901' autoport='yes'/

By the way, if you ever install vncserver, that port used for the VM will
cause a conflict



___
List mailing list
List@lists.pfsense.org
https://lists.pfsense.org/mailman/listinfo/list


Re: [pfSense] KVM virtualization: Fatal trap 9: general protection fault while in kernel mode

2014-07-31 Thread Lorenzo Milesi
Hi.
Thanks for your feedback.

 I have used the virtio drivers for nics, storage, and memory ballooning, but
 because of the steps you have to take to switch to virtio, I'm using e1000
 and IDE emulation on this one to keep it simple.

Did you ever had troubles with virtio drivers? I started using them but had 
some issues, so eventually stopped even if not sure that was the real issue. 
Also from discussions on the kvm ml I found out there's no big performance 
improvement compared to the e1000 emulation.

 What host OS are you using, and what hardware is it running on? (real cpu,
 ram, and storage)

Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz, RAM DDR3 1333 MHz, disk MegaRAID SAS 
2208.
The host OS is Ubuntu 12, libvirt 0.9.8, qemu 1.0+noroms-0ubuntu14.15.

 Is it possible to see the results of virsh dumpxml for the guest?

Here it is!



domain type='kvm' id='11'
  namepfsense2_1/name
  uuid0dffd074-abc0-2654-22b4-789b1a99f25f/uuid
  memory2097152/memory
  currentMemory2097152/currentMemory
  vcpu2/vcpu
  os
type arch='x86_64' machine='pc-1.0'hvm/type
boot dev='hd'/
  /os
  features
acpi/
apic/
pae/
  /features
  clock offset='utc'/
  on_poweroffdestroy/on_poweroff
  on_rebootrestart/on_reboot
  on_crashrestart/on_crash
  devices
emulator/usr/bin/kvm/emulator
disk type='block' device='disk'
  driver name='qemu' type='raw'/
  source dev='/dev/vgobs/pfsense2_1'/
  target dev='vda' bus='virtio'/
  alias name='virtio-disk0'/
  address type='pci' domain='0x' bus='0x00' slot='0x06' 
function='0x0'/
/disk
disk type='block' device='cdrom'
  driver name='qemu' type='raw'/
  target dev='hdc' bus='ide'/
  readonly/
  alias name='ide0-1-0'/
  address type='drive' controller='0' bus='1' unit='0'/
/disk
controller type='ide' index='0'
  alias name='ide0'/
  address type='pci' domain='0x' bus='0x00' slot='0x01' 
function='0x1'/
/controller
interface type='bridge'
  mac address='52:54:00:fa:e1:61'/
  source bridge='br0'/
  target dev='vnet1'/
  model type='e1000'/
  alias name='net0'/
  address type='pci' domain='0x' bus='0x00' slot='0x03' 
function='0x0'/
/interface
interface type='bridge'
  mac address='52:54:00:75:80:bd'/
  source bridge='br1'/
  target dev='vnet2'/
  model type='e1000'/
  alias name='net1'/
  address type='pci' domain='0x' bus='0x00' slot='0x04' 
function='0x0'/
/interface
interface type='bridge'
  mac address='52:54:00:90:c7:64'/
  source bridge='br3'/
  target dev='vnet3'/
  model type='e1000'/
  alias name='net2'/
  address type='pci' domain='0x' bus='0x00' slot='0x07' 
function='0x0'/
/interface
serial type='pty'
  source path='/dev/pts/1'/
  target port='0'/
  alias name='serial0'/
/serial
console type='pty' tty='/dev/pts/1'
  source path='/dev/pts/1'/
  target type='serial' port='0'/
  alias name='serial0'/
/console
input type='mouse' bus='ps2'/
graphics type='vnc' port='5901' autoport='yes'/
video
  model type='cirrus' vram='9216' heads='1'/
  alias name='video0'/
  address type='pci' domain='0x' bus='0x00' slot='0x02' 
function='0x0'/
/video
memballoon model='virtio'
  alias name='balloon0'/
  address type='pci' domain='0x' bus='0x00' slot='0x05' 
function='0x0'/
/memballoon
  /devices
  seclabel type='dynamic' model='apparmor' relabel='yes'
labellibvirt-0dffd074-abc0-2654-22b4-789b1a99f25f/label
imagelabellibvirt-0dffd074-abc0-2654-22b4-789b1a99f25f/imagelabel
  /seclabel
/domain

-- 
Lorenzo Milesi - lorenzo.mil...@yetopen.it

YetOpen S.r.l. - http://www.yetopen.it/

___
List mailing list
List@lists.pfsense.org
https://lists.pfsense.org/mailman/listinfo/list


Re: [pfSense] KVM virtualization: Fatal trap 9: general protection fault while in kernel mode

2014-07-31 Thread compdoc
 Did you ever had troubles with virtio drivers?

I have a pfSense guest that runs fine with all virtio drivers (lan,storage)
but you might want to switch back to IDE just to see if your virtio storage
driver is causing the issue. 

Your xml file looks very much like a pfSense guest I have running on Ubuntu
12.04, except mine has these differences:

type arch='x86_64' machine='pc-0.14'hvm/type
(I've had problems with some OSes with the wrong 'machine' type)

disk type='file' device='disk'
driver name='qemu' type='raw' cache='writeback'/
(I use files because I don't have a need to dedicate a disk, and pfSense
uses very little drive space. Also makes it easy to back up the guest by
copying the file)


Speaking of drives, do you have a way to read the SMART values from the hard
drives on your raid controller? Drives can fail slowly, but to know you have
to read the following SMART values:

Reallocated sector count
Current Pending sector count
Uncorrectable sector count
GSense error rate (if the drive has experienced a shock while running. More
likely on laptops)


Also, when you're seeing weird problems, booting and running memtest86 on
the host for several passes will test the systems RAM. Best to let it run 4
or 5 passes, or even letting it run overnight if possible.






___
List mailing list
List@lists.pfsense.org
https://lists.pfsense.org/mailman/listinfo/list


[pfSense] KVM virtualization: Fatal trap 9: general protection fault while in kernel mode

2014-07-30 Thread Lorenzo Milesi
Hi.
I'm reposting here a question I asked on the forum, hoping for a different 
audience.

I'm running pfSense for some time now, since 2.0.something it has always been 
running without issues. With the latest 2.1 releases I'm very rarely running 
into crashes. Today I managet do catch one:

Fatal trap 9: general protection fault while in kernel mode
[...]
Stopped at rn_match+0x25: cmpw $0,0x10(%r13)

Here's a full screenshot of dump caught on console:
https://dl.dropboxusercontent.com/u/706934/pfsense_crash.png

The VM is configured with VirtIO disks, emulated e1000 network cards.
Any hint on what it could be? Where to look at?
thanks
-- 
Lorenzo Milesi - lorenzo.mil...@yetopen.it

YetOpen S.r.l. - http://www.yetopen.it/

___
List mailing list
List@lists.pfsense.org
https://lists.pfsense.org/mailman/listinfo/list


Re: [pfSense] KVM virtualization: Fatal trap 9: general protection fault while in kernel mode

2014-07-30 Thread compdoc
 The VM is configured with VirtIO disks, emulated e1000 network cards.

I use kvm and have had no problems running any of the 2.1 releases. I'm
building a VM server right now that will run pfSense and one other guest OS.

I have used the virtio drivers for nics, storage, and memory ballooning, but
because of the steps you have to take to switch to virtio, I'm using e1000
and IDE emulation on this one to keep it simple. 

What host OS are you using, and what hardware is it running on? (real cpu,
ram, and storage)

Is it possible to see the results of virsh dumpxml for the guest?


___
List mailing list
List@lists.pfsense.org
https://lists.pfsense.org/mailman/listinfo/list