{"id":573,"date":"2016-04-24T18:42:00","date_gmt":"2016-04-24T09:42:00","guid":{"rendered":"https:\/\/wp.zassoul.com\/?p=573"},"modified":"2016-04-24T18:42:00","modified_gmt":"2016-04-24T09:42:00","slug":"vyos%e7%99%bb%e9%8c%b2","status":"publish","type":"post","link":"https:\/\/wp.zassoul.com\/?p=573","title":{"rendered":"vyos\u767b\u9332"},"content":{"rendered":"<p>OpenStack\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306bVyos\u6b32\u3057\u3044\u304b\u3089\u767b\u9332\u3059\u308b\u3002<\/p>\n<p>1. iso\u30a4\u30e1\u30fc\u30b8\u53d6\u5f97<br \/><a href=\"http:\/\/wiki.vyos-users.jp\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u516c\u5f0f<\/a>\u304b\u3089\u53d6\u5f97\u3002<\/p>\n<p>2. KVM\u4e0a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30a4\u30e1\u30fc\u30b8\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3082\u3042\u308b\u306e\u3060\u304c\uff0c\u81ea\u5206\u306e\u30ec\u30d9\u30eb\u3067\u306fESX\u306evmdk\u3092\u5909\u63db\u304b\u3051\u308b\u307b\u3046\u304c\u304a\u624b\u8efd\u305d\u3046\u306a\u306e\u3067\uff0cESX\u5074\u3067vyos\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066VM\u3092\u4f5c\u308b\u3002<\/p>\n<p>3. \u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u4e0a\u306b\u3042\u308bvmdk\u30d5\u30a1\u30a4\u30eb\u3092CentOS\u3078\u6301\u3063\u3066\u884c\u304d\uff08vyos-flat.vmdk\u3068vyos.vmdk2\u3064\uff09<\/p>\n<p>qemu-img\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3002<br \/>\u4f7f\u3044\u65b9\u306f<a href=\"https:\/\/access.redhat.com\/documentation\/ja-JP\/Red_Hat_Enterprise_Linux\/5\/html\/Virtualization\/sect-Virtualization-Tips_and_tricks-Using_qemu_img.html\" target=\"_blank\" rel=\"noopener noreferrer\">RedHat\u306e\u30da\u30fc\u30b8<\/a>\u3092\u53c2\u8003\u3002<\/p>\n<table cellpadding=\"20\" style=\"width: 100%;\">\n<tbody>\n<tr bgcolor=\"DDDDDD\">\n<td height=\"20\">#&nbsp;<span style=\"background-color: transparent;\">qemu-img convert -f vmdk -O qcow2 .\/vyos.vmdk .\/vyos-1.1.7.qcow2<\/span><br \/><span style=\"background-color: transparent;\">qemu-img convert -f vmdk -O qcow2 .\/vyos.vmdk .\/vyos-1.1.7.qcow2 &nbsp;0.79s user 3.79s system 20% cpu 22.574 total<\/span><br \/><span style=\"background-color: transparent;\"># ls -lrt<\/span><br \/>-rw-r&#8211;r&#8211; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;1073741824 &nbsp;4\u6708 24 18:13 vyos-flat.vmdk<br \/>-rw-r&#8211;r&#8211; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;496 &nbsp;4\u6708 24 18:13 vyos.vmdk<br \/><span style=\"background-color: transparent;\"><\/span><br \/><span style=\"color: #cc0000;\">-rw-r&#8211;r&#8211; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp; &nbsp;249102336 &nbsp;4\u6708 24 18:20 vyos-1.1.7.qcow2<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>4. OpenStack\u306e\u30db\u30b9\u30c8OS\u4e0a\u3067\u30a4\u30e1\u30fc\u30b8\u767b\u9332<\/p>\n<table cellpadding=\"20\" style=\"width: 100%;\">\n<tbody>\n<tr bgcolor=\"DDDDDD\">\n<td height=\"20\"><code>#&nbsp;glance image-create --name vyos-1.1.7 --visibility public --disk-format qcow2 --progress --file .\/vyos.qcow2 &nbsp;--container-format bare<br \/>[=============================&gt;] 100%<br \/>+------------------+--------------------------------------+<br \/>| Property &nbsp; &nbsp; &nbsp; &nbsp; | Value &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br \/>+------------------+--------------------------------------+<br \/>| checksum &nbsp; &nbsp; &nbsp; &nbsp; | dbeddf1559bd9642241379b2ed835a1b &nbsp; &nbsp; |<br \/>| container_format | bare &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br \/>| created_at &nbsp; &nbsp; &nbsp; | 2016-04-24T09:27:45Z &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br \/>| disk_format &nbsp; &nbsp; &nbsp;| qcow2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br \/>| id &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | 684a2629-4257-4862-aa7a-cd9312e8047c |<br \/>| min_disk &nbsp; &nbsp; &nbsp; &nbsp; | 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br \/>| min_ram &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br \/>| name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | vyos-1.1.7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br \/>| owner &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| f734caeac646458cb7c8d38ce8ee4522 &nbsp; &nbsp; |<br \/>| protected &nbsp; &nbsp; &nbsp; &nbsp;| False &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br \/>| size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | 249102336 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br \/>| status &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | active &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br \/>| tags &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | [] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br \/>| updated_at &nbsp; &nbsp; &nbsp; | 2016-04-24T09:27:46Z &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br \/>| virtual_size &nbsp; &nbsp; | None &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br \/>| visibility &nbsp; &nbsp; &nbsp; | public &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br \/>+------------------+--------------------------------------+<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<div>5. \u7d42\u308f\u308a\u3002<\/div>\n<div>\u8a66\u3057\u306b\u8d77\u52d5\u3057\u3066\u307f\u308b\u3002<\/div>\n<div><strike>\u4e00\u5fdc\u52d5\u304f\u306b\u306f\u52d5\u304f\u304c\uff0c\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3067NG\u3002<\/strike><br \/><strike>\u30c9\u30e9\u30a4\u30d0\u3042\u305f\u308a\u304b\u306a?<\/strike><\/div>\n<div>interface\u304cadmin down\u306a\u3060\u3051\u3067\u3057\u305f\u3002<br \/>FloatingIP\u3092\u8a2d\u5b9a\u3057\u3066\u7121\u4e8bPing\u3082\u3068\u304a\u308b\u3068\u3053\u308d\u307e\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<table cellpadding=\"20\" style=\"width: 653px;\">\n<tbody>\n<tr bgcolor=\"DDDDDD\">\n<td height=\"20\"># set interface ethernet eth2<br \/># set interface ethernet eth2 address dhcp<br \/># set service ssh port 22<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u308c\u3067SSH\u307e\u3067OK\u3002<\/p>\n<p>&#8212;&#8211;<\/p>\n<\/div>\n<div><a href=\"http:\/\/activebrainlab.blogspot.jp\/2015\/03\/vyosopenbstackglanceimageqcow2.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3061\u3089\u306e\u30b5\u30a4\u30c8<\/a>\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3082\u3089\u3063\u3066KVM\u3067\u3084\u3063\u305f\u307b\u3046\u304c\u9806\u5f53\u306a\u306e\u304b\u3002<\/p>\n<p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>OpenStack\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306bVyos\u6b32\u3057\u3044\u304b\u3089\u767b\u9332\u3059\u308b\u3002 1. iso\u30a4\u30e1\u30fc\u30b8\u53d6\u5f97\u516c\u5f0f\u304b\u3089\u53d6\u5f97\u3002 2. KVM\u4e0a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30a4\u30e1\u30fc\u30b8\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3082\u3042\u308b\u306e\u3060\u304c\uff0c\u81ea\u5206\u306e\u30ec\u30d9\u30eb\u3067\u306fESX\u306evmdk\u3092\u5909\u63db\u304b\u3051\u308b\u307b\u3046\u304c\u2026 <span class=\"read-more\"><a href=\"https:\/\/wp.zassoul.com\/?p=573\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,45,8],"tags":[],"class_list":["post-573","post","type-post","status-publish","format-standard","hentry","category-it","category-openstack","category-8"],"_links":{"self":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts\/573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=573"}],"version-history":[{"count":0,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts\/573\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}