How to clone my current arch installation to a VM?

Hey,
I would like to clone my current arch installation to a VM to test if awesome runs with my settings. I thought about making an rsync image and importing it into the vm.
Has anyone tried this before or do you have any recommendations?
thx 4 help

Hi!
Take a look at this Blogpost. There is an description how to create a disc image ponting to an real harddrive.
VBoxManage internalcommands createrawvmdk -filename rawimage.vmdk -rawdisk /dev/sda
Warning:The downside of that approach: The disc image is actually linked to your harddrive, so any change in your VM will affect your host-system.
But I've found another useful command:
VBoxMange clonehd rawimage.vmdk realimage.vmdk
This will create a copy of your linked image. It seems to me, like the copy of the linked image is a *real* vmdk-image.
Of course this comes without any warranty - I did not test it: Please be very careful using these commands. But it seems to me, like this approach could be a solution for you.
Sincerely,
brb
Last edited by barabbas (2011-04-28 10:05:41)

Similar Messages

  • Clone An Existing RDBMS Installation Using OUI

    Hi All,
    We have multiple databases running on Oracle 9.2.0.6 ( Linux 2.6.5-7.282-bigsmp #1 SMP Tue Aug 29 10:40:40 UTC 2006 i686 i686 i386 GNU/Linux)
    we were asked to upgrade few instances to 9.2.0.8 .
    Our plan is to clone the existing 9.2.0.6 home directory and upgrade the cloned copy and the required databases to 9.2.0.8.
    I checked the following article to clone the database ORACLE_HOME.
    Note:300062.1 -How To Clone An Existing RDBMS Installation Using OUI
    I also found some known issues and bugs with this process.
    I would like to know your experiences and suggetions using this aproch.
    Thanks in advance for your help.

    The best approach depends on which instances you are planning to upgrade. If all the target instances belong to the same Oracle Home, then just open your maintenance window and apply the patch to the oracle home and to each instance belonging to this oracle home.
    If only some of the instances belonging to the oracle home are candidates to be upgraded, then clone the oracle home and upgrade it, and upgrade only the instances you are going to move to this cloned oracle home.
    Have you also checked this reference:
    Oracle® Database Installation Guide
    10g Release 2 (10.2) for Linux x86
    Part Number B15660-02
    Appx B Cloning an Oracle Home
    ~ Madrid

  • I need to upgrade my HD, how do I clone my current HD?

    I need to upgrade from a 500GB to a TB hard drive. How do I clone my current HD to the new TB drive and use it as the main drive? I plan to remove the 500GB completly and nee the TB to be the boot drive
    I'm sure the instruction are out there but I couldn't find them. Thanks in advance

    Clone
    Disk utility has RESTORE which will also clone your system but not the Lion Recovery partition. Oddly  Apple did not 'endorse' making bootable clone of the system which works too but most choose Carbon Copy Cloner - it works more consistently; it allows for smart update of the backup volume. Both can backup to a sparse disk image if desired.
    Using Cloning as a Backup Strategy
    http://www.macupdate.com/app/mac/7032/carbon-copy-cloner
    http://www.bombich.com/software/updates/ccc-3.5.html
    OS X Lion Install to Different Drive
    How to create an OS X Lion installation disc MacFixIt

  • How do you exit the Arch Linux installer?

    How do you exit the Arch Linux installer? I decided to install windows before installing Arch Linux because I want to dual-boot/with those operating systems.
    What command should I type to exit & eject my Install CD?

    reset button?
    I think it depends on far into the process you are, if you are formatting the drive anew then it shouldn't matter much when, where, or how
    Best of Luck,
    Pat Jr.
    Last edited by PatJr (2009-01-21 14:49:42)

  • Partition Layout for 2 Arch installs

    Morning all,
    I've currently got Arch with GNOME installed on /dev/sdb with partitions taking up all the space of that hard drive. However I am wanting to have another Arch install that will run the latest KDE /trunk that will become 4.2, and so I'm wondering what would be the best way to layout my partitions. Here is my current partition layout for /dev/sdb (could someone also explain why the size of the partitions is quite odd? I didn't specify those exact values, it would have been like 128mb or 1gb for example):
    /dev/sdb1: /boot (ext3, 125.48mb)
    /dev/sdb2: swap (linux-swap, 972.69mb)
    /dev/sdb3: / (ext3, 83.82gb)
    /dev/sdb4: /var (reiserfs, 26.90gb)
    No personal data (eg, Music, Pictures etc) are stored on either of these partitions, as I have another hard drive (oh I love to keep things separated =3) with all of those on, so it doesn't really matter about making it easy to share things between the 2 installs.
    So, will I have to create another boot and swap partition for this new install? I'm guessing not, though not sure if that will cause issues. From what I can remember, I will have to create extended and logical partitions as I already have 4.
    If someone could point me in the correct direction on how to set this up, would be greatly appreciated
    Regards,

    I have two Arch installs on the same machine: One is for the family (Xfce), which also serves as my backup system, the second one is my workbench and playground (Openbox). I have the following layout:
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda3 9.3G 4.2G 4.7G 48% / # 2nd Arch for me
    none 252M 0 252M 0% /dev/shm # swap
    /dev/sda6 9.2G 6.2G 2.6G 72% /home # home
    /dev/sda2 9.3G 2.3G 6.6G 26% /mnt/sda2 # 1st Arch for family
    I use two different usernames on both systems, but symlinking email/browser directories from 1st to 2nd.

  • How to clone a physical drive?

    Hi, I have been trying to figure out how to clone my MacBooks hard-drive. It has OSX, plus Bootcamp and XP Pro partitions. My destination drive is an exact duplicate physical drive in an external USB enclosure. I want to clone the entire internal drive to the external drive, including all partitions and boot data. The DiskUtility, even when booted from CD, only supports cloning individual partitions. SuperDuper and other utilities seem to work the same. I tried the linux tool, G4L, and it did not recognize the external USB drive. I am trying to clone so that if the internal drive ever croaks, I can just drop in the drive thats currently in the external case - and have no down time. I only need to backup my machine this way once a month, so it doesnt matter how long the process takes - as long as it works! Any suggestions?

    Hi wh31415,
    You can clone both your OS X and Windows partitions from within OS X. Partition your external so that the Windows portion is large enough to hold a disk image of the Windows installation on your main drive. Leave the rest for OS X. You can do this with Disk Utility.
    Once you have the external partitioned, use WinClone to clone the Windows drive. You run it right from OS X. It creates a compressed disk image that can be restored from OS X also. It's free and works great.
    For OS X, use either SuperDuper! or Carbon Copy Cloner. Both can be run right from the OS X installation you're booted from. Just don't do anything else while it's cloning. Both are free, though the paid version of SuperDuper! is worth every cent for updating your backup.

  • How to cooperate the current mail system with Sun Java Commnication Suite 5

    Dear all and Shane,
    Excuse me for bothering you again.
    Due to time limited, I would like to know how to cooperate the current mail system with Sun Java Commnication Suite 5. I mean I would like to use current mail system (mailscanner + postfix + courier-IMAP + clamav + spamassassin + webmail) and use the outlook connector to connect to Sun Java COMMS 5 to share the calendar, contacts only.
    Right now I have done the testing by using outlook, mac mail, thunderbird to share calendar,contacts via Sun Java COMMS 5 in Centos Linux 5.
    My plan is as following
    1. Sun Java Communication suites 5 server ( I called it comms5 ) will be in DMZ zone and will open the necessary ports in firewall.
    2. I will create more than six sub domain name in Sun Delegate server and the necessary accounts within these domain names.
    3. All messages will be transmitted via Postfix and clients will retrieve from Courier-IMAP
    4. All Clients included other branch offices will use different mail clients to share their calendars, contacts via COMMS5 ( But how will COMMS handle the messages such like invitation ? )
    Any suggestions will appreciate.
    PS: Is it possible to classify the contacts in outlook address book ?
    For example, when user click the receiver, it will show like as following
    GLOBAL ADDRESS BOOK
    --Director
    --and so on
    ----CN.BRANCH OFFICE
    -----------CN01 EMAIL ADDRESS
    -----------CN02 EMAIL ADDRESS
    -----------CN03 EMAIL ADDRESS
    and so on
    ----JP.BRANCH OFFICE
    -----------JP01 EMAIL ADDRESS
    -----------JP02 EMAIL ADDRESS
    -----------JP03 EMAIL ADDRESS
    and so on
    ----TW.BRANCH OFFICE
    and Due to the user account is located in CN.BRANCH OFFICE, it will extend the CN.BRANCH OFFICE contacts level.
    Excuse me for bad English, hope you can understand it.
    Best Regards,
    Bruce

    Dogz wrote:
    Due to time limited, I would like to know how to cooperate the current mail system with Sun Java Commnication Suite 5.
    I mean I would like to use current mail system (mailscanner + postfix + courier-IMAP + clamav + spamassassin + webmail) and use the outlook connector to connect to Sun Java COMMS 5 to share the calendar, contacts only.Getting your current mail system to 'co-operate' in this way will require more time then simply migrating the accounts of users on the current mail system to the comm-suite-5 installation and making use of UWC for Webmail access and ClamAV/SpamAssassin integration within the messaging MTA.
    Also the use of Outlook Connector with a non-Sun IMAP backend isn't supported, nor is the use of a non-Sun IMAP backend possible with UWC.
    Right now I have done the testing by using outlook, mac mail, thunderbird to share calendar,contacts via Sun Java COMMS 5 in Centos Linux 5. Once again I should remind you that CentOS is not a supported platform for comm-suite-5
    Regards,
    Shane.

  • How to refer to pacman's installation root in pre_install, etc

    I have been unable to find any documentation of exactly how to refer to pacman's installation root from inside the .install script functions. Curious, I started looking through /var/abs/core for some real-world examples that might clue me in. What I found surprised me - from the looks of it, many of the functions there simply assume that their working directory IS the pacman installation root. For example:
    /var/abs/core/ca-certificates/ca-certificates.install:
    post_install() {
    usr/sbin/update-ca-certificates --fresh
    post_upgrade() {
    usr/sbin/update-ca-certificates --fresh
    pre_remove() {
    # clean up certificates
    local _backup=$(mktemp)
    mv etc/ca-certificates.conf ${_backup}
    echo > etc/ca-certificates.conf
    usr/sbin/update-ca-certificates --fresh
    mv ${_backup} etc/ca-certificates.conf
    post_remove() {
    # remove the cert file if it is empty
    [[ -s etc/ssl/certs/ca-certificates.crt ]] || rm -f etc/ssl/certs/ca-certificates.crt
    And yet, some others seem to assume that the install root is "/", like here:
    /var/abs/core/crda/crda.install:
    ## arg 1: the new package version
    post_install() {
    echo "Uncomment the right regulatory domain in /etc/conf.d/wireless-regdom."
    echo "It will automatically be set when necessary."
    ## arg 1: the new package version
    ## arg 2: the old package version
    post_upgrade() {
    # In an upgrade from 1.0.1-1 or older, the wireless-regdom file moves from the crda package
    # to the new wireless-regdb package. If the user changed the file, it is save to overwrite the one
    # from wireless-regdb by the user-defined one
    if [ $(vercmp $2 1.0.1-2) -lt 0 ]; then
    if [ -f /etc/conf.d/wireless-regdom.pacorig -a -n "$(grep -v ^# /etc/conf.d/wireless-regdom.pacorig 2>/dev/null | grep -v ^$)" ]; then
    mv /etc/conf.d/wireless-regdom.pacorig /etc/conf.d/wireless-regdom
    fi
    fi
    or here:
    /var/abs/core/cryptsetup/encrypt_install:
    # vim: set ft=sh:
    install ()
    if [ -z "${CRYPTO_MODULES}" ]; then
    MODULES=" dm-crypt $(all_modules "/crypto/") "
    else
    MODULES=" dm-crypt ${CRYPTO_MODULES} "
    fi
    FILES=""
    SCRIPT="encrypt"
    add_dir "/dev/mapper"
    [ -f "/sbin/cryptsetup" ] && add_binary "/sbin/cryptsetup" "/sbin/cryptsetup"
    [ -f "/usr/sbin/cryptsetup" ] && add_binary "/usr/sbin/cryptsetup" "/sbin/cryptsetup"
    add_binary "/sbin/dmsetup"
    add_file "/lib/udev/rules.d/10-dm.rules"
    add_file "/lib/udev/rules.d/13-dm-disk.rules"
    add_file "/lib/udev/rules.d/95-dm-notify.rules"
    help ()
    cat<<HELPEOF
    This hook allows for an encrypted root device.
    HELPEOF
    Since I'd normally take the PKGBUILDs in /core/ as fairly good examples of what the Arch devs consider best practice, it's leaving me with either two conclusions: this is a bug, or I'm missing something. Any input is appreciated. :)

    We chroot() and then chdir() to the root directory in every install script executed- so it is no assumption at all.
    http://projects.archlinux.org/pacman.gi … aa3e7#n421
    Preference would be to omit the leading /, but due to the chroot/chdir combo, both should work.

  • Dual boot with two arch installations and gummiboot

    Hi,
    I found similar topics regarding this matter, but they couldn't resolve my doubts, so I ask once again.
    I currently have an EFI partition with gummiboot and will like to add a new arch installation (to have different configurations, packages versions and repositories. I came to the conclusion that this is the cleanest way to achieve what I want). I think I could use the same partition but if I mount it on /boot there will be problems when I upgrade the kernel because it will override the image in the partition when running mkinitcpio. Maybe if I maintain both installations in sync everything would be fine, but on the long run I think this could cause problems.
    I considered to edit /etc/mkinitcpio.d/linux.preset in one of the installations to change the name of the image, thus both images could cohabit in the same partition, but I don't know if there are some cleaner way to achieve what I want.
    Thanks.

    TheSaint wrote:It'll be necessary to configure mkinitcpio to address the correct path in order that the future kernel updates will go to ther right place.
    See this for details.
    I don't think so -- the use of a bind mount means that the kernel image can go in the standard location, that's the whole point of it.
    @OP: Yes, just make sure to call the path to the respective kernel images relative to $ESP

  • Plz provide me some documents on how to clone a database using cold backup

    Dear All,
    Please provide me some documents on how to clone a database using cold backup which is in archive log.
    Also, please can you provide me the document to install Oracle 9.2.0.6 on Aix 5L
    Thanks,
    Mahipal

    Please provide me some documents on how to clone a database using cold >backup which is in archive loghttp://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php
    please can you provide me the document to install Oracle 9.2.0.6 on Aix 5L
    Oracle9i Installation Guide
    Release 2 (9.2.0.1.0) for UNIX Systems: AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, and Sun Solaris -
    http://download.oracle.com/docs/html/A96167_01/toc.htm

  • HT4413 how to upgrade my current OSX, apps, personal files, etc to a new brand SSD

    how to upgrade my current OSX, apps, personal files, etc to a new brand SSD

    If you have the old hard drive, buy an enclosure, boot your computer off the old hard drive, make a clone of your old hard drive and then copy the clone to the SDD. That will also give you the old hard drive for additional storeage. Other World Computing sells enclosures.
    Other World Computing
    Clone  - Carbon Copy Cloner          (Often recommended as it has more features than some others)
    Clone – Data Backup
    Clone – Deja Vu
    Clone  - SuperDuper
    Clone - Synk
    Clone Software – 6 Applications Tested

  • Automating Arch Installation

    Is there a way to automate Arch installation with the current installation media (2012.10.06)?
    I'm thinking of something like RedHat / Fedora's Kickstart files that allow you to do the steps mentioned in the Official Install Guide (partitioning disks, installing packages, creating users, etc) in an automated way....

    DSpider wrote:
    mbrown wrote:This is exactly the kind of thing I was looking for, thanks! It would be great if something like this became mainstream/widely used, doing installations interactively doesn't scale well...
    Except that you're probably not gonna learn anything that way... I thought about this for a while, and I realized that It's not really worth it. You're installing once in a blue moon anyway (I'm still rocking the same Arch i686 install I did on an old Athlon XP 2200+, from four years ago!), and if you have multiple computers, install once and transfer it to the other ones either from a portable USB drive or through the network.
    I'm the developer of the above linked to archblocks script/modules and wanted to weigh in on this issue. I actually would like to see archblocks used for learning about arch as well as installing it. Part of the intent behind it was to make each step (block) comprehensible.
    I look at the archblocks "blocks" as a link between automated installation and the wiki. Something along the lines of literate programming. And, of course, the benefit is that you get a potentially fully automated install of a very customized system.
    Anyhow, just wanted to let you know that I share the value of learning through doing and hope that the archblocks scripts can contribute to that as well

  • [SOLVED] chroot to LVM filesystem with Arch Installer CD

    Just a while ago, I was trying to disable KMS on my computer, as when I booted, for some reason the computer wouldn't connect to the monitor and display a picture until udev started loading modules.
    I started by adding the line radeon.modeset=0 to menu.lst's kernel option line, but this only made the problem worse as the computer would then never connect to the monitor.
    I couldn't blindly fix this as it would involve guessing when the login prompt was up, typing in my password, opening the editor, and finding the line in menu.lst to edit it.
    So I booted up the Arch Install CD, and thought I would try the Change Root method detailed in the wiki, but realised that I didn't know how to mount the LVM filesystem, because root was contained there.
    The volume group I had was absent from /dev/mapper and /dev, and the only reference I seemed to be able to find was /dev/sda2, which was listed as 'Linux LVM' under fdisk -l. I tried loading the dm-mod module with modprobe then mounting sda2, but it didn't work.
    Fortunately, I had my /boot partition on a separate partition (i.e. sda1) as recommended by the wiki, so I could mount it and fix the problem anyway.
    However, I need to fix this problem with KMS somehow in the future, which may require editing files outside of /boot and it may need me to know how to mount the LVM filesystem and chroot to it, so how do I do that with the Arch Installer?
    Last edited by louis058 (2012-04-14 10:24:13)

    jasonwryan wrote:
    vgchange --available y $volgroupname
    man vgchange wrote:       -a, --available [e|l]{y|n}
    Controls the availability of the logical volumes in the volume group for input/output.  In other words, 
    makes  the  logical  volumes known/unknown to the kernel.
    Wow, thank you. I did look at 'man lvm', but I guess I wasn't looking hard enough. I'll go test it out right away.

  • Larch-4 testing, can also 'livify' existing Arch installation

    I've uploaded a testing repository for larch-4 to:
    ftp://archie.dotsrc.org/projects/archie/larch/testing
    It has some added features which need testing - especially with USB, which is difficult for me to test because my computers are rather old and don't support USB boot.
    It should now be possible to adjust the session-saving behaviour without modifying the larch scripts - additional scripts (hooks / event-handlers, call them what you will ...) can be placed in a 'scripts' folder in the root directory of the boot device (using the profile mechanism) to adjust loading and saving of overlay files. Initial description (sorry, it's still rather sketchy) in the session-saving doc page.
    The home directory is now a separate sqf (not overlayed).
    Added options to mklarch to build a CD/USB-stick from an existing Arch installation. This can be done, for example, from a live CD (using the -x option) or even from the system itself while it is running (option -X). This could be rather dangerous - don't do it on your main installation. I've tried it out - without obvious damage - on a test installation, and it looked quite promising, but be careful.
    Added option -r to mklarch to ensure regeneration of base and system sqfs when 'reusing' an installation (with options -b, -x, -X).
    Changed the place where the live CD is built (default /home/larchroot) and the structure within this folder. The installation is now made directly to this location and the building is done in subfolder .larch, where the final iso also lands.
    To use it, just copy the larch-setup.sh script to an empty folder and run it (as before). Then you have the new mklarch set up and ready to go.
    Feedback welcome.

    spookykid wrote:
    Hi gradgrind, this tool is really what I'm looking for. I have 3 partitions: /dev/sda1 -> swap; /dev/sda2 -> reiserfs (partition where my system is installed); /dev/sda3 -> reiserfs (partition where I'm running mklarch script). I want to try larch but I have a few questions.
    1) To create a LiveCD from my current arch setup I only need to  run
    ./mklarch -X
    If you're running the system you want to save, yes. But from your description it sounds like you're doing something else. Do I understand correctly that you have some other system unrelated to sda2 on sda3 and you want to run mklarch from sda3? And what you want to livify is sda2? Then you need to do something like:
    # mount -o dev,exec /dev/sda2 /mnt/sda2
    # ./mklarch -x /mnt/sda2
    Note the small 'x'.
    spookykid wrote:2) Is it possible to add gensplash to larch?
    Sorry, I have no idea about gensplash. If it's supported by Arch then it should work with larch too, but it's not something in which I have any interest.
    spookykid wrote:3) For what I've read about larch I can have a system installed with 4 GB and that will fit on a 700 MB CD?
    I hope I didn't write that. You might need that much free space to build a 700MB CD, but a more accurate estimate of what fits would be about 2GB. If you want more you'll need correspondingly more free space and a DVD or a large USB-stick.
    spookykid wrote:4) Larch will only go for my /dev/sda2 partition (where i have my system) or will it add all available partitions to the live image?
    It just packs up what it finds at the mount point, so if you've got other stuff mounted within the system (I guess in your case you probably haven't) don't be surprised if it tries to pack that up too. I think (I hope!) it ignores stuff mounted within /mnt and /media, but I'd have to look at the code again to be sure. For people who have /home or /var or whatever on separate partitions it is necessary to mount these before running mklarch.
    If you use 'mklarch -X' (big 'X') to build a live CD from the currently running system, all the mounts should be ok anyway, but I think that in general building from a separate system, as you seem to want to do might be slightly safer.
    In any case, please back up anything important before running mklarch - just in case! It runs as root and could do all sorts of nasty things. I don't think it will, but don't blame me if it feeds your grandmother to the ravenous bugblatter beast of Traal

  • Arch installer not detecting all my partitions

    I have a macbook 2.1, and i am dual booting OS X and arch linux,  I have 4 partitions in /dev/sda.  The arch installer only detects three of them.  I have been following the macbook and official install guide articles on the wiki.  However, the last time, it saw all of them.
    What's wrong?

    Yes.  It is identical to the output provided from the partition inspector in the *.dmg
    *** Report for internal hard disk ***
    Current GPT partition table:
    #      Start LBA      End LBA  Type
    1             40       409639  EFI System (FAT)
    2         409640     77742119  Mac OS X HFS+
    3       78006272    156301311  Basic Data
    Current MBR partition table:
    # A    Start LBA      End LBA  Type
    1              1       409639  ee  EFI Protective
    2         409640     77742119  af  Mac OS X HFS+
    3       77742120    156296384  05  Extended (CHS)
    MBR contents:
    Boot Code: None
    Partition at LBA 40:
    Boot Code: None (Non-system disk message)
    File System: FAT32
    Listed in GPT as partition 1, type EFI System (FAT)
    Partition at LBA 409640:
    Boot Code: None
    File System: HFS Extended (HFS+)
    Listed in GPT as partition 2, type Mac OS X HFS+
    Listed in MBR as partition 2, type af  Mac OS X HFS+
    Partition at LBA 78006272:
    Boot Code: None (Non-system disk message)
    File System: FAT32
    Listed in GPT as partition 3, type Basic Data
    Partition at LBA 77742120:
    Boot Code: None
    File System: Unknown
    Listed in MBR as partition 3, type 05  Extended (CHS)
    EDIT: Almost identical, this output doesn't contain an error.
    Last edited by Lexion (2008-12-28 17:05:34)

Maybe you are looking for