Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to automate Linux installation while i do have only SSH access to the server?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How to automate Linux installation while i do have only SSH access to the server?

postcdpostcd Member

Hello,

currently i am having server with SSH only access (no physical access, no IPMI), it is Debian 9 and my aim is to turn the server into:
https://download.openvz.org/virtuozzo/releases/openvz-7.0.4-698/

I read there is a thing called debootstrap or kickstart, unsure if can be helpfull in this case. Issue is that i do not know what to put into Google to find targetted tutorial which can help me with this. I do not feel enough experienced to create some complicated custom tailored kickstart system. PS: i think i seen in the past some tutorial which can allow .iso install from running system thru VNC or such.

I have option to reboot the server into:
SystemRescueCD Live Rescue (64-bit)
GRML Live Rescue (64-bit)

Thank You

Comments

  • rskrsk Member, Patron Provider

    postcd said: I have option to reboot the server into: SystemRescueCD Live Rescue (64-bit) GRML Live Rescue (64-bit)

    DD an image then?

  • postcdpostcd Member

    @rsk can you please point me to some tutorial or good google phrasse or even mind explaining here?

    i know i can: dd if=some.img of=/dev/sda3
    but that i can not do while i do not have image (only installation .iso), do not know how i can create one so it automatically install (while i have no IPMI access).

  • rskrsk Member, Patron Provider

    Forget about ipmi, all to be done on rescue. After you install the OS the first time you then boot to rescue. Then you create the image using dd, then when you want to reinstall you reinstall using dd while you are in the rescue.

    Otherwise there are many, maaaany tutorials on how to do this using vnc - specially for centos.

  • postcdpostcd Member
    edited July 2017

    create the image using dd, then when you want to reinstall

    creating image of what? i do not need to reinstall now or later my current OS (CentOS). I need to install different OS (OpenVZ7 OS - see the link in my 1st post, maybe it is based on CentOS but probably different, as i already tried to install openvz7 on centos7, it enabled vzkernel etc., but the Virtualizor not wanted to work with that and i was told by the developer that i need to install mentioned .iso), so how do you please suggest i do it with SSH (VNC?) only? I tried to google, but unable to find any universal tutorial that is not distribution "bound".

  • rskrsk Member, Patron Provider

    Even if you do the vnc method, you wont be able to just attach the iso. It doesnt work that way. The vnc method will be a netinstall kind of install.

  • FalzoFalzo Member

    Shouldn't grml rescue be able to boot a netinst iso you previously just downloaded into /boot/grml or the like?

    Maybe just ask your provider to make tje ovz netinst iso available?

  • mikhomikho Member, Host Rep

    so you have to boot from the .iso ?
    It is usually only a storage container... try to extract the content of the .iso into a directory and run it from there.

  • Shot2Shot2 Member

    What kind of server is it? Maybe try with qemu...

  • postcdpostcd Member
    edited July 2017

    @Falzo said:
    Shouldn't grml rescue be able to boot a netinst iso you previously just downloaded into /boot/grml or the like?

    thx, i tried grml:
    http://ubuntuportal.com/2013/08/heres-an-easier-way-to-boot-iso-image-from-your-hard-drive-in-ubuntu-13-04.html
    https://wiki.grml.org/doku.php?id=rescueboot (i installed manually as i am not on Ubuntu)

    it seems it worked to create boot entries as per the "grub2-mkconfig" result: https://pastebin.com/f4bTCHbe

    BUT i never see these entries in the boot menu after server start (i got IPMI to work) i see only three original CentOS 7 entries :-/ what is wrong with that?

    @mikho said:
    try to extract the content of the .iso into a directory and run it from there.

    i tried it using "yum install p7zip p7zip-plugins" and "7z x file.iso" one of the grub entry i tried to link to that extracted files ( example: /boot/grml/ovz/images/pxeboot/vmlinuz) but at boot, i do not see my custom boot entries ("grub2-mkconfig" seems successful), BUT after reboot /boot/grub2/grub.cfg do not shows my modifications, but maybe it is normal, as this file:
    " It is automatically generated by grub2-mkconfig using templates from /etc/grub.d and settings from /etc/default/grub"

    @Shot2 said:
    What kind of server is it? Maybe try with qemu...

    thx, CentOS 7.. i have qemu installed. Here is interesting post (https://askubuntu.com/a/195145/456366) about using qemu in similar case, but unsure how to do it in my case

  • FalzoFalzo Member

    If you have IPMI working look out for an option to use a virtual cd and mount a local iso from your pc... maybe not the fastest, depending on your connection but uses to be the eadieyt method around.

  • postcdpostcd Member

    @Falzo said:
    look out for an option to use a virtual cd and mount a local iso from your pc

    Yes, it is there, but uploads in speed like up to 70 kilobit/s for the period of around 10 seconds and then gets lowered to 0 kilobits until i click "Reset USB" button and then it runs next 10 seconds 70 kbit/s and so on. Thank you anyway for help.

    BTW your advice of asking provider to make this iso available helped. They should install it for me.

  • Shot2Shot2 Member

    @Shot2 said:
    What kind of server is it? Maybe try with qemu...

    thx, CentOS 7.. i have qemu installed. Here is interesting post (https://askubuntu.com/a/195145/456366) about using qemu in similar case, but unsure how to do it in my case

    I don't care about your OS, I'm wondering what your server is (and virtualization, if any).

    FYI I installed Ubuntu from within a Debian, following this guide (just replace 'Windows iso' with 'Ubuntu iso'):
    https://www.lowendtalk.com/discussion/118255/install-windows-on-dedibox-xc-ssd-2016-with-qemu

    As long as your server is not some exotic/archaic crap, that should work.

    Thanked by 1postcd
Sign In or Register to comment.