09be84beee
A virtual machine isn't very useful if there are no means to access it; let's bring up the basic networking and provide root SSH access via pre-existing public key. As the remote access with known default credentials is roughly equivalent to just lending one's VMs to anyone with network access to it, the fallback root password is now exterminated; you have to provide one (or a long enough random string if you plan to use keys only, see e.g. apg utility).
14 lines
350 B
Makefile
14 lines
350 B
Makefile
# virtual machines
|
|
ifeq (vm,$(IMAGE_CLASS))
|
|
|
|
# NB: use/x11 employs some installer-feature packages
|
|
vm/icewm: vm/bare use/cleanup/installer use/x11/xdm +icewm; @:
|
|
|
|
vm/net: vm/bare use/vm-net/dhcp use/vm-ssh; @:
|
|
|
|
vm/net-static: vm/bare use/vm-net/static use/vm-ssh
|
|
@$(call set,VM_NET_IPV4ADDR,10.0.2.16/24)
|
|
@$(call set,VM_NET_IPV4GW,10.0.2.2)
|
|
|
|
endif
|