O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

2019 0704 about ConoHa VM migration from C1 to C2

699 visualizações

Publicada em

4年前のConoHa1のVPSをConoHa2へのマイグレやってみた lxd-p2c

Publicada em: Software
  • DOWNLOAD THI5 BOOKS 1NTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • Seja a primeira pessoa a gostar disto

2019 0704 about ConoHa VM migration from C1 to C2

  1. 1. 4年前の初期ConoHa1から 使っているひとの、ConoHa2 へのマイグレやってみた Naoto Gohko / @naoto_gohko ConoHappyBirth ! / 2019-07-04 (CoreDump挫折編)
  2. 2. 少しお話の時間をください
  3. 3. LT presenter(Itʼs me) • Naoto Gohko / 郷古 直仁 (@naoto_gohko) • Cloud Service development divistion, GMO Internet Inc., • OpenStackでpublic cloudサービス • 最近の活動主体 • Japan OpenStack user会 • その他参加勉強会など • Rancher JP, PaaS, Serverless, SDNなど @MikumoConoHa
  4. 4. さてさてさて、 お集まりの皆さん、ConoHa 使ってますか?
  5. 5. (☝ ՞ਊ ՞)☝ウェーイ
  6. 6. この、ConoHa使ってますか? https://cp.conoha.jp/
  7. 7. (☝ ՞ਊ ՞)☝ウェーイ ???
  8. 8. (☝ ՞ਊ ՞)☝ウェーイ !!!
  9. 9. ConoHa誕⽣⽇会ということで すが、⾃分がここにサーバを ⽴てた(⾃腹)のがこんな時期
  10. 10. でも、いまのConoHaって
  11. 11. こうですよね 今の環境を”ConoHa2”と我々 は呼んでいます
  12. 12. ⾃分もblog動かしたままで、 すっかりそのままにしてました
  13. 13. さてさてさて、 これをどうやって、移⾏する (マイグレ)と楽でしょうかね? (いろいろ⽅法はあります) ちょっと例を上げてみます
  14. 14. https://en.wikipedia.org/wiki/Comparison_of_disk_cloning_software • Clonezilla • DD/ddrescue • Mondo Rescue • Partimage • Acronis True Image • UrBackup • Relax-and-Recover などなど
  15. 15. 今回はこれをつかってみます
  16. 16. Lxd-p2c (Launchpad)
  17. 17. Lxd-p2c https://github.com/lxc/lxd/tree/master/lxd-p2c
  18. 18. 物理サーバ/VMから LXDハイパーバイザのlxcコンテナへ コンバートするツールです LXD 3.x (最新 lxd 3.14 現在) にて開発が進んでいるツールです。 バリバリの出来たてツールみたいなやつ
  19. 19. Lxdへのマイグレ: lxd-p2c (golang bin) ConoHa2 lxd/lxcConoHa1 blog lxc container Lxd hypervisor Tcp: 8443 lxd-p2c disk マイグレ元で実⾏ (ここではCentOS 6) マイグレ先 (Ubuntu 16.04, lxd 3.14) 外部からlxd接続できる
  20. 20. Letʼs migration !!
  21. 21. 問題発⽣ ”lxd-p2c”バイナリが無い (CentOS6⽤)
  22. 22. Lxdはgolangで書かれている • ⾃分でビルドする • Go buildできる環境準備 • Dynamic linked ç 同じOSでしか動かない ç あかんやつ go build –o lxd-p2c-dynamic github.com/lxc/lxd/lxd-p2c • Static linked build ç Ubuntu 16.04でcentos6で動くbuild作成 go build -o lxd-p2c-static -v –x –tags netgo –ldflags ¥ ‘-extldflags “-static”’ github.com/lxc/lxd/lxd-p2c できた “lxd-p2c-static” binaryをマイグレ元CentOS6にcopy
  23. 23. Statically linked binary • 確認cmd n-gohko@www:~/go/lxd/lxd-p2c$ ls -l lxd-p2c-static -rwxrwxr-x 1 n-gohko n-gohko 16758520 Jul 4 17:17 lxd-p2c-static n-gohko@www:~/go/lxd/lxd-p2c$ file lxd-p2c-static lxd-p2c-static: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 3.2.0, BuildID[sha1]=1645f0862fa4aefcab58d22a2b9fc52b35b0185a, not stripped
  24. 24. Letʼs migration !! (2)
  25. 25. Scpで”lxd-p2c”をcopy
  26. 26. Blog server(centos6)で”lxd-p2c”を… CentOS6 でも“file”コマンドでバイナリ確認
  27. 27. Blog server(centos6)で”lxd-p2c”をたた… あれっ、まさか rootでも念の為
  28. 28. Ubuntu 16.04でsingle binary作 成作戦、失敗 orz
  29. 29. しょうがない blogと同じCentOS6でgo buildす るか ç いまここ
  30. 30. 会場の準備とか始まった みたいだから、ここまで
  31. 31. 続きはQiitaに記事を あげるぜ とりあえず “lxd-p2c” というツール知って もらってよかったぜ いいのか、こんなLT
  32. 32. (☝ ՞ਊ ՞)☝ウェーイ !!!
  33. 33. じゃなかった ConoHa1からConoHa2へのマイグレーションは皆さん頑張ろう マイグレーションは計画的に!!

×