I. Installatinon
1. Downloading from http://virtualboxes.org/images/ubuntu-server/ latest image2. Downloading from https://www.virtualbox.org/wiki/Downloads VirtualBox package for OS X
3. Installing VirtualBox
4. Execute downloaded image, VirtualBox will import it.
5. Disable USB by going to Settings - Ports - USB and uncheck "Enable USB 2.0 (EHCI) Controller"
6. Start Ubuntu by clicking Start button
7. Default usernames and passwords, where required, can be found next to the download link of each image http://virtualboxes.org/images/ubuntu-server/
II. Config Network between Host and Guest
1. Shutdown Ubuntu if it run
2. Add Host-only Adapter by going to Settings - Network - Adapter 2, check Enable Network Adapter, choose Host-only Adapter and select the only possible name "vboxnet0"
3. Start Ubuntu
4. execute: sudo nano /etc/network/interfacesand change text to the following
# The loopback network interface5. Now you can config Ubuntu by SSH from the host terminal
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.56.2
netmask 255.255.255.0
III. Shared Folder
1. Installing Virtualbox Guest Additions1.1. Start Ubuntu
1.2. Devices - Insert Guests Additions CD Image...
1.3. Sometimes I have message, but it's fine
1.4. mkdir media
1.5. sudo mount /dev/cdrom /media
1.6. sudo sh ./VBoxLinuxAdditions.run
1.7. sudo reboot
2. Devices - Shares Folders Settings...
3. Add your shared folder, for example "shared"
4. mkdir shared
5. sudo mount -t vboxsf shared shared
Poblems & Fixes
question: mount: unknown filesystem type 'vboxsf'answer: Install Virtualbox Guest Additions
question: bash doesn't keep history
answer: chown user:user .bash_history
Комментариев нет:
Отправить комментарий