pxe ubuntu livecd

Setting up PXE boot of Ubuntu 12.04 Live CD

INTRODUCTION

Sometimes it's nice to boot a complete operating system over a network, and not have to install to a drive or use a CD. This allows you to have diskless machines, or perform operations on an installed drive that can't be done whilst it is mounted.

This tutorial assumes you have already set up a cobbler pxe/dhcp server (see previous posts) and teaches you the final steps for adding a live ubuntu12 image. You will also need to have set up an nfs server.

Mount the ubuntu desktop image
sudo mount -o loop /my/iso/location.iso /mnt
Copy the contents (making sure to include the .disk directory) to your NFS location (this may be on another computer/server, so you may need to perform the previous step on that machine).
sudo cp -R /mnt/* /my/nfs/location/. 
sudo cp -R /mnt/.disk/ /my/nfs/location/.
Add the distro to cobbler
sudo cobbler distro add \
--name=ubuntu-desktop-32 \
--kernel=/mnt/casper/vmlinuz \ 
--initrd=/mnt/casper/initrd.lz
If it is a initrd.gz file, you may have to run this on it first:
gunzip --decompress initrd.gz
Add a profile to cobbler
sudo cobbler profile add \ 
--name=ubuntu-desktop-32 \ 
--distro=ubuntu-desktop
Sync cobbler
sudo cobbler sync
Edit the pxelinux boot menu to add a few details (link the nfs)
sudo vi /var/lib/tftpboot/pxelinux.cfg/default
Add the following details to the ubuntu deskto part of the menu, and remove any unnecessary parts.
boot=casper netboot=nfs nfsroot=192.168.1.6:/my/nfs/location

Start up your pxe client, and it should all hopefully go to plan. If it gets stuck on a message like:
Please provide a name for this Disc, such as
Then you didn't copy the hidden .disk directory from the cd correctly in the first step.

POSSIBLE PROBLEMS

Don't forget to have set up your dhcpd server correctly. I have mine set to be mac specific, so you may need to add another host like I did

REFERENCES

  • http://ubuntuforums.org/showthread.php?p=12412325#post12412325
  • http://www.youtube.com/watch?v=m6aq1emO9Kc&list=UUJNtLUBnWo07Ob1fLnbD43g&index=26
<script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/buttonLite.js#style=-1&uuid=&pophcol=3&lang=zh"></script> <script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/bshareC0.js"></script>
阅读(51) | 评论(0) | 转发(0) |
0

上一篇:linux并口编程

下一篇:lzma inird de/compress

给主人留下些什么吧!~~
评论热议
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值