Created
February 21, 2015 04:06
-
-
Save 328/8e1e645a26e15125cdc3 to your computer and use it in GitHub Desktop.
KVMにVyOSいれるやつ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
NAME=vyos | |
qemu-img create -f raw vyos.img 2G | |
virt-install \ | |
--connect qemu:///system \ | |
--name ${NAME} \ | |
--vcpus 1 \ | |
--ram 512 \ | |
--network bridge=br0 \ | |
--file /var/lib/libvirt/images/${NAME}.img \ | |
--file-size 2 \ | |
--cdrom /var/lib/libvirt/images/vyos-1.1.3-amd64.iso \ | |
--accelerate \ | |
--nographics |
VyOS入れてまず最初にやることは
$ install image
上記のコマンドを発行後,ガイドに従ってインストールを進めて行く.
その他,設定はdhcpとsshの設定だけやっておく
$ configure
$ set interfaces ethernet eth0 address dhcp
$ set service ssh
$ commit
$ save
$ exit
固定IPアドレスを振るのは後でやる.
とりあえず設定はこれくらいかね.しばらく遊んでみる
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
VyOSのイメージを持ってなければ,下記コマンドで取って,指定されたディレクトリに置いておく