support attribute cleanup for nice single value column
[gnt-info] / doc / ipxe-boot.txt
1
2 How to create machine which will boot clonezilla from pxe:
3
4 Create lv for future disk
5
6 root@r1u32:~# lvcreate -L 30G -n cz2 oscarvg
7 WARNING: ext4 signature detected on /dev/oscarvg/cz2 at offset 1080. Wipe it? [y/n]: y
8   Wiping ext4 signature on /dev/oscarvg/cz2.
9   Logical volume "cz2" created.
10
11
12 root@r1u32:~# gnt-instance add -B maxmem=2G,vcpus=4 -t plain -n r1u32 -o snf-image+default --os-parameters=img_format=diskdump,img_id=windows2k3,img_properties='{"OSFAMILY":"windows"}' --disk 0:adopt=cz2 --net 0:link=br0063 --no-name-check --no-ip-check --no-start k-cz2
13 Wed May  1 15:48:33 2019 * disk 0, size 30.0G
14 Wed May  1 15:48:33 2019 adding instance k-cz2 to cluster config
15 Wed May  1 15:48:33 2019 adding disks to cluster config
16 Wed May  1 15:48:34 2019  - INFO: Waiting for instance k-cz2 to sync disks
17 Wed May  1 15:48:34 2019  - INFO: Instance k-cz2's disks are in sync
18 Wed May  1 15:48:34 2019  - INFO: Waiting for instance k-cz2 to sync disks
19 Wed May  1 15:48:34 2019  - INFO: Instance k-cz2's disks are in sync
20
21 root@r1u32:~# gnt-instance modify -H initrd_path=,kernel_path=,boot_order=network k-cz2
22 Modified instance k-cz2
23  - hv/kernel_path ->
24  - hv/initrd_path ->
25  - hv/boot_order -> network
26 Please don't forget that most parameters take effect only at the next (re)start of the instance initiated by ganeti; restarting from within the instance will not be enough.
27 Note that changing hypervisor parameters without performing a restart might lead to a crash while performing a live migration. This will be addressed in future Ganeti versions.
28
29 Find mac of new machine:
30
31 root@r1u32:~# gnt-instance info k-cz2 | grep MAC
32       MAC: aa:00:00:29:da:96
33
34
35 Now you will need to configure booting for mac adress of that machine:
36
37 root@dns01:~# vi /etc/dhcp/conf4.d/lib-pub.conf 
38
39 subclass "lib-pub-unknown" 1:aa:00:00:29:da:96; # k-cz2 test on oscar ganeti
40
41         host k-cz2 {
42             hardware ethernet aa:00:00:29:da:96; 
43             allow booting;
44             next-server 10.60.4.9;
45             filename "pxelinux.0";
46         }
47
48
49 Restart dhcpd to pickup configuration:
50
51 root@dns01:~# /etc/init.d/isc-dhcp-server reload
52
53 Start machine or rebootit:
54
55 root@r1u32:/srv/gnt-info# socat - /var/run/ganeti/kvm-hypervisor/ctrl/k-cz2.monitor
56 QEMU 2.8.1 monitor - type 'help' for more information
57 (qemu) system_reset
58 system_reset
59
60