12
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

dockerでKVM動かし、Proxmox4を動かす (ianblenke/kvm)

Last updated at Posted at 2016-03-28

参考

準備 (konalinux)

3gbのqcow2イメージ作成
qemu-img create -f qcow2 kona3gb.qcow2 3G
docker-compose.yml
kvm:
  image: ianblenke/kvm
  container_name: kvm
  tty: true
  privileged: true
  ports:
    - "5900:5900"
  volumes:
    - .:/mnt/
  command: "/run.sh  \
    -name kvm -smp 2 -m 2512 \
    -vnc :0  \
    -vga qxl \
    -k ja \
    -cdrom /mnt/konalinux-3.0-black_i386.iso \
    -drive file=/mnt/kona3gb.qcow2,if=virtio"

起動

起動
docker-compose up -d
vncviewer localhost:5900

kona.png

small.png

  • 解像度が変わったらVNCを再接続すればよい

ok2.png

  • メモリ2512mb, cpu2個を認識していることを確認

proxmox4

proxmox
qemu-img create -f qcow2 mox9gb.qcow2 9G
  • 8006ポートのフォワーディング
docker-compose.yml
kvm:
  image: ianblenke/kvm
  container_name: kvm
  tty: true
  privileged: true
  ports:
    - "5900:5900"
    - "8006:8006"
  volumes:
    - .:/mnt/
  command: "/run.sh  \
    -name kvm -smp 2 -m 2512 \
    -vnc :0  \
    -vga qxl \
    -k ja \
    -redir tcp:8006::8006 \
    -cdrom /mnt/proxmox-ve_4.1-2f9650d4-21.iso \
    -drive file=/mnt/mox9gb.qcow2,if=virtio"

aa.png

aab.png

ip.png

df.png

ui.png

12
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?