Sponsored Content
Special Forums UNIX and Linux Applications Virtualization and Cloud Computing Error in virtualbox while instaling guest additions Post 302790799 by timmypig on Saturday 6th of April 2013 11:41:01 PM
Old 04-07-2013
Upvan, apologies in advance for attempting to hijack your thread, but I'm struggling to get guest additions going in VirtualBox.

Background: I've fairly recently been obliged to start learning *nix after 25 years as a mainframe MVS => OS/390 => z/OS systems programmer. The *nix world is a complete and utter mystery to me, and so far I have walked away in disgust and fury from every attempt to get things running.

My Ubuntu image starts and complains about low graphics mode. OK, so I understand I have to install Guest Additions. I've exercised my Google-Fu and have seen all the different ways of doing this. But at the heart of the problem is making the .iso available as a virtual CD-ROM drive to mount. Nothing I've done will make the mount command work.

I have to do this using CLI as the GUI won't work due to low graphics mode. Catch-22.

If any of you kind folks can steer a noob in the right direction I'd appreciate it. If you're willing to help out please dumb it down as much as you can. I'd do the same for someone trying to get a CICS PTF from IBMLink and SMP/E receive it in z/OS!

Once again Upvan, sorry to hijack ...

---------- Post updated at 01:41 PM ---------- Previous update was at 01:23 PM ----------

Now I really feel like a goose. Just goes to show that if you swear enough, then open yourself up to ridicule, the answer will drop into your lap ...

$ sudo blkid ===> this showed that VirtualBox had given this image a CD-ROM
$ sudo mount /dev/sr0 /media/vbox ===> sweet!
$ cd /media/vbox
$ ls ===> see quite clearly the VBoxLinuxAdditions.run file ... so then I did:
$ sudo sh ./VBoxLinuxAdditions.run ===> this appears to have worked as it should. Ends with:
"You may need to restart the hal service and the Window System (or just restart the guest system) to enable the Guest Additions.
"Installing graphics libraries and desktop services components ...done."

I'll enjoy the smug feeling of having completed something before I reboot and have it all (inevitably) unravel.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Instaling JVM

