[xenpreview-dev] YaST2 Problems
L. Mark Stone
lmstone at rnome.com
Sun Aug 20 08:18:35 MDT 2006
Quoting "Günther J. Niederwimmer" <gjn at gjn.priv.at>:
> Hello,
>
> why it is not longer possible to create a domU config like this ?
>
> disk = [ 'phy:/dev/sdg4,hda1,w', 'phy:/dev/sdg3,hdb1,w ' ]
>
We are just now building SLES10 virtual machines using the YaST tool.
I had some similar setup problems (I wanted to use lvm partitions),
and posted a question on the SLES list.
As I understand it, if you use the device mapper reference numbers in
Xen domUs you are OK, and indeed the YaST Xen setup tool is configured
to use those numbers.
So, if you run 'dmsetup ls' like so:
tempranillo:/etc/xen/vm # dmsetup ls
system-viognier_swap (253, 5)
system-viognier_root (253, 4)
system-pinotnoir_swap (253, 3)
system-pinotnoir_root (253, 2)
system-lvm_installroot (253, 0)
system-lvm_root (253, 1)
storage-lvm_backups (253, 6)
tempranillo:/etc/xen/vm # lvs
LV VG Attr LSize Origin Snap% Move Log Copy%
lvm_backups storage -wi-ao 169.50G
lvm_installroot system -wi-ao 10.00G
lvm_root system -wi-ao 15.00G
pinotnoir_root system -wi-ao 60.00G
pinotnoir_swap system -wi-ao 2.00G
viognier_root system -wi-ao 30.00G
viognier_swap system -wi-ao 2.00G
tempranillo:/etc/xen/vm #
you can see last number on the right is the dm-? number.
Therefore, in /etc/xen/vm/pinotnoir I have created by YaST:
disk = [ 'phy:/dev/dm-2,hda,w', 'phy:/dev/dm-3,hdb,w',
'file:/installroot/SLES-10-AMD64-EM64T-DVD1.iso,hdc,r' ]
The comparable line for the vm viognier looks like:
disk = [ 'phy:/dev/dm-4,hda,w', 'phy:/dev/dm-5,hdb,w',
'file:/installroot/SLES-10-AMD64-EM64T-DVD1.iso,hdc,r' ]
If you use the YaST tool, all the dm-? available choices are available
via the drop-down list if you choose to use a block device setup
routine. You just need to run 'dmsetup ls' (and maybe lvs) to figure
out which dm-? numbers to use.
Hope that helps,
Mark
P.S. /installroot is mounted read-only.
--
_________________________________________________________
A Message From... L. Mark Stone
Reliable Networks of Maine, LLC
"We manage your network so you can manage your business"
477 Congress Street
Portland, ME 04101
Tel: (207) 772-5678
Web: http://www.rnome.com
This email was sent from Reliable Networks of Maine LLC.
It may contain information that is privileged and confidential.
If you suspect that you were not intended to receive it, please
delete it and notify us as soon as possible. Thank you.
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1713 bytes
Desc: PGP Public Key
Url : http://forge.novell.com/pipermail/xenpreview-dev/attachments/20060820/a4e78575/attachment.bin
More information about the xenpreview-dev
mailing list