27.12.2012 Views

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

# vi linux03.conf<br />

// ... modify IPADDR and HOSTNAME variables<br />

► Clone a basic virtual server. In this example the user ID LINUX03 is used.<br />

# clone -v rh6gold linux03<br />

Invoking CP command: QUERY rh6gold<br />

Invoking CP command: QUERY linux03<br />

This will copy disks from rh6gold to linux03<br />

Host name will be: 6.endicott.ibm.com<br />

IP address will be: 9.60.18.224<br />

Do you want to continue? (y/n): y<br />

...<br />

► When the new system comes up, start an SSH session to the new virtual server.<br />

11.3.2 Installing necessary RPMs<br />

Add the following RPMs with the yum -y command:<br />

# yum -y install samba<br />

...<br />

Installed:<br />

samba.s390x 0:3.5.4-68.el6<br />

Confirm that the RPMs were added:<br />

# rpm -qa | grep samba<br />

samba-common-3.0.28-0.el5.8<br />

samba-client-3.0.28-0.el5.8<br />

samba-3.0.28-0.el5.8<br />

samba-common-3.0.28-0.el5.8<br />

11.3.3 Configuring Samba configuration file<br />

<strong>The</strong> one configuration file <strong>for</strong> Samba is /etc/samba/smb.conf. It is easy to add an SMB share<br />

that will be made available by the Samba server. A good test directory is /usr/share/doc/ as<br />

it has much good Linux documentation. <strong>The</strong> following example will create a file share named<br />

sharedoc:<br />

# cd /etc/samba<br />

# cp smb.conf smb.conf.orig<br />

# vi smb.conf // add three lines at the bottom of the file:<br />

...<br />

[sharedoc]<br />

comment = RHEL 6 on System z documentation<br />

path = /usr/share/doc/<br />

You can verify the syntax of your changes with the testparm command:<br />

# testparm smb.conf<br />

Load smb config files from smb.conf<br />

Processing section "[homes]"<br />

Processing section "[printers]"<br />

Processing section "[sharedoc]"<br />

Loaded services file OK.<br />

Server role: ROLE_STANDALONE<br />

Press enter to see a dump of your service definitions<br />

...<br />

Chapter 11. Cloning open source virtual servers 179

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

Saved successfully!

Ooh no, something went wrong!