How can I start a DomU from a logical partition? One way that seems to work is to use a config file like this: kernel = "/export/xen-images/centos1/vmlinuz-2.6.16.13-xen" memory = 128 name = "ubuntu6" disk = [ ''phys:/dev/dsk/c0d0p0,hda,w'' ] vif = [ ''mac=00:16:3E:00:00:21'' ] root = "/dev/hda5 ro" But this is of course a very dangerous configuration ... Is there a better way to do that? regards Bernd This message posted from opensolaris.org
Bernd Schemmer wrote:> How can I start a DomU from a logical partition? > > One way that seems to work is to use a config file like this: > > kernel = "/export/xen-images/centos1/vmlinuz-2.6.16.13-xen" > memory = 128 > name = "ubuntu6" > disk = [ ''phys:/dev/dsk/c0d0p0,hda,w'' ] > vif = [ ''mac=00:16:3E:00:00:21'' ] > root = "/dev/hda5 ro" > > But this is of course a very dangerous configuration ... >What do you mean by ''dangerous''? To export the entire disk? If you like, you can export only the slice containing the rootfs: disk = [''phy:/dev/dsk/c0d0s0,hda,w''] Max> Is there a better way to do that? > > regards > > Bernd > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org >
Max Zhen wrote:> > > Bernd Schemmer wrote: > >> How can I start a DomU from a logical partition? >> >> One way that seems to work is to use a config file like this: >> >> kernel = "/export/xen-images/centos1/vmlinuz-2.6.16.13-xen" >> memory = 128 >> name = "ubuntu6" >> disk = [ ''phys:/dev/dsk/c0d0p0,hda,w'' ] vif = [ >> ''mac=00:16:3E:00:00:21'' ] >> root = "/dev/hda5 ro" >> >> But this is of course a very dangerous configuration ... >> > > What do you mean by ''dangerous''? To export the entire disk?Yes> If you like, you can export only the slice containing the rootfs: > disk = [''phy:/dev/dsk/c0d0s0,hda,w''] >That will not work in my case I want to start Ubuntu from the logical partition /dev/hda5 as Xen DomU. The rootfs is not on a slice - it''s on a logical partition (not a primary partition!). And logical partitions are not seen by Solaris - or did that change and I missed it? regards Bernd> Max > >> Is there a better way to do that? >> >> regards >> >> Bernd >> >> >> This message posted from opensolaris.org >> _______________________________________________ >> xen-discuss mailing list >> xen-discuss@opensolaris.org >> > > >-- Bernd Schemmer, Frankfurt am Main, Germany http://home.arcor.de/bnsmb/index.html Más temprano que tarde el mundio cambiará Fidel Castro
Bernd Schemmer wrote:> Max Zhen wrote: > >> >> >> Bernd Schemmer wrote: >> >>> How can I start a DomU from a logical partition? >>> >>> One way that seems to work is to use a config file like this: >>> >>> kernel = "/export/xen-images/centos1/vmlinuz-2.6.16.13-xen" >>> memory = 128 >>> name = "ubuntu6" >>> disk = [ ''phys:/dev/dsk/c0d0p0,hda,w'' ] vif = [ >>> ''mac=00:16:3E:00:00:21'' ] >>> root = "/dev/hda5 ro" >>> >>> But this is of course a very dangerous configuration ... >>> >> >> What do you mean by ''dangerous''? To export the entire disk? > > Yes > >> If you like, you can export only the slice containing the rootfs: >> disk = [''phy:/dev/dsk/c0d0s0,hda,w''] >> > That will not work in my case I want to start Ubuntu from the logical > partition /dev/hda5 as Xen DomU. > > The rootfs is not on a slice - it''s on a logical partition (not a > primary partition!). And logical partitions are not seen by Solaris - > or did that change and I missed it?I see what you mean... You are right. Solaris cannot see the logical partition. So, you cannot root your domU that way :-(. Max> > regards > > Bernd > >> Max >> >>> Is there a better way to do that? >>> >>> regards >>> >>> Bernd >>> >>> >>> This message posted from opensolaris.org >>> _______________________________________________ >>> xen-discuss mailing list >>> xen-discuss@opensolaris.org >>> >> >> >> > >