I tried install windows7 on bhyve these days. and successfully installed it on 
a PC with intel cpu.
but I cannot install it with another pc which have a AMD CPU, does my cpu not 
supported by bhyve?

The following is software and hardware information:

FreeBSD: stable/11 branch r302994.

My startup shell script
————————————
#!/bin/sh

bhyve \
      -c 2 \
      -s 0,hostbridge \
      -s 3,ahci-cd,install.iso \
      -s 4,ahci-hd,win7.img,sectorsize=512 \
      -s 10,virtio-net,tap0 \
      -s 29,fbuf,tcp=0.0.0.0:5900,w=800,h=600 \
      -s 31,lpc \
      -l com1,/dev/nmdm0A \
      -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
      -m 2G -H -w \
      windows7
-------------------------------
./vminstall.sh
fbuf frame buffer base: 0x882800000 [sz 16777216]
wrmsr to register 0x10(0) on vcpu 0
wrmsr to register 0x10(0) on vcpu 1
wrmsr to register 0x10(0x8b7c9950b8a) on vcpu 1
wrmsr to register 0x10(0x8b7c9950b8a) on vcpu 0
vm exit[1]
        reason          SVM
        rip             0xfffff880021d0362
        inst_length     3
        exitcode        0x7b
        exitinfo1       0x3c4022c
        exitinfo2       0xfffff880021d0365
Abort trap (core dumped)

————————————————
gdb bhyve bhyve.core
Core was generated by `bhyve'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libvmmapi.so.5...Reading symbols from 
/usr/lib/debug//usr/lib/libvmmapi.so.5.debug...done.
done.
Loaded symbols for /usr/lib/libvmmapi.so.5
Reading symbols from /lib/libmd.so.6...Reading symbols from 
/usr/lib/debug//lib/libmd.so.6.debug...done.
done.
Loaded symbols for /lib/libmd.so.6
Reading symbols from /lib/libz.so.6...Reading symbols from 
/usr/lib/debug//lib/libz.so.6.debug...done.
done.
Loaded symbols for /lib/libz.so.6
Reading symbols from /lib/libthr.so.3...Reading symbols from 
/usr/lib/debug//lib/libthr.so.3.debug...done.
done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...Reading symbols from 
/usr/lib/debug//lib/libc.so.7.debug...done.
done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /lib/libutil.so.9...Reading symbols from 
/usr/lib/debug//lib/libutil.so.9.debug...done.
done.
Loaded symbols for /lib/libutil.so.9
Reading symbols from /libexec/ld-elf.so.1...Reading symbols from 
/usr/lib/debug//libexec/ld-elf.so.1.debug...done.
done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x000000080119717a in thr_kill () from /lib/libc.so.7
[New Thread 884617000 (LWP 101109/<unknown>)]
[New Thread 801a74f00 (LWP 101108/<unknown>)]
[New Thread 801a74a00 (LWP 101107/<unknown>)]
[New Thread 801a74500 (LWP 101106/<unknown>)]
[New Thread 801a74000 (LWP 101105/<unknown>)]
[New Thread 801a1ab00 (LWP 101104/<unknown>)]
[New Thread 801a1a600 (LWP 101103/<unknown>)]
[New Thread 801a1a100 (LWP 101102/<unknown>)]
[New Thread 801a19c00 (LWP 101101/<unknown>)]
[New Thread 801a19700 (LWP 101100/<unknown>)]
[New Thread 801a19200 (LWP 101099/<unknown>)]
[New Thread 801a18d00 (LWP 101098/<unknown>)]
[New Thread 801a18800 (LWP 101097/<unknown>)]
[New Thread 801a18300 (LWP 101096/<unknown>)]
[New Thread 801a17e00 (LWP 101095/<unknown>)]
[New Thread 801a17900 (LWP 101094/<unknown>)]
[New Thread 801a17400 (LWP 101093/<unknown>)]
[New Thread 801a16f00 (LWP 101092/<unknown>)]
[New Thread 801a16a00 (LWP 101091/<unknown>)]
[New Thread 801a16500 (LWP 101090/<unknown>)]
[New Thread 801a16000 (LWP 101088/<unknown>)]
(gdb) bt
#0  0x000000080119717a in thr_kill () from /lib/libc.so.7
#1  0x000000080119714b in __raise (s=6) at /usr/src/lib/libc/gen/raise.c:52
#2  0x00000008011970b9 in abort () at /usr/src/lib/libc/stdlib/abort.c:65
#3  0x000000000040affc in vm_loop (ctx=0x801a1b080, vcpu=1, startrip=0) at 
/usr/src/usr.sbin/bhyve/bhyverun.c:634
#4  0x0000000000409e81 in fbsdrun_start_thread (param=0x859b28) at 
/usr/src/usr.sbin/bhyve/bhyverun.c:244
#5  0x0000000800eb1aa5 in thread_start (curthread=<value optimized out>) at 
/usr/src/lib/libthr/thread/thr_create.c:289
#6  0x0000000000000000 in ?? ()

————————
Other hardware information
root@fbsd11:~ # sysctl hw.model
hw.model: AMD Phenom(tm) II X4 925 Processor
root@fbsd11:~ # sysctl hw.ncpu
hw.ncpu: 4
root@fbsd11:~ # sysctl hw.physmem
hw.physmem: 8414220288
root@fbsd11:~ # sysctl hw.vmm
hw.vmm.npt.pmap_flags: 507
hw.vmm.svm.num_asids: 64
hw.vmm.svm.disable_npf_assist: 0
hw.vmm.svm.features: 15
hw.vmm.svm.vmcb_clean: 959
hw.vmm.vmx.vpid_alloc_failed: 0
hw.vmm.vmx.posted_interrupt_vector: -1
hw.vmm.vmx.cap.posted_interrupts: 0
hw.vmm.vmx.cap.virtual_interrupt_delivery: 0
hw.vmm.vmx.cap.invpcid: 0
hw.vmm.vmx.cap.monitor_trap: 0
hw.vmm.vmx.cap.unrestricted_guest: 0
hw.vmm.vmx.cap.pause_exit: 0
hw.vmm.vmx.cap.halt_exit: 0
hw.vmm.vmx.initialized: 0
hw.vmm.vmx.cr4_zeros_mask: 0
hw.vmm.vmx.cr4_ones_mask: 0
hw.vmm.vmx.cr0_zeros_mask: 0
hw.vmm.vmx.cr0_ones_mask: 0
hw.vmm.ept.pmap_flags: 0
hw.vmm.vrtc.flag_broken_time: 1
hw.vmm.ppt.devices: 0
hw.vmm.iommu.initialized: 0
hw.vmm.bhyve_xcpuids: 730
hw.vmm.topology.cpuid_leaf_b: 1
hw.vmm.topology.cores_per_package: 1
hw.vmm.topology.threads_per_core: 1
hw.vmm.create: beavis
hw.vmm.destroy: beavis
hw.vmm.force_iommu: 0
hw.vmm.trace_guest_exceptions: 0
hw.vmm.ipinum: 251
hw.vmm.halt_detection: 1

——————————
CPU information from dimes

CPU: AMD Phenom(tm) II X4 925 Processor (2812.77-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x100f42  Family=0x10  Model=0x4  Stepping=2
  
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x802009<SSE3,MON,CX16,POPCNT>
  AMD 
Features=0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!>
  AMD 
Features2=0x37ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT>
  SVM: NP,NRIP,NAsids=64
  TSC: P-state invariant

_______________________________________________
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"

Reply via email to