VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0 - Mandriva

This is a discussion on VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0 - Mandriva ; Is there a simple way of cloning a 2008.0 installation of Vbox (1.6.6) onto a 2009.0 installation? I tried copying the whole .Virtualbox directory over from 2008.0 to 2009.0, and then installing VBox from the same RPM, then installed the ...

+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 20 of 27

Thread: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

  1. VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    Is there a simple way of cloning a 2008.0 installation of Vbox (1.6.6) onto a 2009.0 installation?

    I tried copying the whole .Virtualbox directory over from 2008.0 to 2009.0, and then installing VBox from the same RPM, then installed the vbox and devel kernels.

    When Vbox fired up on 2009, I got the error:
    --------------------------------------------------------------------------------
    VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Re-setup the kernel module by executing '/etc/init.d/vboxdrv setup' as root.
    VBox status code: -1908 (VERR_VM_DRIVER_NOT_INSTALLED).
    ---------------------------------------------------------------------------------
    So did:

    /etc/init.d/vboxdrv setup
    Stopping VirtualBox kernel module [ OK ]
    Removing old VirtualBox kernel module [ OK ]
    Recompiling VirtualBox kernel module [FAILED]
    (Look at /var/log/vbox-install.log to find out what went wrong)
    --------------------------------------------------------------------------------
    The error log is:
    Error! Invalid number of parameters passed.
    Usage: remove -m -v --all
    or: remove -m -v -k

    ------------------------------
    Deleting module version: 1.6.6
    completely from the DKMS tree.
    ------------------------------
    Done.

    Creating symlink /var/lib/dkms/vboxdrv/1.6.6/source ->
    /usr/src/vboxdrv-1.6.6

    DKMS: add Completed.

    Error! Your kernel source for kernel 2.6.27-desktop586-0.rc8.2mnb cannot be found at
    /lib/modules/2.6.27-desktop586-0.rc8.2mnb/build or /lib/modules/2.6.27-desktop586-0.rc8.2mnb/source.
    You can use the --kernelsourcedir option to tell DKMS where it's located.
    Failed to install using DKMS, attempting to install without
    Makefile:127: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.
    --------------------------------------------------------------------------------

    - whch I can't figure out.(The '--kernelsourcedir option' of which command?)

    What is the next step?

    (Or, is there a better way of cloning a Vbox installation?)

    /\/\aurice

  2. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Sun, 02 Nov 2008 21:07:34 +0000, Maurice Batey wrote:

    Please set Pan's line wrap to abouty 70 characters.
    Some subject matter experts may not reply if they have to re-format
    your post.

    > Is there a simple way of cloning a 2008.0 installation of Vbox
    >(1.6.6) onto a 2009.0 installation?


    No idea about 1.6.6.

    > I tried copying the whole .Virtualbox directory over from 2008.0 to
    > 2009.0, and then installing VBox from the same RPM, then installed
    > the vbox and devel kernels.


    I have a VirtualBox partition for my guest.
    Bittwister's .VirtualBox is linked to the partition.

    .VirtualBox -> /vmguest/vm

    $ cd /vmguest
    $ ls
    lost+found vm

    $ cd vm
    $ ls
    compreg.dat Machines VDI VirtualBox.xml xpti.dat


    That allows me to have one VirtualBox guest and using it
    on 2008.1 and.or 2009.0 with separate VirtualBox installs with separate
    /home/bittwister directories.

    Currently I have VirtualBox-2.0.2_36488_mdv2008.0-1.i586.rpm installed
    on 2009.0 and VirtualBox-2.0.4_38406_mdv2008.0-1.i586.rpm installed on 2008.1

    I do need to boot 2009 and install 2.0.4.

  3. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Sun, 02 Nov 2008 22:21:17 +0000, Bit Twister wrote:

    > Please set Pan's line wrap to abouty 70 characters.


    Oops - apologies. I sent that from 2009.0 and forgot to set
    Kwrite's wrap...
    --
    /\/\aurice
    (Replace "nomail.afraid" by "bcs" to reply by email)


  4. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Sun, 02 Nov 2008 16:07:34 -0500, Maurice Batey wrote:

    > Error! Your kernel source for kernel 2.6.27-desktop586-0.rc8.2mnb cannot be found at


    You would need to install the kernel devel package, matching your kernel,
    in order to be able to compile kernel modules. In this case,
    kernel-desktop586-devel-2.6.27-0.rc8.2mnb

    If you have more than 1 GB of ram, I'd install
    kernel-desktop-latest, kernel-desktop-devel-latest, and then reboot selecting
    the new kernel.

    I'd also update to the latest virtualbox package, currently version 2.0.4.

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  5. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    Maurice Batey wrote:
    > Is there a simple way of cloning a 2008.0 installation of Vbox

    (1.6.6) onto a 2009.0 installation?

    No. VirtualBox addresses its guest machines with an address
    that includes the partition identifier.

    To copy a guest from one partition to another (or add a copy
    on the same partition) you have to clone the guest using
    the Virtual Disk Manager and then load that into VirtualBox.

    > I tried copying the whole .Virtualbox directory over from

    2008.0 to 2009.0, and then installing VBox from the same RPM,
    then installed the vbox and devel kernels.

    Install the new version of VirtualBox on your new 2009.0 OS.
    With the new clone of your guest created where you want it, load
    it into the new VirtualBox. The guest or guest clone should
    load into either version of VirtualBox. (No guarantee on this,
    as I have not tried it, but my reading suggests it should work.)

    I went through something similar to what you are trying to do,
    simultaneously move a guest to a new location and upgrade the
    guest (not the host) to 2009.0. Things did not work exactly
    as I expected, and I now have the 2009.0 guest located where
    my original guest was, and the clone of the original guest where
    I want my guest to be, running 2008.1. Both guests work fine.

    Someday I will upgrade the guest running 2008.1 to 2009.0 and
    delete the current 2009.0 guest that is in my home directory,
    or if really ambitious I will uninstall VirtualBox completely
    and reinstall it, putting the directories it uses where I should
    have put them in the first place.

    Cheers!

    jim b.

    --
    UNIX is not user unfriendly; it merely
    expects users to be computer-friendly.

  6. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Sun, 02 Nov 2008 20:57:51 -0500, Jim Beard wrote:

    > To copy a guest from one partition to another (or add a copy
    > on the same partition) you have to clone the guest using
    > the Virtual Disk Manager and then load that into VirtualBox.


    I copied the .VirtualBox directory from my 2008.1 home directory
    to my 2009.0 home directory. The only change I had to make was
    for the dvd device being changed from hdc to sr0. Other then that,
    everything worked fine.

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  7. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Sun, 02 Nov 2008 20:57:51 -0500, Jim Beard wrote:

    > you have to clone the guest using
    > the Virtual Disk Manager and then load that into VirtualBox.


    How does one do that?
    (I had assumed it involved giving 2009.0 Vbox the address of the
    2008.0 VDI file, but when I tried that the 2009.0 Vbox put up a small
    window saying "Spawning" which stuck at 0%.)

    > Install the new version of VirtualBox on your new 2009.0 OS.
    > With the new clone of your guest created where you want it, load
    > it into the new VirtualBox.


    How does one do that?

    --
    /\/\aurice
    (Replace "nomail.afraid" by "bcs" to reply by email)


  8. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Sun, 02 Nov 2008 21:24:06 -0500, David W. Hodgins wrote:

    > I copied the .VirtualBox directory from my 2008.1 home directory
    > to my 2009.0 home directory.


    Which - as I said - is what I tried (incl installing devel kernel).

    > The only change I had to make was
    > for the dvd device being changed from hdc to sr0.


    OIC. Will see if that makes any difference. Thanks!

    --
    /\/\aurice
    (Replace "nomail.afraid" by "bcs" to reply by email)


  9. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Sun, 02 Nov 2008 17:52:52 -0500, David W. Hodgins wrote:

    > You would need to install the kernel devel package, matching your kernel,
    > in order to be able to compile kernel modules. In this case,
    > kernel-desktop586-devel-2.6.27-0.rc8.2mnb


    Well, I swear I had already done that, but when I checked in MCC it
    was not installed!
    Once installed and compiled in (thereby creating the vboxusers
    group so I could add me to it), it all works perfectly.

    So just copying the .Virtualbox directory over and installing the
    dev kernel seems to be the simplest approach to cloning.

    Many thanks once again, Dave! Much appreciated...

    (I haven't installed the latest version of Vbox, because when I tried
    2.0.2 I (and others) had some stability problems, so reverted to
    1.6.6, which is as steady as a rock. Perhaps later...

    --
    /\/\aurice
    (Replace "nomail.afraid" by "bcs" to reply by email)


  10. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Mon, 03 Nov 2008 12:44:45 +0000, Maurice Batey wrote:

    > it all works perfectly.


    Except that the shared folders are no longer accessible...

    --
    /\/\aurice
    (Replace "nomail.afraid" by "bcs" to reply by email)


  11. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Mon, 03 Nov 2008 15:23:51 +0000, I wrote:

    > the shared folders are no longer accessible...


    - because the drive addressing is different between 2008.0 & 2009.0,
    by the looks of it...

    --
    /\/\aurice
    (Replace "nomail.afraid" by "bcs" to reply by email)


  12. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Mon, 03 Nov 2008 15:23:51 +0000, Maurice Batey wrote:

    > the shared folders are no longer accessible.


    Not only are there no entries in the Shared Folders table but when
    I try to add new entries the 'OK' button stays greyed out. Why?!

    Any attempt to use "net use x:...." fail
    In which environment should that be executed?

    I'm trying VBox 2.0.4 now on 2009.0, by the way.
    --
    /\/\aurice
    (Replace "nomail.afraid" by "bcs" to reply by email)


  13. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Mon, 03 Nov 2008 12:48:51 -0500, Maurice Batey wrote:

    > Not only are there no entries in the Shared Folders table but when
    > I try to add new entries the 'OK' button stays greyed out. Why?!


    grep -r hostPath= ~/.VirtualBox/*
    will show all of the paths you've setup for the shared folders.
    For each hostpath, check the output of "ls -ld $hostPath", to see
    the ownership and permissions for that directory.

    Does your regular id have write access to the directory?

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  14. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Mon, 03 Nov 2008 17:48:51 +0000, Maurice Batey wrote:
    > On Mon, 03 Nov 2008 15:23:51 +0000, Maurice Batey wrote:
    >
    >> the shared folders are no longer accessible.

    >
    > Not only are there no entries in the Shared Folders table but when
    > I try to add new entries the 'OK' button stays greyed out. Why?!
    >
    > Any attempt to use "net use x:...." fail
    > In which environment should that be executed?
    >
    > I'm trying VBox 2.0.4 now on 2009.0, by the way.


    Did you create the vboxusers group?
    Did you add the group to your account?
    Did you log out/in after adding vboxusers to your account?


  15. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Mon, 03 Nov 2008 18:56:24 +0000, Bit Twister wrote:

    > Did you create the vboxusers group?
    > Did you add the group to your account?


    No - it appeared as a group after the dev kernel was compiled.
    I then ticked it for me.

    > Did you log out/in after adding vboxusers to your account?


    Yes.

    --
    /\/\aurice

    (Replace "nomail.afraid" by "bcs" to reply by email)


  16. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Mon, 03 Nov 2008 13:27:31 -0500, David W. Hodgins wrote:

    > grep -r hostPath= ~/.VirtualBox/*
    > will show all of the paths you've setup for the shared folders.


    grep -r hostPath= /home/mab/.VirtualBox/*
    /home/mab/.VirtualBox/Machines/Windows XP SP3/Windows XP SP3.xml~:
    /home/mab/.VirtualBox/Machines/Windows XP SP3/Windows XP SP3.xml~:

    I can see that the settings are using the paths in the 2008.0 installation ("/mnt/win_c2", "/mnt/win_c"), whereas the 2009.0 paths are e.g. "/media/hd2"

    Although they are still accessible, I really want to be using the 2009.0 values.
    But the Shared Folders setting won't let me enter new values ('OK' greyed out).

    > For each hostpath, check the output of "ls -ld $hostPath", to see
    > the ownership and permissions for that directory.


    Sorry, I can't figure out how to apply that to the above paths.

    The error I am getting when I try to access from Windows e.g. W: is:

    "An error occurred while reconnecting W: to \\vboxsvr\Real-WIndows VirtualBox Shared Folders: The network name cannot be found. The connection has not been restored."

    --
    /\/\aurice
    (Replace "nomail.afraid" by "bcs" to reply by email)


  17. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    Sorry, the line wrapping seems to have gone awry there...
    --
    /\/\aurice
    (Replace "nomail.afraid" by "bcs" to reply by email)


  18. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Mon, 03 Nov 2008 14:37:01 -0500, Maurice Batey wrote:

    > /home/mab/.VirtualBox/Machines/Windows XP SP3/Windows XP SP3.xml~:
    > /home/mab/.VirtualBox/Machines/Windows XP SP3/Windows XP SP3.xml~:
    > I can see that the settings are using the paths in the 2008.0 installation ("/mnt/win_c2", "/mnt/win_c"), whereas the 2009.0 paths are e.g. "/media/hd2"


    Start VirtualBox. Select the vm, then settings. Select Shared folders.
    For each folder, select the folder, then the edit (middle) icon. Select
    the dropdown box, then other. Browse to /media, and select the appropriate
    directory. Once the path has been changed to an existing directory, the
    ok button should no longer be grayed out.

    Alternatively create symlinks such as "ln -s /media/hd2 /mnt/win_c2".

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  19. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Mon, 03 Nov 2008 14:55:26 -0500, David W. Hodgins wrote:

    > Start VirtualBox. Select the vm, then settings. Select Shared folders.
    > For each folder, select the folder,


    But there are no folders in there; it's totally empty!
    And as 'OK' keeps greyed out I can't add any...
    That's odd, because it knows the shared folder names...

    > Alternatively create symlinks e.g. "ln -s /media/hd2 /mnt/win_c2"


    These fail, e.g.
    ln: creating symbolic link `/mnt/win_c': Permission denied

    (but anyway, I don't like symbolic links lying around if they can be
    avoided!)

    --
    /\/\aurice
    (Replace "nomail.afraid" by "bcs" to reply by email)


  20. Re: VirtualBox 1.6.6: Cloning 2008.0 installation --> 2009.0

    On Mon, 03 Nov 2008 16:17:19 -0500, Maurice Batey wrote:

    > On Mon, 03 Nov 2008 14:55:26 -0500, David W. Hodgins wrote:
    >
    >> Start VirtualBox. Select the vm, then settings. Select Shared folders.
    >> For each folder, select the folder,

    >
    > But there are no folders in there; it's totally empty!
    > And as 'OK' keeps greyed out I can't add any...
    > That's odd, because it knows the shared folder names...


    The two shared folders that were shown by the grep command are not
    showing up in the gui?


    >> Alternatively create symlinks e.g. "ln -s /media/hd2 /mnt/win_c2"

    > These fail, e.g.
    > ln: creating symbolic link `/mnt/win_c': Permission denied


    The command has to be run as root, as your regular userid doesn't
    have write access to /mnt.

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

+ Reply to Thread
Page 1 of 2 1 2 LastLast