MacOS 安装

virtualbox 破解程序

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
cd "d:\Program Files\Oracle\VirtualBox"

VBoxManage.exe modifyvm "macos sierra" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff

VBoxManage setextradata "macos sierra" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"

VBoxManage setextradata "macos sierra" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"

VBoxManage setextradata "macos sierra" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"

VBoxManage setextradata "macos sierra" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"

VBoxManage setextradata "macos sierra" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

ubuntu virtualbox 不能联网问题

解决方法

  • 把 nat 选成第一个网络设置
  • 设置路由 route

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    
    # * 查询路由表
      # route -n
      Kernel IP routing table
      Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
      0.0.0.0         192.168.137.1   0.0.0.0         UG    0      0        0 enp0s8
      10.0.2.0        0.0.0.0         255.255.255.0   U     0      0        0 enp0s3
      192.168.137.0   0.0.0.0         255.255.255.0   U     0      0        0 enp0s8
      #原文:https://blog.csdn.net/styshoo/article/details/56456102?utm_source=copy
    
    # * 暂时修改路由表,网关gateway设置成nat模式的网关
      # route del default
      # route add default gw 10.0.2.2 dev enp0s3
      # route -n
      Kernel IP routing table
      Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
      default         gateway         0.0.0.0         UG    0      0        0 enp0s3
      10.0.2.0        0.0.0.0         255.255.255.0   U     0      0        0 enp0s3
      192.168.137.0   0.0.0.0         255.255.255.0   U     0      0        0 enp0s8
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    
    # * 永久修改路由表 (注: 试验无效,当时我第二个网卡是nat,第一个是桥接)
      # * # vi /etc/network/interfaces
      auto enp0s3
      iface enp0s3 inet dhcp
      up route add default gw 10.0.2.2 dev enp0s3 # <----
    
      auto enp0s8
      iface enp0s8 inet static
      address 192.168.137.16
      netmask 255.255.255.0
      gateway 192.168.137.1
      up route del default dev enp0s8 # <----

ubuntu 共享文件夹问题

How to access a shared folder in VirtualBox? - Ask Ubuntu

  • 法一

    • 修改组
    1
    2
    3
    4
    
      # 1)
      sudo usermod -aG vboxsf userName
      # 2)
      reboot
  • 法二

    • 设置 gid, uid, mount option
    1
    2
    
      mkdir /home/<user>/vboxshare
      sudo mount -t vboxsf -o uid=1000,gid=1000 sharename /home/<user>/vboxshare

不能自动调节分辨率问题