View Full Version : virtual box help
Sandip_2u
06-13-2009, 06:54 AM
hi,
i have a windows xp running as host.
and a mandriva-2009 gome as guest on virtual box....
so my problem is...
how can i create a shared folder between this two?????
plz help
rasputin007
06-13-2009, 08:05 PM
OK, start VirtualBox, but do not power on Mandriva, just highlight it. Now select Settings and under there is a menu called Shared Folders, click that. In the right hand side you can add, edit or delete new shared folders.
To add just click the top of the 3 icons (tooltip should say Add new shared folder), now select any folder you want to shared and give it a name you want (NO spaces is best).
For example you want to share the folder C:\firmwares\em30, so give it the name "em30".
OK, now power on Mandriva and after booting and logged in as root or another user, open a Terminal and enter (if NOT root then first "su" then enter the root-password) -this is needed as only root can mount folders.
Now enter each line followed by pressing the Enter/Return button
"cd /"
"mkdir em30FW"
"mount -t vboxsf em30 /em30FW"
DONE!
To explain the command line:
mount: is the mount command
-t vboxsf: is the file system of the shared folder
em30: is the shared folder name you gave it in the Settings
em30FW is the folder or mountpoint where you mount this shared folder. Each shared folder needs an existing mountpoint!!
Mind you this will only work AFTER you installed the VBoxGuest Addition.
In case you have not done this, power down Mandriva and open the Settings menu again, there in the CD/DVD-ROM menu tick the "ISO Image File", which should show the VBoxGuest Addition.iso file (~27MB). You have to change this menu as soon as you have installed the Guest Additions, otherwise you will have no access to the CD/DVD drive.
Now power on Mandriva. On the top of the window is a Vbox toolbar with 3 menus (Machine Devices Help), click on the Devices and at the bottom is Install Guest Additions.
Now comes the tricky bit. Open the Mandriva file manager and search under /mnt or /media if you can see the "mounted" iso file which should have a few executables, Windows and linux extentions. Pick the right one for your Linux OS (32 or 64 bit), open a terminal in that folder and enter the file name of that executable and press enter. For example, your Mandriva is a 32 bit OS, so you would need the VboxLinuxAddition-x86.run, then the command line would be
"sh VboxLinuxAddition-x86.run"
Follow the instructions, if there are any.
I think you have to power down and up again so that the kernel can load the vbox drivers.
Now you can mount the shared folder.
A little hint: I created a small shell script (go.sh) which just includes that mount command line - 4 actually for 4 shared folders, then I copied that file onto my desktop. So now I just have to double click that file as soon as I have logged in and all shared folders are mounted.
This is not a perfect guide, but a rough point into the directions you have to go. You still have to do some trial and error, hopefully not much. :D
EAlex
06-13-2009, 09:28 PM
Ras you frikin legend mate! Thanks! This is gonna help.
nik1234
09-21-2009, 06:34 AM
unsquashing cg 36....how to do that in virtualbox
unsquashfs -d /home/nik/Desktop/share/local -f / " /home/nik/Desktop/shareCG36.smg
but it says read on destination failed as its a directory !!!
i have already copied mksquash n unsquash.exe to /usr.bin ......
kindly guide whts wrong....
nik1234
09-21-2009, 12:19 PM
look at this .....pls guide guying wht could be the problem
http://i37.tinypic.com/2jbpslc.jpg
nik1234
09-22-2009, 04:30 PM
nobody to help :(
rasputin007
09-22-2009, 09:45 PM
First of all there is a little mistake in the terminal screenshot: a missing d
it should be
unsquashfs -d /usr/local -f /usr/local/cg36.smg
-d: determins the directory where the smg file gets unsquahsed
-f : means that any existing files in that directory will be overwritten (-f=force!)
Personally I would not unsquash in the same directory where the cg36.smg is, far too messy as you will have tons of new folders that mix with the existing folders and you will not know what folder belongs to the cg36 and what not. Apart from that a mksquash is impossible as you would squash ALL folders and files in /usr/local into a new cg36.smg and that cg36.smg will never ever be able to be flashed (far too big!). You have in /usr/local already a /bin and a /sbin directory, if you unsquash the cg36.smg into /usr/local then those folders will be overwritten, which potentially screws your Linux OS !!!!!!!!!
Therefore create a new folder, call it "cg36", in /usr/local and unsquash into that.
unsquashfs -d /usr/local/cg36 -f /usr/local/cg36.smg
Unfortunately you did not say what unsquashfs version you are using, as I have heard that squashfs 4.0 has a potential problem with unsquashing version 2.1 files. I still use the unsquashfs version 3.3.7 and that works without a problem. Most new Linux distros have squshfs 4.0 now, but luckily Debian is slow on bleeding edge stuff in their stable branch and Debian still uses version 3.3.7.
nik1234
09-23-2009, 02:23 AM
unsquashfs -d /home/nik/Desktop/share/local -f / " /home/nik/Desktop/shareCG36.smg
and
unsquashfs -d /usr/local/cg36 -f /usr/local/cg36.smg
this also gives same error ...i guess problem may be with verison ...
can u plese give me mksquashfs and unsquashfs files .....
rasputin007
09-23-2009, 08:08 PM
Attached are the mksquashfs and unsquashfs executables from my Debian Linux. Unsquashfs is version 3.3.7 and mksquashfs is version 2.1.
Due to not being able to attach files with the tar or tar.gz extentions (Linux compression) I had to use Windows rar format, therefore the executable file attribute is most likely gone. So once you unpacked the 2 files you have to set the "is executable" attribute under file properties, the copy to /usr/bin, BUT make a backup of your existing unsquashfs and mksquashfs (just in case!).
nik1234
09-24-2009, 05:38 AM
ok thanks ...hope it works :)
vBulletin® v3.7.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.