Results 1 to 10 of 10

Thread: Clone windows over a network with SSH & DD

Hybrid View

  1. #1
    Member Dissident85's Avatar
    Join Date
    Jun 2008
    Posts
    127

    Default Clone windows over a network with SSH & DD

    Do you think it would be possible to install windows 2008 over SSH using DD. I have a server that has no DVD drive and it won't boot off a usb drive and I want to put windows server 2008 on it, for developing a asp.net website. The only way I think I can do this is to install it on a VM on my workstation then using some Linux live cd to make an image of the install from the VM to the server. with something like this.
    Code:
     dd if=/dev/sda | ssh 10.0.3.158 dd of=/dev/sda
    besides the fact that it will take forever to copy over 20gb. Do you think it will work? Or am I wasting my time? Or can anyone think of a better way to go about this?

  2. #2
    Member
    Join Date
    Jan 2010
    Location
    The new forums
    Posts
    462

  3. #3
    Senior Member streaker69's Avatar
    Join Date
    Jan 2010
    Location
    Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
    Posts
    3,535

    Default

    If you have a regular ol' IDE DVD drive lying around, get yerself one of these:

    USB 2.0 to IDE (2.5"/3.5") Cable Adapter ADA-2012

    Boot of the DVD via the USB port, unless your server is too old to boot from a USB device. I've done it on several different makes and models of servers and never had a problem.
    A third party security audit is the IT equivalent of a colonoscopy. It's long, intrusive, very uncomfortable, and when it's done, you'll have seen things you really didn't want to see, and you'll never forget that you've had one.

  4. #4
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    If the destination computer can boot over pxe then you can do it that way .
    Install Windows over the network with PXE » Lockstockmods

    The "push" installation is another method see
    FpPushInst.exe (Push Install Command)
    There are better references than that one though.
    Check out the automated install kit I think it is called.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  5. #5
    Member Dissident85's Avatar
    Join Date
    Jun 2008
    Posts
    127

    Default

    I think PXE might be the way to go... But that guide on Lockstockmods won't work. its wants me to copy over the i386 folder for the install and I don't think that that's possible on windows server 2008. because there isn't one. from what I can see everything is in sources\install.wim

    Time to start googleing..

  6. #6
    Super Moderator lupin's Avatar
    Join Date
    Jan 2010
    Posts
    2,943

    Default

    CloneZilla might work... I havent tried it for network cloning but I do use it for local cloning...
    Capitalisation is important. It's the difference between "Helping your brother Jack off a horse" and "Helping your brother jack off a horse".

    The Forum Rules, Forum FAQ and the BackTrack Wiki... learn them, love them, live them.

  7. #7
    Member Dissident85's Avatar
    Join Date
    Jun 2008
    Posts
    127

    Default

    Quote Originally Posted by lupin View Post
    CloneZilla might work... I havent tried it for network cloning but I do use it for local cloning...
    That might work, I think I'll have a go at installing the WDS roll on my VM and using PXE on the server to install it over the network, if that fails ill try clonezilla

  8. #8
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    Quote Originally Posted by Dissident85 View Post
    I think PXE might be the way to go... But that guide on Lockstockmods won't work. its wants me to copy over the i386 folder for the install and I don't think that that's possible on windows server 2008. because there isn't one. from what I can see everything is in sources\install.wim

    Time to start googleing..
    Yes the example link was just an example.
    Try looking over at the MS TechNet For all the official info an resources
    Deploy Windows Server 2008 R2
    This page will get you going.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  9. #9
    Junior Member
    Join Date
    Jul 2009
    Posts
    78

    Default

    I prefer "-c cipher_spec" and "scp"
    see my litle benchmark:
    scp ping@pong:/home/aa/test.iso /dev/null
    100% 59MB 14.7MB/s 00:04
    scp -c arcfour ping@pong:/home/aa/test.iso /dev/null
    100% 59MB 29.4MB/s 00:02
    scp -c cast128-cbc ping@pong:/home/aa/test.iso /dev/null
    100% 59MB 9.8MB/s 00:06
    scp -c arcfour128 ping@pong:/home/aa/test.iso /dev/null
    100% 59MB 19.6MB/s 00:03
    scp -c arcfour256 ping@pong:/home/aa/test.iso /dev/null
    100% 59MB 19.6MB/s 00:03
    scp -c blowfish-cbc ping@pong:/home/aa/test.iso /dev/null
    100% 59MB 14.7MB/s 00:04
    scp -c aes256-ctr ping@pong:/home/aa/test.iso /dev/null
    100% 59MB 11.8MB/s 00:05
    ssh -c blowfish-cbc ping@192.168.x.1 "cat /home/aa/test.iso" | dd of=/dev/null
    61640704 Bytes (62 MB) kopiert, 17,8659 s, 3,5 MB/s
    ssh -c aes256-ctr ping@192.168.x.1 "cat /home/aa/test.iso" | dd of=/dev/null
    61640704 Bytes (62 MB) kopiert, 16,3896 s, 3,8 MB/s
    ssh -c arcfour ping@192.168.x.1 "cat /home/aa/test.iso" | dd of=/dev/null
    61640704 Bytes (62 MB) kopiert, 13,2453 s, 4,7 MB/s

    expample
    1.
    Code:
    sudo badblocks -vsn /dev/sda1
    2.
    Code:
    echo "p" | /sbin/fdisk /dev/sda1 | grep Units
    3.
    Code:
    dd if=/dev/sda1 | md5sum -b
    4.
    Code:
    dd if=/dev/sda1 bs=1024k | pv | gzip -6 > ~/sda1.img.gz
    5.
    Code:
    cat ~/sda1.img.gz | gunzip -c | md5sum -b
    6.
    Code:
    scp -c arcfour256 ping@pong:~/sda1.img.gz ping@pong:~/sda1.img.gz
    Pc 2
    7.
    Code:
    sudo badblocks -vsn /dev/sda1
    8.
    Code:
    cat ~/sda1.img.gz | gunzip -c | md5sum -b
    8.
    Code:
    gunzip -c ~/sda1.img.gz | dd of=/dev/sda1 bs=1024k
    [COLOR="RoyalBlue"][SIZE="2"]Nought's had, all's spent, ... Where our desire is got without content
    [/COLOR][/SIZE]

  10. #10
    Good friend of the forums
    Join Date
    Jun 2008
    Posts
    425

    Default

    You might beable to copy across nortons ghost by ssh with a dos boot setup, and get it to load by autoexec. ghost has a option to get a image across a network.

    hope it helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •