Virtualbox/Vmware 使用摘记

VirtualBox

-----------

[问题]
[解决]

[问题] centos下卸载VMware Server 虚拟机的方法
[解决] vmware-installer -u vmware-workstation

[问题] centos下安装VMware Server 虚拟机的方法
[解决] http://www.jb51.net/os/RedHat/31989.html

[问题] Could not open /dev/vmmon: No such file or directory.Please make sure that the kernel module `vmmon' is loaded.
[解决] yum install -y kernel-headers

[问题]
[ingenic@studentworks uboot]$ vmplayer
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
Gtk-Message: Failed to load module "pk-gtk-module": libpk-gtk-module.so: cannot open shared object file: No such file or directory
Logging to /tmp/vmware-ingenic/vmware-modconfig-20608.log
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
Gtk-Message: Failed to load module "pk-gtk-module": libpk-gtk-module.so: cannot open shared object file: No such file or directory
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
Gtk-Message: Failed to load module "pk-gtk-module": libpk-gtk-module.so: cannot open shared object file: No such file or directory
[解决] yum install -y kernel-headers libXtst-devel libXrender-devel xinetd

[问题] vmware host and guest share file
[解决] https://www.vmware.com/support/ws3/doc/ws32_running9.html

下载安装参考:http://dngood.blog.51cto.com/446195/1156769

[问题]:./VMware-Workstation-Full-9.0.4-1945795.x86_64.bundle: line 302: /tmp/vmis.pYKYMQ/install/vmware-installer/vmware-installer: Permission denied
[答案]:sudo mount -o remount,exec /tmp

在 Ubuntu 里直接挂载 VirtualBox/VMware 分区(vdi/vmdk) 文件
参考:http://blog.csdn.net/hongszh/article/details/8558313
sudo vdfuse -t VMDK -f ./Windows\ XP-disk1.vmdk /mnt
mkdir ~/vmdisk
sudo mount /mnt/Partition1 ~/vmdisk


[问题] vbox 导出 vmware player可以使用的虚拟机
[解答] http://ju.outofmemory.cn/entry/47785
       从vbox导出虚拟机一路默认导出*.ova格式的,再导入到vmware player中即可.

[问题] Shared folders expose your files to programs in the virtual machine. This may put your computer and your data at risk. Only enable shared folders if you trust the virtual machine with your data.
[解答]


[问题] I/O APIC
[解决] PIC全称Programmable Interrupt Controller

         I/O APIC Advanced Programmable Interrupt Controller,APIC是为了多核平台而设计的


[问题] Could not insert the VirtualBox Guest Additions disk image file into the virtual machine CentOS, , as the machine has no CD/DVD-ROM drives

[解决] VirtualBox Manager -> CentOS -> Settings -> Storage -> Add Optical Drive


[问题] $ virtualbox
exec: /usr/local/lib/virtualbox/VirtualBox: Permission denied
[解决] sudo chmod +x /usr/local/lib/virtualbox/VirtualBox


[问题] guest centos7 host centos7,  guest 无gui界面, 安装"VirtualBox Guest Additonal CD image"的方法
[解决]  host: 表示是host端的操作, guest 表示是 guest 端的操作

host: Devices -> Insert Guest Additional CD image ....

guest: sudo mount /dev/cdrom /mnt

guest cd /mnt

guest: sudo ./VBoxLinuxAdditons.run

guest: sudo umount /mnt

guest: lsmod | grep vbox


[问题] guest centos7 host centos7,  guest 无gui界面, 设置共享文件夹的方法 
[解决] 安装"VirtualBox Guest Additonal CD image"

host: 通过 gui 设置共享文件夹, 名字为B

guest: sudo mount -t vboxsf -o uid=1000,gid=1000,fmask=002,dmask=002 B /mnt

guest: ls /mnt

guest: sudo umount /mnt


[问题]  virtualbox的虚拟硬盘的大小不会随着系统中文件的减小而自动减少, 但是会随着系统中文件的增加而不断长大,直到设定的最大值. 往上找到将虚拟硬盘缩小的方法
[解决] 打开虚拟机,将虚拟硬盘撑满

sudo  dd  if = /dev/zero  of= /EMPTY  bs=1M
sudo  rm  -f  /EMPTY
关闭虚拟机,现在可以开始压缩虚拟硬盘了
VBoxManage modifyhd mydisk.vdi --compact

参考: https://www.cnblogs.com/findumars/p/3897818.html


[问题]  VMDK: inconsistency between grain table and backup grain table in'/usr/home/harvis/VirtualBox VMs/sol-11_3-vbox/sol-11_3-vbox-disk1.vmdk' (VERR_VD_VMDK_INVALID_HEADER).

[解决] 


[问题]  A critical error has occurred while running the virtual machine and the machine execution has been stopped

[解决]  Settings ->  System -> Acceleration -> Enable VT-x/AMD-V


[问题] The installer failed with exit code 127: Error creating textual authentication agent: Error opening
[解决] sudo vboxmanage extpack install  ~/Downloads/Oracle_VM_VirtualBox_Extension_Pack-5.1.2-108956.vbox-extpack


[问题] VirtualBox: Fatal: Could not read from Boot Medium! System Halted
[解决] 原因是IDE控制器里的虚拟磁盘(.vdi)丢失。
      解决方法是在该虚拟系统的设置中找到“存储”选项,在“SATA控制器”上选择“添加虚拟硬盘”,然后加载你的vdi文件,如我的是WindowsXP.vdi。
      我遇到的问题是从光盘启动了,修改从硬盘启动即可。

[问题]Starting VirtualBox kernel modules                         [FAILED]
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
modprobe: ERROR: could not insert 'vboxdrv': Required key not available
[解决] disable secure boot on my workstation
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sect-signing-kernel-modules-for-secure-boot.html

[问题] VirtualBox WinXP guest blue screen The problem seems to be caused by the following file: intelppm.sys
[解决] WinXP safe mode: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Intelppm
And changing the ‘Start‘ value to ‘4‘.
The problem seems to be caused by the following file: processr.sys
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Processor
changing the ‘Start‘ value to ‘4‘.

[问题] VT-x is disabled in the BIOS for all CPU modes
[解决] "Settings" > System Settings > Processor > Enable the PAE/NX option

[问题] Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
'/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

[问题] VirtualBox rcvboxdrv setup error “Bad argument setup”
[解决] Run 'sudo /usr/lib/virtualbox/vboxdrv.sh setup' instead of the command given by VirtualBox.

[问题] 为Centos6.6安装VirtualBox 5.0的时候,遇到了这样的错误:
       error: Failed dependencies:
       libSDL-1.2.so.0()(64bit) is needed by VirtualBox-4.2-4.2.4_81684_el6-1.x86_64
[解决]
原来安装VirtualBox需要SDL这个包,可以用yum安装,
yum install compat-libstdc++-33 SDL SDL-devel
其实,除了上面的以外还需要gcc, kernel-devel,make, libGL, qt, qt-devel, libXmu,例如,
yum install gcc kernel-devel make libGL qt qt-devel libXmu
好了,现在就可以安装VirtuaBox的rpm包了,

[问题] vbox菜单时而有时而无,怎么回事?
[解决] Ctrl+C 切换有无菜单
=开启/关闭 Scale Mode的快捷键都是 Ctrl C (注意Ctrl是右边的那个不是左边那个)
Ctrl-Home(也是右边的Ctrl键),也可以呼出控制菜单。

The virtual machine window will be now switched to Scale mode. You can go back to windowed mode at any time by pressing Host+C.
Note that the Host key is currently defined as Right Ctrl.
Note that the main menu bar is hidden in scaled mode. You can access it by pressing Host+Home.
其中Host按键在virtualbox中是'Right Ctrl'

【扩展包安装失败的处理方法】
sudo vboxmanage extpack cleanup

[问题] 将非root用户添加到virtual box组
[解决] sudo usermod -a -G vboxusers harvis
其中:vboxusers为组名字
         harvis为用户名

virtualbox中使用usb设备驱动参考:
http://www.blogbus.com/java-android-logs/153894868.html

在安卓的命令行中开启adb(“usb调试”)
shell@acrab:/ # setprop sys.usb.config adb
[25095.464575] android_usb: already disabled
shell@acrab:/ # [25095.484468] adb_open
[25095.489178] adb_bind_config
[25095.495008] EN PHY
[25095.499186] dwc2 dwc2: SRP: Device Mode
[25095.800695] android_work: sent uevent USB_STATE=CONNECTED
[25095.893476] android_usb gadget: high speed config #1: android
[25095.946134] android_work: sent uevent USB_STATE=CONFIGURED
[25096.085572] mtp_open

关闭adb(“usb调试”)
shell@acrab:/ # setprop sys.usb.config none                                    
[25216.135146] dwc2 dwc2: ep1out-bulk: stop OUT transfer
[25216.145963] dwc2 dwc2: session end detected!
[25216.154763] DIS PHY
[25216.159848] adb_release
[25216.165205] android_work: sent uevent USB_STATE=DISCONNECTED
shell@acrab:/ # [25216.185761] android_usb: already disabled

[问题]  找回VirtualBox的“设备”菜单
    安装了增强功能后,想调节屏幕大小,不小心不知胡乱按了什么
    键把“设备”菜单弄没了。  www.2cto.com  
[解决]     
    以下是找回方法:
     
    对应的快捷键:
    全屏模式: Host+F
    无缝模式: Host+L
    自动缩放模式: Host+C
    其中,Host(默认的)是键盘上右边的那个Ctrl键
     
    对应的模式,可以通过上面对应的快捷键去切换过去,
    再次按对应的快捷键,就从该模式正常退出到窗口模式。
       www.2cto.com  
    “设备”所在的菜单在这几种状态下是隐藏的。
     
    分别试试:
     
    Host+F (即右Ctrl+F),
    Host+L (即右Ctrl+L),
    Host+C (即右Ctrl+C)
     
    会有一个键,可以退出到正常的模式。


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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值