Vmm.DebianInstall 6.1 KB

12345678910111213141516171819
  1. version=pmwiki-2.2.130 ordered=1 urlencoded=1
  2. agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
  3. author=nicoz
  4. charset=UTF-8
  5. csum=
  6. ctime=1637753967
  7. host=185.104.127.122
  8. name=Vmm.DebianInstall
  9. rev=2
  10. targets=
  11. text=!! '''Start'''%0a%0a%0a%0aafter following the instructions in https://wiki.ircnow.org/index.php?n=Vmm.DebianIso%0a%0awe create our vm with the username and the data corresponding to those entered in /etc/vm.conf previously::%0a%0a%0a%0a----%0avm "username" {%0a owner username%0a memory 1024M%0a cdrom "/home/iso/debian-11.1.0-vmm.iso"%0a disk /home/username/username.qcow2%0a interface { %0a locked lladdr aa:bb:cc:dd:ee:ff%0a switch "switch0"%0a }%0a}%0a----%0a%0alet's create our VM:%0a----%0a%0avmctl create -s 16G diskname.qcow2%0a%0afile diskname.qcow2%0a%0als -lh diskname.qcow2%0a----%0a%0aNow let's start the VM and stop it 2 times:%0a----%0avmctl stop diskname%0a%0avmctl start diskname%0a%0avmctl stop -f diskname%0a%0avmctl start diskname%0a----%0a%0aNow let's enter the virtual machine console:%0a----%0avmctl console diskname%0a----%0a%0aPress CTRL + C and the installation menu will start, we go to Advance Options -> Expert install and press TAB, a command line will come out and we write by hand in the console:%0a----%0a/install.amd/vmlinuz priority=low DEBIAN_FRONTEND=text initrd=/install.amd/initrd.gz --- console=ttyS0,115200%0a----%0aDuring installation it will ask you for the network configuration, do not set it in the car, but enter the data provided via the vps email to have a correct network configuration ...%0a%0aI recommend installing SSH SERVER already from the minimal installation, so as not to have to enable it later%0a%0aI remind users not to install graphical environments as soon as they require them, and to install the GRUB on the MBR it is not necessary to "remove the installation media"%0a%0aTo get the new kernel: (IMPORTANT!)%0a----%0aapt list | egrep 'linux-image.*bpo..-amd64-unsigned'%0a%0aapt install linux-image-5.14.0-0.bpo.2-amd64-unsigned%0a----%0aNow enter your authorized_keys ...%0a%0a%0a%0aTo enable sudo on debian just install as root:%0a%0aapt install sudo%0a%0a%0aand now let's go to give sudo permissions to our user:%0a%0aadduser user sudo%0a%0aThen we edit the / etc / sudoers file and add%0a%0a%0aUSERNAME ALL=(ALL:ALL) ALL%0a%0anow we exit as root and we try to run the sudo command by the user even for a simple update we do:%0a%0asudo apt update %0a%0ait will ask you for the user's password to have permissions to run apt%0a%0asudo apt upgrade%0a%0aif there are updates, it will advise you to install them %0afor install other packages use:%0a----%0aapt install namepckg %3c------ by root%0a%0asudo apt install namepckg %3c------ by user%0a----%0anow we close the console and connect to our VPS from SSH and log in
  12. time=1637754286
  13. author:1637754286=nicoz
  14. diff:1637754286:1637753967:=26d25%0a%3c %0a28d26%0a%3c %0a30d27%0a%3c %0a
  15. host:1637754286=185.104.127.122
  16. author:1637753967=nicoz
  17. diff:1637753967:1637753967:=1,96d0%0a%3c !! '''Start'''%0a%3c %0a%3c %0a%3c %0a%3c after following the instructions in https://wiki.ircnow.org/index.php?n=Vmm.DebianIso%0a%3c %0a%3c we create our vm with the username and the data corresponding to those entered in /etc/vm.conf previously::%0a%3c %0a%3c %0a%3c %0a%3c ----%0a%3c vm "username" {%0a%3c owner username%0a%3c memory 1024M%0a%3c cdrom "/home/iso/debian-11.1.0-vmm.iso"%0a%3c disk /home/username/username.qcow2%0a%3c interface { %0a%3c locked lladdr aa:bb:cc:dd:ee:ff%0a%3c switch "switch0"%0a%3c }%0a%3c }%0a%3c ----%0a%3c %0a%3c let's create our VM:%0a%3c ----%0a%3c vmctl create -s 16G diskname.qcow2%0a%3c file diskname.qcow2%0a%3c ls -lh diskname.qcow2%0a%3c ----%0a%3c %0a%3c Now let's start the VM and stop it 2 times:%0a%3c ----%0a%3c vmctl stop diskname%0a%3c %0a%3c vmctl start diskname%0a%3c %0a%3c vmctl stop -f diskname%0a%3c %0a%3c vmctl start diskname%0a%3c ----%0a%3c %0a%3c Now let's enter the virtual machine console:%0a%3c ----%0a%3c vmctl console diskname%0a%3c ----%0a%3c %0a%3c Press CTRL + C and the installation menu will start, we go to Advance Options -> Expert install and press TAB, a command line will come out and we write by hand in the console:%0a%3c ----%0a%3c /install.amd/vmlinuz priority=low DEBIAN_FRONTEND=text initrd=/install.amd/initrd.gz --- console=ttyS0,115200%0a%3c ----%0a%3c During installation it will ask you for the network configuration, do not set it in the car, but enter the data provided via the vps email to have a correct network configuration ...%0a%3c %0a%3c I recommend installing SSH SERVER already from the minimal installation, so as not to have to enable it later%0a%3c %0a%3c I remind users not to install graphical environments as soon as they require them, and to install the GRUB on the MBR it is not necessary to "remove the installation media"%0a%3c %0a%3c To get the new kernel: (IMPORTANT!)%0a%3c ----%0a%3c apt list | egrep 'linux-image.*bpo..-amd64-unsigned'%0a%3c %0a%3c apt install linux-image-5.14.0-0.bpo.2-amd64-unsigned%0a%3c ----%0a%3c Now enter your authorized_keys ...%0a%3c %0a%3c %0a%3c %0a%3c To enable sudo on debian just install as root:%0a%3c %0a%3c apt install sudo%0a%3c %0a%3c %0a%3c and now let's go to give sudo permissions to our user:%0a%3c %0a%3c adduser user sudo%0a%3c %0a%3c Then we edit the / etc / sudoers file and add%0a%3c %0a%3c %0a%3c USERNAME ALL=(ALL:ALL) ALL%0a%3c %0a%3c now we exit as root and we try to run the sudo command by the user even for a simple update we do:%0a%3c %0a%3c sudo apt update %0a%3c %0a%3c it will ask you for the user's password to have permissions to run apt%0a%3c %0a%3c sudo apt upgrade%0a%3c %0a%3c if there are updates, it will advise you to install them %0a%3c for install other packages use:%0a%3c ----%0a%3c apt install namepckg %3c------ by root%0a%3c %0a%3c sudo apt install namepckg %3c------ by user%0a%3c ----%0a%3c now we close the console and connect to our VPS from SSH and log in%0a\ No newline at end of file%0a
  18. host:1637753967=185.104.127.122