Virtualbox
文章目录
MacOS 安装
virtualbox 破解程序
| |
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 enp0s81 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 2mkdir /home/<user>/vboxshare sudo mount -t vboxsf -o uid=1000,gid=1000 sharename /home/<user>/vboxshare
不能自动调节分辨率问题
参考:
VirtualBox虚拟机无法更改分辨率的问题__Sshanshan 的博客-CSDN博客
1 2 3 4 5C:\>cd C:\Program Files\Oracle\VirtualBox C:\Program Files\Oracle\VirtualBox>VBoxManage setextradata global GUI/MaxGuestResolution any VBoxManage setextradata global GUI/MaxGuestResolution any
文章作者
上次更新 2023-02-10 (97c415e)