在Mac上开发wp遇到的一点小问题

在c#课上,葵哥讲说,在os x的系统上可能开发不了wp,因为wp的虚拟可能无法在你os x上的虚拟机中虚拟。

作为一个理工科学生,虽然老师说会奔溃,但是抱着好奇和不想在Mac上装Windows的欲望,自己尝试了一下,发现成功装上了,而且wp虚拟机比较完美地运行起来。

嗯,如图所示,比较好地运行起来。


关于配置中遇到的一些问题,我在这里给大家一点经验:

大部分时候我们对于虚拟机的配置都是采用默认的,这样的话,在开wp虚拟机的时候会报错

1.大部分默认是1核的CPU虚拟机,这时候会报第一个错

2.如下图所示,你修改了核心的数量(建议4核)之后,继续运行,发现内存不够,我修改为4096,果断跳出关于虚拟机的配置的错误

这时候你可以打开虚拟机上应用程序管理确定一下


你的HyperOk了

这时候报的错,应该是关于上述的联网的问题

这时候你应该在Mac下找到你的虚拟机文件,然后进一步找到关于你虚拟机的.vmx配置文件,用文本打开,将内容修改为:

.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "10"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsisas1068"
sata0.present = "TRUE"
memsize = "4096"
mem.hotadd = "TRUE"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "虚拟磁盘.vmdk"
sata0:1.present = "TRUE"
sata0:1.fileName = "auto detect"
sata0:1.deviceType = "cdrom-raw"
ethernet0.present = "TRUE"
ethernet0.connectionType = "nat"
ethernet0.virtualDev = "e1000e"
ethernet0.wakeOnPcktRcv = "FALSE"
ethernet0.addressType = "generated"
ethernet0.linkStatePropagation.enable = "TRUE"
usb.present = "TRUE"
ehci.present = "TRUE"
ehci.pciSlotNumber = "34"
usb_xhci.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "hdaudio"
sound.fileName = "-1"
sound.autodetect = "TRUE"
mks.enable3d = "TRUE"
serial0.present = "TRUE"
serial0.fileType = "thinprint"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
chipset.useAcpiBattery = "TRUE"
hpet0.present = "TRUE"
usb.vbluetooth.startConnected = "TRUE"
touchscreen.vusb.present = "TRUE"
chipset.useApmBattery = "TRUE"
tools.syncTime = "TRUE"
displayName = "win8.1"
guestOS = "windows8-64"
nvram = "win8.1.nvram"
virtualHW.productCompatibility = "hosted"
keyboardAndMouseProfile = "52a994f5-2ce0-c216-ee3e-8f04409a"
proxyApps.publishToHost = "FALSE"
tools.upgrade.policy = "upgradeAtPowerCycle"
powerType.powerOff = "soft"
powerType.powerOn = "soft"
powerType.suspend = "soft"
powerType.reset = "soft"
extendedConfigFile = "win8.1.vmxf"
uuid.bios = "56 4d 3d d6 87 99 2e 26-97 04 8d 96 b3 71 0e 82"
uuid.location = "56 4d 3d d6 87 99 2e 26-97 04 8d 96 b3 71 0e 82"
replay.supported = "FALSE"
replay.filename = ""
scsi0:0.redo = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "160"
usb.pciSlotNumber = "32"
ethernet0.pciSlotNumber = "192"
sound.pciSlotNumber = "33"
usb_xhci.pciSlotNumber = "224"
vmci0.pciSlotNumber = "35"
sata0.pciSlotNumber = "36"
scsi0.sasWWID = "50 05 05 66 87 99 2e 20"
ethernet0.generatedAddress = "00:0c:29:71:0e:82"
ethernet0.generatedAddressOffset = "0"
vmci0.id = "-1284436350"
vm.genid = "2511192925426808420"
vm.genidX = "3442080605109698534"
monitor.phys_bits_used = "40"
vmotion.checkpointFBSize = "134217728"
cleanShutdown = "TRUE"
softPowerOff = "FALSE"
usb_xhci:1.speed = "2"
usb_xhci:1.present = "TRUE"
usb_xhci:1.deviceType = "hub"
usb_xhci:1.port = "1"
usb_xhci:1.parent = "-1"
usb_xhci:3.speed = "4"
usb_xhci:3.present = "TRUE"
usb_xhci:3.deviceType = "hub"
usb_xhci:3.port = "3"
usb_xhci:3.parent = "-1"
sata0:1.autodetect = "TRUE"
sata0:1.startConnected = "FALSE"
unity.wasCapable = "TRUE"
gui.fitGuestUsingNativeDisplayResolution = "TRUE"
tools.remindInstall = "FALSE"
toolsInstallManager.updateCounter = "1"
checkpoint.vmState = "win8.1-03503047.vmss"
usb_xhci:2.speed = "8"
usb_xhci:2.present = "TRUE"
usb_xhci:2.deviceType = "hub"
usb_xhci:2.port = "2"
usb_xhci:2.parent = "-1"
hypervisor.cpuid.v0 = "FALSE"
mce.enable = "TRUE"
gui.exitOnCLIHLT = "TRUE"
numvcpus = "4"
cpuid.coresPerSocket = "4"
vhv.enable = "TRUE"
floppy0.present = "FALSE"
usb_xhci:4.present = "TRUE"
usb_xhci:4.deviceType = "hid"
usb_xhci:4.port = "0"
usb_xhci:4.parent = "1"

这样的话,联网问题解决,其实如果你仔细看的话,会发现,关于CPU数量,内存的信息在里面,你可以看看是不是可以直接在这里修改,是不是可以省掉上面的修改过程。

ok,这样就差不多了

最后修改一个地方(真正关于虚拟机问题的)


然后,就运行了~~~~么么da


转载于:https://www.cnblogs.com/wwxtju/p/4358292.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值