设为首页 收藏本站
查看: 1080|回复: 0

[经验分享] VMWare

[复制链接]

尚未签到

发表于 2015-10-9 00:47:38 | 显示全部楼层 |阅读模式
访问原文

[size=1.6em]VMWare

EmulatorsPC EmulatorsBochs
QEMU

PC Virtual Machine MonitorsKVM
Microsoft Virtual PC
Windows Virtual PC
VirtualBox
VMWare

PowerPC EmulatorsPearPC

VMWare is basically the rich man's Virtualizer. It can run any number of "Guest Operating Systems" and can boot from real media or image files. It comes with a GUI that makesit easier to configure than Bochs or QEMU.
Please note: VMware is not an emulator. There is lot of difference between an emulator and a virtual machine monitor. Emulators, like Bochs, emulate each instruction, whereas VMWare (and VirtualPC) try to run most of the code on the host PC directly, and only emulate instructions that create invalid instruction faults or access system-level memory.
The VMware BIOS supports booting from a CD (use mkisofs to make a bootable CD, attach cdrom device to the .iso file) or a floppy drive (attach the floppy disk to a file), plus hard drives.These are the easiest options for loading your own kernel.
Contents
[hide]

  • 1 Versions
  • 2 Guest debugging
  • 3 Triple faults
  • 4 See Also

    • 4.1 External Links

Versions
VMware's usefulness for hobbyists depends on the code's generation. Broadly:

  • Workstation 5.0 (and previous). Not at all helpful for hobbyists. Error codes are designed for reporting to VMware, and there are no developer-centric features.
  • Workstation 5.5 (Player 1.0, Server 1.0). Marginally more useful: a buggy guest operating system traces useful error messages. But in reality, go for something more modern. Supports SMP, if you are writing a multiprocessor kernel.Server and Player are free, which is a perk; go for Server.
  • Workstation 6.0 (Fusion 1.0/1.1). Useful feature: gdb-based guest debug stub support. Useful feature: record-replay (though difficult to use), which might be helpful for reproducing race conditions.
  • ??? (Server 2.0 beta in progress). Current generation; details unavailable.


  • NOTE: VMware Player is totally free for use, and has smaller size than VMware Workstation. The new versions of VMware Player (from 3.0 up) are able to create new virtual machines. Thus this VMM is *perfect* for testing.
Guest debugging
These options are valid in Workstation 6.0+, and should be set in the virtual machine's .vmx file.

  • debugStub.listen.guest32 = "TRUE"
  • debugStub.listen.guest64 = "TRUE"
If using these options, Workstation prints a message "VMware Workstation is listening for debug connection on port 8832." into the vmware.log file. Start a GDB session (using a copy of yourkernel that includes debug information), then:

  • target remote localhost:8832
Standard gdb commands work in this mode (e.g. printing memory, backtrace). Note that this is a debug stub attached to the KERNEL, not a userspace program.
Other useful options:

  • debugStub.listen.guest32.remote = "TRUE" # Allows debugging from a different computer / VM instead of localhost. # The IP for remote debugging will be that of the host.
  • debugStub.listen.guest64.remote = "TRUE" # Same, but for 64-bit code
  • monitor.debugOnStartGuest32 = "TRUE" # Breaks into debug stub on first instruction (warning: in BIOS!) # This will halt the VM at the very first instruction at 0xFFFF0, you could set the next breakpoint to break *0x7c00 to breakwhen the bootloader is loaded by the BIOS
  • debugStub.hideBreakpoints = "TRUE" # Allows gdb breakpoints to work
  • bios.bootDelay = "3000" # Delay booting the BIOS code.
Triple faults
VMware products emulate a triple fault by resetting the machine. On beta products, however, a guest triple fault results in Bug 19580. Sometimes this represents a bug in VMware's emulation;usually, this represents a bug in your kernel.
See Also
External Links

  • http://www.vmware.com/ - VMware homepage.
  • http://communities.vmware.com/index.jspa - Community forums. Engineersare present; if asked politely, some will provide very exact technical details
  • http://www.pagetable.com/?p=25 - A description of a problem encountered using VMwareon AMD Opteron RevC processors.
  • http://stackframe.blogspot.com/2007/04/debugging-linux-kernels-with.html -VMware engineer describes how to debug Linux kernel with debug stub.
  • http://sourceforge.net/projects/open-vm-tools/ - Open source clienttools. Good source for VMWare proprietary hardware and host/client hooks
Category:

  • Emulators

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-124396-1-1.html 上篇帖子: VMware Workstation 9 + Mac OS X 10.8 下篇帖子: intel dpdk 在虚拟机 VMware 中安装部署
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表