1. 程式人生 > >virtualBox Ubuntu共享文件夾設置

virtualBox Ubuntu共享文件夾設置

bsp 設置 this har ons 共享 virtual org var

install ubuntu on virtual

ip vim /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth1
iface eth1 inet static
address 192.168.56.151
netmask 255.255.255.0
network 192.168.56.1
broadcast 192.168.56.255
#gateway 192.168.56.250 auto 。。。。 。。。。。dhcp address 192.168.1.201 netmask 255.255.255.0 gateway 192.168.1.1
share folder

sudo apt-get install linux-headers-generic build-essential dkms
sudo mount /dev/cdrom /media/cdrom
sudo sh /media/cdrom/VBoxLinuxAdditions.run
ignore this error:Could not find the X.Org or XFree86 Window System, skipping.

sudo mount -t vboxsf yanshiShare /var/www/html
vi /etc/rc.local (exit 0 前面)

virtualBox Ubuntu共享文件夾設置