Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
sanboot:ubuntu_aoe [2010/09/17 04:40] qiet72 |
sanboot:ubuntu_aoe [2010/09/17 05:03] (current) qiet72 |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Setting up an Ubuntu Installation to work with AOE ====== | ====== Setting up an Ubuntu Installation to work with AOE ====== | ||
| + | (Tested on Ubuntu Lucid 10.04 and Ubuntu Maverick 10.10) | ||
| First make sure you have a server with some aoe server software installed. If you use Linux as a server, get and install the "vblade" package. | First make sure you have a server with some aoe server software installed. If you use Linux as a server, get and install the "vblade" package. | ||
| Line 56: | Line 57: | ||
| Note: I don't know if the above steps are the best way to make eth0 name static, but this is what works for me. | Note: I don't know if the above steps are the best way to make eth0 name static, but this is what works for me. | ||
| + | |||
| + | You are now finished with editing the client. Shutdown the client now. | ||
| + | |||
| + | ===== Last step: Transfer the image to the server ===== | ||
| + | |||
| + | You could just copy the image as is, but it is even smarter to make a sparse file. That way only actual data is copied and not the empty sectors. You can do this under linux with the cp command: | ||
| + | <code> | ||
| + | cp --sparse=always disk.img /media/server-data/disk-images/disk.img | ||
| + | </code> | ||
| + | |||
| + | If you installed to a physical machine, boot up the machine with a live linux cd, become root and do this command: | ||
| + | <code> | ||
| + | cp --sparse=always /dev/sda /media/server-data/disk-images/disk.img | ||
| + | </code> | ||
| ===== Random Notes ===== | ===== Random Notes ===== | ||
| - | If you don't install any proprietary video drivers, then what you got here is an image that will boot from either AOE, USB, or any internal/external disk on any machine. | + | * If you don't install any proprietary video drivers, then what you got here is an image that will boot from either AOE, USB, or any internal/external disk on any machine. |
| + | * Since Ubuntu is Debian based, these steps should work with Debian too but I haven't tried it myself | ||
| + | * You cannot create sparse images if you copy to a windows or samba network share, use nfs/ssh/nc (netcat) instead. Here is an example with nc (netcat): | ||
| + | Client side: | ||
| + | <code> | ||
| + | cat /dev/sda | nc -l -p 1234 | ||
| + | </code> | ||
| + | Server side: | ||
| + | <code> | ||
| + | nc <client-ip> 1234 | cp --sparse=always /dev/stdin disk.img | ||
| + | </code> | ||
| - | Created by --- //[[qiet72@gmail.com|Quinn Plattel]] 2010/09/17 07:33// | + | Created by --- //Quinn Plattel 2010/09/17 07:33// |