Hi Everyone I`ve just started with unix can some please help me execute this command via webmin on avirtual server or how do you execute such .bin file this is the error ./j2sdk-1_3_1_15-linux-i586.bin: not found > ls -l total 69124 -rw------- 1 root wheel 8380 May 15 18:01... (2 Replies)
Discussion started by: J.Carlos MC05
2 Replies

2. Solaris

Problem Instaling Solaris

hi I was trying to install Solaris on my PC. when i selected Auto Ejaection of cd & auto reboot.....then it displayed that u will need to manually eject current disk, & Select an appropriate boot media to avoid installation process again.. then after selecting appropriate options, the... (0 Replies)
Discussion started by: rochitsharma
0 Replies

3. Solaris

Problem in instaling package SUNWman

Hi All, I am trying to install the package from CD rom and i am unable to do. i have located the package in CD and its there however when i am trying to run pkgadd -d /cdrom/sol_10_508_sparc_5/Solaris_10/Product/SUNWman i am getting error pkgadd: ERROR: no packages were found in... (4 Replies)
Discussion started by: kumarmani
4 Replies

4. UNIX for Advanced & Expert Users

additions

Hi I have a decimal number and want to add to 1 to Firstnumber ,2 to 2nd number .Please any one help I/p 10000.0000 20000.00 Expecting o/p 10001.000 200002.00 Regards, Akil (2 Replies)
Discussion started by: akil
2 Replies

5. UNIX for Dummies Questions & Answers

Can't open VirtualBox from Tera Term X11 error

Telnet into Solairs10 with Tera term. Go to sub /opt/VirtualBox and type # VirtualBox Failed to open the X11 display! How do I open X11 display? (17 Replies)
Discussion started by: SIFT3R
17 Replies

6. Cybersecurity

Virtualbox guest as a firewall for lUbuntu host

Using virtualbox, I am trying to use Alpine linux (guest) as a firewall for my lubuntu (host). My physical network card (NIC) is eth0. ISP WAN -> Alpine linux (guest) -> lubuntu (host) LAN I am trying to get the ip from my ISP DHCP server but I had no success. I know that in virtualbox I have... (0 Replies)
Discussion started by: TrickySecurity
0 Replies

7. UNIX for Beginners Questions & Answers

Oracle VirtualBox Guest Additions installation help

Good day I recently attempted to to install Vbox Guest additions on CentOS 7.(Running on Windows 7 ) The packages downloaded fine . However when attempting to run the installer on CentOS 7 for vboxadditions_5.1.28_117968 , I received an error message written to ... (0 Replies)
Discussion started by: MrRobot
0 Replies

8. Shell Programming and Scripting

Command line additions

Evening: For quite some time I've searched for the correct procedure(S) to get LM 18.3X "live" (usb pendrive) to recognize/accept a casper-rw partiton. Here is an example of what I'm trying to do; https://www.unix.com/usbubuntu.wordpress.com/make-it-persistent/ ...only with LM 18. If... (0 Replies)
Discussion started by: 69Rixter
0 Replies
guestmount(1)						      Virtualization Support						     guestmount(1)

NAME
guestmount - Mount a guest filesystem on the host using FUSE and libguestfs SYNOPSIS
guestmount [--options] -a disk.img -m device [--ro] mountpoint guestmount [--options] -a disk.img -i [--ro] mountpoint guestmount [--options] -d Guest -i [--ro] mountpoint WARNING
You must not use "guestmount" in read-write mode on live virtual machines. If you do this, you risk disk corruption in the VM. DESCRIPTION
The guestmount program can be used to mount virtual machine filesystems and other disk images on the host. It uses libguestfs for access to the guest filesystem, and FUSE (the "filesystem in userspace") to make it appear as a mountable device. Along with other options, you have to give at least one device (-a option) or libvirt domain (-d option), and at least one mountpoint (-m option) or use the -i inspection option or the --live option. How this works is better explained in the guestfish(1) manual page, or by looking at the examples below. FUSE lets you mount filesystems as non-root. The mountpoint must be owned by you, and the filesystem will not be visible to any other users unless you make certain global configuration changes to "/etc/fuse.conf". To unmount the filesystem, use the "fusermount -u" command. EXAMPLES
For a typical Windows guest which has its main filesystem on the first partition: guestmount -a windows.img -m /dev/sda1 --ro /mnt For a typical Linux guest which has a /boot filesystem on the first partition, and the root filesystem on a logical volume: guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt To get libguestfs to detect guest mountpoints for you: guestmount -a guest.img -i --ro /mnt For a libvirt guest called "Guest" you could do: guestmount -d Guest -i --ro /mnt If you don't know what filesystems are contained in a guest or disk image, use virt-filesystems(1) first: virt-filesystems -d MyGuest If you want to trace the libguestfs calls but without excessive debugging information, we recommend: guestmount [...] --trace /mnt If you want to debug the program, we recommend: guestmount [...] --trace --verbose /mnt NOTES
Other users cannot see the filesystem by default If you mount a filesystem as one user (eg. root), then other users will not be able to see it by default. The fix is to add the FUSE "allow_other" option when mounting: sudo guestmount [...] -o allow_other /mnt Enabling FUSE On some distros, you may need to add yourself to a special group (eg. "fuse") before you can use any FUSE filesystem. This is necessary on Debian and derivatives. On other distros, no special group is required. It is not necessary on Fedora or Red Hat Enterprise Linux. OPTIONS
-a image --add image Add a block device or virtual machine image. The format of the disk image is auto-detected. To override this and force a particular format use the --format=.. option. -c URI --connect URI When used in conjunction with the -d option, this specifies the libvirt URI to use. The default is to use the default libvirt connection. -d libvirt-domain --domain libvirt-domain Add disks from the named libvirt domain. If the --ro option is also used, then any libvirt domain can be used. However in write mode, only libvirt domains which are shut down can be named here. Domain UUIDs can be used instead of names. --dir-cache-timeout N Set the readdir cache timeout to N seconds, the default being 60 seconds. The readdir cache [actually, there are several semi- independent caches] is populated after a readdir(2) call with the stat and extended attributes of the files in the directory, in anticipation that they will be requested soon after. There is also a different attribute cache implemented by FUSE (see the FUSE option -o attr_timeout), but the FUSE cache does not anticipate future requests, only cache existing ones. --echo-keys When prompting for keys and passphrases, guestfish normally turns echoing off so you cannot see what you are typing. If you are not worried about Tempest attacks and there is no one else in the room you can specify this flag to see what you are typing. --format=raw|qcow2|.. --format The default for the -a option is to auto-detect the format of the disk image. Using this forces the disk format for -a options which follow on the command line. Using --format with no argument switches back to auto-detection for subsequent -a options. If you have untrusted raw-format guest disk images, you should use this option to specify the disk format. This avoids a possible security problem with malicious guests (CVE-2010-3851). See also "guestfs_add_drive_opts" in guestfs(3). --fuse-help Display help on special FUSE options (see -o below). --help Display brief help and exit. -i --inspector Using virt-inspector(1) code, inspect the disks looking for an operating system and mount filesystems as they would be mounted on the real virtual machine. --keys-from-stdin Read key or passphrase parameters from stdin. The default is to try to read passphrases from the user by opening "/dev/tty". --live Connect to a live virtual machine. (Experimental, see "ATTACHING TO RUNNING DAEMONS" in guestfs(3)). -m dev[:mountpoint[:options]] --mount dev[:mountpoint[:options]] Mount the named partition or logical volume on the given mountpoint in the guest (this has nothing to do with mountpoints in the host). If the mountpoint is omitted, it defaults to "/". You have to mount something on "/". The third (and rarely used) part of the mount parameter is the list of mount options used to mount the underlying filesystem. If this is not given, then the mount options are either the empty string or "ro" (the latter if the --ro flag is used). By specifying the mount options, you override this default choice. Probably the only time you would use this is to enable ACLs and/or extended attributes if the filesystem can support them: -m /dev/sda1:/:acl,user_xattr -n --no-sync By default, we attempt to sync the guest disk when the FUSE mountpoint is unmounted. If you specify this option, then we don't attempt to sync the disk. See the discussion of autosync in the guestfs(3) manpage. -o option --option option Pass extra options to FUSE. To get a list of all the extra options supported by FUSE, use the command below. Note that only the FUSE -o options can be passed, and only some of them are a good idea. guestmount --fuse-help Some potentially useful FUSE options: -o allow_other Allow other users to see the filesystem. -o attr_timeout=N Enable attribute caching by FUSE, and set the timeout to N seconds. -o kernel_cache Allow the kernel to cache files (reduces the number of reads that have to go through the guestfs(3) API). This is generally a good idea if you can afford the extra memory usage. -o uid=N -o gid=N Use these options to map all UIDs and GIDs inside the guest filesystem to the chosen values. -r --ro Add devices and mount everything read-only. Also disallow writes and make the disk appear read-only to FUSE. This is highly recommended if you are not going to edit the guest disk. If the guest is running and this option is not supplied, then there is a strong risk of disk corruption in the guest. We try to prevent this from happening, but it is not always possible. See also "OPENING DISKS FOR READ AND WRITE" in guestfish(1). --selinux Enable SELinux support for the guest. -v --verbose Enable verbose messages from underlying libguestfs. -V --version Display the program version and exit. -w --rw This changes the -a, -d and -m options so that disks are added and mounts are done read-write. See "OPENING DISKS FOR READ AND WRITE" in guestfish(1). -x --trace Trace libguestfs calls and entry into each FUSE function. This also stops the daemon from forking into the background. FILES
$HOME/.libguestfs-tools.rc /etc/libguestfs-tools.conf This configuration file controls the default read-only or read-write mode (--ro or --rw). See "OPENING DISKS FOR READ AND WRITE" in guestfish(1). EXIT STATUS
This program returns 0 if successful, or non-zero if there was an error. SEE ALSO
guestfish(1), virt-inspector(1), virt-cat(1), virt-edit(1), virt-tar(1), guestfs(3), <http://libguestfs.org/>, <http://fuse.sf.net/>. AUTHORS
Richard W.M. Jones ("rjones at redhat dot com") COPYRIGHT
Copyright (C) 2009-2012 Red Hat Inc. <http://libguestfs.org/> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. libguestfs-1.18.1 2013-12-07 guestmount(1)
All times are GMT -4. The time now is 08:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy