07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

or Mandriva). Other methods include --copy, to copy an image from an<br />

existing system, and --tar, to extract the system image from an archive.<br />

In case of a non-Linux system, care should be taken to define the kernel<br />

the domU must use, using the --kernel option.<br />

• --dhcp states that the domU's network configuration should be obtained by DHCP while<br />

--ip allows defining a static IP address.<br />

• Lastly, a storage method must be chosen for the images to be created (those that will be<br />

seen as hard disk drives from the domU). The simplest method, corresponding to the --<br />

dir option, is to create one file on the dom0 for each device the domU should be provided.<br />

For systems using LVM, the alternative is to use the --lvm option, followed by the name<br />

of a volume group; xen-create-image will then create a new logical volume inside that<br />

group, and this logical volume will be made available to the domU as a hard disk drive.<br />

NOTE<br />

Storage in the domU<br />

Entire hard disks can also be exported to the domU, as well as partitions,<br />

RAID arrays or pre-existing LVM logical volumes. These operations<br />

are not automated by xen-create-image, however, so editing the<br />

Xen image's configuration file is in order aer its initial creation with<br />

xen-create-image.<br />

Once these choices are made, we can create the image for our future Xen domU:<br />

# xen-create-image --hostname=testxen<br />

General Information<br />

--------------------<br />

Hostname : testxen<br />

Distribution : squeeze<br />

Mirror : http://ftp.us.debian.org/debian/<br />

Partitions : swap 128Mb (swap)<br />

/ 4Gb (ext3)<br />

Image type : sparse<br />

Memory size : 128Mb<br />

Kernel path : /boot/vmlinuz-2.6.32-5-xen-686<br />

Initrd path : /boot/initrd.img-2.6.32-5-xen-686<br />

[...]<br />

Logfile produced at:<br />

/var/log/xen-tools/testxen.log<br />

Installation Summary<br />

---------------------<br />

Hostname : testxen<br />

Distribution : squeeze<br />

IP-Address(es) : dynamic<br />

Chapter 12 — Advanced Administration<br />

323

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!