alpined
ifconfig eth0 10.0.2.16 netmask 255.255.255.0
route add default gw 10.0.2.2
vi /etc/resolv.conf
nameserver 114.114.114.114
qemu-img create -f qcow2 a.img 1G
qemu-system-x86_64 -drive if=pflash,format=raw,unit=0,file=./OVMF_CODE.fd,readonly -hda a.img -m 1024 -smp 4 -nographic -cdrom
qemu-kvm -enable-kvm -cpu host -smp 2,maxcpus=64 -m 2048M,slots=5,maxmem=30G -drive if=pflash,format=raw,unit=0,file=./OVMF_CODE.fd,readonly -hda a.img -nographic -monitor pty -cdrom
qemu-kvm -enable-kvm -cpu host -smp 2,maxcpus=64 -m 2048M,slots=5,maxmem=30G -drive if=pflash,format=raw,unit=0,file=./OVMF_CODE.fd,readonly -hda ./a.img -object sev-guest,id=sev0,policy=1073741825,cbitpos=47,reduced-phys-bits=5 -machine memory-encryption=sev0 -name guest=csv-t1 -nographic -monitor pty -cdrom
/etc/init.d/networking restart
vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
# Use US layout with US variant
KEYMAPOPTS="us us"
# Set hostname to alpine-test
HOSTNAMEOPTS="-n hyperchain"
# Contents of /etc/network/interfaces
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.2.15
netmask 255.255.255.0
gateway 10.0.2.2
"
# Search domain of example.com, Google public nameserver
DNSOPTS="-d hyperchain.com 114.114.114.114"
# Set timezone to UTC
TIMEZONEOPTS="-z PRC"
# set http/ftp proxy
PROXYOPTS="none"
# Add a random mirror
# Install Openssh
SSHDOPTS="-c openssh"
# Use openntpd
NTPOPTS="-c openntpd"
# Use /dev/sda as a data disk
#DISKOPTS="-m data /dev/sda"
# Setup in /media/sdb1
#LBUOPTS="/media/sdb1"
#APKCACHEOPTS="/media/sdb1/cache"
setup-alpine -f 1.c
poweroff
halt
rc-update add local
/etc/local.d/a.start
nohup /usr/local/bin/intern 10.0.2.2:18098 >/home/service.log &