Spreadfirefox Affiliate Button
Custom Search
Showing posts with label virtualization. Show all posts
Showing posts with label virtualization. Show all posts

Friday, August 27, 2010

SHARING FOLDER ON VIRTUALBOX

I install windows XP on virtualbox due to have to run windows based program. I used it as guest operating system where the host operating system is used Ubuntu. I need to access the ubuntu folder or vice versa to copy file. After trying some configuration, I find the way how to share the folder.

On host side:
1. System -> Administration -> Samba
2. Used password because it need admin right
3. Adduser at Samba
- Open terminal
- Add linux user
>>useradd jack
>>passwd jack
>>smbpasswd -a jack
4. Add user on samba server configuration
Preferences -> Samba User
5. Change network adapter on virtualbox
Default network adapter is NAT, change it to Host-only Adapter

On guest side.
For sharing folder at windows as usual only click right mouse on folder which want to be shared, and choose sharing folder

Note: due to used Host-only Adapter, could not used internet sharing, but if used NAT it could used internet sharing

Sunday, February 15, 2009

VirtualBox Host-Guest Interface Networking (Generic)

This way is a bit harder, but it allows you to see the VirtualMachine as a "real" computer on your local network.

1. Create a new bridge with this command:
# brctl addbr br0

2. If you are not using DHCP, run ifconfig and note down the network configuration of your existing network interface (e.g. eth0), which we will need to copy to the bridge in a minute.

(Note: You will need this settings so make sure you don't lose them!!!)

3. Switch your physical network adapter to "promiscuous" mode so that it will accept Ethernet frames for MAC addresses other than its own (replace eth0 with your network interface):

# ifconfig eth0 0.0.0.0 promisc

(Note: You will lose network connectivity on eth0 at this point.)

4. Add your network adapter to the bridge:

# brctl addif br0 eth0

5. Transfer the network configuration previously used with your physical ethernet adapter to the new bridge. If you are using DHCP, this should work:

# dhclient br0

Note:

Use "dhcpcd -t 30 -h yourhostname br0 &" instead of the above

Otherwise, run ifconfig br0 x.x.x.x netmask x.x.x.x and use the values that you noted down previously.

6. To create a permanent host interface called vbox0 (all host interfaces created in this way must be called vbox followed by a number) and add it to the network bridge created above, use the following command:

VBoxAddIF vbox0 vboxuser br0

Replace vboxuser with the name of the user who is supposed to be able to use the new interface.

(Note: VboxAddIF is located in /opt/VirtualBox-VERSION OF VIRTUALBOX/VBoxAddIF)

Alternatively, you can setup VirtualBox networking through your /etc/rc.conf to enable a bridged connection.

Monday, February 2, 2009

VirtualBox Error Due To Kernel Upgrade

I am using Ubuntu 8.10 and running virtualbox smoothly. But after I upgrade kernel from 2.6.27-7 to 2.6.27-9 vbox have an error when started. The error like this :


I follow the fix that suggested at message pop up like this :


Gotcha, my virtualbox running properly again

Monday, December 15, 2008

Virtual CD-ROM

There is an iso file and we want to open it. Its easy in ubuntu, here is the way :

mkdir fakecd
sudo mount cd.iso fakecd -o loop
where cd.iso is your cd image and fakecd the directory where you want your 'virtual cd' be

or

sudo modprobe loop
sudo mount / / -t iso9660 -o loop

http://ubuntuforums.org

Thursday, October 16, 2008

VMware Virtual Machine on Ubuntu 8.04

unning other OS on ubuntu is a great moment. We could use virtualbox ose, xen or use vmware. I think vmware is more interesting because it doesnt need special linux-header like xen or virtualbox. You could get vmware server freely from its website and you could request serial number freely too.

Step for installing and using vmware :
1. Download the file Vmware-server-1.0.6-91891.tar.gz which size is 102MB from vmware website.
2. Request free serial number from vmware too.
3. Open the folder which contain the vmware and extract it or open terminal and extract it by type sudo tar -xvf Vmware-server-1.0.6-91891.tar.gz
4. cd vmware-server-distrib (folder which contain file extract)
5. ./vmware-install.pl
6. Follow all installer command until finish
7. Run vmware from root
root@hardy:/# vmware

Note :
When you see this message :
/usr/lib/vmware/bin/vmware /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1:version 'GCC_3.4' not found (required by /usr/lib/libcairo.so.2)
.........
.........
Remove the folder libgcc_s.so.1 on /usr/lib/vmware/lib

8. From the first windows choose Localhost
9. Goto 'Help' and choose 'Enter Serial Number'
10. Without serial number, you can not running virtualization
11. Click “Create a new virtual machine”
12. Select “Typical” on Virtual Machine Configuration
13. Choose guest operating system
14. Define the virtual machine name and location
15. Choose network connection
16. Specify disk size
17. Finish
18. Now you could install the new operating system

Saturday, October 11, 2008

Installing VirtualBox in Ubuntu 8.04

Thanks to http://ulyssesonline.com/

Installing Virtual Box in Ubuntu should be an easy endeavor. I have come across several how-to documents that were confusing to say the least. This document will try to simplify the steps involved in installing Virtual Box in Ubuntu 8.04 Hardy Heron. Ok, let’s get started.

1. First, determine the current Linux kernel you are using. Click on Applications > Accessories > Terminal. Type the command:

$ uname -a
Linux penelope 2.6.24-19-generic

The result shows I’m running the Linux 2.6.24-19 kernel.

2. Next, install Virtual Box using the apt-get command. Substitute your current Linux kernel for virtualbox-ose-modules-generic.

$ sudo apt-get install virtualbox-ose virtualbox-ose-source
virtualbox-ose-modules-2.6.24-19-generic

3. Add yourself to the vboxusers group using one of the 3 commands. Choose only one command. I ran the first one.

sudo gpasswd -a `whoami` vboxusers
sudo usermod -Gvboxusers -a `whoami`
sudo adduser $USER vboxusers

4. Log out of your desktop session by hitting CTRL-ALT-Backspace. When you log in, your group membership will be updated.

5. Congratulations. You have successfully installed Virtual Box.