From lssl@ssl-mail.com Mon Feb 13 15:07:46 2017 From: lssl@ssl-mail.com To: virtual@lists.opensuse.org Subject: [opensuse-virtual] autoyast installation in Xen DomUs -- defining /etc/fstab ? Date: Mon, 13 Feb 2017 07:07:43 -0800 Message-ID: <1486998463.1266228.879410928.7A9A60DC@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6801760226319360102==" --===============6801760226319360102== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I'm setting up autoyast for autoinstall of Xen DomUs. Both Xen Host & Guests run Opensuse Leap 42.2. >From my Dom0 I pass pre-formatted, but not yet populated, LVMs as disks to t= he DomU config guest.cfg ... disk =3D [ 'phy:/dev/VG0/EFI,xvda,w','phy:/dev/VG0/ROOT,xvde,w'] ... I want my Guest /etc/fstab to end up as UUID=3DAAAA-BBBB /boot/efi vfat [ ... efi fstab options ... ] 0 2 UUID=3D111...111 / ext4 [ ... root fstab options ... ] 1 1 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 devpts /dev/pts devpts mode=3D0620,gid=3D5 0 0 My question is how 'best' to set the 'proc', 'sysfs', debugfs', 'devpts' moun= ts & their respective fstopts? In the autoyast.xml that'll get passed to the xen.cfg, IIUC, I can use for the passed-in devices, with 'initialize', 'create' & 'format' al= l =3D=3D "false", /dev/xvda false false false /boot/efi uuid [ ... efi fstab options ... ] max vfat 1 /dev/xvde false false false / uuid [ ... root fstab options ... ] max ext4 1 Where in that case would I set the 'proc', 'sysfs', debugfs', & 'devpts' moun= ts? They're not *additional* partitions, and from the docs, for a given part= ition I can only have one .... One option would be to use a postpartitioning script , modifying the just-created-fstab immediately after the step. That's doable, but seems messy. What's the recommended way to get to a completely defined fstab in the Xen-Do= mU-install case above? --=20 To unsubscribe, e-mail: opensuse-virtual+unsubscribe(a)opensuse.org To contact the owner, e-mail: opensuse-virtual+owner(a)opensuse.org --===============6801760226319360102==-- From olaf@aepfle.de Mon Feb 13 16:30:20 2017 From: Olaf Hering To: virtual@lists.opensuse.org Subject: Re: [opensuse-virtual] autoyast installation in Xen DomUs -- defining /etc/fstab ? Date: Mon, 13 Feb 2017 17:30:16 +0100 Message-ID: <1487003416.27268.6.camel@aepfle.de> In-Reply-To: <1486998463.1266228.879410928.7A9A60DC@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5564671028576258987==" --===============5564671028576258987== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Am Montag, den 13.02.2017, 07:07 -0800 schrieb lssl(a)ssl-mail.com: > Both Xen Host & Guests run Opensuse Leap 42.2. Cant answer your autoyast question. Since 42.x there is no need for such fstab entries anymore. Some component of systemd mount them automatically. The example you gave seem to be the defaults, which are also used by the systemd mount. Olaf --===============5564671028576258987== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlHMEVBQkVDQUMwV0lRU2tSeVA2Um4vL2Yw M3BSVUJkUXFENnBwZzJmZ1VDV0tIZkdROGNiMnhoWmtCaFpYQm0KYkdVdVpHVUFDZ2tRWFVLZytx YVlObjdka0FDZzdoS2IwY2V2L1ZOWU1WVVlQajZENXVBdW03Z0FvTjNaMFh0cwpIb05rcTdETWFK WFRQOVIwdWRqVAo9OTlqdAotLS0tLUVORCBQR1AgU0lHTkFUVVJFLS0tLS0K --===============5564671028576258987==-- From lssl@ssl-mail.com Mon Feb 13 16:57:44 2017 From: lssl@ssl-mail.com To: virtual@lists.opensuse.org Subject: Re: [opensuse-virtual] autoyast installation in Xen DomUs -- defining /etc/fstab ? Date: Mon, 13 Feb 2017 08:57:40 -0800 Message-ID: <1487005060.1292587.879535576.0FE677A2@webmail.messagingengine.com> In-Reply-To: <1487003416.27268.6.camel@aepfle.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0454867665454419798==" --===============0454867665454419798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 13, 2017, at 08:30 AM, Olaf Hering wrote: > Cant answer your autoyast question. Are you suggesting that there's no way to use Autoyast to fully specify & con= figure a Xen Guests's ftsab? > Since 42.x there is no need for such fstab entries anymore. Some > component of systemd mount them automatically. That's not entirely accurate. In fact, use of/etc/fstab is recommended/prefe= rred: https://www.freedesktop.org/software/systemd/man/systemd.mount.html# fstab "Mount units may either be configured via unit files, or via /etc/fstab (see = fstab(5) for details). Mounts listed in /etc/fstab will be converted into nat= ive units dynamically at boot and when the configuration of the system manage= r is reloaded. In general, configuring mount points through /etc/fstab is the= preferred approach. See systemd-fstab-generator(8) for details about the con= version." > The example you gave > seem to be the defaults, which are also used by the systemd mount. And if you want to change those options? Or if you want to add/modify additional mounts , e.g., under "/" ? If autoyast isn't capable at all, I'll be quite suprised, but that's of cours= e useful to know. --=20 To unsubscribe, e-mail: opensuse-virtual+unsubscribe(a)opensuse.org To contact the owner, e-mail: opensuse-virtual+owner(a)opensuse.org --===============0454867665454419798==-- From olaf@aepfle.de Tue Feb 14 09:23:48 2017 From: Olaf Hering To: virtual@lists.opensuse.org Subject: Re: [opensuse-virtual] autoyast installation in Xen DomUs -- defining /etc/fstab ? Date: Tue, 14 Feb 2017 10:23:42 +0100 Message-ID: <20170214092342.GA29655@aepfle.de> In-Reply-To: <1487005060.1292587.879535576.0FE677A2@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2293009552297337860==" --===============2293009552297337860== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 13, lssl(a)ssl-mail.com wrote: > On Mon, Feb 13, 2017, at 08:30 AM, Olaf Hering wrote: > > Cant answer your autoyast question. > Are you suggesting that there's no way to use Autoyast to fully specify & c= onfigure a Xen Guests's ftsab? No, I said I cant answer the autoyast question. > > Since 42.x there is no need for such fstab entries anymore. Some > > component of systemd mount them automatically. > "Mount units may either be configured via unit files, or via /etc/fstab (se= e fstab(5) for details). Mounts listed in /etc/fstab will be converted into n= ative units dynamically at boot and when the configuration of the system mana= ger is reloaded. In general, configuring mount points through /etc/fstab is t= he preferred approach. See systemd-fstab-generator(8) for details about the c= onversion." I think that refers to block and network storage. > > The example you gave seem to be the defaults, which are also used by the = systemd mount. > If autoyast isn't capable at all, I'll be quite suprised, but that's of cou= rse useful to know. It certainly is. I'm sure there is some docu about autoyast and fstab. I just noticed you have included the autoinstall list, someone there is suppo= sed to know the answer to your question. Olaf --===============2293009552297337860== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlGMEVBUkVDQUIwV0lRU2tSeVA2Um4vL2Yw M3BSVUJkUXFENnBwZzJmZ1VDV0tMTWxBQUtDUkJkUXFENnBwZzIKZmxydkFLQ25iSDJBRmwvMlg1 NWNOTnlrUUhuTjdZSEdBZ0NmV2NwU2VpbTlac0FMcmxzdWE5YmVjVG9qVUdBPQo9QnludQotLS0t LUVORCBQR1AgU0lHTkFUVVJFLS0tLS0K --===============2293009552297337860==--