NetBSD amd64当前版平台OpenBSD作为domu的尝试
发表于 : 2011-01-13 0:32
有关软件设置请参考 http://gobsd.org/showthread.php?t=2176 这个帖子,在这里不再详述了。
目前存在的问题:
1. 暂时没有考虑设置多核CPU
2. 网速有问题,系统提示:watchdog timeout
配置文件:需要禁用apic,acpi,pae?
网络性能极差,启动后屡屡显示错误,有时无法用dhcp的方式获取网卡IP。
修改配置文件为:也就是设置为固定MAC地址,启动后可以获取网卡,但是仍然网速奇慢,详附件xen-2-2.png
目前还尝试过的方式是在系统启动出现提示符后键入,进入UKC模式,然后禁用apic,acpi和usb:
但是,这样设置方式也无效,网速依然是很慢。
有关watchdog的显示请参阅附件里xen3-1.png的图示。
网上查阅的,还有人提议这样:但是测试后无效。
希望与其他进行过类似测试的朋友共同探讨。下面是OpenBSD的dmesg待摸索。
目前存在的问题:
1. 暂时没有考虑设置多核CPU
2. 网速有问题,系统提示:watchdog timeout
配置文件:
代码: 全选
kernel = '/usr/pkg/lib/xen/boot/hvmloader'
builder = 'hvm'
memory = '1024'
device_model='/usr/pkg/libexec/qemu-dm'
disk = [ 'file:/home/ob.gobsd,ioemu:hda,w',
'file:/home/i386.iso,ioemu:hdb:cdrom,r', ]
# Hostname
name = "ob"
vif = [ 'type=ioemu, bridge=bridge0' ]
boot= 'c'
pae=0
acpi=0
apic=0
vnc = 1
usbdevice = 'tablet' # Helps with mouse pointer positioning
网络性能极差,启动后屡屡显示错误
代码: 全选
re0: watchdog timeout
修改配置文件为:
代码: 全选
kernel = '/usr/pkg/lib/xen/boot/hvmloader'
builder = 'hvm'
memory = '1024'
device_model='/usr/pkg/libexec/qemu-dm'
disk = [ 'file:/home/ob.gobsd,ioemu:hda,w',
'file:/home/i386.iso,ioemu:hdb:cdrom,r', ]
# Hostname
name = "ob"
vif = [ 'mac=00:16:3e:57:9d:3d, bridge=bridge0' ]
boot= 'c'
pae=0
acpi=0
apic=0
vnc = 1
usbdevice = 'tablet' # Helps with mouse pointer positioning
目前还尝试过的方式是在系统启动出现提示符后键入
代码: 全选
boot> boot hd0a:/bsd -c
代码: 全选
UKC> disable apic
UKC> disable acpi
UKC> disable usb
UKC> quit
有关watchdog的显示请参阅附件里xen3-1.png的图示。
网上查阅的,还有人提议这样:
代码: 全选
config -ef /bsd
UKC> disable mpbios
UKC> quit
希望与其他进行过类似测试的朋友共同探讨。下面是OpenBSD的dmesg
代码: 全选
OpenBSD 4.8 (GENERIC) #136: Mon Aug 16 09:06:23 MDT 2010
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Phenom(tm) II X4 955 Processor ("AuthenticAMD" 686-class, 512KB L2 cache) 3.21 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,POPCNT
real mem = 1073278976 (1023MB)
avail mem = 1045762048 (997MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/23/99, BIOS32 rev. 0 @ 0xfa9c0, SMBIOS rev. 2.4 @ 0xe901f (10 entries)
bios0: vendor Xen version "3.3.2" date 01/07/2011
bios0: Xen HVM domU
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfac60/128 (6 entries)
pcibios0: PCI Interrupt Router at 000:01:0 ("Intel 82371SB ISA" rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0x8c00 0xd0000/0x8000
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <QEMU HARDDISK>
wd0: 16-sector PIO, LBA48, 40960MB, 83886080 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <QEMU, QEMU CD-ROM, 0.9.> ATAPI 5/cdrom removable
wd0(pciide0:0:0): using PIO mode 0, DMA mode 2
cd0(pciide0:0:1): using PIO mode 0
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 1 function 2 "Intel 82371SB USB" rev 0x01: irq 5
vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"XenSource Platform Device" rev 0x01 at pci0 dev 3 function 0 not configured
re0 at pci0 dev 4 function 0 "Realtek 8139" rev 0x20: RTL8139C+ (0x7480), irq 5, address 00:16:3e:57:9d:3d
rlphy0 at re0 phy 0: RTL internal PHY
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: density unknown
fd1 at fdc0 drive 1: density unknown
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
biomask ef7d netmask ef7d ttymask ffff
mtrr: Pentium Pro MTRR support
nvram: invalid checksum
uhidev0 at uhub0 port 2 configuration 1 interface 0 "QEMU 0.9.0 QEMU USB Tablet" rev 0.10/0.00 addr 2
uhidev0: iclass 3/1
uhid0 at uhidev0: input=6, output=0, feature=0
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
clock: unknown CMOS layout