
{"id":1569,"date":"2024-05-01T23:12:46","date_gmt":"2024-05-01T13:12:46","guid":{"rendered":"https:\/\/www.hogepiyo.com\/wp\/?p=1569"},"modified":"2024-05-04T13:02:57","modified_gmt":"2024-05-04T03:02:57","slug":"vmware-esxi-%e3%81%8b%e3%82%89-lxd-%e3%81%b8%e4%b9%97%e3%82%8a%e6%8f%9b%e3%81%88","status":"publish","type":"post","link":"https:\/\/www.hogepiyo.com\/wp\/?p=1569","title":{"rendered":"VMware ESXi \u304b\u3089 LXD \u3078\u4e57\u308a\u63db\u3048"},"content":{"rendered":"\n<p>VMware \u304c <a href=\"https:\/\/kb.vmware.com\/s\/article\/2107518\" title=\"\">ESXi \u306e\u30d5\u30ea\u30fc\u30e9\u30a4\u30bb\u30f3\u30b9\u306e\u63d0\u4f9b\u3092\u7d42\u4e86<\/a>\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u306e\u3067\u3001LXD \u306b\u4e57\u308a\u63db\u3048\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<dl class=\"definition-table\">\n<dt>\u30b5\u30fc\u30d0\u30fc<\/dt>\n<dd>HPE ProLiant MicroServer Gen10 Plus<\/dd>\n<dt>CPU<\/dt>\n<dd>4\u30b3\u30a2<\/dd>\n<dt>\u30e1\u30e2\u30ea\u30fc<\/dt>\n<dd>32GB<\/dd>\n<dt>OS<\/dt>\n<dd>Ubuntu Server 24.04 LTS 64Bit<\/dd>\n<\/dl>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u30b3\u30f3\u30c6\u30f3\u30c4<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f35d4708659\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f35d4708659\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1569\/#LXD_%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >LXD \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1569\/#%E3%83%95%E3%82%A1%E3%82%A4%E3%82%A2%E3%82%A6%E3%82%A9%E3%83%BC%E3%83%AB%E3%81%AE%E8%A8%AD%E5%AE%9A\" >\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1569\/#Web_%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%95%E3%82%A7%E3%83%BC%E3%82%B9%E3%81%AE%E8%A8%AD%E5%AE%9A\" >Web \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u8a2d\u5b9a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1569\/#ESXi_%E3%81%8B%E3%82%89_Windows_%E4%BB%AE%E6%83%B3%E3%83%9E%E3%82%B7%E3%83%B3%E3%82%92%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88\" >ESXi \u304b\u3089 Windows \u4eee\u60f3\u30de\u30b7\u30f3\u3092\u30a4\u30f3\u30dd\u30fc\u30c8<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1569\/#%E5%BF%85%E8%A6%81%E3%81%AA%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E6%BA%96%E5%82%99\" >\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u6e96\u5099<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1569\/#DLX_%E3%81%B8%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88\" >DLX \u3078\u30a4\u30f3\u30dd\u30fc\u30c8<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1569\/#%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF%E6%8E%A5%E7%B6%9A%E3%82%92%E5%A4%89%E6%9B%B4\" >\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3092\u5909\u66f4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1569\/#%E4%BB%AE%E6%83%B3%E3%83%9E%E3%82%B7%E3%83%B3%E3%82%92%E3%83%9B%E3%82%B9%E3%83%88%E8%B5%B7%E5%8B%95%E6%99%82%E3%81%AB%E8%87%AA%E5%8B%95%E8%B5%B7%E5%8B%95\" >\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u30db\u30b9\u30c8\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u8d77\u52d5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1569\/#%E3%83%88%E3%83%A9%E3%83%96%E3%83%AB%E3%82%B7%E3%83%A5%E3%83%BC%E3%83%88\" >\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c8<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1569\/#%E8%B5%B7%E5%8B%95%E6%99%82%E3%81%AB_failed_to_load_Boot0001_%E2%80%9CUEFI_QEMU_QEMU_HARDDISK%E2%80%9D_%E3%82%A8%E3%83%A9%E3%83%BC\" >\u8d77\u52d5\u6642\u306b failed to load Boot0001 &#8220;UEFI QEMU QEMU HARDDISK&#8221; \u30a8\u30e9\u30fc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1569\/#Windows_10_%E3%81%AE%E6%99%82%E5%88%BB%E3%81%8C%E5%86%8D%E8%B5%B7%E5%8B%95%E5%BE%8C%E3%81%AB%E3%81%9A%E3%82%8C%E3%82%8B\" >Windows 10 \u306e\u6642\u523b\u304c\u518d\u8d77\u52d5\u5f8c\u306b\u305a\u308c\u308b<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1569\/#%E5%8F%82%E8%80%83\" >\u53c2\u8003<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"LXD_%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>LXD \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067 LXD \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u307b\u3068\u3093\u3069\u306e\u8cea\u554f\u306b\u306f Enter \u30ad\u30fc\u3060\u3051\u3092\u62bc\u3057\u3066\u30c7\u30d5\u30a9\u30eb\u30c8\u3092\u9069\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo snap install lxd\nsudo lxd init\n\nWould you like to use LXD clustering? (yes\/no) &#91;default=<strong>no<\/strong>]:\nDo you want to configure a new storage pool? (yes\/no) &#91;default=<strong>yes<\/strong>]: \nName of the new storage pool &#91;default=<strong>default<\/strong>]:\nName of the storage backend to use (btrfs, dir, lvm, zfs, ceph) &#91;default=<strong>zfs<\/strong>]:\nCreate a new ZFS pool? (yes\/no) &#91;default=<strong>yes<\/strong>]:\nWould you like to use an existing empty block device (e.g. a disk or partition)? (yes\/no) &#91;default=<strong>no<\/strong>]:\nSize in GiB of the new loop device (1GiB minimum) &#91;default=30GiB]: <strong>800GiB<\/strong>\nWould you like to connect to a MAAS server? (yes\/no) &#91;default=<strong>no<\/strong>]:\nWould you like to create a new local network bridge? (yes\/no) &#91;default=<strong>yes<\/strong>]:\nWhat should the new bridge be called? &#91;default=<strong>lxdbr0<\/strong>]:\nWhat IPv4 address should be used? (CIDR subnet notation, \u201cauto\u201d or \u201cnone\u201d) &#91;default=<strong>auto<\/strong>]:\nWhat IPv6 address should be used? (CIDR subnet notation, \u201cauto\u201d or \u201cnone\u201d) &#91;default=<strong>auto<\/strong>]:\nWould you like the LXD server to be available over the network? (yes\/no) &#91;default=no]: <strong>yes<\/strong>\nWould you like stale cached images to be updated automatically? (yes\/no) &#91;default=<strong>yes<\/strong>]:\nWould you like a YAML \"lxd init\" preseed to be printed? (yes\/no) &#91;default=<strong>no<\/strong>]:<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%83%95%E3%82%A1%E3%82%A4%E3%82%A2%E3%82%A6%E3%82%A9%E3%83%BC%E3%83%AB%E3%81%AE%E8%A8%AD%E5%AE%9A\"><\/span>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>LXD \u304c\u6301\u3063\u3066\u3044\u308b\u81ea\u524d\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c Ubuntu \u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3068\u5e72\u6e09\u3059\u308b\u306e\u3067\u7121\u52b9\u306b\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lxc network set lxdbr0 ipv4.firewall false\nlxc network set lxdbr0 ipv6.firewall false<\/code><\/pre>\n\n\n\n<p>ufw \u30b3\u30de\u30f3\u30c9\u3067 LXD \u306e\u30d6\u30ea\u30c3\u30b8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u8a31\u53ef\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># allow the guest to get an IP from the LXD host\nsudo ufw allow in on lxdbr0 to any port 67 proto udp\nsudo ufw allow in on lxdbr0 to any port 547 proto udp\n\n# allow the guest to resolve host names from the LXD host\nsudo ufw allow in on lxdbr0 to any port 53\n\n# allow the guest to have access to outbound connections\nCIDR4=\"$(lxc network get lxdbr0 ipv4.address | sed 's|\\.&#91;0-9]\\+\/|.0\/|')\"\nCIDR6=\"$(lxc network get lxdbr0 ipv6.address | sed 's|:&#91;0-9]\\+\/|:\/|')\"\nsudo ufw route allow in on lxdbr0 from \"${CIDR4}\"\nsudo ufw route allow in on lxdbr0 from \"${CIDR6}\"<\/code><\/pre>\n\n\n\n<p>\u4e00\u901a\u308a\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089\u518d\u8d77\u52d5\u3092\u3057\u3066\u518d\u8d77\u52d5\u5f8c\u3082 LXD \u304c\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Web_%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%95%E3%82%A7%E3%83%BC%E3%82%B9%E3%81%AE%E8%A8%AD%E5%AE%9A\"><\/span>Web \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u8a2d\u5b9a<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>http:\/\/192.168.1.101:8443 \u306b\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3066\u6307\u793a\u306b\u5f93\u3063\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u7528\u306e\u8a3c\u660e\u66f8\u306e\u4f5c\u6210\u3092\u884c\u3044\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u30dd\u30fc\u30c8\u3092\u5909\u66f4\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u8a2d\u5b9a\u3057\u305f\u30dd\u30fc\u30c8\u3067\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8a3c\u660e\u66f8\u306e\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u3066 Web \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3089\u3001 Settings \u30bf\u30d6\u3067 &#8220;core.trust_password&#8221; \u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u3053\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u30a4\u30f3\u30dd\u30fc\u30c8\u4f5c\u696d\u304c\u7d42\u4e86\u3057\u305f\u3089\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"ESXi_%E3%81%8B%E3%82%89_Windows_%E4%BB%AE%E6%83%B3%E3%83%9E%E3%82%B7%E3%83%B3%E3%82%92%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88\"><\/span>ESXi \u304b\u3089 Windows \u4eee\u60f3\u30de\u30b7\u30f3\u3092\u30a4\u30f3\u30dd\u30fc\u30c8<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%BF%85%E8%A6%81%E3%81%AA%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E6%BA%96%E5%82%99\"><\/span>\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u6e96\u5099<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067 virt-2v2 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install virt-v2v\nsudo mkdir \/usr\/share\/virtio-win\ncd \/usr\/share\/virtio-win\nsudo wget https:\/\/fedorapeople.org\/groups\/virt\/virtio-win\/direct-downloads\/stable-virtio\/virtio-win.iso<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067 <a href=\"https:\/\/github.com\/rwmjones\/rhsrvany\" title=\"\">rhsrvany<\/a> \u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir ~\/tmp\ncd ~\/tmp\nsudo apt install rpm2cpio\nwget -nd -O srvany.rpm https:\/\/kojipkgs.fedoraproject.org\/\/packages\/mingw-srvany\/1.1\/4.fc38\/noarch\/mingw32-srvany-1.1-4.fc38.noarch.rpm\n\nrpm2cpio srvany.rpm | cpio -idmv\nsudo mkdir \/usr\/share\/virt-tools\nsudo mv .\/usr\/i686-w64-mingw32\/sys-root\/mingw\/bin\/*exe \/usr\/share\/virt-tools\/<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067 Windows \u4eee\u60f3\u30de\u30b7\u30f3\u3092 LXD \u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3067\u304d\u308b\u5f62\u5f0f\u306b\u30b3\u30f3\u30d0\u30fc\u30c8\u3057\u307e\u3059\u3002Linux \u4eee\u60f3\u30de\u30b7\u30f3\u3082\u540c\u3058\u30b3\u30de\u30f3\u30c9\u3067\u30b3\u30f3\u30d0\u30fc\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir .\/os\nsudo virt-v2v --block-driver virtio-scsi -o local -of raw -os .\/os -i vmx .\/test-vm.vmx\n\n&#91;   0.0] Setting up the source: -i vmx .\/test-vm.vmx\n&#91;   1.0] Opening the source\n&#91;  13.5] Inspecting the source\n&#91;  15.1] Checking for sufficient free disk space in the guest\n&#91;  15.1] Converting Windows 10 Pro to run on KVM\nvirt-v2v: This guest has virtio drivers installed.\n&#91;  24.7] Mapping filesystem data to avoid copying unused and blank areas\n&#91;  25.6] Closing the overlay\n&#91;  25.7] Assigning disks to buses\n&#91;  25.7] Checking if the guest needs BIOS or UEFI to boot\nvirt-v2v: This guest requires UEFI on the target to boot.\n&#91;  25.7] Setting up the destination: -o disk -os .\/os\n&#91;  26.8] Copying disk 1\/1\n  100% &#91;****************************************]\n&#91; 275.0] Creating output metadata\n&#91; 275.0] Finishing off<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"DLX_%E3%81%B8%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88\"><\/span>DLX \u3078\u30a4\u30f3\u30dd\u30fc\u30c8<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb <a href=\"https:\/\/github.com\/canonical\/lxd\/releases\/latest\/download\/bin.linux.lxd-migrate.x86_64\" title=\"\">bin.linux.lxd-migrate.x86_64<\/a> \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5b9f\u884c\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\/tmp\nwget https:\/\/github.com\/canonical\/lxd\/releases\/latest\/download\/bin.linux.lxd-migrate.x86_64\nchmod u+x .\/bin.linux.lxd-migrate.x86_64<\/code><\/pre>\n\n\n\n<p>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3092\u5b9f\u884c\u3057\u3066\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo .\/bin.linux.lxd-migrate.x86_64\n\nPlease provide LXD server URL: <strong>https:\/\/192.168.1.101:8443<\/strong>\nCertificate fingerprint: xxxxxxxxxxxxxxxxxxxxxxxxxxxx\nok (y\/n)? <strong>y<\/strong>\n1) Use a certificate token\n2) Use an existing TLS authentication certificate\n3) Generate a temporary TLS authentication certificate\nPlease pick an authentication mechanism above: <strong>3<\/strong>\nYour temporary certificate is:\n-----BEGIN CERTIFICATE-----\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n-----END CERTIFICATE-----\nIt is recommended to have this certificate be manually added to LXD through `lxc\u3000config trust add` on the target server.\nAlternatively you could use a pre-defined trust password to add it remotely (use of\u3000a trust password can be a security issue).\nWould you like to use a trust password? &#91;default=no]: <strong>yes<\/strong>\nTrust password:\u3000<strong>&#91;core.trust_password \u306b\u8a2d\u5b9a\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9]<\/strong>\nRemote LXD server:\n  Hostname: lxd-server\n  Version: 5.21.1\nWould you like to create a container (1) or virtual-machine (2)?: <strong>2<\/strong>\nName of the new instance: <strong>test-vm<\/strong>\nPlease provide the path to a disk, partition, or image file: <strong>\/path\/to\/disk\/image\/test-vm-sda (\u30b3\u30f3\u30d0\u30fc\u30c8\u3057\u305f\u30c7\u30a3\u30b9\u30af\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3059\u308b)<\/strong>\nDoes the VM support UEFI Secure Boot? &#91;default=no]:\nInstance to be created:\n  Name: test-vm\n  Project: default\n  Type: virtual-machine\n  Source: \/path\/to\/disk\/image\/test-vm-sda\n  Config:\n    security.secureboot: \"false\"\nAdditional overrides can be applied at this stage:\n1) Begin the migration with the above configuration\n2) Override profile list\n3) Set additional configuration options\n4) Change instance storage pool or volume size\n5) Change instance network\nPlease pick one of the options above &#91;default=1]: <strong>3<\/strong>\nPlease specify config keys and values (key=value ...): <strong>limits.cpu=2<\/strong>\nInstance to be created:\n  Name: test-vm\n  Project: default\n  Type: virtual-machine\n  Source: \/path\/to\/disk\/image\/test-vm-sda\n  Config:\n    limits.cpu: \"2\"\n    security.secureboot: \"false\"\nAdditional overrides can be applied at this stage:\n1) Begin the migration with the above configuration\n2) Override profile list\n3) Set additional configuration options\n4) Change instance storage pool or volume size\n5) Change instance network\nPlease pick one of the options above &#91;default=1]: <strong>3<\/strong>\nPlease specify config keys and values (key=value ...): <strong>limits.memory=4GB<\/strong>\nInstance to be created:\n  Name: test-vm\n  Project: default\n  Type: virtual-machine\n  Source: \/path\/to\/disk\/image\/test-vm-sda\n  Config:\n    limits.cpu: \"2\"\n    limits.memory: 4GB\n    security.secureboot: \"false\"\nAdditional overrides can be applied at this stage:\n1) Begin the migration with the above configuration\n2) Override profile list\n3) Set additional configuration options\n4) Change instance storage pool or volume size\n5) Change instance network\nPlease pick one of the options above &#91;default=1]: <strong>4<\/strong>\nPlease provide the storage pool to use: <strong>default<\/strong>\nDo you want to change the storage size? &#91;default=no]:\nInstance to be created:\n  Name: test-vm\n  Project: default\n  Type: virtual-machine\n  Source: \/path\/to\/disk\/image\/test-vm-sda\n  Storage pool: default\n  Config:\n    limits.cpu: \"2\"\n    limits.memory: 4GB\n    security.secureboot: \"false\"\nAdditional overrides can be applied at this stage:\n1) Begin the migration with the above configuration\n2) Override profile list\n3) Set additional configuration options\n4) Change instance storage pool or volume size\n5) Change instance network\nPlease pick one of the options above &#91;default=1]: <strong>5<\/strong>\nPlease specify the network to use for the instance: <strong>lxdbr0<\/strong>\nInstance to be created:\n  Name: test-vm\n  Project: default\n  Type: virtual-machine\n  Source: \/path\/to\/disk\/image\/test-vm-sda\n  Storage pool: default\n  Network name: lxdbr0\n  Config:\n    limits.cpu: \"2\"\n    limits.memory: 4GB\n    security.secureboot: \"false\"\nAdditional overrides can be applied at this stage:\n1) Begin the migration with the above configuration\n2) Override profile list\n3) Set additional configuration options\n4) Change instance storage pool or volume size\n5) Change instance network\nPlease pick one of the options above &#91;default=1]: <strong>1<\/strong>\nTransferring instance: test-vm: 1.03GB (257.25MB\/s)\nInstance test-vm successfully created<\/code><\/pre>\n\n\n\n<p>Web \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u4e0a\u304b\u3089\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u305f\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u8d77\u52d5\u3057\u3066\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF%E6%8E%A5%E7%B6%9A%E3%82%92%E5%A4%89%E6%9B%B4\"><\/span>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3092\u5909\u66f4<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>lxdbr0 \u3092\u4f7f\u7528\u3057\u3066\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3059\u308b\u3068 NAT \u7d4c\u7531\u306e\u63a5\u7d9a\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30d6\u30ea\u30c3\u30b8\u63a5\u7d9a\u306b\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lxc config device remove test-vm eth0  \nlxc config device add test-vm eth0 nic nictype=macvlan parent=eno1<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BB%AE%E6%83%B3%E3%83%9E%E3%82%B7%E3%83%B3%E3%82%92%E3%83%9B%E3%82%B9%E3%83%88%E8%B5%B7%E5%8B%95%E6%99%82%E3%81%AB%E8%87%AA%E5%8B%95%E8%B5%B7%E5%8B%95\"><\/span>\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u30db\u30b9\u30c8\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u8d77\u52d5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>lxc config set test-vm boot.autostart true<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%83%88%E3%83%A9%E3%83%96%E3%83%AB%E3%82%B7%E3%83%A5%E3%83%BC%E3%83%88\"><\/span>\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c8<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%B5%B7%E5%8B%95%E6%99%82%E3%81%AB_failed_to_load_Boot0001_%E2%80%9CUEFI_QEMU_QEMU_HARDDISK%E2%80%9D_%E3%82%A8%E3%83%A9%E3%83%BC\"><\/span>\u8d77\u52d5\u6642\u306b failed to load Boot0001 &#8220;UEFI QEMU QEMU HARDDISK&#8221; \u30a8\u30e9\u30fc<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5143\u306e\u4eee\u60f3\u30de\u30b7\u30f3\u304c UEFI \u3067\u306f\u306a\u304f\u30ec\u30ac\u30b7\u30fc BIOS \u8a2d\u5b9a\u3060\u3063\u305f\u5834\u5408\u306b\u767a\u751f\u3057\u307e\u3057\u305f\u3002<a href=\"https:\/\/discuss.linuxcontainers.org\/t\/i-successfully-got-a-vm-to-boot-in-bios-mode\/15548\/3\" title=\"\">\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9<\/a>\u3067\u30ec\u30ac\u30b7\u30fc BIOS \u8a2d\u5b9a\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u8d77\u52d5\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lxc config set micro-dyn-onl security.secureboot false\nlxc config set micro-dyn-onl security.csm true<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Windows_10_%E3%81%AE%E6%99%82%E5%88%BB%E3%81%8C%E5%86%8D%E8%B5%B7%E5%8B%95%E5%BE%8C%E3%81%AB%E3%81%9A%E3%82%8C%E3%82%8B\"><\/span>Windows 10 \u306e\u6642\u523b\u304c\u518d\u8d77\u52d5\u5f8c\u306b\u305a\u308c\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u30db\u30b9\u30c8\u5074\u306e Ubuntu \u306e\u6642\u523b\u304c UTC \u306b\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u308b\u306e\u306b\u3001\u30b2\u30b9\u30c8\u5074\u306e Windows \u304c\u305d\u308c\u3092\u30ed\u30fc\u30ab\u30eb\u306e\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u6642\u523b\u3068\u3057\u3066\u8a8d\u8b58\u3059\u308b\u306e\u304c\u554f\u984c\u306e\u3088\u3046\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30d1\u30b9\u306b\u3042\u308b\u30ec\u30b8\u30b9\u30c8\u30ea\u30ad\u30fc <strong>RealTimeIsUniversal<\/strong> \u3092 <strong>QWORD (64-bit)<\/strong> \u3068\u3057\u3066\u8ffd\u52a0\u3057 <strong>1<\/strong> \u306b\u30bb\u30c3\u30c8\u3057\u3066\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002(DWORD (32-bit) \u3060\u3068\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83\"><\/span>\u53c2\u8003<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/ubuntu.com\/blog\/esxi-alternative\" title=\"\">ESXi Alternative: try open source LXD<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/documentation.ubuntu.com\/lxd\/en\/latest\/howto\/\" title=\"\">Canonical LXD: How-to guides<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/documentation.ubuntu.com\/lxd\/en\/latest\/howto\/import_machines_to_instances\/\" title=\"\">How to import physical or virtual machines to LXD instances<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/rwmjones\/rhsrvany\" title=\"\">GitHub &#8211; rwmjones\/rhsrvany<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/luppeng.wordpress.com\/2023\/01\/10\/make-lxd-containers-visible-on-host-network\/\" title=\"\">Understanding lxdbr0 to Make LXD Containers Visible on Host Network<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/superuser.com\/questions\/1683080\/dual-boot-linux-windows-time-mismatch-with-both-using-utc\" title=\"\">Dual boot &#8211; Linux\/Windows time mismatch with both using UTC<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>VMware \u304c ESXi \u306e\u30d5\u30ea\u30fc\u30e9\u30a4\u30bb\u30f3\u30b9\u306e\u63d0\u4f9b\u3092\u7d42\u4e86\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u306e\u3067\u3001LXD \u306b\u4e57\u308a\u63db\u3048\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 \u30b5\u30fc\u30d0\u30fc HPE ProLiant MicroServer Gen10 Plus CPU 4\u30b3\u30a2 \u30e1\u30e2 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1569\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;VMware ESXi \u304b\u3089 LXD \u3078\u4e57\u308a\u63db\u3048&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[260],"tags":[262],"class_list":["post-1569","post","type-post","status-publish","format-standard","hentry","category-ubuntu-24-04-lts-server","tag-lxd"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1569"}],"version-history":[{"count":26,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1569\/revisions"}],"predecessor-version":[{"id":1598,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1569\/revisions\/1598"}],"wp:attachment":[{"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}