Merge branch 'master' of github.com:ffzg/gnt-info
[gnt-info] / doc / grml.txt
1 It's hard to edit partition table in virtual machine when host thinks that sectors are 4k
2 and vm thinks they are 512 bytes. fdisk --sector-size 512 doesn't seem to work, so only
3 solution is to boot something inside vm to produce original hardware configuration.
4
5
6 cd /boot
7
8 wget http://download.grml.org/grml96-small_2017.05.iso
9
10 root@r1u28:/home/dpavlin# gnt-cluster copyfile /boot/grml96-small_2017.05.iso
11
12 # force boot from cdrom
13
14 root@r1u28:/home/dpavlin# gnt-instance modify -H kernel_path=,initrd_path=,boot_order=cdrom,cdrom_image_path=/boot/grml96-small_2017.05.iso armbian
15
16
17 # reboot, connect with vnc and fix system
18 root@r1u28:/home/dpavlin# gnt-instance reboot armbian
19
20 root@r1u28:/home/dpavlin# /srv/gnt-info/gnt-vnc.sh armbian
21 ssh -L 11032:127.0.0.1:11032 r1u30.gnt.ffzg.hr
22 vncviewer localhost:5132
23
24
25 # remove cdrom, restore boot from disk
26 root@r1u28:/home/dpavlin# gnt-instance modify -H kernel_path=,initrd_path=,boot_order=disk,cdrom_image_path= armbian
27
28 # restore kernel
29 root@r1u28:/home/dpavlin# gnt-instance modify -H initrd_path=/boot/initrd.img-4.9.0-0.bpo.6-amd64,kernel_path=/boot/vmlinuz-4.9.0-0.bpo.6-amd64 armbian
30