diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2019-06-28 23:28:28 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2019-06-28 23:29:19 +0200 |
commit | 6319474a1659008174c0939d405202e495a8ede7 (patch) | |
tree | d055b391b62c83d77a581695f42df865d0bef9fb | |
parent | f063d8c7061c9ce7af3cf5e470745b08fda5bfaa (diff) |
Add READMEs.
-rw-r--r-- | README | 60 | ||||
-rw-r--r-- | virtualenv/README | 13 |
2 files changed, 73 insertions, 0 deletions
@@ -0,0 +1,60 @@ +apt-get install genisoimage fuse fuseiso +usermod guilhem -G fuse + +make iso-preseed + + +* Tar: + + IMAGE_TYPE=tar ARCH=i386 make + image=debian-7.4.0-i386-netinst-preseeded.tar + + device=/dev/disk/by-id/... # fixme + mountpoint=/mnt/usbkey # fixme + + device=$(readlink -f $device) + parted $device mklabel msdos + parted $device mkpart primary 1 1G + parted $device set 1 boot on + mkdosfs ${device}1 + + install-mbr $device + syslinux -i ${device}1 + + mount ${device}1 $mountpoint + tar -x -C $mountpoint -f $image --no-same-owner + umount $mountpoint + + +* ISO: + + make + image=debian-7.4.0-amd64-netinst-preseeded.iso + device=/dev/disk/by-id/... + dd if="$image" of="$device" bs=4M; sync + + +* To configure a static IP: + + :/etc/default/interface + + auto eth0 + iface eth0 inet static + pre-up ip addr flush dev $IFACE + address 171.25.193.76 + gateway 171.25.193.65 + netmask 255.255.255.0 + + :/etc/default/grub + # https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt + # (Edit the kernel parameter in the grub menu if the system doesn't boot.) + GRUB_CMDLINE_LINUX="ip=171.25.193.76::171.25.193.65:255.255.255.0::eth0:off" + #GRUB_CMDLINE_LINUX="ip=:::::eth0:dhcp" + + $ sudo update-grub + + +* To compile an AMD64 image on a i386 machine (or vice versa): + + apt-get install gcc-multilib + ARCH=amd64 make diff --git a/virtualenv/README b/virtualenv/README new file mode 100644 index 0000000..7d29742 --- /dev/null +++ b/virtualenv/README @@ -0,0 +1,13 @@ +apt-get install qemu-kvm qemu-utils libvirt-bin bridge-utils dnsmasq spice-client virtinst xmlstarlet +usermod guilhem -G libvirt,kvm + +# Now as user + newgrp libvirt + newgrp kvm + + mkdir -p ~/.libvirt + echo 'uri_default = "qemu:///system"' > ~/.libvirt/libvirt.conf + virsh net-start default + + ./virt install test + ./virt view test |