vim, gitconfig, update.sh
[dotfiles_afify.git] / .scripts / openbsd_vmm.sh
blobb5a75d4909eb7e7096a1632be5b09c9de44dff9c
1 #!/usr/bin/env bash
3 # mkdir -p /home/vm/hoth
4 # cd /home/vm/hoth
5 # vmctl create hoth.qcow2 -s 20G
6 # ftp http://archlinux.mirrors.ovh.net/archlinux/iso/2019.07.01/archlinux-2019.07.01-x86_64.iso
7 # more /etc/vm.conf
8 (...)
9 vm "template" {
10 disable
11 disk "/dev/null"
12 memory 512M
13 interface {
14 group "vm"
15 switch "vswitch0"
19 # vmctl start hoth -c -t template -B cdrom -d ./hoth.qcow2 -r ./archlinux-2019.07.01-x86_64.iso
21 When the boot loader appears, hit <TAB>. The enter “ console=ttyS0,115200” and hit <ENTER>. This will boot Arch Linux using the console.
23 # vi /etc/vm.conf
24 (...)
25 vm "hoth" {
26 # disable
27 memory 4G
28 disk "/home/vm/hoth/hoth.qcow2"
29 interface {
30 group "vm"
31 locked lladdr fe:e1:ba:d2:50:75
32 switch "vswitch0"
36 # vmctl reload
37 # vmctl console hoth
38 Connected to /dev/ttyp4 (speed 115200)
40 hoth login: root
41 Password:
42 [root@hoth ~]#