cndaqiang / E5-PC-daily

服务器集群管理遇到的问题和总结
1 stars 0 forks source link

VBOX virtualbox #25

Open cndaqiang opened 4 years ago

cndaqiang commented 4 years ago

错误

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please reinstall virtualbox-dkms package and load the kernel module by executing

'modprobe vboxdrv'

as root.

If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. 

错误

VirtualBox NS_ERROR_FAILURE (0x80004005)

最后原因:又是windows没有正常关机,对ntfs硬盘的保护

cndaqiang commented 4 years ago
Usage: /etc/init.d/virtualbox {start|stop|stop_vms|restart|force-reload|status}
cndaqiang commented 4 years ago

配置文件说明

全局配置

~/.config/VirtualBox/VirtualBox.xml

里面记录了全局的网络配置和个人喜好设置,包含各个虚拟机的位置,但不包含虚拟机的具体设置,讲此文件删除不影响现有虚拟机

<?xml version="1.0"?>
<!--
** DO NOT EDIT THIS FILE.
** If you make changes to this file while any VirtualBox related application
** is running, your changes will be overwritten later, without taking effect.
** Use VBoxManage or the VirtualBox Manager GUI to make changes.
-->
<VirtualBox xmlns="http://www.virtualbox.org/" version="1.12-linux">
  <Global>
    <ExtraData>
      <ExtraDataItem name="GUI/DetailsPageBoxes" value="general,system,preview,display,storage,audio,network,usb,sharedFolders,description"/>
      <ExtraDataItem name="GUI/LastWindowPosition" value="2084,300,960,540"/>
      <ExtraDataItem name="GUI/SplitterSizes" value="319,637"/>
      <ExtraDataItem name="GUI/Statusbar" value="false"/>
      <ExtraDataItem name="GUI/Toolbar/MachineTools/Order" value="None"/>
    </ExtraData>
    <MachineRegistry>
      <MachineEntry uuid="{d206bdb1-aa94-4e43-bf53-7015c6525b3e}" src="/home/cndaqiang/VirtualBox VMs/win10ltsc/win10ltsc.vbox"/>
      <MachineEntry uuid="{8b9ad85c-395e-4e58-902e-f6cc99fb2486}" src="/home/cndaqiang/VirtualBox VMs/xp/xp.vbox"/>
    </MachineRegistry>
    <NetserviceRegistry>
      <DHCPServers>
        <DHCPServer networkName="HostInterfaceNetworking-vboxnet0" IPAddress="192.168.56.100" networkMask="255.255.255.0" lowerIP="192.168.56.101" upperIP="192.168.56.254" enabled="1"/>
      </DHCPServers>
    </NetserviceRegistry>
    <SystemProperties defaultMachineFolder="/home/cndaqiang/VirtualBox VMs" defaultHardDiskFormat="VDI" VRDEAuthLibrary="VBoxAuth" webServiceAuthLibrary="VBoxAuth" LogHistoryCount="3" exclusiveHwVirt="true"/>
    <USBDeviceFilters/>
  </Global>
</VirtualBox>

虚拟机配置

~/VirtualBox\ VMs/xp/xp.vbox

该虚拟机的所有信息,镜像,各种硬件排配置,在全局配置被删除后,直接打开此文件,之前虚拟机的配置会自动和恢复

