PGNet Dev
2009-Jun-02 22:10 UTC
scripable, auto-config of install of 2009.06 as a Xen DomU guest on Linux Dom0?
i''m 1st-installing 2009.06 as a Xen DomU guest on a Linux (Opensuse 11.1) Dom0. following advice at, "How to Set up OpenSolaris 2008.11 or later as a Paravirtual Guest" http://opensolaris.org/os/community/xen/docs/opensolaris_domu/ @ xm create -c my_solaris_cfg i get to the opensolaris console login: jack Password: jack ... jack@opensolaris:~$ then su - Password: opensolaris ... root@opensolaris:~# setup for static IP, svcadm disable network/physical:nwam svcadm enable network/physical:default ifconfig xnf0 down ifconfig xnf0 192.168.1.102 netmask 255.255.255.0 ifconfig xnf0 up route add default 192.168.1.102 cp /etc/nsswitch.dns /etc/nsswitch.conf echo "nameserver 192.168.1.1" > /etc/resolv.conf logout ... jack@opensolaris:~$ setup for VNC use, mkdir .vnc;cp .Xclients .vnc/xstartup vncserver Password: testpass Verify: testpass then connect with a VNC client to 192.168.1.1:5901 then @ OpenSolaris Desktop, click on "Install OpenSolaris" and proceed from there ... instead of the _manual_ interaction, as above, (how) can the above static_IP, DNS & VNC setup be passed to the iso-based installer from the DomU''s xen cfg file? for Opensuse DomU guest installer, i''d add, e.g. (for a network install), extra = ''... autoyast=nfs://192.168.1.9/os11/autoyast.xml install=http://(mirror_path)/opensuse/distribution/11.1/repo/oss?device=eth0 hostip=192.168.1.102/24 gateway=192.168.1.1 nameserver=192.168.1.1'' where ''autoyast'' in *suse''s installer-scripting config language. does same exist for opensolaris? can it be used for an opensolaris-as-guest install? either from lomount''ed .iso, or from network? thanks.
John Levon
2009-Jun-02 22:28 UTC
Re: scripable, auto-config of install of 2009.06 as a Xen DomU guest on Linux Dom0?
On Tue, Jun 02, 2009 at 03:10:41PM -0700, PGNet Dev wrote:> instead of the _manual_ interaction, as above, (how) can the above > static_IP, DNS & VNC setup be passed to the iso-based installer from > the DomU''s xen cfg file?It cannot, OpenSolaris doesn''t really support anything other than DHCP. For VNC access, though, see http://blogs.sun.com/levon/entry/opensolaris_2008_11_as_a regards john
PGNet Dev
2009-Jun-02 22:30 UTC
Re: scripable, auto-config of install of 2009.06 as a Xen DomU guest on Linux Dom0?
hi john, On Tue, Jun 2, 2009 at 3:28 PM, John Levon <john.levon@sun.com> wrote:> OpenSolaris doesn''t really support anything other than DHCP.per my OP, i''m connected via VNC to an assigned static IP just fine ... perhaps i''m misunderstanding. are you saying that installer _scripting_ is not supported, and/or that the installer can''t be otherwise ''convinced'' to use a static IP ? if that''s the case, how''s one install in an environment that has no DHCP services? thanks.
John Levon
2009-Jun-02 22:59 UTC
Re: scripable, auto-config of install of 2009.06 as a Xen DomU guest on Linux Dom0?
On Tue, Jun 02, 2009 at 03:30:36PM -0700, PGNet Dev wrote:> if that''s the case, how''s one install in an environment that has no > DHCP services?You do what you''re doing - manually configure the interface. There''s not an exact RFE for doing better that I could find, but there is: http://defect.opensolaris.org/bz/show_bug.cgi?id=4681 osol-0811-101a-rc1b : configuring static IP is very difficult. sys-unconfig requires hack. Even if the installer allowed a static networking config, you''d need more to be able to pass the info via the kernel cmdline regards john