Virtualbox Ubuntu 虚拟机命令行挂载共享文件夹及设置静态IP

挂载共享文件夹

参考

步骤

  1. 在Virtualbox 虚拟机的菜单『设备』中,点击『安装增强功能』,之后虚拟机设置中的『存储』项下,会有一个VBoxGuestAdditions.iso。
  2. 进入虚拟机,执行sudo mount /dev/cdrom /media/cdrom,挂载以上的 iso 文件。
  3. 执行cd /media/cdrom,然后执行sudo sh ./VBoxLinuxAdditions.run安装增强功能。
  4. 在虚拟机设置中设置共享文件夹,假设设置『共享文件夹名称』为VMShare。
  5. 假设将共享文件夹挂载在/media/G下,则执行sudo mkdir /media/G
  6. 执行sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) VMShare /media/G,挂载,其中 VMShare 对应以上设置的共享文件夹名称。若出现错误,参见[1]下的Troubleshooting章节。
  7. sudo usermod -a -G vboxsf $USER

设置静态IP

ubuntu 16.04 设置静态IP

END

2018.8.30

posted @ 2018-08-30 16:43  maxuewei2  阅读(1387)  评论(0编辑  收藏  举报
这是一段经过10次base64加密的密文:Vm0wd2VFMUhSblJXYTFwT1ZsWndUMVV3WkRSV2JHeDBZM3BHYUZKc1ZqTldiVEZIVjBaS2RHVkVRbFZXYkhCUVdWWlZlRll5U2tWVWJHUk9ZV3hhVFZkWGRHRlRNazE1Vkd0YVlWSnRhRzlVVnpGdlZWWmFjMWt6YUZOTlJGWjZWakkxVDJGc1NuTmpTRUpXWWxoU00xWkdXbUZqYkhCRlZXeHdWMkV5ZHpCV2FrbzBZekpHYzFOWVpGaGlSa3BoV1ZSS2IxSkdWbk5YYlVacVlraENSbFpYZUhkV01rVjZVV3BhVjJKVVFYaFdha1poWkVaT2MySkdTbWxXUjNoWFZtMTBWMWxXVWtkV1dHaFlZbGhTV0ZSV1pGTk5SbFowVFZoa1ZXSkdiRFJWTW5oelZqSktTRlJZYUZkV1JYQk1WV3BHVDJNeFduUmlSazVzWWxob2IxWXhXbE5TTWxGNFZXdGthbEp0YUhOVk1GVXhWMFpTV0dSSFJsTk5WMUo1V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