<?xml version="1.0"?>
<!--
** DO NOT EDIT THIS FILE.
** If you make changes to this file while any VirtualBox related application
** is running, your changes will be overwritten later, without taking effect.
** Use VBoxManage or the VirtualBox Manager GUI to make changes.
-->
<VirtualBox xmlns="http://www.virtualbox.org/" version="1.15-linux">
  <Machine uuid="{8b9ad85c-395e-4e58-902e-f6cc99fb2486}" name="xp" OSType="WindowsXP_64" currentSnapshot="{92e71495-b2be-401f-84a5-e38712f4c452}" snapshotFolder="Snapshots" lastStateChange="2020-03-22T08:16:06Z">
    <MediaRegistry>
      <HardDisks>
        <HardDisk uuid="{191f3f83-99c6-4993-a75f-7d0555ba2bad}" location="xp.vdi" format="VDI" type="Normal">
          <HardDisk uuid="{2a0eabfc-6ab0-497a-8a6c-40349ff9cdce}" location="Snapshots/{2a0eabfc-6ab0-497a-8a6c-40349ff9cdce}.vdi" format="VDI"/>
        </HardDisk>
      </HardDisks>
      <DVDImages>
        <Image uuid="{2a98f373-7b45-40d2-bac8-79ece20288e6}" location="/home/cndaqiang/baidunetdiskdownload/CN_WINXP_PRO_ISO.img.ISO"/>
        <Image uuid="{1b30c4f8-12e8-45dc-bbb0-bb6349ab90ff}" location="/home/cndaqiang/Downloads/VBoxGuestAdditions_5.2.34.iso"/>
        <Image uuid="{e9d37c25-a53a-4a09-b8df-b5da6633b9f9}" location="/home/cndaqiang/baidunetdiskdownload/zh-hans_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74070.iso"/>
      </DVDImages>
    </MediaRegistry>
    <ExtraData>
      <ExtraDataItem name="GUI/Fullscreen" value="true"/>
      <ExtraDataItem name="GUI/LastCloseAction" value="PowerOff"/>
      <ExtraDataItem name="GUI/LastGuestSizeHint" value="1918,957"/>
      <ExtraDataItem name="GUI/LastNormalWindowPosition" value="364,224,640,480,max"/>
      <ExtraDataItem name="GUI/LastScaleWindowPosition" value="321,40,1376,954"/>
      <ExtraDataItem name="GUI/ScaleFactor" value="1"/>
    </ExtraData>
    <Snapshot uuid="{92e71495-b2be-401f-84a5-e38712f4c452}" name="init" timeStamp="2020-03-21T03:32:36Z">
      <Hardware>
        <CPU>
          <PAE enabled="false"/>
          <LongMode enabled="true"/>
          <HardwareVirtExLargePages enabled="false"/>
        </CPU>
        <Memory RAMSize="4000"/>
        <HID Pointing="USBTablet"/>
        <Paravirt provider="Default"/>
        <Boot>
          <Order position="1" device="DVD"/>
          <Order position="2" device="HardDisk"/>
          <Order position="3" device="None"/>
          <Order position="4" device="None"/>
        </Boot>
        <Display VRAMSize="18"/>
        <VideoCapture fps="25" options="ac_enabled=false"/>
        <RemoteDisplay enabled="false"/>
        <BIOS>
          <IOAPIC enabled="true"/>
        </BIOS>
        <USB>
          <Controllers>
            <Controller name="OHCI" type="OHCI"/>
          </Controllers>
        </USB>
        <Network>
          <Adapter slot="0" enabled="true" MACAddress="0800270D85A1" cable="true" type="82540EM">
            <NAT/>
          </Adapter>
        </Network>
        <AudioAdapter driver="Pulse" enabled="true" enabledIn="false"/>
        <GuestProperties>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxControl.exe" value="5.2.34r133893" timestamp="1584761211758921000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxCredProv.dll" value="-" timestamp="1584761211763792000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxDisp.dll" value="5.2.34r133893" timestamp="1584761211760429000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxGINA.dll" value="-" timestamp="1584761211763554000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxGuest.sys" value="5.2.34r133893" timestamp="1584761211767147000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxHook.dll" value="5.2.34r133893" timestamp="1584761211759742000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxMRXNP.dll" value="5.2.34r133893" timestamp="1584761211763245000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxMouse.sys" value="5.2.34r133893" timestamp="1584761211775932000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxSF.sys" value="5.2.34r133893" timestamp="1584761211776808000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxService.exe" value="5.2.34r133893" timestamp="1584761211761861000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxTray.exe" value="5.2.34r133893" timestamp="1584761211761691000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxVideo.sys" value="5.2.34r133893" timestamp="1584761211777127000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/HostVerLastChecked" value="5.2.34" timestamp="1584761223522633000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/InstallDir" value="C:/Program Files/Oracle/VirtualBox Guest Additions" timestamp="1584761211757414000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Revision" value="133893" timestamp="1584761211757308000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Version" value="5.2.34" timestamp="1584761211757123000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/VersionExt" value="5.2.34" timestamp="1584761211757221000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestInfo/OS/Product" value="Windows XP Professional" timestamp="1584761211756545000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestInfo/OS/Release" value="5.1.2600" timestamp="1584761211756704000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestInfo/OS/ServicePack" value="3" timestamp="1584761211757034000" flags=""/>
          <GuestProperty name="/VirtualBox/HostInfo/GUI/LanguageID" value="zh_CN" timestamp="1584761546616062000" flags=""/>
        </GuestProperties>
      </Hardware>
      <StorageControllers>
        <StorageController name="IDE" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true">
          <AttachedDevice type="HardDisk" hotpluggable="false" port="0" device="0">
            <Image uuid="{191f3f83-99c6-4993-a75f-7d0555ba2bad}"/>
          </AttachedDevice>
          <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="1" device="0">
            <Image uuid="{1b30c4f8-12e8-45dc-bbb0-bb6349ab90ff}"/>
          </AttachedDevice>
        </StorageController>
      </StorageControllers>
    </Snapshot>
    <Hardware>
      <CPU>
        <PAE enabled="false"/>
        <LongMode enabled="true"/>
        <HardwareVirtExLargePages enabled="false"/>
      </CPU>
      <Memory RAMSize="4000"/>
      <HID Pointing="USBTablet"/>
      <Paravirt provider="Default"/>
      <Boot>
        <Order position="1" device="DVD"/>
        <Order position="2" device="HardDisk"/>
        <Order position="3" device="None"/>
        <Order position="4" device="None"/>
      </Boot>
      <Display VRAMSize="128"/>
      <VideoCapture fps="25" options="ac_enabled=false"/>
      <RemoteDisplay enabled="false"/>
      <BIOS>
        <IOAPIC enabled="true"/>
      </BIOS>
      <USB>
        <Controllers>
          <Controller name="OHCI" type="OHCI"/>
        </Controllers>
      </USB>
      <Network>
        <Adapter slot="0" enabled="true" MACAddress="0800270D85A1" cable="true" type="82540EM">
          <NAT/>
        </Adapter>
      </Network>
      <AudioAdapter driver="Pulse" enabled="true" enabledIn="false"/>
      <SharedFolders>
        <SharedFolder name="cndaqiang" hostPath="/home/cndaqiang" writable="true" autoMount="true"/>
      </SharedFolders>
      <Clipboard mode="Bidirectional"/>
      <DragAndDrop mode="Bidirectional"/>
      <GuestProperties>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxControl.exe" value="5.2.34r133893" timestamp="1584862841741604000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxCredProv.dll" value="-" timestamp="1584862841746942000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxDisp.dll" value="5.2.34r133893" timestamp="1584862841742292000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxGINA.dll" value="-" timestamp="1584862841746579000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxGuest.sys" value="5.2.34r133893" timestamp="1584862841747566000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxHook.dll" value="5.2.34r133893" timestamp="1584862841741985000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxMRXNP.dll" value="5.2.34r133893" timestamp="1584862841746176000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxMouse.sys" value="5.2.34r133893" timestamp="1584862841747921000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxSF.sys" value="5.2.34r133893" timestamp="1584862841750205000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxService.exe" value="5.2.34r133893" timestamp="1584862841745277000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxTray.exe" value="5.2.34r133893" timestamp="1584862841743180000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxVideo.sys" value="5.2.34r133893" timestamp="1584862841751555000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/HostVerLastChecked" value="5.2.34" timestamp="1584862853478779000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/InstallDir" value="C:/Program Files/Oracle/VirtualBox Guest Additions" timestamp="1584862841740756000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Revision" value="133893" timestamp="1584862841740650000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Version" value="5.2.34" timestamp="1584862841740473000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/VersionExt" value="5.2.34" timestamp="1584862841740558000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/Net/Count" value="0" timestamp="1584864542234361000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/OS/Product" value="Windows XP Professional" timestamp="1584862841739983000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/OS/Release" value="5.1.2600" timestamp="1584862841740059000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/OS/ServicePack" value="3" timestamp="1584862841740364000" flags=""/>
        <GuestProperty name="/VirtualBox/HostInfo/GUI/LanguageID" value="zh_CN" timestamp="1584864546063570000" flags="RDONLYGUEST"/>
      </GuestProperties>
    </Hardware>
    <StorageControllers>
      <StorageController name="IDE" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true">
        <AttachedDevice type="HardDisk" hotpluggable="false" port="0" device="0">
          <Image uuid="{2a0eabfc-6ab0-497a-8a6c-40349ff9cdce}"/>
        </AttachedDevice>
        <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="1" device="0">
          <Image uuid="{1b30c4f8-12e8-45dc-bbb0-bb6349ab90ff}"/>
        </AttachedDevice>
      </StorageController>
    </StorageControllers>
  </Machine>
</VirtualBox>